Commit bf33bff5 by 胡悦

Merge branch 'V4.56.0' of http://192.168.3.233:8090/glsx/gl_tape into V4.56.0

2 parents 425265c0 47de8e39
......@@ -14,7 +14,7 @@
<template v-if="i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)">
<text>「{{ i.goods.positionStr}}」</text>
</template>
<text class="price">¥{{i.goods.price}}</text>
<text class="price">¥{{isDefeatOrder? 0 :i.goods.price}}</text>
</view>
</template>
<!-- </template> -->
......
......@@ -13,7 +13,8 @@ export default {
props: {
params: Object,
data: [Object, Array],
dataKey: String
dataKey: String,
isDefeatOrder: Boolean
},
computed: {
listData () {
......
......@@ -52,6 +52,7 @@
:params.sync="componentObject[popupType]"
:data="data"
:dataKey="dataKey"
:isDefeatOrder="isDefeatOrder"
ref="componentRef"
@choose="chooseContent = $event"
@openSkuPopup="openSkuPopup"
......@@ -118,7 +119,11 @@ export default {
},
data: [Object, Array],
externalData: null,
dataKey: String
dataKey: String,
isDefeatOrder: {
type: Boolean,
default: false
}
},
provide () {
......@@ -206,7 +211,7 @@ export default {
chooseContent = this.componentRef().getResult()
}
if (chooseContent) {
if (Array.isArray(chooseContent) && !chooseContent.length && componentObject[popupType].nullTips) throw componentObject.nullTips
if (Array.isArray(chooseContent) && !chooseContent.length && componentObject[popupType].nullTips) throw componentObject[popupType].nullTips
this.$emit('onConfirm', {
chooseContent,
popupType
......@@ -216,7 +221,7 @@ export default {
if (componentObject[popupType].nullTips) throw componentObject[popupType].nullTips
}
} catch (error) {
uni.showToast({
if (error) uni.showToast({
title: error,
icon: 'none'
})
......@@ -344,7 +349,7 @@ export default {
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
}
.nothing{
.nothing {
position: absolute;
top: 0;
left: 0;
......
......@@ -17,10 +17,13 @@
></uni-icons>
</view>
</view>
<view class="popup-body" :key="viewKey">
<view
class="popup-body"
:key="viewKey"
>
<scroll-view
scroll-y
:class="['popup-scroll-view',{show:loadComplete}]"
:class="['popup-scroll-view',{'popup-show':loadComplete}]"
>
<template v-for="(i, index) in screenList">
<view
......@@ -33,7 +36,10 @@
({{userInfo[i.suffix]}})
</template>
<template v-if="i.hasToggle">
<view class="toggle-btn" @click="i.toggle = !i.toggle">{{i.toggle ? '收起' : '展开'}}</view>
<view
class="toggle-btn"
@click="i.toggle = !i.toggle"
>{{i.toggle ? '收起' : '展开'}}</view>
</template>
</view>
<view :class="['box',{'fold':i.hasToggle},{'show':i.toggle}]">
......@@ -43,6 +49,7 @@
:params.sync="i.params"
@choose="choose"
:data="chooseContent"
@onComplete="onComplete"
/>
</view>
</view>
......@@ -80,20 +87,25 @@ export default {
data () {
return {
screenList: config.screenList,
loadComplete: true,
chooseContent: {},
viewKey:Date.now(),
viewKey: Date.now(),
onCompleteNum: 0
}
},
provide () {
return {
userInfo: this.userInfo,
}
},
computed: {
userInfo () {
return uni.$storage.get("userInfo")
},
loadComplete () {
return this.onCompleteNum == this.screenList.length
}
},
mounted () {
},
......@@ -133,6 +145,10 @@ export default {
this.$emit('onConfirm', chooseContent)
this.close()
},
onComplete () {
if (this.onCompleteNum == this.screenList.length) return
this.onCompleteNum += 1
}
}
}
</script>
......@@ -168,6 +184,7 @@ export default {
height: calc(100% - 312rpx);
position: relative;
.popup-scroll-view {
opacity: 0;
height: 100%;
padding-top: 8rpx;
.item-box {
......@@ -187,17 +204,20 @@ export default {
font-size: 24rpx;
}
}
.box{
.box {
overflow: hidden;
}
.fold{
.fold {
height: 72rpx;
}
.show{
.show {
height: auto !important;
}
}
}
.popup-show {
opacity: 1;
}
.loading {
position: absolute;
top: 50%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!