diff --git a/pages/info/hotelProductInfo/index.wxml b/pages/info/hotelProductInfo/index.wxml index 2198ff8..02b3b4f 100644 --- a/pages/info/hotelProductInfo/index.wxml +++ b/pages/info/hotelProductInfo/index.wxml @@ -101,7 +101,7 @@ 这里空空如也,快去点评吧! - + @@ -112,8 +112,15 @@ {{item.content}} - - + + + + + 共{{item.img_list.length}}张 + 查看全部 + + + 查看全部点评 diff --git a/pages/info/hotelProductInfo/index.wxss b/pages/info/hotelProductInfo/index.wxss index a8840ba..cbec603 100644 --- a/pages/info/hotelProductInfo/index.wxss +++ b/pages/info/hotelProductInfo/index.wxss @@ -556,4 +556,28 @@ page { height: 200rpx; margin: 10rpx; border-radius: 8rpx; +} +.img-box{ + display: inline-block; + position: relative; +} +.all{ + color: #fff; + position:absolute; + bottom: 17rpx; + right: 10rpx; + width: 200rpx; + height: 200rpx; + border-radius: 8rpx; + background-color: rgba(0, 0, 0, .5); +} +.all view{ + text-align: center; +} +.all view:first-child{ + font-size: 45rpx; + margin-top: 40rpx; +} +.all view:last-child{ + margin-top: 10rpx; } \ No newline at end of file diff --git a/pages/info/postProductInfo/index.wxml b/pages/info/postProductInfo/index.wxml index 9b30638..686cd76 100644 --- a/pages/info/postProductInfo/index.wxml +++ b/pages/info/postProductInfo/index.wxml @@ -62,7 +62,7 @@ 这里空空如也,快去点评吧! - + @@ -74,8 +74,15 @@ {{item.content}} - - + + + + + 共{{item.img_list.length}}张 + 查看全部 + + + 查看全部点评 diff --git a/pages/info/postProductInfo/index.wxss b/pages/info/postProductInfo/index.wxss index 655e60e..7f8a890 100644 --- a/pages/info/postProductInfo/index.wxss +++ b/pages/info/postProductInfo/index.wxss @@ -812,4 +812,28 @@ page { height: 200rpx; margin: 10rpx; border-radius: 8rpx; +} +.img-box{ + display: inline-block; + position: relative; +} +.all{ + color: #fff; + position:absolute; + bottom: 17rpx; + right: 10rpx; + width: 200rpx; + height: 200rpx; + border-radius: 8rpx; + background-color: rgba(0, 0, 0, .5); +} +.all view{ + text-align: center; +} +.all view:first-child{ + font-size: 45rpx; + margin-top: 40rpx; +} +.all view:last-child{ + margin-top: 10rpx; } \ No newline at end of file diff --git a/pages/info/sceneProductInfo/index.js b/pages/info/sceneProductInfo/index.js index 242627f..95fced5 100644 --- a/pages/info/sceneProductInfo/index.js +++ b/pages/info/sceneProductInfo/index.js @@ -134,7 +134,9 @@ Page({ let arr = this.data.comment arr.map((item)=>{ if (item.img_list) { - item.img_list = item.img_list.split(',') + let arr = item.img_list.split(',') + item.img_list = arr + }else{ item.img_list=[] } diff --git a/pages/info/sceneProductInfo/index.wxml b/pages/info/sceneProductInfo/index.wxml index 48758d2..4ddb5b9 100644 --- a/pages/info/sceneProductInfo/index.wxml +++ b/pages/info/sceneProductInfo/index.wxml @@ -3,14 +3,12 @@ - + - + @@ -26,16 +24,13 @@ 开园时间:{{info.open_time}} - 优待政策 | 景点介绍 + 优待政策 | 景点介绍 地址:{{info.address}} - {{info.garden_flag_text}} + {{info.garden_flag_text}} @@ -64,24 +59,23 @@ - - - 客服 - - - - 收藏 - - - - 加入购物车 - 立即预订 - 该商品已下架 - + + + 客服 + + + + 收藏 + + + + 加入购物车 + 立即预订 + 该商品已下架 + - + {{cartCount}} @@ -100,8 +94,7 @@ - {{item.sku_name}} + {{item.sku_name}} 数量 @@ -111,7 +104,7 @@ - {{skuFlag=='cart'?'确认':'立即购买'}} + {{skuFlag=='cart'?'确认':'立即购买'}} 该商品已下架 @@ -132,8 +125,7 @@ - + {{item.question_name}} @@ -155,28 +147,33 @@ - 游客点评{{info.rate}}分 + 游客点评{{info.rate}}分 共{{commentTotal}}条 这里空空如也,快去点评吧! - + {{item.nickname}} - + {{item.create_time}} {{item.content}} - - + + + + + 共{{item.img_list.length}}张 + 查看全部 + + + 查看全部点评 @@ -202,8 +199,7 @@ - + diff --git a/pages/info/sceneProductInfo/index.wxss b/pages/info/sceneProductInfo/index.wxss index dd66fa4..ccf0343 100644 --- a/pages/info/sceneProductInfo/index.wxss +++ b/pages/info/sceneProductInfo/index.wxss @@ -780,7 +780,6 @@ page { right: -2rpx; top: -5rpx; } - .headimg { position: fixed; z-index: 3; @@ -789,7 +788,6 @@ page { height: 180rpx; top: 0; } - .headimg.active { transition: left .6s linear, top .6s cubic-bezier(0.5, -0.5, 1, 1), width .6s ease, height .6s ease; width: 80rpx; @@ -802,4 +800,28 @@ page { height: 200rpx; margin: 10rpx; border-radius: 8rpx; +} +.img-box{ + display: inline-block; + position: relative; +} +.all{ + color: #fff; + position:absolute; + bottom: 17rpx; + right: 10rpx; + width: 200rpx; + height: 200rpx; + border-radius: 8rpx; + background-color: rgba(0, 0, 0, .5); +} +.all view{ + text-align: center; +} +.all view:first-child{ + font-size: 45rpx; + margin-top: 40rpx; +} +.all view:last-child{ + margin-top: 10rpx; } \ No newline at end of file diff --git a/pages/list/comments/index.js b/pages/list/comments/index.js index 580e115..de1df8f 100644 --- a/pages/list/comments/index.js +++ b/pages/list/comments/index.js @@ -9,7 +9,8 @@ Page({ productid:null, sceneid:null, list:[], - total:1 + total:1, + index:null, }, /** @@ -22,8 +23,10 @@ Page({ }) } else if(options.sceneid){ + console.log(options.index); this.setData({ - sceneid:options.sceneid + sceneid:options.sceneid, + index:options.index, }) } this.getList() @@ -53,9 +56,16 @@ Page({ item.img_list=[] } }) - this.setData({ - list:arr - }) + if (this.data.index) { + this.setData({ + list:arr.splice(this.data.index,1) + }) + }else{ + this.setData({ + list:arr + }) + } + }) }, imgsc:function(e){ diff --git a/pages/order/comment/index.js b/pages/order/comment/index.js index 2b65471..7ce057a 100644 --- a/pages/order/comment/index.js +++ b/pages/order/comment/index.js @@ -84,7 +84,8 @@ Page({ order_id: item.order_id, integer:this.data.rate, img_list:this.data.upImgs.join(','), - is_anonymous:this.data.checked?1:0 + is_anonymous:this.data.checked?1:0, + sku_id:item.sku_id })) }) if (!flag) return; diff --git a/pages/order/comment/index.wxss b/pages/order/comment/index.wxss index ffdcc18..df3f7b3 100644 --- a/pages/order/comment/index.wxss +++ b/pages/order/comment/index.wxss @@ -21,11 +21,19 @@ page{ flex: 1; width: 100%; margin: 0 30rpx; + height: 120rpx; + display: flex; + flex-direction: column; + justify-content: space-between; + } .product-title { font-size: 32rpx; color: #000; } +.sku-name{ + margin-bottom:12rpx ; +} .product-price { flex-shrink: 0; text-align: right; diff --git a/pages/user/order/list.wxml b/pages/user/order/list.wxml index 679be59..d1c53d1 100644 --- a/pages/user/order/list.wxml +++ b/pages/user/order/list.wxml @@ -41,7 +41,7 @@ 行程规划 再次购买 - 立即评价 + 取消预订 取消预订 退款详情 diff --git a/pages/user/order/postOrderInfo/index.js b/pages/user/order/postOrderInfo/index.js index 40fca77..3f28c4e 100644 --- a/pages/user/order/postOrderInfo/index.js +++ b/pages/user/order/postOrderInfo/index.js @@ -160,7 +160,12 @@ Page({ return; }) }, - + gotoComment:function(e){ + let id = e.currentTarget.dataset.id; + wx.navigateTo({ + url: '/pages/order/comment/index?id='+id, + }) + }, /** * 生命周期函数--监听页面初次渲染完成 */