Commit 03ecd6b7 by 胡悦

fix: 修复点击事件冒泡问题并优化订单创建逻辑

修复PublishPopup组件中点击关闭图标时的事件冒泡问题,将点击事件移至外层view
优化OrderCard组件中订单创建流程,添加获取订单设置逻辑并修正流量过期标志判断
1 parent 2fa166d9
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
<slot name="header"> <slot name="header">
<view class="popup-top-box flex align-center" v-if="showTitle"> <view class="popup-top-box flex align-center" v-if="showTitle">
<text class="popup-top-box-title">{{ title }}</text> <text class="popup-top-box-title">{{ title }}</text>
<uni-icons @click="closePopup" class="icon-close" type="closeempty"></uni-icons> <view @click.stop="closePopup">
<uni-icons class="icon-close" type="closeempty"></uni-icons>
</view>
</view> </view>
</slot> </slot>
<!-- 主要内容插槽 --> <!-- 主要内容插槽 -->
......
...@@ -258,6 +258,7 @@ export default { ...@@ -258,6 +258,7 @@ export default {
if ((!this.isSettingExpiredTraffic || scan) && this.selectType == 3) { if ((!this.isSettingExpiredTraffic || scan) && this.selectType == 3) {
this.selectType = 1 this.selectType = 1
} }
this.getCreateOrderSetting()
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.recordOrderPopup) { if (this.$refs.recordOrderPopup) {
this.$refs.recordOrderPopup.open() this.$refs.recordOrderPopup.open()
...@@ -272,7 +273,7 @@ export default { ...@@ -272,7 +273,7 @@ export default {
let merchantType = this.localUserInfo?.merchantAccountList.includes('6') || this.localUserInfo?.merchantAccountList.includes('8') let merchantType = this.localUserInfo?.merchantAccountList.includes('6') || this.localUserInfo?.merchantAccountList.includes('8')
if (merchantType && !this.localUserInfo?.isSuper && this.localUserInfo?.loginRole != 3 && this.localUserInfo?.userType == 2 && this.localUserInfo?.shopMerchantId) { if (merchantType && !this.localUserInfo?.isSuper && this.localUserInfo?.loginRole != 3 && this.localUserInfo?.userType == 2 && this.localUserInfo?.shopMerchantId) {
uni.$api.boutiqueApi.getServiceBaseInfo({ merchantId: this.localUserInfo?.shopMerchantId }).then(res => { uni.$api.boutiqueApi.getServiceBaseInfo({ merchantId: this.localUserInfo?.shopMerchantId }).then(res => {
this.isSettingExpiredTraffic = res?.data?.trafficExpireFlag == 'Y' this.isSettingExpiredTraffic = res?.trafficExpireFlag == 'Y'
}) })
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!