|
@@ -735,8 +735,13 @@ Page({
|
|
|
dataList: dataList,
|
|
|
showNum: sumTotal,
|
|
|
commodityChannelPrice: res.data.data[0].product_channel_price,
|
|
|
- showPrice: res.data.data[0].product_channel_price,
|
|
|
+
|
|
|
})
|
|
|
+ if (that.data.loginStatic && res.data.data[0].product_channel_price){
|
|
|
+ that.setData({
|
|
|
+ showPrice: res.data.data[0].product_channel_price,
|
|
|
+ })
|
|
|
+ }
|
|
|
loadingFlag++;
|
|
|
if (loadingFlag == 6) {
|
|
|
//组合sku
|
|
@@ -1162,7 +1167,8 @@ Page({
|
|
|
var showNum = SKUResult[selectedIds.join('-')].product_repertory;//当前规格下的库存
|
|
|
var showPrice = maxPrice > minPrice ? minPrice + "-" + maxPrice : maxPrice; //当前规格下的价格
|
|
|
if(that.data.loginStatic){ // 表示是渠道价格
|
|
|
- showPrice = SKUResult[selectedIds.join('-')].product_channel_price//当前规格下的渠道价格
|
|
|
+ console.log(SKUResult[selectedIds.join('-')].product_channel_price,"SKUResult[selectedIds.join('-')].product_channel_price")
|
|
|
+ showPrice = SKUResult[selectedIds.join('-')].product_channel_price[0] ? SKUResult[selectedIds.join('-')].product_channel_price : showPrice //当前规格下的渠道价格
|
|
|
}
|
|
|
var num = this.data.minNumber;//当前数量
|
|
|
if (num >= showNum){
|