Commit 408cc20d by wangzhihui

样式优化

1 parent 87fd0f75
...@@ -7,7 +7,7 @@ Component({ ...@@ -7,7 +7,7 @@ Component({
show: { show: {
type: Boolean, type: Boolean,
observer: function (n) { observer: function (n) {
console.log(n, 'show'); console.log(n, 'show',this.data.isFlag);
if (n) { if (n) {
this.setData({ this.setData({
keyWord: '', keyWord: '',
...@@ -95,7 +95,6 @@ Component({ ...@@ -95,7 +95,6 @@ Component({
} = this.data; } = this.data;
let result = goodsList[index].multipleSpecificationsGoods.specificationList.every(item => item.value) let result = goodsList[index].multipleSpecificationsGoods.specificationList.every(item => item.value)
let active = goodsList[index].active let active = goodsList[index].active
console.log(active, goodsList[index])
//规格全部选中逻辑处理 //规格全部选中逻辑处理
if (result) { if (result) {
...@@ -104,7 +103,6 @@ Component({ ...@@ -104,7 +103,6 @@ Component({
arr.push(spec.value) arr.push(spec.value)
}) })
let str = arr.join(';~;') let str = arr.join(';~;')
console.log(str)
goodsList[index].active = true goodsList[index].active = true
// strTemp用来存储上一次选中的值,判断规格是否重新选择 ,避免页面交互闪烁 // strTemp用来存储上一次选中的值,判断规格是否重新选择 ,避免页面交互闪烁
// if (type && str != strTemp) { // if (type && str != strTemp) {
...@@ -140,7 +138,8 @@ Component({ ...@@ -140,7 +138,8 @@ Component({
let chooseList = await this.getChooseList(false); let chooseList = await this.getChooseList(false);
this.setData({ this.setData({
show: false, show: false,
goodsList goodsList,
isFlag:false
}, () => { }, () => {
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
let secondPage = thisPage.selectComponent(`#SecondStep`) let secondPage = thisPage.selectComponent(`#SecondStep`)
...@@ -281,7 +280,7 @@ Component({ ...@@ -281,7 +280,7 @@ Component({
} = this.data } = this.data
if (show) { if (show) {
wx.$util.showLoading() wx.$util.showLoading()
console.log(222222) // wx.showLoading('加载中...')
if (chooseGoodsList.length == 0) { if (chooseGoodsList.length == 0) {
goodsList.forEach(e => { goodsList.forEach(e => {
e.active = false e.active = false
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
} }
.box { .box {
border-bottom: var(--fontSize2) solid #EBEDF0;
padding-left: var(--fontSize32); padding-left: var(--fontSize32);
} }
...@@ -191,7 +190,11 @@ ...@@ -191,7 +190,11 @@
text-align: center; text-align: center;
color: #999; color: #999;
} }
.remind-text{
padding: var(--fontSize100);
text-align: center;
color: #999;
}
.childbox { .childbox {
width: 100%; width: 100%;
display: flex; display: flex;
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
</block> </block>
</block> </block>
<view wx:if="{{!isFlag}}" class="remind-text">数据加载处理中,请耐心等待...</view>
</view> </view>
<!-- </block> --> <!-- </block> -->
</block> </block>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!