ソースを参照

广场筛选按钮

soldDate
HolyKnightIX 2年前
コミット
5cf245d1c1
9個のファイルの変更23行の追加14行の削除
  1. バイナリ
      assets/itemImg/filter-golden.png
  2. バイナリ
      assets/itemImg/filter.png
  3. +0
    -2
      components/shop/shop.ttml
  4. +5
    -3
      pages/couponorder/index/index.js
  5. +1
    -1
      pages/couponorder/index/index.ttml
  6. +6
    -2
      pages/couponorder/index/index.ttss
  7. +4
    -3
      pages/order/index/index.js
  8. +1
    -1
      pages/order/index/index.ttml
  9. +6
    -2
      pages/order/index/index.ttss

バイナリ
assets/itemImg/filter-golden.png ファイルの表示

変更前 変更後
幅: 128  |  高さ: 128  |  サイズ: 3.8 KiB

バイナリ
assets/itemImg/filter.png ファイルの表示

変更前 変更後
幅: 128  |  高さ: 128  |  サイズ: 3.5 KiB

+ 0
- 2
components/shop/shop.ttml ファイルの表示

@@ -25,8 +25,6 @@
</view>
</view>



<!-- 当item.expand为true且商户数量不大于三个时 -->
<view class="shop" tt:if="{{item.expand}}">
<view class='posi' tt:for="{{item.merchantVoList}}" tt:for-index="itemIndex" tt:key="{{itemIndex}}">


+ 5
- 3
pages/couponorder/index/index.js ファイルの表示

@@ -49,8 +49,8 @@ Page({
bindPickerChange(e) {
const index = e.detail.value
const mallTenantId = this.data.shopList[index].tenantId
tt.setStorageSync('mallTenantId', mallTenantId)
tt.setStorageSync('mallIndex', index)
// tt.setStorageSync('mallTenantId', mallTenantId)
// tt.setStorageSync('mallIndex', index)
this.setData({
index: index,
mallTenantId: mallTenantId,
@@ -138,9 +138,11 @@ Page({
}).then(res => {
this.setData({
shopList: res.data,
mallTenantId: tt.getStorageSync('mallTenantId') || res.data[0].tenantId
// tt.getStorageSync('mallTenantId') ||
mallTenantId: res.data[0].tenantId
});
console.log(this.data.shopList, 'list');

}).catch(err => {
console.log(err, 'err');
})


+ 1
- 1
pages/couponorder/index/index.ttml ファイルの表示

@@ -19,7 +19,7 @@
<view class="picker_item">
{{shopList[index].name}}
</view>
<image class="img" src="/assets/itemImg/chevron.png"></image>
<image class="img" src="/assets/itemImg/filter.png"></image>
</view>
</picker>
</view>


+ 6
- 2
pages/couponorder/index/index.ttss ファイルの表示

@@ -34,7 +34,7 @@

.picker {
margin-top: 25rpx;
padding: 25rpx 45rpx;
padding: 17rpx 45rpx;
margin-bottom: 15rpx;
background-color: #fff;
}
@@ -44,8 +44,12 @@
justify-content: space-between;
}

.picker .inside .picker_item {
font-size: 35rpx;
}

.picker .inside .img {
width: 20rpx;
width: 40rpx;
height: 40rpx;
}



+ 4
- 3
pages/order/index/index.js ファイルの表示

@@ -79,8 +79,8 @@ Page({
bindPickerChange(e) {
const index = e.detail.value
const mallTenantId = this.data.shopList[index].tenantId
tt.setStorageSync('mallTenantId', mallTenantId)
tt.setStorageSync('mallIndex', index)
// tt.setStorageSync('mallTenantId', mallTenantId)
// tt.setStorageSync('mallIndex', index)
this.setData({
index: index,
mallTenantId: mallTenantId,
@@ -101,7 +101,8 @@ Page({
// current_scroll: e.id
// });
this.setData({
index: tt.getStorageSync('mallIndex') || 0,
// tt.getStorageSync('mallIndex') ||
index: 0,
})
},
onShow() {


+ 1
- 1
pages/order/index/index.ttml ファイルの表示

@@ -19,7 +19,7 @@
<view class="picker_item">
{{shopList[index].name}}
</view>
<image class="img" src="/assets/itemImg/chevron.png"></image>
<image class="img" src="/assets/itemImg/filter.png"></image>
</view>
</picker>
</view>


+ 6
- 2
pages/order/index/index.ttss ファイルの表示

@@ -42,7 +42,7 @@

.picker {
margin-top: 120rpx;
padding: 25rpx 45rpx;
padding: 17rpx 45rpx;
margin-bottom: 28rpx;
background-color: #fff;
}
@@ -52,8 +52,12 @@
justify-content: space-between;
}

.picker .inside .picker_item {
font-size: 35rpx;
}

.picker .inside .img {
width: 20rpx;
width: 40rpx;
height: 40rpx;
}



読み込み中…
キャンセル
保存