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

This commit is contained in:
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);
}
})
},
}