Commit f4c890c2 by 张立顺

fix bug

1 parent 82f7c020
......@@ -6,6 +6,7 @@
bottom: 0;
right: 0;
z-index: 998;
transform: translateZ(2px);
}
.popup-bg {
......
......@@ -12,6 +12,7 @@
width: 100%;
color: #347BFF;
font-size: var(--fontSize24);
/* z-index: 1; */
}
.tipsIcon {
......
......@@ -13,9 +13,9 @@ Component({
keyWord: '',
strTemp: ''
})
if(this.data.chooseGoodsList.length==0){
if (this.data.chooseGoodsList.length == 0) {
this.setData({
isFlag:true
isFlag: true
})
}
// this.getOrderBaseGoodsList(n)
......@@ -38,7 +38,8 @@ Component({
type: Array,
observer: function (n) {
console.log(n, 'chooseGoodsList');
// wx.showLoading()
// wx.showLoading('请求中...')
this.setGoodsActive()
}
},
......@@ -51,7 +52,7 @@ Component({
* 组件的初始数据
*/
data: {
isFlag:false,
isFlag: false,
goodsList: [],
recordList: [],
specificBox: false
......@@ -112,7 +113,7 @@ Component({
goodsList[index].multipleSpecificationsGoods.skuGoodsList = []
if (goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]) {
let goodsArr = goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]
//当多规格商品只有一个时,直接选中
//当多规格商品只有一个时,直接选中
if (goodsArr.length == 1) {
goodsList[index].active = true
goodsList[index].multipleSpecificationsGoods.goods = goodsArr[0]
......@@ -267,7 +268,7 @@ Component({
} = this.data
this.setData({
goodsList: goodsData,
isFlag:false
isFlag: false
})
this.setGoodsActive()
},
......@@ -279,6 +280,7 @@ Component({
show
} = this.data
if (show) {
wx.$util.showLoading()
console.log(222222)
if (chooseGoodsList.length == 0) {
goodsList.forEach(e => {
......@@ -342,9 +344,9 @@ Component({
this.setData({
goodsList,
recordList,
isFlag:true
},()=>{
// wx.hideLoading()
isFlag: true
}, () => {
wx.hideLoading()
})
}
......@@ -586,7 +588,7 @@ Component({
this.setData({
show: false,
isFlag:false
isFlag: false
})
}
}
......
......@@ -171,6 +171,7 @@ page {
// background: #EFF5FE;
background-color: #fff;
z-index: 9;
transform: translateZ(1px);
&.showTips {
bottom: 0rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!