diff --git a/pages/index/index.vue b/pages/index/index.vue index 20fa6c0..7fee848 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -44,7 +44,7 @@ - + {{scenic.title}} @@ -102,7 +102,7 @@ 更多 > - + {{item.goods.image_tag}} {{item.goods.low_money / 100}} @@ -279,6 +279,24 @@ break; } }, + // 景点详情 + gotoScenic(item) { + this.goOtherDetail(item) + if(!item.link_type) { + uni.navigateTo({ + url:'/subPackages/ticketBooking/detail?id='+item.id + }) + } + }, + // 美食详情 + gotoFood(item) { + this.goOtherDetail(item) + if(!item.link_type) { + uni.navigateTo({ + url: '/subPackages/food/foodDetail?id=' + item.id + }); + } + }, // 游记攻略、线路详情 goCalendarDetail(item,type) { this.goOtherDetail(item) diff --git a/subPackages/order/detail.vue b/subPackages/order/detail.vue index 6343cab..0415720 100644 --- a/subPackages/order/detail.vue +++ b/subPackages/order/detail.vue @@ -171,7 +171,7 @@ - 导航 @@ -184,7 +184,7 @@ 购买信息 - + {{foodInfo.title}} @@ -197,6 +197,10 @@ + + {{info.order_child[0].contact_name}} + {{info.order_child[0].phone}} + @@ -272,14 +276,14 @@ - - {{info.order_child[0].goods_data.address}} - + + {{info.order_child[0].scenic_data.address}} + 地图 - + 电话 @@ -604,33 +608,6 @@ } }); }, - - callPhone (tel) { - let _this = this - uni.showActionSheet({ - itemList: [tel,'呼叫'], - success: function (res) { - _this.clickPhone(tel) - } - }); - }, - - goMap (info) { - let param = { - latitude: Number(info.goods_data.lat), - longitude: Number(info.goods_data.lon), - name: info.goods_title, - address: info.goods_data.address, - } - - uni.openLocation({ - ...param, - success: function () { - console.log('success'); - } - }); - }, - } } @@ -1037,6 +1014,13 @@ } // 美食 + .food-name { + font-weight: bold; + font-size: 31rpx; + color: #000000; + margin-bottom: 40rpx; + } + .shop-detail { width: 697rpx; height: auto; diff --git a/subPackages/user/travelerList.vue b/subPackages/user/travelerList.vue index ded3ab9..bd74aea 100644 --- a/subPackages/user/travelerList.vue +++ b/subPackages/user/travelerList.vue @@ -136,7 +136,7 @@ title: res.msg }) } - that.getList() + that.init() }) } else if (res.cancel) { console.log('用户点击取消');