Commit f4c890c2 by 张立顺

fix bug

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