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

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

@ -42,18 +42,20 @@
</view> </view>
</view> </view>
</view> </view>
<view class="huiy" v-else @click="face()"> <template v-else>
<image class="huiyimg" src="@/static/hbg.png" mode=""></image> <view class="huiy" v-if="!userxixin.mobile" @click="face()">
<view class="huiybox"> <image class="huiyimg" src="@/static/hbg.png" mode=""></image>
<image class="huiyboximg" src="@/static/huangguan.png" mode=""></image> <view class="huiybox">
<view class="huiywz">会员套餐</view> <image class="huiyboximg" src="@/static/huangguan.png" mode=""></image>
</view> <view class="huiywz">会员套餐</view>
<view class="huiyxx"> </view>
<view class="">9.9元套餐 <view class="huiyxx">
<text>7</text> <view class="">9.9元套餐
<text>7</text>
</view>
</view> </view>
</view> </view>
</view> </template>
</view> </view>
</view> </view>
</template> </template>

Loading…
Cancel
Save