Commit 66527691 by 张立顺

质保卡 显示调整

1 parent f36017b7
# 项目名 精品升级小程序
# 项目名 精品升级小程序 小程序搜索精品升级
# 账号登录可以使用以下(验证码 开发和测试环境任意输入即可):
超级管理员:13022223223(测试环境) 13476670746(开发环境)
......@@ -9,6 +9,8 @@
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据)
员工账号 :15626599738 (开发环境)
# 生产环境跟手机号和验证码绑定 需要自己到账号中心绑定手机号成为员工或超管
# 项目功需真机测试的功能:scroll-view组件里面有组件使用fixed定位的组件
# 测试机iphone8plus 密码 127458
<!-- wxfile://tmp_4e069a5be4082332eb906b4fb6085276a2f97acd0fc59a92.jpg -->
......@@ -26,7 +28,7 @@ appid wx9f8fe7f97daba5d7
appid wx5d1208f9c8712943
# 项目版本管理有两个 生产环境 svn地址:svn://192.168.3.233/ddh/trunk/src/dijia/dj-miniprogram-merchant-point/dj-car-boutique-work-wechat
开发使用git进行版本管理 git地址:http://zhangls@192.168.3.233:8090/inversion/glsxcommodity-center-webchat.git
开发使用git进行版本管理 git地址:http://192.168.3.233:8090/saas_plus/dj-car-boutique-work-wechat
# swagger 文档接口地址 调试数据可以把地址v3 换成v2 重新请求即可
开发环境: https://dj.dev.glsx.com.cn/rop-dj-car-boutique/swagger-ui/v3/index.html#
测试环境: https://dj.test.glsx.com.cn/rop-dj-car-boutique/swagger-ui/v3/index.html#
......
......@@ -11,10 +11,10 @@ const systemInfo = wx.getSystemInfoSync()
// console.log(systemInfo);
// console.log(accountInfo.miniProgram.envVersion)
//手动控制体验版环境的请求 true就依据下面index false就默认为2
const manual = false
const manual = true
const release = false
let index = 1
let index = 4
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
......
......@@ -146,7 +146,9 @@ Component({
_DATA_.map(i => {
let upgradeGoodsList = []
i.upgradeGoodsList.map(c => {
if (c.goodsInfo.goodsName.indexOf(value) != -1) {
// console.log(c);
let name = c.upgradeGoodsName ||c.goodsInfo.goodsName
if (name.indexOf(value) != -1) {
upgradeGoodsList.push(c)
}
})
......
......@@ -23,7 +23,7 @@
data-ind="{{ind}}"
data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
{{i.goodsInfo.goodsName}}
{{i.upgradeGoodsName || i.goodsInfo.goodsName}}
</view>
<view class="last" wx:if="{{!i.active}}">
<!-- | -->
......
......@@ -293,7 +293,7 @@ Component({
// console.log(result);
// } else {
// }
result = await api.merchantSettleAccountRule({ merchantId: data.merchantId })
result = await api.merchantSettleAccountRule({ merchantId: data.merchantId,sceneType:1 })
if (JSON.stringify(result.data) === '{}' || result.data == null) {
return wx.$util.showToast('未设置分润规则 请联系管理员')
......
......@@ -101,5 +101,10 @@ module.exports = {
/** 升级商品生成条形码 */
createBarCode(data) {
return api.post('dj.api.smartcarlife.common.createBarCode', data)
},
/** 获取商户基本信息 */
getServiceBaseInfo(data) {
return api.post('dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo', data)
}
}
......@@ -16,7 +16,8 @@ Page({
defaultCustomerService: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png',
// defaultCustomerService: 'https://img01.glsx.com.cn/group1/M00/21/01/wKgFHWKEkeSAZRltAAED5CfS91o118.png',
failCustomerService: '../images/kfrefresh.png',
showTip: false
showTip: false,
warrantyCardVisible:true,
},
// 跳转正确订单
redirectOrder() {
......@@ -197,6 +198,7 @@ Page({
data.status != 6 && data.selectPayType != 0 && this.getQrCode(data)
// 条形码
warrantyCardList.length && this.getBarCode()
this.getServiceBaseInfo(data.merchantId)
// if (data.status == 6) return
} else {
wx.showModal({
......@@ -241,6 +243,17 @@ Page({
}, 500 * index)
})
},
getServiceBaseInfo(merchantId){
api.getServiceBaseInfo({merchantId}) .then((result) => {
console.log(result,'result');
let {data,code} =result
if (data.cardCodeFlag&&data.cardCodeFlag==1) {
this.setData({
warrantyCardVisible:false
})
}
})
},
setQrBoxHeight() {
const { orderInfo } = this.data
let statusList = [2, 4, 6]
......
......@@ -171,8 +171,9 @@
<view class="warranty-tips">建议让客户扫码关注客服查询质保</view>
</view>
</block> -->
<!-- wx:if="{{warrantyCardList&&warrantyCardList.length}}" -->
<block wx:if="{{orderInfo.status != 10}}">
<!-- wx:if="{{warrantyCardList.length || warrantyCardVisible}}" -->
<!-- 没有质保加屏蔽客服开启 就不显示 -->
<block wx:if="{{orderInfo.status != 10&&warrantyCardList.length || warrantyCardVisible}}">
<view class="box">
<view class="title">{{orderInfo.selectPayType==0? '客服' :'质保'}}</view>
<view class="warranty-box">
......@@ -188,8 +189,8 @@
</view>
</block>
</view>
<qr-box imgSrc="{{customerService}}" bindrefresh="getWorkWechatLiveQRCode" />
<view class="warranty-tips">
<qr-box wx:if="{{warrantyCardVisible}}" imgSrc="{{customerService}}" bindrefresh="getWorkWechatLiveQRCode" />
<view class="warranty-tips" wx:if="{{warrantyCardVisible}}">
{{orderInfo.selectPayType==0? '建议让客户扫码关注客服号领取礼包' :'建议让客户扫码关注客服查询质保'}}
</view>
</view>
......
......@@ -14,7 +14,8 @@ Page({
isShowPhone: app.globalData.YQorderSetting.yqPhoneConfig,
customerService: '',
defaultCustomerService: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png',
failCustomerService: '../images/kfrefresh.png'
failCustomerService: '../images/kfrefresh.png',
warrantyCardVisible:true,
},
jumpUpdate() {
let { orderInfo } = this.data
......@@ -190,6 +191,7 @@ Page({
this.getWorkWechatLiveQRCode()
// 条形码
warrantyCardList.length && this.getBarCode()
this.getServiceBaseInfo(data.merchantId)
} else {
wx.showModal({
title: '温馨提示',
......@@ -232,6 +234,17 @@ Page({
}, 1000 * index)
})
},
getServiceBaseInfo(merchantId){
api.getServiceBaseInfo({merchantId}) .then((result) => {
console.log(result,'result');
let {data,code} = result
if (data.cardCodeFlag&&data.cardCodeFlag==1) {
this.setData({
warrantyCardVisible:false
})
}
})
},
setQrBoxHeight() {
wx.$util.getViewInfo('#qr-view', ({ height }) => {
// console.log(height)
......
......@@ -133,7 +133,9 @@
</block>
</view>
<!-- wx:if="{{warrantyCardList&&warrantyCardList.length}}" -->
<block>
<!-- 没有屏蔽质保卡 就显示 -->
<!-- wx:if="{{!warrantyCardVisible&&orderInfo.selectPayType==0}}" -->
<block wx:if="{{warrantyCardList.length || warrantyCardVisible}}">
<view class="box">
<view class="title">{{orderInfo.selectPayType==0? '客服' :'质保'}}</view>
<view class="warranty-box">
......@@ -149,7 +151,7 @@
</view>
</block>
</view>
<qr-box imgSrc="{{customerService}}" bindrefresh="getWorkWechatLiveQRCode" />
<qr-box wx:if="{{warrantyCardVisible}}" imgSrc="{{customerService}}" bindrefresh="getWorkWechatLiveQRCode" />
<!-- <view class="qr-box">
<view wx:if="{{!customerService}}" class="loader box-center" />
<image
......@@ -163,7 +165,7 @@
src="{{customerService}}"
/>
</view> -->
<view class="warranty-tips">
<view class="warranty-tips" wx:if="{{warrantyCardVisible}}">
{{orderInfo.selectPayType==0? '建议让客户扫码关注客服号领取礼包' :'建议让客户扫码关注客服查询质保'}}
</view>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!