Commit f0d72d8e by 张立顺

Merge branch 'dev_v4.25.0' of http://192.168.3.233:8090/saas_plus/dj-car-boutiqu…

…e-work-wechat into dev_v4.25.0
2 parents 023611d4 6926d366
...@@ -106,7 +106,7 @@ Component({ ...@@ -106,7 +106,7 @@ Component({
// 如果有设置订单价格 那就不能选单个成本价比总价还高的 // 如果有设置订单价格 那就不能选单个成本价比总价还高的
if (minPrice && minPrice / 100 < item.shopMinPrice) return false if (minPrice && minPrice / 100 < item.shopMinPrice) return false
// 太阳膜类商品 未配置部位不可选择 // 太阳膜类商品 未配置部位不可选择
if (item?.goodsInfo?.goodsType == 1 && !item.merchantGoodsPosition) return false // if (item?.goodsInfo?.goodsType == 1 && !item.merchantGoodsPosition) return false
let target = `goodsList[${index}].upgradeGoodsList[${ind}].active` let target = `goodsList[${index}].upgradeGoodsList[${ind}].active`
this.setData({ this.setData({
[target]: !active [target]: !active
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
wx:key="ind" wx:key="ind"
wx:for-index="ind" wx:for-index="ind"
wx:for-item="i"> wx:for-item="i">
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }} {{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1 ? 'disableSelect' : ''}}"> <view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
<!-- {{i.shopMinPrice}} --> <!-- {{i.shopMinPrice}} -->
<view <view
class="value {{i.active?'labelWidth':''}}" class="value {{i.active?'labelWidth':''}}"
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
wx:key="ind" wx:key="ind"
wx:for-index="ind" wx:for-index="ind"
wx:for-item="i"> wx:for-item="i">
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }} {{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1 ? 'disableSelect' : ''}}"> <view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
<!-- {{i.shopMinPrice}} --> <!-- {{i.shopMinPrice}} -->
<view <view
class="value " class="value "
......
...@@ -299,14 +299,14 @@ Page({ ...@@ -299,14 +299,14 @@ Page({
delete submitObj.customerCouponCode delete submitObj.customerCouponCode
delete submitObj.selectPayType delete submitObj.selectPayType
} }
for (let k = 0; k < goodsList; k++) { // for (let k = 0; k < goodsList; k++) {
let item = goodsList[k] // let item = goodsList[k]
try { // try {
if (item.goodsType == 1 && (!item.merchantGoodsPosition || !item.upgradeGoodsPosition)) throw i // if (item.goodsType == 1 && (!item.merchantGoodsPosition || !item.upgradeGoodsPosition)) throw i
} catch (err) { // } catch (err) {
return this.showToast('商品无配置部位属性,请联系总部运营配置上架') // return this.showToast('商品无配置部位属性,请联系总部运营配置上架')
} // }
} // }
this.showLoading('提交中...') this.showLoading('提交中...')
let apiName = save && !isErrorOrder ? 'createPrerecordedOrder' : isErrorOrder ? 'correctionOrder' : 'createWithPay' let apiName = save && !isErrorOrder ? 'createPrerecordedOrder' : isErrorOrder ? 'correctionOrder' : 'createWithPay'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!