Commit 7178b3a4 by zhangzhen

验券优化

parent dcc23940
......@@ -37,13 +37,13 @@
imgUrl: config.assetsPath+'/order_2_icon.png',
sortName:"续"
},
// {
// name:"验券",
// url:config.assetsPath+'/tool_3.png',
// imgUrl: config.assetsPath+'/scan_code_icon.png',
// sortName:"验",
// routePath:"/pages/useCouponIllustrate/useCouponIllustrate?keyData=coupon_use_process"
// },
{
name:"验券",
url:config.assetsPath+'/tool_3.png',
imgUrl: config.assetsPath+'/scan_code_icon.png',
sortName:"验",
routePath:"/pages/couponCheck/couponCheck"
},
{
name:"客服",
url:config.assetsPath+'/tool_4.png',
......@@ -87,7 +87,7 @@
}
},
onHandle(val,index){
if(index===2){
if(index===3){
this.onGetSysConfig()
return
};
......
......@@ -75,6 +75,10 @@
{
iconUrl:config.assetsPath+'/mt_icon.png',
name:"美团"
},
{
iconUrl:config.assetsPath+'/dy_icon.jpg',
name:"抖音"
}
],
couponInfo:'',
......@@ -86,13 +90,6 @@
return moment(val).format("YYYY-MM-DD HH:mm:ss")
}
},
onLoad(option) {
if(option.openShopUuid){
this.openShopUuid = option.openShopUuid
}
this.eventChannel = this.getOpenerEventChannel();
},
methods:{
onConfirm(){
if(!this.code){
......@@ -107,7 +104,7 @@
})
couponChecked({
code:this.code.split(" ").join(""),
openShopUuid:this.openShopUuid
storeId:uni.getStorageSync('storeId')
}).then(res=>{
uni.hideLoading()
if(res.data.code === 200){
......@@ -116,7 +113,6 @@
icon:"success",
title:"核验成功",
success: () => {
this.eventChannel.emit('acceptData', {data: true});
setTimeout(()=>{
uni.navigateBack()
},1000)
......
......@@ -329,6 +329,7 @@
obj = res.data.data.find(item=>item.id === uni.getStorageSync("storeId"))
}else{
obj = res.data.data[0];
uni.setStorageSync("storeId",obj.id);
}
that.storeInfo = {
...obj,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment