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 2cec7bd9
authored
Apr 07, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
联调修改
1 parent
720d4e21
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
91 additions
and
19 deletions
packageCrowdFunding/api.js
packageCrowdFunding/components/PickerSelect/PickerSelect.js
packageCrowdFunding/pages/activityList/activityList.js
packageCrowdFunding/pages/additionRecordOrder/additionRecordOrder.js
packageCrowdFunding/pages/additionRecordOrder/constant/data.js
packageEquity/pages/TabBar/equityPage.wxss
packageEquity/pages/carEquity/components/EquityList/EquityList.js
packageEquity/pages/carEquity/serviceInfo/serviceInfo.js
pages/sceneIndex/sceneIndex.js
tabWorkOrder/pages/confirmOrder/confirmOrder.wxml
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxml
tabWorkOrder/pages/orderDetail/orderDetail.wxml
packageCrowdFunding/api.js
View file @
2cec7bd
...
...
@@ -35,7 +35,9 @@ module.exports = {
},
// 获取活动的商品信息
getMerchandiseInformation
(){
getMerchandiseInformation
(){},
// 获取众筹活动商品
getSamePriceGoodsAPI
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.shopmallActivity.selectSamePriceGoods'
,
data
)
}
}
packageCrowdFunding/components/PickerSelect/PickerSelect.js
View file @
2cec7bd
...
...
@@ -16,7 +16,6 @@ Component({
}
return
i
})
console
.
log
(
pickerObj
)
this
.
setData
({
optionList
:
pickerObj
?.
optionList
||
[]
})
...
...
@@ -63,11 +62,19 @@ Component({
let
thisPage
=
wx
.
$router
.
getPageInstance
()
orderInfo
[
pickerObj
.
optionId
]
=
arr
[
0
][
pickerObj
.
optionId
]
||
''
orderInfo
[
pickerObj
.
optionName
]
=
arr
[
0
][
pickerObj
.
optionName
]
||
''
if
(
pickerObj
.
flag
)
{
// 商品带出金额
orderInfo
[
'activityPrice'
]
=
`¥
${
this
.
priceFilter
(
arr
[
0
]?.
activityPrice
/
100
||
0
)}
`
orderInfo['crowdFundingPrice'] = `
¥
$
{
this
.
priceFilter
(
arr
[
0
]?.
crowdFundingPrice
/
100
||
0
)}
`
}
thisPage.setData({
orderInfo,
showPickerSelect: false
})
console
.
log
(
orderInfo
)
},
priceFilter(num) {
var pow = Math.pow(10, 2)
return (Math.round(num * pow) / pow).toFixed(2)
},
cancel() {
let thisPage = wx.$router.getPageInstance()
...
...
packageCrowdFunding/pages/activityList/activityList.js
View file @
2cec7bd
// packageCrowdFunding/pages/activityList/activityList.js
import
api
from
"../../api"
const
app
=
getApp
()
Page
({
/**
...
...
@@ -21,6 +23,19 @@ Page({
activityId
,
activityName
})
// 获取商品
this
.
getShop
(
activityId
)
},
getShop
(
activityId
)
{
api
.
getSamePriceGoodsAPI
({
actId
:
activityId
}).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
app
.
globalData
.
crowdFundingShopInfo
=
data
||
[]
}
else
{
wx
.
$util
.
showToast
(
message
)
}
})
},
navbarReady
(
e
)
{
...
...
packageCrowdFunding/pages/additionRecordOrder/additionRecordOrder.js
View file @
2cec7bd
...
...
@@ -10,7 +10,9 @@ Page({
data
:
{
orderObj
:
constantData
.
orderObj
,
orderInfo
:
{},
orderNoPopup
:
false
orderNoPopup
:
false
,
activityName
:
''
,
activityId
:
''
},
/**
...
...
@@ -18,14 +20,37 @@ Page({
*/
onLoad
(
options
)
{
// 推荐人
let
{
orderObj
}
=
this
.
data
let
{
orderObj
,
orderInfo
}
=
this
.
data
if
(
app
.
globalData
?.
staffListRange
&&
orderObj
?.
orderFormList
)
{
orderObj
.
orderFormList
[
orderObj
.
orderFormList
.
length
-
1
].
optionList
=
app
.
globalData
.
staffListRange
}
// 商品
if
(
app
.
globalData
?.
crowdFundingShopInfo
&&
orderObj
?.
shopFormList
)
{
if
(
app
.
globalData
?.
crowdFundingShopInfo
?.
length
>
1
)
{
// 多商品
orderObj
.
shopFormList
[
0
].
optionList
=
app
.
globalData
?.
crowdFundingShopInfo
}
else
{
// 单商品直接带出商品名称
orderObj
.
shopFormList
[
0
].
type
=
'input'
orderObj
.
shopFormList
[
0
].
readonly
=
true
orderInfo
.
shopmallGoodsId
=
app
.
globalData
?.
crowdFundingShopInfo
[
0
]?.
goodsId
||
''
orderInfo
.
goodsName
=
app
.
globalData
?.
crowdFundingShopInfo
[
0
]?.
goodsName
||
''
orderInfo
.
activityPrice
=
`¥
${
this
.
priceFilter
(
app
.
globalData
?.
crowdFundingShopInfo
[
0
]?.
activityPrice
||
0
)}
`
orderInfo.crowdFundingPrice = `
¥
$
{
this
.
priceFilter
(
app
.
globalData
?.
crowdFundingShopInfo
[
0
]?.
crowdFundingPrice
||
0
)}
`
}
}
this.setData({orderObj})
},
priceFilter(num) {
var pow = Math.pow(10, 2)
return (Math.round(num * pow) / pow).toFixed(2)
},
onRoute(options) {
let { activityId, activityName } = options
this.setData({
activityId,
activityName
})
},
// 交易流水号
...
...
@@ -45,7 +70,7 @@ Page({
},
confirm() {
let
{
orderInfo
}
=
this
.
data
let { orderInfo
, activityName, activityId
} = this.data
let userInfo = wx.$util.getUserInfo()
let validObj = wx.$util.checkRule(orderInfo, constantData.formRule)
if (validObj) {
...
...
@@ -66,7 +91,11 @@ Page({
userId: orderInfo.uuid,
employeeName: orderInfo.staffName,
merchantId: userInfo?.default4SStoreInfo?.merchantId,
merchantName
:
userInfo
?.
default4SStoreInfo
?.
merchantName
merchantName: userInfo?.default4SStoreInfo?.merchantName,
shopmallGoodsId: orderInfo.goodsId,
orderPaySource: 4,
activityId: activityId,
activityName: activityName
}
api.creatFullPayOrderAPI(params)
}
...
...
packageCrowdFunding/pages/additionRecordOrder/constant/data.js
View file @
2cec7bd
...
...
@@ -11,6 +11,7 @@ const formRule = {
}
],
uuid
:
[{
required
:
true
,
message
:
'推荐人不能为空'
}],
goodsId
:
[
{
required
:
true
,
message
:
'请选择商品'
}
]
}
const
orderObj
=
{
...
...
@@ -47,19 +48,22 @@ const orderObj = {
shopFormList
:
[
{
label
:
'商品名称'
,
name
:
'
shop
Name'
,
name
:
'
goods
Name'
,
type
:
'select'
,
readonly
:
true
optionList
:
[],
optionId
:
'goodsId'
,
optionName
:
'goodsName'
,
flag
:
true
},
{
label
:
'订金金额'
,
name
:
'
front
Price'
,
name
:
'
activity
Price'
,
type
:
'input'
,
readonly
:
true
},
{
label
:
'尾款金额'
,
name
:
'
balance
Price'
,
name
:
'
crowdFunding
Price'
,
type
:
'input'
,
readonly
:
true
,
noBorder
:
true
...
...
packageEquity/pages/TabBar/equityPage.wxss
View file @
2cec7bd
...
...
@@ -37,3 +37,18 @@
transform: rotate(270deg);
}
.layout {
box-sizing: border-box;
position: relative;
font-size: 24rpx;
color: #8A8C90;
display: flex;
flex-direction: column;
height: calc(100vh - 100rpx - env(safe-area-inset-bottom));
height: calc(100vh - 100rpx - constant(safe-area-inset-bottom));
overflow: hidden;
}
.layout .pagedetail{
height: 100%;
}
packageEquity/pages/carEquity/components/EquityList/EquityList.js
View file @
2cec7bd
...
...
@@ -202,6 +202,7 @@ Component({
contractNo
:
target
.
contractNo
}
carLifeApi
.
printContract
(
params
).
then
(
res
=>
{
wx
.
hideLoading
()
if
(
res
.
code
==
'0'
)
{
this
.
setData
({
url
:
res
.
data
...
...
@@ -215,7 +216,6 @@ Component({
}
else
{
wx
.
$util
.
showToast
(
res
.
message
||
'接口异常'
)
}
wx
.
hideLoading
()
})
},
...
...
packageEquity/pages/carEquity/serviceInfo/serviceInfo.js
View file @
2cec7bd
...
...
@@ -294,6 +294,7 @@ Page({
}
carLifeApi
.
printContract
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
wx
.
hideLoading
()
if
(
res
.
code
==
'0'
)
{
this
.
setData
({
url
:
res
.
data
...
...
@@ -303,7 +304,6 @@ Page({
}
else
{
wx
.
$util
.
showToast
(
res
.
message
||
'接口异常'
)
}
wx
.
hideLoading
()
})
},
...
...
pages/sceneIndex/sceneIndex.js
View file @
2cec7bd
...
...
@@ -40,10 +40,10 @@ Page({
success
:
res
=>
{}
})
// 获取开通业务场景
//
let arr = sceneList.filter(v => openSceneArr.includes(v.sceneType))
let
arr
=
sceneList
.
filter
(
v
=>
openSceneArr
.
includes
(
v
.
sceneType
))
this
.
setData
({
isShow
:
Object
.
keys
(
userInfo
).
length
,
//
sceneList: arr
sceneList
:
arr
})
// 没有登录信息 或无开通场景 退出登录
if
(
!
Object
.
keys
(
userInfo
).
length
||
!
userInfo
.
openSceneArr
?.
length
)
{
...
...
tabWorkOrder/pages/confirmOrder/confirmOrder.wxml
View file @
2cec7bd
...
...
@@ -23,7 +23,7 @@
<view class="cell">
<view class="label">抵用礼券:</view>
<view class="value">
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}
({{orderInfo.customerCoupon.employeeName || ''}})
</view>
</view>
</block>
...
...
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxml
View file @
2cec7bd
...
...
@@ -28,7 +28,7 @@
<view class="cell">
<view class="label">抵用礼券:</view>
<view class="value">
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}
({{orderInfo.customerCoupon.employeeName || ''}})
</view>
</view>
</block>
...
...
@@ -46,7 +46,7 @@
<view class="cell">
<view class="label">抵用券:</view>
<view class="value">
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}
({{orderInfo.customerCoupon.employeeName || ''}})
</view>
</view>
<view class="line" />
...
...
tabWorkOrder/pages/orderDetail/orderDetail.wxml
View file @
2cec7bd
...
...
@@ -18,7 +18,7 @@
<view class="cell">
<view class="label">抵用礼券:</view>
<view class="value">
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}
({{orderInfo.customerCoupon.employeeName || ''}})
</view>
</view>
</block>
...
...
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