Commit ee62ac81 by cen

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

2 parents e942705d 4f0bc783
...@@ -221,7 +221,8 @@ export default { ...@@ -221,7 +221,8 @@ export default {
} }
} }
.disabled { .disabled {
opacity: 0.5; border: 2rpx solid #dce0e666;
color: #3333331a;
} }
.active { .active {
border-color: #2c66f7; border-color: #2c66f7;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<!-- <view class="alias-name">商品别名:阿尔法 T5极狐非三电整车延保(新车2年6万公里)</view> --> <!-- <view class="alias-name">商品别名:阿尔法 T5极狐非三电整车延保(新车2年6万公里)</view> -->
<view class="front-gear-box"> <view class="front-gear-box">
<view class="front-gear-input-box"> <view class="front-gear-input-box">
<view class="front-gear-label" v-if="goods.merchantGoodsPosition || goods.goodsInfo.goodsTypeName">{{goods.goodsInfo.goodsType===1?formatPosition(goods.merchantGoodsPosition, positionTypeList):goods.goodsInfo.goodsTypeName}}</view> <!-- <view class="front-gear-label" v-if="goods.merchantGoodsPosition || goods.goodsInfo.goodsTypeName">{{goods.goodsInfo.goodsType===1?formatPosition(goods.merchantGoodsPosition, positionTypeList):goods.goodsInfo.goodsTypeName}}</view> -->
<view class="front-gear-input"> <view class="front-gear-input">
<view class="unit">¥</view> <view class="unit">¥</view>
<input class="uni-input" type="digit" maxlength="9" placeholder="请输入价格" placeholder-style="font-size: 14px" v-model="goods.sellPrice" @blur="validatePrice($event, goods, ind, index)" /> <input class="uni-input" type="digit" maxlength="9" placeholder="请输入价格" placeholder-style="font-size: 14px" v-model="goods.sellPrice" @blur="validatePrice($event, goods, ind, index)" />
...@@ -48,6 +48,7 @@ export default { ...@@ -48,6 +48,7 @@ export default {
created() { created() {
// 初始化商品数量 // 初始化商品数量
this.initProductNumbers() this.initProductNumbers()
console.log(this.list, 'Package-list')
}, },
mounted() { mounted() {
// 确保每次使用组件时都检查并设置number属性 // 确保每次使用组件时都检查并设置number属性
...@@ -56,6 +57,7 @@ export default { ...@@ -56,6 +57,7 @@ export default {
updated() { updated() {
// 当组件数据更新时也检查number属性 // 当组件数据更新时也检查number属性
this.initProductNumbers() this.initProductNumbers()
console.log(this.list, 'Package-list')
}, },
methods: { methods: {
// 初始化商品数量方法 // 初始化商品数量方法
...@@ -65,14 +67,20 @@ export default { ...@@ -65,14 +67,20 @@ export default {
if (!item.packageGoods.number) { if (!item.packageGoods.number) {
this.$set(item.packageGoods, 'number', '1') this.$set(item.packageGoods, 'number', '1')
} }
// 存储旧值
item.packageGoods.goodsList.forEach(goods => {
if (!goods.price) {
goods.oldPrice = goods.sellPrice
}
})
}) })
} }
}, },
// 格式化位置信息 // // 格式化位置信息
formatPosition(item, positionTypeList) { // formatPosition(item, positionTypeList) {
const filterData = positionTypeList.filter(v => v.positionValue == item) // const filterData = positionTypeList.filter(v => v.positionValue == item)
return (filterData.length && filterData[0] && filterData[0].positionName) || '' // return (filterData.length && filterData[0] && filterData[0].positionName) || ''
}, // },
// 验证数量输入 // 验证数量输入
validateNumber(event, item) { validateNumber(event, item) {
let value = event.detail.value let value = event.detail.value
......
...@@ -190,20 +190,24 @@ $uni-primary: #4673ff !default; ...@@ -190,20 +190,24 @@ $uni-primary: #4673ff !default;
.uni-calendar-item--checked { .uni-calendar-item--checked {
background-color: $uni-primary; background-color: $uni-primary;
color: #fff; color: #fff;
opacity: 0.8; // opacity: 0.8;
} }
.uni-calendar-item--multiple { .uni-calendar-item--multiple {
background-color: $uni-primary; background-color: rgba($color: $uni-primary, $alpha: 0.8);
color: #fff; color: #fff;
opacity: 0.8; .uni-calendar-item--multiple{
background: none;
}
// opacity: 0.8;
} }
.uni-calendar-item--before-checked { .uni-calendar-item--before-checked {
background-color: #ff5a5f; background-color: #4673FF;
color: #fff; color: #fff;
} }
.uni-calendar-item--after-checked { .uni-calendar-item--after-checked {
background-color: #ff5a5f; background-color: #4673FF;
color: #fff; color: #fff;
border-radius: inherit;
} }
</style> </style>
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
> >
<text class="uni-calendar__header-text uni-calendar--fixed-width">{{cancelText}}</text> <text class="uni-calendar__header-text uni-calendar--fixed-width">{{cancelText}}</text>
</view> </view>
<viw class="uni-calendar__header-title">{{title}}</viw>
<view <view
class="uni-calendar__header-btn-box" class="uni-calendar__header-btn-box"
@click="confirm" @click="confirm"
...@@ -184,9 +185,13 @@ export default { ...@@ -184,9 +185,13 @@ export default {
type: Object, type: Object,
default: () => { { } } default: () => { { } }
}, },
backgroundColor:{ backgroundColor: {
type: String, type: String,
default: '#fff' default: '#fff'
},
title:{
type: String,
default: '选择日期'
} }
}, },
data () { data () {
...@@ -308,7 +313,7 @@ export default { ...@@ -308,7 +313,7 @@ export default {
} }
this.choiceDate(before) this.choiceDate(before)
setTimeout(() => { setTimeout(() => {
uni.hideLoading() uni.hideLoading()
this.choiceDate(after) this.choiceDate(after)
}, 100) }, 100)
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!