Commit f16af687 by zhangzhen

订单细节优化

parent 5c260a78
...@@ -841,7 +841,7 @@ ...@@ -841,7 +841,7 @@
url: "/pages/useCoupon/index", url: "/pages/useCoupon/index",
events: { events: {
getSelectData(data) { getSelectData(data) {
if (data.couponId) { if (data.couponId && that.useCouponList.length) {
that.selectCouponIndex = that.useCouponList.findIndex(item => item.id === data that.selectCouponIndex = that.useCouponList.findIndex(item => item.id === data
.couponId) .couponId)
} else { } else {
...@@ -857,9 +857,9 @@ ...@@ -857,9 +857,9 @@
orderMode: that.orderTypeList[that.index].type, orderMode: that.orderTypeList[that.index].type,
preStartDate: that.dateObj.startDate, preStartDate: that.dateObj.startDate,
orderType: that.orderType, orderType: that.orderType,
packageId: that.packageMode[that.modeIndex].id, packageId: that.packageMode.length? that.packageMode[that.modeIndex].id : '',
preEndDate: that.dateObj.endDate, preEndDate: that.dateObj.endDate,
selectId: that.selectCouponIndex >= 0 ? that.useCouponList[that selectId: that.selectCouponIndex >= 0 && that.useCouponList.length ? that.useCouponList[that
.selectCouponIndex].id : '' .selectCouponIndex].id : ''
}) })
} }
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<view class="part"> <view class="part">
<button class="cu-btn block round bg-pink lg" :class="openDoorStatus?'bg-gray':'bg-pink'" @tap="onOpenDoor">进店开门</button> <button class="cu-btn block round bg-pink lg" :class="openDoorStatus?'bg-gray':'bg-pink'" @tap="onOpenDoor">进店开门</button>
</view> </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> <button class="cu-btn block round line-pink lg" open-type="share">分享好友</button>
</view> </view>
<view v-if="orderInfo.status === 1 && userInfo.id == orderInfo.consumerId" class="part"> <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