联系客服拨号,新人优惠券跳转

This commit is contained in:
ghusermoon 2020-08-19 15:36:25 +08:00
parent 5dd4023f97
commit 5dff8c8d96
2 changed files with 16 additions and 4 deletions

View File

@ -45,6 +45,7 @@
<view>我们有万能穿搭公式</view>
</view>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
@ -60,8 +61,14 @@ export default {
methods: {
exchangeCoupon() {
this.$u.api.getCoupon({ id: 1 }).then(res => {
this.$u.toast(res.message);
if(res.errCode == 0) {}
if(res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
url: '/pageE/tool/MineCoupon'
})
} else {
this.$u.toast(res.message);
}
})
},
}

View File

@ -3,8 +3,8 @@
<view class="feedback-box">
<view class="feedback-title">人工服务</view>
<view class="feedback-itme">
<view class="manual">
<view class="service-phone">拨打官方客服电话400-100-100</view>
<view class="manual" @click="makePhone">
<view class="service-phone">拨打官方客服电话{{ tel400 }}</view>
<view class="manual-time">{{ wkTime }}</view>
</view>
<view class="suggestions" @click="writeComments">意见反馈</view>
@ -31,6 +31,11 @@ export default {
this.getHelpList();
},
methods: {
makePhone() {
uni.makePhoneCall({
phoneNumber: this.tel400,
});
},
viewAnswer(item) {
this.$store.commit('setQuestion', item);
this.$u.route('pageE/setting/question');