Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 66527691
authored
Dec 15, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
质保卡 显示调整
1 parent
f36017b7
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
54 additions
and
16 deletions
README.md
api/environment.js
components/Goods/Goods.js
components/Goods/Goods.wxml
components/Merchant-Seles/Merchant-Seles.js
tabWorkOrder/api.js
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.js
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxml
tabWorkOrder/pages/orderDetail/orderDetail.js
tabWorkOrder/pages/orderDetail/orderDetail.wxml
README.md
View file @
6652769
# 项目名 精品升级小程序
# 项目名 精品升级小程序
小程序搜索精品升级
# 账号登录可以使用以下(验证码 开发和测试环境任意输入即可):
# 账号登录可以使用以下(验证码 开发和测试环境任意输入即可):
超级管理员:13022223223(测试环境) 13476670746(开发环境)
超级管理员:13022223223(测试环境) 13476670746(开发环境)
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据)
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据)
员工账号 :15626599738 (开发环境)
员工账号 :15626599738 (开发环境)
# 生产环境跟手机号和验证码绑定 需要自己到账号中心绑定手机号成为员工或超管
# 项目功需真机测试的功能:scroll-view组件里面有组件使用fixed定位的组件
# 项目功需真机测试的功能:scroll-view组件里面有组件使用fixed定位的组件
# 测试机iphone8plus 密码 127458
# 测试机iphone8plus 密码 127458
<!-- wxfile://tmp_4e069a5be4082332eb906b4fb6085276a2f97acd0fc59a92.jpg -->
<!-- wxfile://tmp_4e069a5be4082332eb906b4fb6085276a2f97acd0fc59a92.jpg -->
...
@@ -26,7 +28,7 @@ appid wx9f8fe7f97daba5d7
...
@@ -26,7 +28,7 @@ appid wx9f8fe7f97daba5d7
appid wx5d1208f9c8712943
appid wx5d1208f9c8712943
# 项目版本管理有两个 生产环境 svn地址:svn://192.168.3.233/ddh/trunk/src/dijia/dj-miniprogram-merchant-point/dj-car-boutique-work-wechat
# 项目版本管理有两个 生产环境 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 重新请求即可
# swagger 文档接口地址 调试数据可以把地址v3 换成v2 重新请求即可
开发环境: https://dj.dev.glsx.com.cn/rop-dj-car-boutique/swagger-ui/v3/index.html#
开发环境: 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#
测试环境: https://dj.test.glsx.com.cn/rop-dj-car-boutique/swagger-ui/v3/index.html#
...
...
api/environment.js
View file @
6652769
...
@@ -11,10 +11,10 @@ const systemInfo = wx.getSystemInfoSync()
...
@@ -11,10 +11,10 @@ const systemInfo = wx.getSystemInfoSync()
// console.log(systemInfo);
// console.log(systemInfo);
// console.log(accountInfo.miniProgram.envVersion)
// console.log(accountInfo.miniProgram.envVersion)
//手动控制体验版环境的请求 true就依据下面index false就默认为2
//手动控制体验版环境的请求 true就依据下面index false就默认为2
const
manual
=
fals
e
const
manual
=
tru
e
const
release
=
false
const
release
=
false
let
index
=
1
let
index
=
4
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// develop:开发版(正常开发工具,测试时)
...
...
components/Goods/Goods.js
View file @
6652769
...
@@ -146,7 +146,9 @@ Component({
...
@@ -146,7 +146,9 @@ Component({
_DATA_
.
map
(
i
=>
{
_DATA_
.
map
(
i
=>
{
let
upgradeGoodsList
=
[]
let
upgradeGoodsList
=
[]
i
.
upgradeGoodsList
.
map
(
c
=>
{
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
)
upgradeGoodsList
.
push
(
c
)
}
}
})
})
...
...
components/Goods/Goods.wxml
View file @
6652769
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
data-ind="{{ind}}"
data-ind="{{ind}}"
data-item="{{i}}">
data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
{{i.goodsInfo.goodsName}}
{{i.
upgradeGoodsName || i.
goodsInfo.goodsName}}
</view>
</view>
<view class="last" wx:if="{{!i.active}}">
<view class="last" wx:if="{{!i.active}}">
<!-- | -->
<!-- | -->
...
...
components/Merchant-Seles/Merchant-Seles.js
View file @
6652769
...
@@ -293,7 +293,7 @@ Component({
...
@@ -293,7 +293,7 @@ Component({
// console.log(result);
// console.log(result);
// } else {
// } 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
)
{
if
(
JSON
.
stringify
(
result
.
data
)
===
'{}'
||
result
.
data
==
null
)
{
return
wx
.
$util
.
showToast
(
'未设置分润规则 请联系管理员'
)
return
wx
.
$util
.
showToast
(
'未设置分润规则 请联系管理员'
)
...
...
tabWorkOrder/api.js
View file @
6652769
...
@@ -101,5 +101,10 @@ module.exports = {
...
@@ -101,5 +101,10 @@ module.exports = {
/** 升级商品生成条形码 */
/** 升级商品生成条形码 */
createBarCode
(
data
)
{
createBarCode
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.common.createBarCode'
,
data
)
return
api
.
post
(
'dj.api.smartcarlife.common.createBarCode'
,
data
)
},
/** 获取商户基本信息 */
getServiceBaseInfo
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo'
,
data
)
}
}
}
}
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.js
View file @
6652769
...
@@ -16,7 +16,8 @@ Page({
...
@@ -16,7 +16,8 @@ Page({
defaultCustomerService
:
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png'
,
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',
// defaultCustomerService: 'https://img01.glsx.com.cn/group1/M00/21/01/wKgFHWKEkeSAZRltAAED5CfS91o118.png',
failCustomerService
:
'../images/kfrefresh.png'
,
failCustomerService
:
'../images/kfrefresh.png'
,
showTip
:
false
showTip
:
false
,
warrantyCardVisible
:
true
,
},
},
// 跳转正确订单
// 跳转正确订单
redirectOrder
()
{
redirectOrder
()
{
...
@@ -197,6 +198,7 @@ Page({
...
@@ -197,6 +198,7 @@ Page({
data
.
status
!=
6
&&
data
.
selectPayType
!=
0
&&
this
.
getQrCode
(
data
)
data
.
status
!=
6
&&
data
.
selectPayType
!=
0
&&
this
.
getQrCode
(
data
)
// 条形码
// 条形码
warrantyCardList
.
length
&&
this
.
getBarCode
()
warrantyCardList
.
length
&&
this
.
getBarCode
()
this
.
getServiceBaseInfo
(
data
.
merchantId
)
// if (data.status == 6) return
// if (data.status == 6) return
}
else
{
}
else
{
wx
.
showModal
({
wx
.
showModal
({
...
@@ -241,6 +243,17 @@ Page({
...
@@ -241,6 +243,17 @@ Page({
},
500
*
index
)
},
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
()
{
setQrBoxHeight
()
{
const
{
orderInfo
}
=
this
.
data
const
{
orderInfo
}
=
this
.
data
let
statusList
=
[
2
,
4
,
6
]
let
statusList
=
[
2
,
4
,
6
]
...
...
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxml
View file @
6652769
...
@@ -171,8 +171,9 @@
...
@@ -171,8 +171,9 @@
<view class="warranty-tips">建议让客户扫码关注客服查询质保</view>
<view class="warranty-tips">建议让客户扫码关注客服查询质保</view>
</view>
</view>
</block> -->
</block> -->
<!-- wx:if="{{warrantyCardList&&warrantyCardList.length}}" -->
<!-- wx:if="{{warrantyCardList.length || warrantyCardVisible}}" -->
<block wx:if="{{orderInfo.status != 10}}">
<!-- 没有质保加屏蔽客服开启 就不显示 -->
<block wx:if="{{orderInfo.status != 10&&warrantyCardList.length || warrantyCardVisible}}">
<view class="box">
<view class="box">
<view class="title">{{orderInfo.selectPayType==0? '客服' :'质保'}}</view>
<view class="title">{{orderInfo.selectPayType==0? '客服' :'质保'}}</view>
<view class="warranty-box">
<view class="warranty-box">
...
@@ -188,8 +189,8 @@
...
@@ -188,8 +189,8 @@
</view>
</view>
</block>
</block>
</view>
</view>
<qr-box imgSrc="{{customerService}}" bindrefresh="getWorkWechatLiveQRCode" />
<qr-box
wx:if="{{warrantyCardVisible}}"
imgSrc="{{customerService}}" bindrefresh="getWorkWechatLiveQRCode" />
<view class="warranty-tips">
<view class="warranty-tips"
wx:if="{{warrantyCardVisible}}"
>
{{orderInfo.selectPayType==0? '建议让客户扫码关注客服号领取礼包' :'建议让客户扫码关注客服查询质保'}}
{{orderInfo.selectPayType==0? '建议让客户扫码关注客服号领取礼包' :'建议让客户扫码关注客服查询质保'}}
</view>
</view>
</view>
</view>
...
...
tabWorkOrder/pages/orderDetail/orderDetail.js
View file @
6652769
...
@@ -14,7 +14,8 @@ Page({
...
@@ -14,7 +14,8 @@ Page({
isShowPhone
:
app
.
globalData
.
YQorderSetting
.
yqPhoneConfig
,
isShowPhone
:
app
.
globalData
.
YQorderSetting
.
yqPhoneConfig
,
customerService
:
''
,
customerService
:
''
,
defaultCustomerService
:
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png'
,
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
()
{
jumpUpdate
()
{
let
{
orderInfo
}
=
this
.
data
let
{
orderInfo
}
=
this
.
data
...
@@ -190,6 +191,7 @@ Page({
...
@@ -190,6 +191,7 @@ Page({
this
.
getWorkWechatLiveQRCode
()
this
.
getWorkWechatLiveQRCode
()
// 条形码
// 条形码
warrantyCardList
.
length
&&
this
.
getBarCode
()
warrantyCardList
.
length
&&
this
.
getBarCode
()
this
.
getServiceBaseInfo
(
data
.
merchantId
)
}
else
{
}
else
{
wx
.
showModal
({
wx
.
showModal
({
title
:
'温馨提示'
,
title
:
'温馨提示'
,
...
@@ -232,6 +234,17 @@ Page({
...
@@ -232,6 +234,17 @@ Page({
},
1000
*
index
)
},
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
()
{
setQrBoxHeight
()
{
wx
.
$util
.
getViewInfo
(
'#qr-view'
,
({
height
})
=>
{
wx
.
$util
.
getViewInfo
(
'#qr-view'
,
({
height
})
=>
{
// console.log(height)
// console.log(height)
...
...
tabWorkOrder/pages/orderDetail/orderDetail.wxml
View file @
6652769
...
@@ -133,7 +133,9 @@
...
@@ -133,7 +133,9 @@
</block>
</block>
</view>
</view>
<!-- wx:if="{{warrantyCardList&&warrantyCardList.length}}" -->
<!-- wx:if="{{warrantyCardList&&warrantyCardList.length}}" -->
<block>
<!-- 没有屏蔽质保卡 就显示 -->
<!-- wx:if="{{!warrantyCardVisible&&orderInfo.selectPayType==0}}" -->
<block wx:if="{{warrantyCardList.length || warrantyCardVisible}}">
<view class="box">
<view class="box">
<view class="title">{{orderInfo.selectPayType==0? '客服' :'质保'}}</view>
<view class="title">{{orderInfo.selectPayType==0? '客服' :'质保'}}</view>
<view class="warranty-box">
<view class="warranty-box">
...
@@ -149,7 +151,7 @@
...
@@ -149,7 +151,7 @@
</view>
</view>
</block>
</block>
</view>
</view>
<qr-box imgSrc="{{customerService}}" bindrefresh="getWorkWechatLiveQRCode" />
<qr-box
wx:if="{{warrantyCardVisible}}"
imgSrc="{{customerService}}" bindrefresh="getWorkWechatLiveQRCode" />
<!-- <view class="qr-box">
<!-- <view class="qr-box">
<view wx:if="{{!customerService}}" class="loader box-center" />
<view wx:if="{{!customerService}}" class="loader box-center" />
<image
<image
...
@@ -163,7 +165,7 @@
...
@@ -163,7 +165,7 @@
src="{{customerService}}"
src="{{customerService}}"
/>
/>
</view> -->
</view> -->
<view class="warranty-tips">
<view class="warranty-tips"
wx:if="{{warrantyCardVisible}}"
>
{{orderInfo.selectPayType==0? '建议让客户扫码关注客服号领取礼包' :'建议让客户扫码关注客服查询质保'}}
{{orderInfo.selectPayType==0? '建议让客户扫码关注客服号领取礼包' :'建议让客户扫码关注客服查询质保'}}
</view>
</view>
</view>
</view>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment