main
syt 3 months ago
parent 1c8799451c
commit c48aa6b279
  1. 8
      pages/index/index.vue
  2. 4
      pages/user/index.vue

@ -63,7 +63,7 @@
</view>
<view class="input">
<input class="input1" type="text" placeholder="请输入抖音/美团券码" v-model="scanCode"/>
<image class="saoma" @click="openScan()" src="@/static/扫一扫.png" mode=""></image>
<!-- <image class="saoma" @click="openScan()" src="@/static/扫一扫.png" mode=""></image> -->
</view>
<view class="yqbtn" @click="numberCheck">
验券
@ -141,6 +141,12 @@
})
},
numberCheck(){
if(!uni.getStorageSync("token")) {
uni.navigateTo({
url: "/pages/login/login"
})
return ;
}
this.$api.numberCheck({number:this.scanCode, storeId: this.tuijianlist[0].id}).then(res=>{
if(res.code==200){
uni.showToast({

@ -42,7 +42,8 @@
</view>
</view>
</view>
<view class="huiy" v-else @click="face()">
<template v-else>
<view class="huiy" v-if="!userxixin.mobile" @click="face()">
<image class="huiyimg" src="@/static/hbg.png" mode=""></image>
<view class="huiybox">
<image class="huiyboximg" src="@/static/huangguan.png" mode=""></image>
@ -54,6 +55,7 @@
</view>
</view>
</view>
</template>
</view>
</view>
</template>

Loading…
Cancel
Save