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 842c2bc3
authored
Apr 10, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新4.19代码
1 parent
a8bdd927
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
245 additions
and
61 deletions
packageCrowdFunding/components/GLForm/GLForm.js
packageCrowdFunding/components/activityDetail/activityDetail.js
packageCrowdFunding/pages/activityPay/activityPay.js
packageCrowdFunding/pages/activityPay/components/SelectGoods/index.js
packageCrowdFunding/pages/balanceNote/balanceNote.js
packageCrowdFunding/pages/balanceNote/balanceNote.json
packageCrowdFunding/pages/balanceNote/balanceNote.sass
packageCrowdFunding/pages/balanceNote/balanceNote.wxml
packageCrowdFunding/pages/balanceNote/constant/data.js
packageCrowdFunding/pages/newOrder/newOrder.js
packageCrowdFunding/components/GLForm/GLForm.js
View file @
842c2bc
...
...
@@ -85,6 +85,7 @@ Component({
this
.
triggerEvent
(
'showOrderNoPopup'
)
break
case
'select'
:
console
.
log
(
target
)
this
.
triggerEvent
(
'showPickerSelect'
,
target
)
break
default
:
...
...
packageCrowdFunding/components/activityDetail/activityDetail.js
View file @
842c2bc
...
...
@@ -313,8 +313,6 @@ Component({
handleOrderList
(
e
)
{
console
.
log
(
'点击了订单'
)
// let { target } = e.currentTarget.dataset
wx
.
$router
.
go
(
'activityList'
)
},
...
...
packageCrowdFunding/pages/activityPay/activityPay.js
View file @
842c2bc
...
...
@@ -103,8 +103,8 @@ Page({
this
.
setData
({
orderDetail
:
{
...
data
.
customer
,
...
data
// ...data.pay
Order
...
data
,
...
data
.
shopmallSubOrder
.
shopmall
Order
}
})
wx
.
$util
.
hideLoading
()
...
...
packageCrowdFunding/pages/activityPay/components/SelectGoods/index.js
View file @
842c2bc
// packageStoreAssistant/components/SelectGoods/index.js
Component
({
/**
* 组件的属性列表
*/
properties
:
{
show
:
Boolean
,
// goodsId: {
// type: Number,
// observer: function (val) {
// if (val) {
// this.getGoodscouponList(val);
// }
// },
// },
},
/**
* 组件的属性列表
*/
properties
:
{
show
:
Boolean
,
// goodsId: {
// type: Number,
// observer: function (val) {
// if (val) {
// this.getGoodscouponList(val);
// }
// },
// },
},
/**
* 页面的初始数据
*/
data
:
{
columns
:
[
'杭州'
,
'宁波'
,
'温州'
,
'嘉兴'
,
'湖州'
],
selectValue
:
''
,
},
/**
* 页面的初始数据
*/
data
:
{
columns
:
[{
type
:
1
,
name
:
'111'
},{
type
:
2
,
name
:
'222'
}
],
selectValue
:
''
,
},
methods
:
{
onChange
(
event
)
{
const
{
picker
,
value
,
index
}
=
event
.
detail
;
this
.
setData
({
selectValue
:
value
})
},
comfirm
()
{
const
{
selectValue
}
=
this
.
data
methods
:
{
onChange
(
event
)
{
const
{
picker
,
value
,
index
}
=
event
.
detail
;
this
.
setData
({
selectValue
:
value
})
},
comfirm
()
{
const
{
selectValue
}
=
this
.
data
this
.
triggerEvent
(
'setGoods'
,
selectValue
)
this
.
cancel
()
},
cancel
()
{
this
.
setData
({
show
:
false
})
},
}
this
.
triggerEvent
(
'setGoods'
,
selectValue
)
this
.
cancel
()
},
cancel
()
{
this
.
setData
({
show
:
false
})
},
}
})
\ No newline at end of file
})
packageCrowdFunding/pages/balanceNote/balanceNote.js
View file @
842c2bc
// packageCrowdFunding/pages/balanceNote/balanceNote.js
import
constantData
from
"../additionRecordOrder/constant/data"
;
import
Api
from
'../../api'
// import constantData from "../additionRecordOrder/constant/data";
import
constantData
from
'./constant/data'
const
app
=
getApp
()
import
api
from
"../../api"
;
Page
({
...
...
@@ -9,20 +11,121 @@ Page({
*/
data
:
{
orderObj
:
constantData
.
orderObj
,
showStatus
:
false
,
orderNoPopup
:
false
,
orderNoList
:[],
orderNoList
:
[],
orderListInfo
:
{},
orderNoInfo
:{}
orderNoInfo
:
{},
orderList
:
[
{
name
:
'客户姓名'
,
value
:
'customerName'
,
},
{
name
:
'活动名称'
,
value
:
'activityName'
,
},
{
name
:
'商品名称'
,
isMark
:
true
,
value
:
'goodsName'
},
{
name
:
'订单金额'
,
value
:
'activityPrice'
},
{
name
:
'定金支付时间'
,
value
:
'payedDate'
},
{
name
:
'订单编号'
,
value
:
'subOrderCode'
}
]
},
handleTransaction
()
{
this
.
setData
({
orderNoPopup
:
true
})
},
priceFilter
(
num
)
{
var
pow
=
Math
.
pow
(
10
,
2
)
return
(
Math
.
round
(
num
*
pow
)
/
pow
).
toFixed
(
2
)
},
initOrderInfo
()
{
const
{
orderObj
,
orderList
}
=
this
.
data
// 商品
console
.
log
(
app
.
globalData
?.
crowdFundingShopInfo
)
if
(
app
.
globalData
?.
crowdFundingShopInfo
&&
orderObj
?.
shopFormList
)
{
console
.
log
(
app
.
globalData
?.
crowdFundingShopInfo
?.
length
)
if
(
app
.
globalData
?.
crowdFundingShopInfo
?.
length
>
1
)
{
// 多商品
console
.
log
(
orderObj
)
orderObj
.
shopFormList
[
0
].
optionList
=
app
.
globalData
?.
crowdFundingShopInfo
.
map
(
item
=>
{
item
.
shopmallGoodsId
=
item
.
goodsId
return
item
})
}
else
{
// 单商品直接带出商品名称
// this.setData({
//
// })
}
}
this
.
setData
({
orderObj
})
},
showPopup
(
e
)
{
this
.
setData
({
showPickerSelect
:
true
,
orderInfo
:
this
.
data
.
orderListInfo
,
pickerObj
:
this
.
data
.
orderObj
.
shopFormList
[
0
]
})
},
confirm
()
{
const
{
orderInfo
,
orderListInfo
}
=
this
.
data
let
payParams
=
{...
orderInfo
,...
orderListInfo
}
wx
.
$router
.
go
(
'activityPay'
,{
payParams
})
const
{
orderInfo
,
orderListInfo
}
=
this
.
data
console
.
log
(
orderListInfo
)
if
(
!
orderInfo
||
!
orderInfo
.
outTradeNo
)
{
return
wx
.
$util
.
showToast
(
'请选择交易流水号'
)
}
let
{
default4SStoreInfo_crowdFunding
:
merchantInfo
}
=
wx
.
$util
.
getUserInfo
()
const
{
customerName
,
customerPhone
,
activityName
,
activityId
,
referrer
,
goodsName
,
userId
,
shopmallGoodsId
}
=
orderListInfo
let
params
=
{
outTradeNo
:
orderInfo
.
outTradeNo
,
customerName
,
customerPhone
,
activityName
,
activityId
,
goodsName
,
orderPaySource
:
3
,
employeeName
:
referrer
,
userId
,
shopmallGoodsId
,
merchantId
:
merchantInfo
.
merchantId
,
merchantName
:
merchantInfo
.
merchantName
}
api
.
createFullPayOrderAPI
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
let
{
code
,
data
,
message
}
=
res
if
(
code
==
'0'
)
{
// wx.$router.reLaunch
wx
.
$router
.
redirectTo
(
'activityPay'
,
{
orderCode
:
data
.
subOrderCode
,
outTradeNo
})
}
else
{
wx
.
$util
.
showToast
(
message
||
'接口异常'
)
}
})
},
back
()
{
wx
.
$router
.
back
()
...
...
@@ -34,10 +137,11 @@ Page({
},
onRoute
(
options
)
{
const
{
list
}
=
options
this
.
setData
({
orderListInfo
:
list
})
const
{
list
}
=
options
this
.
setData
({
orderListInfo
:
list
})
this
.
initOrderInfo
()
},
/**
...
...
packageCrowdFunding/pages/balanceNote/balanceNote.json
View file @
842c2bc
{
"usingComponents"
:
{
"activity-info"
:
"../../components/activityInfoCom/activityInfoCom"
,
"order-no-popup"
:
"/packageCrowdFunding/components/OrderNoPopup/OrderNoPopup"
"order-no-popup"
:
"/packageCrowdFunding/components/OrderNoPopup/OrderNoPopup"
,
"picker-select"
:
"/packageCrowdFunding/components/PickerSelect/PickerSelect"
},
"navigationStyle"
:
"custom"
}
packageCrowdFunding/pages/balanceNote/balanceNote.sass
View file @
842c2bc
...
...
@@ -67,3 +67,44 @@
margin
:
300rpx
auto
;
border-radius
:
12rpx
;
}
.order-box
{
width
:
702rpx
;
height
:
456rpx
;
background
:
#FFFFFF
;
box-shadow
:
0
10rpx
20rpx
0
#8192d6
3d
,
inset
0
-2rpx
6rpx
0
#ffffff
66
;
border-radius
:
16rpx
;
padding
:
32rpx
40rpx
;
box-sizing
:
border-box
;
margin
:
100rpx
auto
;
.order-title
{
font-weight
:
600
;
font-size
:
32rpx
;
color
:
#1B233D
;
line-height
:
48rpx
;
}
.order-item
{
font-size
:
26rpx
;
color
:
#7A8299
;
line-height
:
40rpx
;
margin-top
:
16rpx
;
text
{
&
:first-child
{
width
:
200rpx
;
display
:
inline-block
;
}
&
:last-child
{
color
:
#1B233D
;
}
&
.mark-text
{
color
:
#4466F0
;
}
}
}
}
packageCrowdFunding/pages/balanceNote/balanceNote.wxml
View file @
842c2bc
<!--packageCrowdFunding/pages/balanceNote/balanceNote.wxml-->
<wxs src="index.wxs" module="filter" />
<view class="big-img page-box isFullSucreen">
<view class="titleBox">
<view class="imgBox" bind:tap="back">
...
...
@@ -9,7 +10,7 @@
</view>
</view>
<view class="money">尾款金额
<view class="sum">¥{{
orderListInfo.tailPayment
}}</view>
<view class="sum">¥{{
filter.priceFilter(orderListInfo.tailPayment)
}}</view>
</view>
<view class="box" bind:tap="handleTransaction">交易流水号
{{orderInfo.outTradeNo}}
...
...
@@ -19,8 +20,19 @@
</view>
</view>
<view class="infoBox">
<activity-info orderInfo="{{orderListInfo}}"></activity-info>
<!--<view class="infoBox">-->
<!-- <activity-info orderInfo="{{orderListInfo}}"></activity-info>-->
<!--</view>-->
<view class="order-box">
<view class="order-title">订单信息</view>
<view class="order-item" wx:for="{{orderList}}" wx:key="index">
<text>{{item.name}}</text>
<text wx:if="{{item.isMark}}" class="mark-text" bindtap="showPopup">
{{orderListInfo[item.value]}} >
</text>
<text wx:else>{{orderListInfo[item.value]}}</text>
</view>
</view>
<view class="cofirm" bind:tap="confirm">
...
...
@@ -30,5 +42,12 @@
<order-no-popup
show="{{orderNoPopup}}"
title="请选择交易参考号"
orderInfo="{{order
No
Info}}"
orderInfo="{{order
List
Info}}"
orderNoList="{{orderNoList}}"/>
<picker-select
show="{{showPickerSelect}}"
title="请选择商品"
pickerObj="{{pickerObj}}"
orderInfo="{{orderListInfo}}"
/>
packageCrowdFunding/pages/balanceNote/constant/data.js
0 → 100644
View file @
842c2bc
const
orderObj
=
{
shopFormList
:
[
{
label
:
'商品名称'
,
pickerTitle
:
'商品'
,
name
:
'goodsName'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'shopmallGoodsId'
,
optionName
:
'goodsName'
,
flag
:
true
}
]
}
export
default
{
orderObj
,
}
packageCrowdFunding/pages/newOrder/newOrder.js
View file @
842c2bc
...
...
@@ -94,6 +94,8 @@ Page({
if
(
code
==
'0'
)
{
// wx.$router.reLaunch
wx
.
$router
.
redirectTo
(
'activityPay'
,
{
orderCode
:
data
.
subOrderCode
,
selectPayType
,
outTradeNo
:
data
.
outTradeNo
})
}
else
{
wx
.
$util
.
showToast
(
message
||
'接口异常'
)
}
})
},
...
...
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