Browse Source

人工客服改动,评价细节

master
caichunsheng 4 years ago
parent
commit
ab9e2d645e
  1. 1
      pages/index/index.js
  2. 3
      pages/info/hotelProductInfo/index.wxml
  3. 2
      pages/info/hotelProductInfo/index.wxss
  4. 2
      pages/info/postProductInfo/index.js
  5. 3
      pages/info/postProductInfo/index.wxml
  6. 2
      pages/info/postProductInfo/index.wxss
  7. 1
      pages/list/comments/index.js
  8. 29
      pages/user/service/list/index.js
  9. 26
      pages/user/service/list/index.wxml
  10. 93
      pages/user/service/list/index.wxss
  11. 2
      utils/https.js

1
pages/index/index.js

@ -740,6 +740,7 @@ Page({
this.pagePoint({
event: 'home_view'
}, 1)
this.data.time!=5?wx.showTabBar():1
},
/**

3
pages/info/hotelProductInfo/index.wxml

@ -95,7 +95,8 @@
<view class="box">
<view class="box-top">
<text class="iconfont icon-tiwen"></text><text>游客点评</text><text class="score" wx:if="{{info && info.rate && commentTotal>0}}">{{info.rate}}分</text>
<text class="all-comment-num">共{{commentTotal}}条</text>
<navigator url="/pages/list/comments/index?sceneid={{id}}" style="display: inline;"> <text class="all-comment-num">共{{commentTotal}}条 <text style="font-family: fangsong; font-weight: bold;color: #000;">></text></text>
</navigator>
</view>
<view class="empty-box" wx:if="{{!comment || comment.length==0}}">
<view>这里空空如也,快去点评吧!</view>

2
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;

2
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),

3
pages/info/postProductInfo/index.wxml

@ -56,7 +56,8 @@
<view class="box-top">
<text class="iconfont icon-tiwen"></text><text>游客点评</text><text class="score"
wx:if="{{info && info.rate && commentTotal>0}}">{{info.rate}}分</text>
<text class="all-comment-num">共{{commentTotal}}条</text>
<navigator url="/pages/list/comments/index?productid={{id}}" style="display: inline;"> <text class="all-comment-num">共{{commentTotal}}条 <text style="font-family: fangsong; font-weight: bold;color: #000;">></text></text>
</navigator>
</view>
<view class="empty-box" wx:if="{{!comment || comment.length==0}}">
<view>这里空空如也,快去点评吧!</view>

2
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;

1
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{

29
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',
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

26
pages/user/service/list/index.wxml

@ -10,4 +10,28 @@
<view class="iconfont icon-you"></view>
</navigator>
<!-- <navigator url="list/index?typeid={{typeId}}" class="more-btn" bindtap="showService">没找到想要的答案?一键呼唤<text>人工客服</text></navigator> -->
<button class="more-btn" open-type="contact" bindcontact="handleContact">没找到想要的答案?一键呼唤<text>人工客服</text></button>
<!-- <button class="more-btn" open-type="contact" bindcontact="handleContact">没找到想要的答案?一键呼唤<text>人工客服</text></button> -->
<view class="more-btn" bindtap="showDialogBtn">没找到想要的答案?一键呼唤<text>人工客服</text></view>
<!-- 弹出层 -->
<view
class="modal-mask"
bindtap="hideModal"
catchtouchmove="preventTouchMove"
wx:if="{{showModal}}"
></view>
<!-- 成功 -->
<view class="modal-dialog" wx:if="{{showModal && ses}}">
<view class="modal-title"><view class="modal-info">即将跳转人工在线客服
<view>客服服务时间:08:30-17:30</view>
如遇紧急情况可拨打 <view class="green" bindtap="phoneCall"> 0512-66555111 </view></view></view>
<view class="modal-footer">
<view
class="btn-confirms two"
bindtap="onConfirm"
data-status="confirm"
data-name="{{name}}"
>取消
</view>
<button class="btn-confirms" open-type="contact" bindcontact="handleContact">确定</button>
</view>
</view>

93
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;
}
}
/**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;
}

2
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请求

Loading…
Cancel
Save