|
|
@ -63,7 +63,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="input"> |
|
|
|
<view class="input"> |
|
|
|
<input class="input1" type="text" placeholder="请输入抖音/美团券码" v-model="scanCode"/> |
|
|
|
<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> |
|
|
|
<view class="yqbtn" @click="numberCheck"> |
|
|
|
<view class="yqbtn" @click="numberCheck"> |
|
|
|
验券 |
|
|
|
验券 |
|
|
@ -141,6 +141,12 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
numberCheck(){ |
|
|
|
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=>{ |
|
|
|
this.$api.numberCheck({number:this.scanCode, storeId: this.tuijianlist[0].id}).then(res=>{ |
|
|
|
if(res.code==200){ |
|
|
|
if(res.code==200){ |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|