diff --git a/api/inn.js b/api/inn.js index bd042ef..18429b5 100644 --- a/api/inn.js +++ b/api/inn.js @@ -228,3 +228,11 @@ export function setTopHotelNew(data) { export function getHotelShareBackgroundImage(id) { return request.get("/api/hotelMain/shareImage/" + id, {}, {login: true}) } + +/** + * 店铺资讯 + * @param id 店铺资讯ID int + * */ +export function hotelNewsView(data) { + return request.post("/api/hotelNews/view", data, {login: true}) +} diff --git a/assets/css/goods.less b/assets/css/goods.less index 7bcaab5..c86741e 100644 --- a/assets/css/goods.less +++ b/assets/css/goods.less @@ -59,6 +59,9 @@ font-size: 24rpx; text-align: right; } + .value2 { + width: auto; + } .red { color: #FF564A; diff --git a/components/CouponsPopup.vue b/components/CouponsPopup.vue index bacc4f7..c33589e 100644 --- a/components/CouponsPopup.vue +++ b/components/CouponsPopup.vue @@ -67,6 +67,12 @@ export default { computed: { list() { const temp = this.current === 0 ? this.twoList['usable'] : this.twoList['unusable'] + if (this.current === 0) { + const localCouponId = uni.getStorageSync('couponId') || 0 + temp.map(item => { + item.checked = localCouponId === item.id + }) + } return this.$global.deepClone(temp) }, canUse() { diff --git a/components/imageTypeSet/imagebox.vue b/components/imageTypeSet/imagebox.vue index 6cec1d2..65267ee 100644 --- a/components/imageTypeSet/imagebox.vue +++ b/components/imageTypeSet/imagebox.vue @@ -75,6 +75,7 @@ current: cind, indicator: 'default' }); + this.$emit('click') }, getheight() { let that = this; diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue index 7dd2f5e..530ab78 100644 --- a/pages/order/MyOrder/index.vue +++ b/pages/order/MyOrder/index.vue @@ -207,12 +207,19 @@ export default { goRefund(order) { // fix bug#1631 if (this.type === 4 || parseInt(order._status._type) === 3) { - uni.showToast({ - title: '订单已收货,如需退款请联系客服', - mask: false, - icon: 'none', - duration: 3000 - }) + // 打开售后的目的就是开启已完成/待评价订单的退款功能,确认打开售后之后,小程序用户再点击申请退款,就可以进入退款申请填写页面,正常走退款流程,提交退款申请以后,订单状态变为退款中 + if (order.refundSystemStatus === 0) { + uni.showToast({ + title: '订单已收货,如需退款请联系客服', + mask: false, + icon: 'none', + duration: 3000 + }) + } else { + uni.navigateTo({ + url: `/pkg_orders/views/refund?id=${order.orderId}` + }) + } } else { uni.navigateTo({ url: `/pkg_orders/views/refund?id=${order.orderId}` diff --git a/pages/order/OrderSubmission/index.vue b/pages/order/OrderSubmission/index.vue index 55b5a10..baee8b0 100644 --- a/pages/order/OrderSubmission/index.vue +++ b/pages/order/OrderSubmission/index.vue @@ -432,7 +432,6 @@ export default { item.checked = false } }) - uni.removeStorageSync('couponId') } else { uni.removeStorageSync('couponId') } diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue index 74cf7c1..7d21499 100644 --- a/pages/shop/GoodsCon/index.vue +++ b/pages/shop/GoodsCon/index.vue @@ -154,19 +154,20 @@ - - - + + + {{ item.couponTitle }} - 优惠详情 + + 优惠详情 @@ -188,7 +189,9 @@ - {{ storeInfo.isFastPost == 1 ? "预计48小时内发货" : "预计发货时间:" + storeInfo.postTime }} + 预计48小时内发货 + 预计72小时内发货 + {{ "预计发货时间:" + storeInfo.postTime }} @@ -507,8 +510,9 @@ export default { show: false, uniqueId: null, isFavorite: false, - pageKeyId: '' - }; + pageKeyId: '', + couponListLimit2ToShow: [] + } }, computed: mapGetters(["isLogin", "location", "userInfo"]), onShareAppMessage() { @@ -917,6 +921,22 @@ export default { // data.couponList['unusable']?.map(item => item.status = 2) this.$set(this, 'couponList', data.couponList) + const usableList = data.couponList.usable + if (usableList.length > 0) { + const tempType = {} + const tempTypeArr = [] + usableList.map(usableItem => { + if (!tempType[usableItem.type + '']) { + tempType[usableItem.type + ''] = 1 + tempTypeArr.push(usableItem) + } + }) + if (tempTypeArr.length >= 2) { + this.couponListLimit2ToShow = [tempTypeArr[0], tempTypeArr[1]] + } else { + this.couponListLimit2ToShow = [tempTypeArr[0]] + } + } this.$set(this, 'replyCount', data.replyCount) this.$set(this, 'replyChance', data.replyChance) this.reply = data.reply ? [data.reply] : [] diff --git a/pagesInn/inn/innHome.vue b/pagesInn/inn/innHome.vue index 1194012..e2a988e 100644 --- a/pagesInn/inn/innHome.vue +++ b/pagesInn/inn/innHome.vue @@ -232,6 +232,7 @@ controls play-btn-position="center" class="video-item" + @play="infoItemViewClick(item)" /> @@ -240,6 +241,7 @@ :num="item.resources.length" :img-radius="10" style="width: 100%;" + @click="infoItemViewClick(item)" /> @@ -258,21 +260,21 @@ - + {{ item.zan }}