From ab9e2d645e49f54ed4b268d084eb6ef7761a8623 Mon Sep 17 00:00:00 2001 From: caichunsheng Date: Wed, 24 Aug 2022 09:51:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=B7=A5=E5=AE=A2=E6=9C=8D=E6=94=B9?= =?UTF-8?q?=E5=8A=A8=EF=BC=8C=E8=AF=84=E4=BB=B7=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.js | 1 + pages/info/hotelProductInfo/index.wxml | 3 +- pages/info/hotelProductInfo/index.wxss | 2 +- pages/info/postProductInfo/index.js | 2 + pages/info/postProductInfo/index.wxml | 3 +- pages/info/postProductInfo/index.wxss | 2 +- pages/list/comments/index.js | 1 + pages/user/service/list/index.js | 29 +++++++- pages/user/service/list/index.wxml | 26 ++++++- pages/user/service/list/index.wxss | 93 +++++++++++++++++++++++++- utils/https.js | 2 + 11 files changed, 156 insertions(+), 8 deletions(-) diff --git a/pages/index/index.js b/pages/index/index.js index 26d0fec..99a187c 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -740,6 +740,7 @@ Page({ this.pagePoint({ event: 'home_view' }, 1) + this.data.time!=5?wx.showTabBar():1 }, /** diff --git a/pages/info/hotelProductInfo/index.wxml b/pages/info/hotelProductInfo/index.wxml index 298959e..0090c6d 100644 --- a/pages/info/hotelProductInfo/index.wxml +++ b/pages/info/hotelProductInfo/index.wxml @@ -95,7 +95,8 @@ 游客点评{{info.rate}}分 - 共{{commentTotal}}条 + 共{{commentTotal}}条 > + 这里空空如也,快去点评吧! diff --git a/pages/info/hotelProductInfo/index.wxss b/pages/info/hotelProductInfo/index.wxss index 4dfc461..403c9e7 100644 --- a/pages/info/hotelProductInfo/index.wxss +++ b/pages/info/hotelProductInfo/index.wxss @@ -269,7 +269,7 @@ page { margin-right: 6rpx; } .comment-content { - margin-left: 72rpx; + margin-left: 12rpx; margin-top: 36rpx; font-size: 28rpx; color: #000; diff --git a/pages/info/postProductInfo/index.js b/pages/info/postProductInfo/index.js index e12939f..b2dfec6 100644 --- a/pages/info/postProductInfo/index.js +++ b/pages/info/postProductInfo/index.js @@ -87,6 +87,8 @@ Page({ }).then(res => { res.data.list.map(item => { item.rate = Number(item.rate) + item.create_time = item.create_time.substring(0,10) + }) this.setData({ comment: res.data.list.splice(0, 2), diff --git a/pages/info/postProductInfo/index.wxml b/pages/info/postProductInfo/index.wxml index f7cc4bb..5a21294 100644 --- a/pages/info/postProductInfo/index.wxml +++ b/pages/info/postProductInfo/index.wxml @@ -56,7 +56,8 @@ 游客点评{{info.rate}}分 - 共{{commentTotal}}条 + 共{{commentTotal}}条 > + 这里空空如也,快去点评吧! diff --git a/pages/info/postProductInfo/index.wxss b/pages/info/postProductInfo/index.wxss index ef9c716..ec28d92 100644 --- a/pages/info/postProductInfo/index.wxss +++ b/pages/info/postProductInfo/index.wxss @@ -312,7 +312,7 @@ page { } .comment-content { - margin-left: 72rpx; + margin-left: 13rpx; margin-top: 36rpx; font-size: 28rpx; color: #000; diff --git a/pages/list/comments/index.js b/pages/list/comments/index.js index d769cad..d93a608 100644 --- a/pages/list/comments/index.js +++ b/pages/list/comments/index.js @@ -51,6 +51,7 @@ Page({ let arr = this.data.list arr.map((item)=>{ item.rate = Number(item.rate) + item.create_time = item.create_time.substring(0,10) if (item.img_list) { item.img_list = item.img_list.split(',') }else{ diff --git a/pages/user/service/list/index.js b/pages/user/service/list/index.js index c5a6465..51b8f3d 100644 --- a/pages/user/service/list/index.js +++ b/pages/user/service/list/index.js @@ -12,7 +12,11 @@ Page({ list:[], total:1, page_no:1, - keyword:"" + keyword:"", + showModal: false, + // 成功 + ses:true, + }, /** @@ -86,6 +90,29 @@ Page({ }) }) }, + showDialogBtn: function () { + this.setData({ + showModal: true + }) + }, + hideModal: function () { + this.setData({ + showModal: false + }); + }, + onCancel: function () { + this.hideModal(); + }, + onConfirm: function (e) { + console.log(e.currentTarget.dataset.name); + this.hideModal(); + }, + phoneCall:function(){ + console.log(1111); + wx.makePhoneCall({ + phoneNumber: '0512-66555111', + }) + }, /** * 生命周期函数--监听页面初次渲染完成 */ diff --git a/pages/user/service/list/index.wxml b/pages/user/service/list/index.wxml index a398457..4b548a6 100644 --- a/pages/user/service/list/index.wxml +++ b/pages/user/service/list/index.wxml @@ -10,4 +10,28 @@ - + +没找到想要的答案?一键呼唤人工客服 + + + + + 即将跳转人工在线客服 + 客服服务时间:08:30-17:30 +如遇紧急情况可拨打 0512-66555111 + + 取消 + + + + \ No newline at end of file diff --git a/pages/user/service/list/index.wxss b/pages/user/service/list/index.wxss index 2775f59..5bcc390 100644 --- a/pages/user/service/list/index.wxss +++ b/pages/user/service/list/index.wxss @@ -48,14 +48,103 @@ .more-btn { text-align: center; width: 550rpx !important; - /* line-height: 60rpx; */ + line-height: 60rpx; background: rgba(11, 137, 142, 0); border: 1rpx solid #D8D8D8; border-radius: 30rpx; margin: 30rpx auto; font-size: 26rpx; font-weight: 500; + } .more-btn text { color: #0B898E; -} \ No newline at end of file +} + /**index.wxss**/ + .show-btn { + margin-top: 100rpx; + color: #22cc22; + } + + .modal-mask { + width: 100%; + height: 100%; + position: fixed; + top: 0; + left: 0; + background: #000; + opacity: 0.5; + overflow: hidden; + z-index: 9000; + color: #fff; + } + + .modal-dialog { + width: 540rpx; + overflow: hidden; + position: fixed; + top: 46%; + left: 0; + z-index: 9999; + background: #f9f9f9; + margin: -180rpx 105rpx; + border-radius: 8px; + } + + .modal-title { + padding-top: 30rpx; + padding-bottom: 30rpx; + font-size: 14px; + color: #030303; + text-align: center; + } + + .modal-img { + width: 40px; + height: 40px; + margin: 0 auto; + margin-top: 20rpx; + } + + + .modal-footer { + display: flex; + flex-direction: row; + height: 86rpx; + border-top: 1px solid #dedede; + font-size: 34rpx; + line-height: 86rpx; + } + + .btn-cancel { + width: 50%; + color: #8f8f8f; + background-color: #f2f2f2; + text-align: center; + border-right: 1px solid #dedede; + } + + .btn-confirm { + width: 50%; + color: #8f8f8f; + background-color: #f2f2f2; + text-align: center; + } + + .btn-confirms { + width: 100%; + background-color: #f2f2f2; + color: rgb(91,198,72); + text-align: center; + font-weight: normal !important; + } + .btn-confirms.two { + color: #8f8f8f; +} + .modal-info{ + line-height: 70rpx; + font-size: 30rpx; + } + .green{ + color: #22cc22; + } \ No newline at end of file diff --git a/utils/https.js b/utils/https.js index 953d1df..94f1b48 100644 --- a/utils/https.js +++ b/utils/https.js @@ -8,6 +8,8 @@ if (env == 'develop1') { baseUrl = "https://test.api.cloud.sz-trip.com/api/" } else { baseUrl = "https://api.cloud.sz-trip.com/api/"; + baseUrl = "https://test.api.cloud.sz-trip.com/api/" + } const orders = ['', 'weight', 'distance', 'sale_number', 'sale_price', 'price']; //封装GET请求