增加无忧保页面
This commit is contained in:
parent
fadeb2cf0e
commit
433a407029
|
@ -30,7 +30,7 @@ export default {
|
||||||
AppLayout,
|
AppLayout,
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
if (!e.id || !e.type) {
|
if (!e.type) {
|
||||||
return this.$utils.toast("参数错误").then(() => {
|
return this.$utils.toast("参数错误").then(() => {
|
||||||
this.$utilst.toPage("", {}, "back");
|
this.$utilst.toPage("", {}, "back");
|
||||||
});
|
});
|
||||||
|
@ -52,6 +52,16 @@ export default {
|
||||||
this.$utils.toast(response.msg);
|
this.$utils.toast(response.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else if (e.type == "care") {
|
||||||
|
this.$request({
|
||||||
|
api: "system.carefree",
|
||||||
|
}).then((response) => {
|
||||||
|
this.info = {
|
||||||
|
title: response.msg,
|
||||||
|
date: "",
|
||||||
|
content: response.data.content,
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
<text class="title limit-line clamp-1">我要提现</text>
|
<text class="title limit-line clamp-1">我要提现</text>
|
||||||
<text class="iconfont icon-jinru"></text>
|
<text class="iconfont icon-jinru"></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="widget-item" @click="showCarefree">
|
<view class="widget-item" @click="toPage('/pages/detail/detail?type=care')">
|
||||||
<text class="title limit-line clamp-1">服务无忧保</text>
|
<text class="title limit-line clamp-1">服务无忧保</text>
|
||||||
<text class="iconfont icon-jinru"></text>
|
<text class="iconfont icon-jinru"></text>
|
||||||
</view>
|
</view>
|
||||||
|
@ -183,15 +183,7 @@ export default {
|
||||||
}
|
}
|
||||||
this.$utils.toPage(url);
|
this.$utils.toPage(url);
|
||||||
},
|
},
|
||||||
showCarefree() {
|
setServiceState() {
|
||||||
// this.showCarefreeModal = true;
|
|
||||||
// this.$request({
|
|
||||||
// api: "system.carefree",
|
|
||||||
// }).then((response) => {
|
|
||||||
// this.carefreeContent = response.data.content;
|
|
||||||
// });
|
|
||||||
},
|
|
||||||
setServiceState(state) {
|
|
||||||
this.$models.user.setServiceState().then(async () => {
|
this.$models.user.setServiceState().then(async () => {
|
||||||
await this.$store.dispatch("user/info", true);
|
await this.$store.dispatch("user/info", true);
|
||||||
this.acceptState = this.acceptOrder;
|
this.acceptState = this.acceptOrder;
|
||||||
|
|
Loading…
Reference in New Issue