Commit f16af687 by zhangzhen

订单细节优化

parent 5c260a78
......@@ -841,7 +841,7 @@
url: "/pages/useCoupon/index",
events: {
getSelectData(data) {
if (data.couponId) {
if (data.couponId && that.useCouponList.length) {
that.selectCouponIndex = that.useCouponList.findIndex(item => item.id === data
.couponId)
} else {
......@@ -857,9 +857,9 @@
orderMode: that.orderTypeList[that.index].type,
preStartDate: that.dateObj.startDate,
orderType: that.orderType,
packageId: that.packageMode[that.modeIndex].id,
packageId: that.packageMode.length? that.packageMode[that.modeIndex].id : '',
preEndDate: that.dateObj.endDate,
selectId: that.selectCouponIndex >= 0 ? that.useCouponList[that
selectId: that.selectCouponIndex >= 0 && that.useCouponList.length ? that.useCouponList[that
.selectCouponIndex].id : ''
})
}
......
......@@ -98,7 +98,7 @@
<view class="part">
<button class="cu-btn block round bg-pink lg" :class="openDoorStatus?'bg-gray':'bg-pink'" @tap="onOpenDoor">进店开门</button>
</view>
<view v-if="userInfo.id == orderInfo.consumerId" class="part">
<view class="part">
<button class="cu-btn block round line-pink lg" open-type="share">分享好友</button>
</view>
<view v-if="orderInfo.status === 1 && userInfo.id == orderInfo.consumerId" class="part">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment