扫一扫放开

main
123456 3 months ago
parent c48aa6b279
commit c3ec53587a
  1. 39
      .hbuilderx/launch.json
  2. 8
      pages/index/index.vue
  3. 8
      pages/mendainlist/mendainlist.vue
  4. 2
      pages/user/index.vue

@ -1,20 +1,23 @@
{ // launch.json configurations app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtypelocalremote, localremote
"version": "0.0",
"configurations": [{
"app-plus" :
{
"launchtype" : "local"
},
"default" :
{
"launchtype" : "local"
},
"mp-weixin" :
{
"launchtype" : "local"
},
"type" : "uniCloud"
}
{
// launch.json configurations app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtypelocalremote, localremote
"version" : "0.0",
"configurations" : [
{
"app-plus" : {
"launchtype" : "local"
},
"default" : {
"launchtype" : "local"
},
"mp-weixin" : {
"launchtype" : "local"
},
"type" : "uniCloud"
},
{
"playground" : "standard",
"type" : "uni-app:app-ios"
}
]
}

@ -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">
验券
@ -147,14 +147,20 @@
})
return ;
}
uni.showLoading({
title: "核销中"
})
this.$api.numberCheck({number:this.scanCode, storeId: this.tuijianlist[0].id}).then(res=>{
if(res.code==200){
uni.hideLoading();
uni.showToast({
icon: "none",
title: res.data.msg,
duration: 3000
});
this.$refs.popup.close('center')
}else{
uni.hideLoading();
}
})
},

@ -10,18 +10,18 @@
</view>
<view class="content" :style="{'top': (top+44)+'px'}">
<view class="mendian">
<view class="mddz" v-for="(item,index) in mendainlist" :key="index" @click="xzmd(item)">
<view class="mddz1">
<view class="mddz" v-for="(item,index) in mendainlist" :key="index">
<view class="mddz1" @click="xzmd(item)">
<image class="mddz1img" :src="item.image.url" mode=""></image>
<view class="mddz1wz">{{item.name}}</view>
</view>
<view class="mddz2">
<view class="mdleft" @click="handleNavigation(item)">
<view class="mdleft" @click.stop="handleNavigation(item)">
<image class="mddz1img1" src="@/static/定位1.png" mode=""></image>
<text class="dz">地址{{item.address}}</text>
</view>
<image class="mddz1img2" src="@/static/电话o.png" mode="" @click="makePhoneCall(item.mobile)"></image>
<image class="mddz1img2" src="@/static/电话o.png" mode="" @click.stop="makePhoneCall(item.mobile)"></image>
</view>
</view>
</view>

@ -24,7 +24,7 @@
<image class="huiyimg" src="@/static/hbg.png" mode=""></image>
<view class="huiybox">
<image class="huiyboximg" src="@/static/huangguan.png" mode=""></image>
<view class="huiywz">会员套餐<text style="float: right; font-weight: normal; font-size: 26rpx;">{{item.status_name}}</text></view>
<view class="huiywz">会员套餐<text style="float: right; font-weight: normal; font-size: 26rpx; margin-right: 50rpx;">{{item.status_name}}</text></view>
</view>
<view class="huiyxx">
<view class="">{{item.card_name}}

Loading…
Cancel
Save