Commit e6fba62e by 前端

Merge branch 'v1.0.5' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.5

2 parents c59c622e 8e8c4a43
......@@ -170,6 +170,7 @@ export default {
customerType: Number,
title: String,
show: Boolean,
madiaId: Number
},
data () {
return {
......@@ -338,7 +339,10 @@ export default {
this.$refs.couponBoxVisible.close()
},
jumpPage (e) {
this.$emit('jumpPage', e.uniCode)
this.$emit('jumpPage', {
id: e.uniCode,
historyId: this.madiaId
})
},
async createCoupon () {
try {
......@@ -347,7 +351,7 @@ export default {
await this.validate()
uni.showLoading()
let { staffName, salesUuid } = customerInfo,
scene = `id=${couponId}&userId=${salesUuid}&employName=${staffName}&merchantId=${shopMerchantId}&customerName=${customerInfo.customerName}&customerPhone=${customerInfo.phoneNumber}`,
scene = `id=${couponId}&userId=${salesUuid}&employName=${staffName}&merchantId=${shopMerchantId}&customerName=${customerInfo.customerName}&customerPhone=${customerInfo.phoneNumber}`,
params = {
path: '/packageShopmall/packageMine/pages/boutique/gift/gift',
appId: 'wxe10067a63c1856ac',
......
......@@ -87,6 +87,7 @@ export default {
},
data () {
return {
historyId: ''
};
},
computed: {
......@@ -99,6 +100,11 @@ export default {
return this.$store.state.user.historyStatus;
},
},
watch: {
watchStatus () {
this.historyId = ''
}
},
mounted () { },
methods: {
...mapMutations("audio", ["setReceptionStatus"]),
......@@ -110,7 +116,7 @@ export default {
7: "reception",
13: "invitation",
9: "Case",
12:'history'
12: 'history'
}[id];
return name;
},
......@@ -123,6 +129,11 @@ export default {
this.jumpPage(e.id)
},
back () {
if (this.historyId) {
this.jumpPage({ id: this.historyId })
this.historyId = ''
return
}
this.$refs?.toolRef?.hide();
this.$emit("back");
},
......@@ -131,7 +142,8 @@ export default {
this.$refs.stepRef.close();
this.$emit("done", e);
},
jumpPage (id) {
jumpPage ({ id, historyId }) {
if (historyId) this.historyId = historyId
this.$emit("update:id", Number(id));
},
/**回店客户 */
......@@ -143,7 +155,7 @@ export default {
phoneNumber: item.customerPhone,
salesUuid: item.userId,
staffName: item.employeeName,
receiveCouponDate:item.receiveCouponDate
receiveCouponDate: item.receiveCouponDate
})
this.$emit('reception')
},
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-05-30 14:40:39
* @LastEditors: huyue
* @LastEditTime: 2024-06-04 16:23:51
* @LastEditTime: 2024-06-04 17:02:09
-->
<template>
<view style="position: relative">
......@@ -89,13 +89,9 @@
.receptionSourceDetailInfoList"
:key="ind"
class="tab-item"
:class="[secondIndex == ind ? 'active' : '']"
@click="changeIndex(ind, 'secondIndex')"
>
<view
class="text"
:class="[secondIndex == ind ? 'active' : '']"
>{{ item.tabName }}</view
>
>{{ item.tabName }}
</view>
</view>
<template
......@@ -160,7 +156,7 @@ export default {
type: Array,
default: () => []
},
madiaId: String,
madiaId: Number,
show: Boolean
},
data () {
......@@ -325,23 +321,17 @@ export default {
align-items: center;
margin-left: 64rpx;
margin-bottom: 48rpx;
padding: 4rpx;
box-sizing: border-box;
.tab-item {
height: 100%;
.text {
display: flex;
align-items: center;
margin: 4rpx;
width: auto;
height: 84rpx;
padding: 0 48rpx;
box-sizing: border-box;
&.active {
background-color: #fff;
// margin: 4rpx 0;
border-radius: 16rpx;
// height: calc(100% - 8rpx);
}
}
line-height: 88rpx;
padding: 0 48rpx;
box-sizing: border-box;
}
.active {
background-color: #fff;
border-radius: 16rpx;
}
}
.product-list {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!