Commit c7febf5ad7c95150ed9fcf07935155451e381818

Authored by 后端研发-苏泰源
1 parent f752ddfc

联系客服修改

app.wxss
... ... @@ -744,17 +744,17 @@ background: #ffe3e2;
744 744 /* 图标字体(ty) */
745 745 @font-face {
746 746 font-family: 'iconfont'; /* Project id 2054717 */
747   - src: url('//at.alicdn.com/t/font_2054717_qbvqi1zioy.woff2?t=1646731629521') format('woff2'),
748   - url('//at.alicdn.com/t/font_2054717_qbvqi1zioy.woff?t=1646731629521') format('woff'),
749   - url('//at.alicdn.com/t/font_2054717_qbvqi1zioy.ttf?t=1646731629521') format('truetype');
  747 + src: url('//at.alicdn.com/t/font_2054717_aefpqs97v86.woff2?t=1647056245887') format('woff2'),
  748 + url('//at.alicdn.com/t/font_2054717_aefpqs97v86.woff?t=1647056245887') format('woff'),
  749 + url('//at.alicdn.com/t/font_2054717_aefpqs97v86.ttf?t=1647056245887') format('truetype');
750 750 }
751 751  
752 752 .icon-kefu1:before {
753   - content: "\e666";
  753 + content: "\e651";
754 754 }
755 755  
756 756 .icon-dianhua:before {
757   - content: "\e623";
  757 + content: "\e64b";
758 758 }
759 759  
760 760  
... ...
components/com_servicer/com_servicer.wxml
1   -
2   -
3 1 <!-- 联系客服操作菜单 -->
4 2 <view class="action {{!hiddenCS ? 'active':''}}" hidden="{{hiddenCS}}">
5 3 <view class="pd20 t-c pr">
... ...
components/com_servicer/com_servicer.wxss
... ... @@ -12,6 +12,7 @@
12 12 position: absolute;
13 13 left: 20rpx !important;
14 14 right: auto !important;
  15 + padding: 10rpx 20rpx 10rpx 10rpx;
15 16 }
16 17  
17 18 .action .iconfont {
... ...
packageA/pages/goodsInfo/goodsInfo.js
... ... @@ -3510,23 +3510,33 @@ Page({
3510 3510  
3511 3511 //打开客服操作菜单
3512 3512 openCS() {
  3513 + // 判断会员状态
  3514 + let user_info = getApp().globalData.userInfo;
  3515 + if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) {
  3516 + wx.navigateTo({
  3517 + url: '/pages/togoin/togoin',
  3518 + })
  3519 + return false;
  3520 + };
3513 3521 // csType/在线客服设置:
3514 3522 // 0关闭(如果有设置热线电话,则显示拨打热线电话)、
3515 3523 // 1小程序客服、
3516 3524 // 2企业微信客服
3517   - let csType = this.data.sys_switch.weapp_customertype;
3518   - if(csType == 0) {
3519   - // 获取电话号码
3520   - this.contactService();
3521   - } else {
3522   - this.getTel()
3523   - .then(() => {
3524   - self.setData({
3525   - hiddenCS: false,
  3525 + if(this.data.sys_switch) {
  3526 + let csType = this.data.sys_switch.weapp_customertype;
  3527 + if(csType == 0) {
  3528 + // 拨打电话号码
  3529 + this.contactService();
  3530 + } else {
  3531 + this.getTel()
  3532 + .then(() => {
  3533 + self.setData({
  3534 + hiddenCS: false,
  3535 + });
3526 3536 });
3527   - });
3528   -
  3537 + };
3529 3538 };
  3539 +
3530 3540 },
3531 3541  
3532 3542 //关闭客服操作菜单
... ...
packageA/pages/goodsInfo/goodsInfo.wxss
... ... @@ -2970,54 +2970,3 @@ button.custom-service::after{
2970 2970 }
2971 2971  
2972 2972  
2973   -
2974   -/* 联系客服操作菜单 */
2975   -.action {
2976   - position: fixed;
2977   - bottom: 100rpx;
2978   - z-index: 1;
2979   - width: 100%;
2980   - background-color: white;
2981   - border-radius: 20rpx 20rpx 0 0;
2982   -}
2983   -
2984   -.action .icon-guan {
2985   - position: absolute;
2986   - left: 20rpx !important;
2987   - right: auto !important;
2988   -}
2989   -
2990   -.action .iconfont {
2991   - color: #ff7295;
2992   - margin-right: 10rpx;
2993   -}
2994   -
2995   -.action button {
2996   - text-align: left;
2997   - line-height: normal;
2998   -}
2999   -
3000   -.action button::after {
3001   - border-width: 0;
3002   -}
3003   -
3004   -.action .btn2 {
3005   - box-sizing: border-box;
3006   - height: 100rpx;
3007   - display: flex;
3008   - align-items: center;
3009   -}
3010   -
3011   -.mask2 {
3012   - display: none;
3013   - position: fixed;
3014   - left: 0;
3015   - right: 0;
3016   - top: 0;
3017   - bottom: 0;
3018   - background-color: rgba(0,0,0,.5);
3019   -}
3020   -
3021   -.action.active ~ .mask2 {
3022   - display: block;
3023   -}
... ...
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
... ... @@ -6498,23 +6498,33 @@ Page({
6498 6498  
6499 6499 //打开客服操作菜单
6500 6500 openCS() {
  6501 + // 判断会员状态
  6502 + let user_info = getApp().globalData.userInfo;
  6503 + if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) {
  6504 + wx.navigateTo({
  6505 + url: '/pages/togoin/togoin',
  6506 + })
  6507 + return false;
  6508 + };
6501 6509 // csType/在线客服设置:
6502 6510 // 0关闭(如果有设置热线电话,则显示拨打热线电话)、
6503 6511 // 1小程序客服、
6504 6512 // 2企业微信客服
6505   - let csType = this.data.sys_switch.weapp_customertype;
6506   - if(csType == 0) {
6507   - // 获取电话号码
6508   - this.contactService();
6509   - } else {
6510   - this.getTel()
6511   - .then(() => {
6512   - self.setData({
6513   - hiddenCS: false,
  6513 + if(this.data.sys_switch) {
  6514 + let csType = this.data.sys_switch.weapp_customertype;
  6515 + if(csType == 0) {
  6516 + // 拨打电话号码
  6517 + this.contactService();
  6518 + } else {
  6519 + this.getTel()
  6520 + .then(() => {
  6521 + self.setData({
  6522 + hiddenCS: false,
  6523 + });
6514 6524 });
6515   - });
6516   -
  6525 + };
6517 6526 };
  6527 +
6518 6528 },
6519 6529  
6520 6530 //关闭客服操作菜单
... ...
packageC/pages/presell/goodsInfo/goodsInfo.js
... ... @@ -4040,23 +4040,33 @@ Page({
4040 4040  
4041 4041 //打开客服操作菜单
4042 4042 openCS() {
  4043 + // 判断会员状态
  4044 + let user_info = getApp().globalData.userInfo;
  4045 + if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) {
  4046 + wx.navigateTo({
  4047 + url: '/pages/togoin/togoin',
  4048 + })
  4049 + return false;
  4050 + };
4043 4051 // csType/在线客服设置:
4044 4052 // 0关闭(如果有设置热线电话,则显示拨打热线电话)、
4045 4053 // 1小程序客服、
4046 4054 // 2企业微信客服
4047   - let csType = this.data.sys_switch.weapp_customertype;
4048   - if(csType == 0) {
4049   - // 获取电话号码
4050   - this.contactService();
4051   - } else {
4052   - this.getTel()
4053   - .then(() => {
4054   - self.setData({
4055   - hiddenCS: false,
  4055 + if(this.data.sys_switch) {
  4056 + let csType = this.data.sys_switch.weapp_customertype;
  4057 + if(csType == 0) {
  4058 + // 拨打电话号码
  4059 + this.contactService();
  4060 + } else {
  4061 + this.getTel()
  4062 + .then(() => {
  4063 + self.setData({
  4064 + hiddenCS: false,
  4065 + });
4056 4066 });
4057   - });
4058   -
  4067 + };
4059 4068 };
  4069 +
4060 4070 },
4061 4071  
4062 4072 //关闭客服操作菜单
... ...
pages/goods/goodsInfo/goodsInfo.js
... ... @@ -6648,23 +6648,33 @@ Page({
6648 6648  
6649 6649 //打开客服操作菜单
6650 6650 openCS() {
  6651 + // 判断会员状态
  6652 + let user_info = getApp().globalData.userInfo;
  6653 + if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) {
  6654 + wx.navigateTo({
  6655 + url: '/pages/togoin/togoin',
  6656 + })
  6657 + return false;
  6658 + };
6651 6659 // csType/在线客服设置:
6652 6660 // 0关闭(如果有设置热线电话,则显示拨打热线电话)、
6653 6661 // 1小程序客服、
6654 6662 // 2企业微信客服
6655   - let csType = this.data.sys_switch.weapp_customertype;
6656   - if(csType == 0) {
6657   - // 获取电话号码
6658   - this.contactService();
6659   - } else {
6660   - this.getTel()
6661   - .then(() => {
6662   - self.setData({
6663   - hiddenCS: false,
  6663 + if(this.data.sys_switch) {
  6664 + let csType = this.data.sys_switch.weapp_customertype;
  6665 + if(csType == 0) {
  6666 + // 拨打电话号码
  6667 + this.contactService();
  6668 + } else {
  6669 + this.getTel()
  6670 + .then(() => {
  6671 + self.setData({
  6672 + hiddenCS: false,
  6673 + });
6664 6674 });
6665   - });
6666   -
  6675 + };
6667 6676 };
  6677 +
6668 6678 },
6669 6679  
6670 6680 //关闭客服操作菜单
... ...
pages/index/index/index.wxml
... ... @@ -177,8 +177,8 @@
177 177 <image src="{{url+aitem.original_img}}" mode="aspectFill" lazy-load="true" data-errorimg="saleGoods[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3" data-img="{{aitem.original_img}}"></image>
178 178  
179 179 <image wx:if="{{aitem.status==0}}" class="status_img" src="{{url}}/miniapp/images/miao/yure.png"></image>
180   - <image wx:if="{{aitem.status==1}}" class="status_img" src="{{url}}/miniapp/images/miao/going.png"></image>
181   - <image wx:if="{{aitem.status==2}}" class="status_img" src="{{url}}/miniapp/images/miao/mend.png"></image>
  180 + <image wx:elif="{{aitem.status==1}}" class="status_img" src="{{url}}/miniapp/images/miao/going.png"></image>
  181 + <image wx:else="{{aitem.status==2}}" class="status_img" src="{{url}}/miniapp/images/miao/mend.png"></image>
182 182 </view>
183 183 <view class="ellipsis-2 mar-top10" style="height: 76rpx;">{{aitem.goods_name}}</view>
184 184 <!-- <view class="red-co mar-top10 is_seckill_height"> -->
... ...
pages/user/index/index.js
... ... @@ -925,23 +925,33 @@ Page({
925 925  
926 926 //打开客服操作菜单
927 927 openCS() {
  928 + // 判断会员状态
  929 + let user_info = getApp().globalData.userInfo;
  930 + if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) {
  931 + wx.navigateTo({
  932 + url: '/pages/togoin/togoin',
  933 + })
  934 + return false;
  935 + };
928 936 // csType/在线客服设置:
929 937 // 0关闭(如果有设置热线电话,则显示拨打热线电话)、
930 938 // 1小程序客服、
931 939 // 2企业微信客服
932   - let csType = this.data.sys_switch.weapp_customertype;
933   - if(csType == 0) {
934   - // 获取电话号码
935   - this.contactService();
936   - } else {
937   - this.getTel()
938   - .then(() => {
939   - self.setData({
940   - hiddenCS: false,
  940 + if(this.data.sys_switch) {
  941 + let csType = this.data.sys_switch.weapp_customertype;
  942 + if(csType == 0) {
  943 + // 拨打电话号码
  944 + this.contactService();
  945 + } else {
  946 + this.getTel()
  947 + .then(() => {
  948 + self.setData({
  949 + hiddenCS: false,
  950 + });
941 951 });
942   - });
943   -
  952 + };
944 953 };
  954 +
945 955 },
946 956  
947 957 //关闭客服操作菜单
... ...