Compare commits
No commits in common. "76b1715f5af4d7d6fa95032718b2d9dea3316ad4" and "f378c82dd4d0f159ccc19253de4773c330b695ed" have entirely different histories.
76b1715f5a
...
f378c82dd4
|
@ -175,31 +175,14 @@
|
||||||
} else this.$toolAll.tools.showToast(res.msg);
|
} else this.$toolAll.tools.showToast(res.msg);
|
||||||
},error=>{})
|
},error=>{})
|
||||||
this.timer = setInterval(()=>{
|
this.timer = setInterval(()=>{
|
||||||
var params = {coupon_id:this.dataList[index].id,secret:this.secret}
|
this.$requst.post('staff/coupon/write-off-experience-couponQuery',{coupon_id:this.dataList[index].id,secret:this.secret}).then(res=>{
|
||||||
uni.request({
|
if(res.code==0){
|
||||||
url: `${uni.getStorageSync('hostapi')}staff/coupon/write-off-experience-couponQuery`,
|
|
||||||
method: 'POST',
|
|
||||||
data: params,
|
|
||||||
header:{
|
|
||||||
'Content-Type': 'application/json; charset=UTF-8',
|
|
||||||
'Authorization': 'Bearer '+uni.getStorageSync('token') || ''
|
|
||||||
},
|
|
||||||
success: res => {
|
|
||||||
if(res.data.code==0){
|
|
||||||
// if(res.data.result==0){
|
// if(res.data.result==0){
|
||||||
this.$toolAll.tools.showToast('使用成功');
|
this.$toolAll.tools.showToast('使用成功');
|
||||||
this.isTY = false;
|
this.isTY = false;
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
this.checkAllList(0);
|
this.checkAllList(0);
|
||||||
// }
|
// }
|
||||||
}else if(res.data.code==200){
|
|
||||||
return false;
|
|
||||||
}else{
|
|
||||||
uni.showToast({
|
|
||||||
title:res.data.msg,
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},3000)
|
},3000)
|
||||||
|
|
|
@ -16,14 +16,10 @@
|
||||||
</view>
|
</view>
|
||||||
<view :style="{background:[ingColor,publicColor,failColor,failColor,failColor][item.status]}" class="fon24 colf radius10 flexs" style="padding: 14rpx 24rpx;">{{['审核中...','预约成功','预约失败','预约取消','预约完成'][item.status]}}</view>
|
<view :style="{background:[ingColor,publicColor,failColor,failColor,failColor][item.status]}" class="fon24 colf radius10 flexs" style="padding: 14rpx 24rpx;">{{['审核中...','预约成功','预约失败','预约取消','预约完成'][item.status]}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="mar-s36 leave-word fon24 col3"><text>预约时间:</text><text>{{item.yuTime}}</text></view>
|
<view class="mar-s36 fon24 col3">预约时间:{{item.yuTime}}</view>
|
||||||
<view class="disjbac fon24 col3 mar-s30">
|
<view class="disjbac fon24 col3 mar-s30">
|
||||||
<!-- <view>联系人:{{item.lname}}</view> -->
|
<!-- <view>联系人:{{item.lname}}</view> -->
|
||||||
<view class="leave-word"><text>联系电话:</text><text>{{item.lphone}}</text></view>
|
<view>联系电话:{{item.lphone}}</view>
|
||||||
</view>
|
|
||||||
<view class="disjbac fon24 col3 mar-s30">
|
|
||||||
<!-- <view>联系人:{{item.lname}}</view> -->
|
|
||||||
<view class="leave-word"><text>留言信息:</text><text>{{item.remarks}}</text></view>
|
|
||||||
</view>
|
</view>
|
||||||
<view @tap="quyuy(index)" class="disjcac mar-s40 width100 colf fon30 radius10 posir" :style="{background:[quColor,quColor,publicColor,publicColor,publicColor][item.status]}" style="height: 90rpx;line-height: 90rpx;">
|
<view @tap="quyuy(index)" class="disjcac mar-s40 width100 colf fon30 radius10 posir" :style="{background:[quColor,quColor,publicColor,publicColor,publicColor][item.status]}" style="height: 90rpx;line-height: 90rpx;">
|
||||||
{{['取消预约','取消预约','重新预约','再次预约','再次预约'][item.status]}}
|
{{['取消预约','取消预约','重新预约','再次预约','再次预约'][item.status]}}
|
||||||
|
@ -125,8 +121,7 @@
|
||||||
content:item.typeInfo.title,
|
content:item.typeInfo.title,
|
||||||
yuTime:`${timeStr[0]}年${timeStr[1]}月${timeStr[2]}日 ${timeZui[0]}至${timeZui[1]}`,
|
yuTime:`${timeStr[0]}年${timeStr[1]}月${timeStr[2]}日 ${timeZui[0]}至${timeZui[1]}`,
|
||||||
lname:item.name,
|
lname:item.name,
|
||||||
lphone:item.phone,
|
lphone:item.phone
|
||||||
remarks:item.remarks,
|
|
||||||
}
|
}
|
||||||
this.dataList.push(obj)
|
this.dataList.push(obj)
|
||||||
})
|
})
|
||||||
|
@ -167,14 +162,5 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style>
|
||||||
.leave-word{
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
.leave-word>text:first-child{
|
|
||||||
width: 125rpx;
|
|
||||||
}
|
|
||||||
.leave-word>text:last-child{
|
|
||||||
width: calc(100% - 125rpx);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -61,9 +61,7 @@
|
||||||
title:'优惠券组',
|
title:'优惠券组',
|
||||||
richText:'',
|
richText:'',
|
||||||
groupId:'',
|
groupId:'',
|
||||||
ifLing:false,
|
ifLing:false
|
||||||
share_img:'', //分享图片
|
|
||||||
share_title:'', //分享标签
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
|
@ -76,14 +74,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
// 调用tools.js中的种植埋点事件
|
|
||||||
console.log(`${this.$http}${this.share_img}`,`${this.share_title}`,212121212)
|
|
||||||
var shareObj = {
|
var shareObj = {
|
||||||
title: `${this.share_title}`, // 默认是小程序的名称(可以写slogan等)
|
title: `${ya.detailObj.title}`, // 默认是小程序的名称(可以写slogan等)
|
||||||
path: `/pagesB/couponGroup/couponGroup?group_id=${this.groupId}&share_id=${uni.getStorageSync('userId')}&invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
path: `/pagesB/couponGroup/couponGroup?group_id=${this.groupId}&share_id=${uni.getStorageSync('userId')}&invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||||
imageUrl: `${this.$http}${this.share_img}` //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
|
imageUrl: `` //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
|
||||||
};
|
};
|
||||||
return shareObj;
|
|
||||||
},
|
},
|
||||||
onLoad(op) {
|
onLoad(op) {
|
||||||
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
|
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
|
||||||
|
@ -120,8 +115,6 @@
|
||||||
this.richText = this.$toolAll.tools.escape2Html(res.data.content);
|
this.richText = this.$toolAll.tools.escape2Html(res.data.content);
|
||||||
this.dataList = [];
|
this.dataList = [];
|
||||||
this.zcList = [];
|
this.zcList = [];
|
||||||
this.share_img = res.data.share_img;
|
|
||||||
this.share_title = res.data.title;
|
|
||||||
if(res.data.coupon.length!=0){
|
if(res.data.coupon.length!=0){
|
||||||
res.data.coupon.forEach(item=>{
|
res.data.coupon.forEach(item=>{
|
||||||
let obj = {
|
let obj = {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue