|
|
|
@ -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({ |
|
|
|
|