Commit 2b202d76 authored by 肖健's avatar 肖健

挪车订阅消息

parent 4835d151
......@@ -3,19 +3,19 @@
* @Description: 帮助使用
-->
<template>
<view class="appCotent">
<view class="appCotent">
<div class="hlep">
<u-cell-group>
<u-cell title="设置消息订阅" :isLink="true" @click="changeMessages()"></u-cell>
<u-cell title="设置消息订阅" :isLink="true" @click="openMsg()"></u-cell>
</u-cell-group>
<image v-if="image" :src="image" />
<image v-else src="@/static/my/help.png" />
<image v-if="image" :src="image"/>
<image v-else src="@/static/my/help.png"/>
</div>
</view>
</view>
</template>
<script>
export default {
export default {
data() {
return {
image: '',
......@@ -24,11 +24,11 @@
}
},
methods: {
getHelpInfo(){
let opts = { url: '/app/user/help', method: 'get' };
getHelpInfo() {
let opts = {url: '/app/user/help', method: 'get'};
this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) {
if(res.data.data.imgPath!=''){
if (res.data.data.imgPath != '') {
this.image = this.http.baseUrl + res.data.data.imgPath
}
}
......@@ -60,7 +60,7 @@
uni.setStorageSync("is_authorization", true);
} else {
uni.showToast({
title: "您已拒绝订阅消息授权,无法预约领取",
title: "您已拒绝订阅消息授权,无法接收通知",
icon: "error",
});
that.is_authorization = false;
......@@ -83,7 +83,7 @@
uni.setStorageSync("is_authorization", true);
} else {
uni.showToast({
title: "您拒绝订阅消息授权,无法预约领取",
title: "您拒绝订阅消息授权,无法接收通知",
icon: "none",
});
that.is_authorization = false;
......@@ -103,7 +103,7 @@
uni.setStorageSync("is_authorization", true);
} else {
uni.showToast({
title: "您已拒绝订阅消息授权,无法预约领取",
title: "您已拒绝订阅消息授权,无法接收通知",
icon: "error",
});
that.is_authorization = false;
......@@ -118,7 +118,7 @@
});
},
//改变消息订阅
changeMessages(){
changeMessages() {
wx.openSetting({
withSubscriptions: true,
});
......@@ -142,15 +142,16 @@
this.getHelpInfo()
//this.openMsg()
},
}
}
</script>
<style lang="scss" scoped>
.hlep{
padding:0rpx 0;
height: 1092rpx;
image{
.hlep {
padding: 0 rpx 0;
height: 1092 rpx;
image {
height: 100%;
width: 100%;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment