Browse Source

调整日期展示数量

master
shaojing 2 years ago
parent
commit
70129560e0
  1. 3
      pages/order/components/date/index.js
  2. 4
      pages/order/scene/index.wxml

3
pages/order/components/date/index.js

@ -133,7 +133,8 @@ Component({
}
this.setData({
threeDays: res.data.slice(0, 3),
monthList: res.data.slice(0, 30),
monthList: res.data,
// monthList: res.data.slice(0, 30),
})
console.log(this.data.monthList);
let index = this.data.threeDays.findIndex(item => item.date == this.data.activeDate.date)

4
pages/order/scene/index.wxml

@ -9,8 +9,8 @@
product="{{product}}"></date> -->
<!-- 出行日期 信息展示部分 -->
<view class="box" style="padding: 42rpx 21rpx 45rpx 19rpx;display: flex;justify-content: space-between;align-items: center;">
<view>
<view style="font-weight: 500;font-size: 36rpx;color: #000000;margin-bottom: 39rpx;">
<view style="width: 550rpx;">
<view style="font-weight: 500;font-size: 36rpx;color: #000000;margin-bottom: 39rpx;" class="textOver2">
{{product.product.title}}
</view>
<view style="font-weight: 400;font-size: 25rpx;color: #666666;padding-left: 2rpx;">

Loading…
Cancel
Save