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

Loading…
Cancel
Save