Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
points-mall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d7402be0
authored
Sep 01, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
积分
1 parent
4c11ee9f
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
223 additions
and
61 deletions
components/Popup/Popup.js
components/Popup/Popup.wxml
packageIndex/pages/bankAccount/add/add.js
packageIndex/pages/integral/index/components/open/index.js
packageIndex/pages/integral/index/components/open/index.wxml
packageIndex/pages/integral/index/components/profitList/index.js
packageIndex/pages/integral/index/components/profitList/index.wxml
packageIndex/pages/integral/index/index.js
packageIndex/pages/integral/index/index.wxml
packageIndex/pages/integral/withdrawal/components/PickerBankCard/PickerBankCard.js
packageIndex/pages/integral/withdrawal/components/PickerBankCard/PickerBankCard.json
packageIndex/pages/integral/withdrawal/components/PickerBankCard/PickerBankCard.scss
packageIndex/pages/integral/withdrawal/components/PickerBankCard/PickerBankCard.wxml
packageIndex/pages/integral/withdrawal/withdrawal.js
packageIndex/pages/integral/withdrawal/withdrawal.json
packageIndex/pages/integral/withdrawal/withdrawal.wxml
packageIndex/pages/integral/withdrawalDetail/withdrawalDetail.js
packageIndex/pages/integral/withdrawalDetail/withdrawalDetail.wxml
components/Popup/Popup.js
View file @
d7402be
...
...
@@ -50,6 +50,10 @@ Component({
type
:
String
,
value
:
''
},
bodyColor
:{
type
:
String
,
value
:
''
}
},
/**
...
...
components/Popup/Popup.wxml
View file @
d7402be
<view class="popup " hidden="{{!showPopup}}" catchtouchmove="noScroll">
<view class="popup "
hidden="{{!showPopup}}" catchtouchmove="noScroll">
<view class="popup-bg" bindtap="hidePopup"></view>
<view class="popup-content {{close?'close':''}}" style="height:{{height}}">
<view class="popup-content {{close?'close':''}}" style="height:{{height}}
;background:{{bodyColor}}
">
<block wx:if="{{title}}">
<view class="popup-title text-center" style="background:{{headerColor}}">{{title}}
<view class="popup-close" wx:if="{{showCloseButton}}" bindtap="hidePopup">
...
...
packageIndex/pages/bankAccount/add/add.js
View file @
d7402be
...
...
@@ -157,7 +157,6 @@ Page({
})
},
repeatConfirm
(
e
)
{
console
.
log
(
e
.
detail
)
let
{
value
}
=
e
.
detail
...
...
@@ -188,9 +187,9 @@ Page({
this
.
setData
({
[
`formData.
${
key
}
`
]:
''
})
this
.
check
()
},
async
upload
(
e
)
{
console
.
log
(
1111
)
const
{
item
:
{
key
,
...
...
packageIndex/pages/integral/index/components/open/index.js
View file @
d7402be
...
...
@@ -10,6 +10,10 @@ Component({
observer
(
n
){
}
},
userInfo
:{
type
:
Object
,
value
:
{},
}
},
...
...
packageIndex/pages/integral/index/components/open/index.wxml
View file @
d7402be
...
...
@@ -17,7 +17,7 @@
<view class="have-open">
<view class="my-integral">
<view class="title --fontColor flex">
<glsx-image webp src="/integral/logo.png" class="gold"></glsx-image>
宋慧
的总积分
<glsx-image webp src="/integral/logo.png" class="gold"></glsx-image>
{{userInfo.nickName}}
的总积分
</view>
<view class="integral">
{{scoreSummary.currentScore}}
...
...
packageIndex/pages/integral/index/components/profitList/index.js
View file @
d7402be
...
...
@@ -32,17 +32,18 @@ Component({
*/
methods
:
{
handleDetail
(
e
)
{
console
.
log
(
e
)
let
{
id
,
infoname
infoname
,
channelsource
}
=
e
.
currentTarget
.
dataset
;
if
(
infoname
==
'购物兑换'
||
infoname
==
'售后返还'
)
{
return
}
wx
.
p
.
router
.
go
(
'/packageIndex/pages/integral/withdrawalDetail/withdrawalDetail'
,
{
id
id
,
channelSource
:
channelsource
}
);
},
...
...
packageIndex/pages/integral/index/components/profitList/index.wxml
View file @
d7402be
...
...
@@ -5,7 +5,7 @@
<block wx:if="{{list.length}}">
<scroll-view class="list_data_widget" scroll-y="{{true}}" bindrefresherrefresh="bindrefresherrefresh" bindscrolltolower="scrollonReachBottom" refresher-threshold="104" refresher-triggered="{{triggered}}">
<block wx:for="{{list}}" wx:key="index">
<view class="element" bind:tap="handleDetail" data-id="{{item.id}}" data-infoName="{{item.infoName}}">
<view class="element" bind:tap="handleDetail" data-id="{{item.id}}" data-infoName="{{item.infoName}}"
data-channelSource="{{item.channelSource}}"
>
<view class="title">{{item.infoName}}
<view class="right-icon-box">
</view>
...
...
packageIndex/pages/integral/index/index.js
View file @
d7402be
...
...
@@ -11,11 +11,11 @@ Page({
triggered
:
true
,
isFlag
:
true
,
scoreSummary
:
{
currentScore
:
345333.00
,
//当前积分
bankCardSize
:
4
,
totalGoodExchangeScore
:
100
,
//累计兑换积分
totalRewardScore
:
200
,
//累计收益积分
totalWithdrawalScore
:
400
,
//累计提现积分
currentScore
:
''
,
//当前积分
bankCardSize
:
''
,
totalGoodExchangeScore
:
''
,
//累计兑换积分
totalRewardScore
:
''
,
//累计收益积分
totalWithdrawalScore
:
''
,
//累计提现积分
},
open
:
false
,
staffBankFlag
:
false
,
...
...
packageIndex/pages/integral/index/index.wxml
View file @
d7402be
...
...
@@ -5,7 +5,7 @@
<have-no-ope wx:if="{{!open}}" scoreSummary="{{scoreSummary}}">
<profit-list list="{{scoreList}}" triggered="{{triggered}}" nothing="{{nothing}}" bindscrollonReachBottom="scrollonReachBottom"></profit-list>
</have-no-ope>
<have-open wx:else scoreSummary="{{scoreSummary}}">
<have-open wx:else scoreSummary="{{scoreSummary}}"
userInfo="{{userInfo}}"
>
<profit-list list="{{scoreList}}" triggered="{{triggered}}" nothing="{{nothing}}" bindscrollonReachBottom="scrollonReachBottom"></profit-list>
</have-open>
...
...
packageIndex/pages/integral/withdrawal/components/PickerBankCard/PickerBankCard.js
0 → 100644
View file @
d7402be
// packageIndex/pages/integral/withdrawal/components/PickerBankCard/PickerBankCard.js
Component
({
/**
* 组件的属性列表
*/
properties
:
{
showBank
:{
type
:
Boolean
,
value
:
true
,
},
bankList
:{
type
:
Array
,
value
:[]
}
},
/**
* 组件的初始数据
*/
data
:
{
activeIndex
:
0
},
/**
* 组件的方法列表
*/
methods
:
{
pickerBankCard
(
e
){
console
.
log
(
e
)
let
{
index
,
item
}
=
e
.
currentTarget
.
dataset
;
this
.
setData
({
activeIndex
:
index
})
this
.
triggerEvent
(
'PickerChange'
,
item
)
},
goBank
(){
const
thisPage
=
wx
.
p
.
router
.
getPageInstance
()
thisPage
.
goBank
()
}
}
})
\ No newline at end of file
packageIndex/pages/integral/withdrawal/components/PickerBankCard/PickerBankCard.json
0 → 100644
View file @
d7402be
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
packageIndex/pages/integral/withdrawal/components/PickerBankCard/PickerBankCard.scss
0 → 100644
View file @
d7402be
/* packageIndex/pages/integral/withdrawal/components/PickerBankCard/PickerBankCard.wxss */
.box
{
background
:
#FFFFFF
;
border-radius
:
24rpx
;
margin
:
32rpx
;
}
.content
{
height
:
528rpx
;
overflow-y
:
auto
;
.content-item
{
padding
:
24rpx
32rpx
;
border-bottom
:
4rpx
solid
#F0F0F0
;
position
:relative
;
.bankName
{
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#333333
;
margin-bottom
:
8rpx
;
}
.bankNum
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#858A94
;
line-height
:
36rpx
;
}
.check
{
width
:
32rpx
;
height
:
32rpx
;
position
:
absolute
;
top
:
25rpx
;
right
:
18rpx
;
}
}
}
.add-box
{
padding
:
24rpx
32rpx
;
display
:
flex
;
align-items
:
center
;
position
:
relative
;
.card-bag
{
width
:
40rpx
;
height
:
40rpx
;
margin-right
:
16rpx
;
}
.title
{
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#333333
;
}
.arrow
{
position
:
absolute
;
top
:
24rpx
;
right
:
32rpx
;
}
}
\ No newline at end of file
packageIndex/pages/integral/withdrawal/components/PickerBankCard/PickerBankCard.wxml
0 → 100644
View file @
d7402be
<!--packageIndex/pages/integral/withdrawal/components/PickerBankCard/PickerBankCard.wxml-->
<popup show="{{showBank}}" show-close-button="{{true}}" showFooter="{{false}}" headerColor="#F7F7F7" bodyColor="#F7F7F7" title="选择到账银行卡" bindconfirm="onConfirmPopup" height="800rpx;">
<view class='box'>
<view class="content">
<view class="content-item" wx:for="{{bankList}}" key="index" data-item="{{item}}" data-index="{{index}}" bind:tap="pickerBankCard">
<view class="bankName">{{item.bankName}}</view>
<view class="bankNum">{{item.bankNum}}({{item.bankUserName}})</view>
<block wx:if="{{activeIndex == index}}">
<glsx-image webp src="/integral/check.png" class="check"></glsx-image>
</block>
</view>
</view>
<view class="add-box" bind:tap="goBank">
<glsx-image webp src="/integral/card-bag.png" class="card-bag"></glsx-image>
<view class="title">添加银行卡提现</view>
<mp-icon icon="arrow" color="#B1B1B3" class="arrow" size="{{12}}"></mp-icon>
</view>
</view>
</popup>
packageIndex/pages/integral/withdrawal/withdrawal.js
View file @
d7402be
...
...
@@ -6,6 +6,7 @@ Page({
*/
data
:
{
navStyle
:
"background-color: transparent;"
,
showBank
:
true
,
agree
:
false
,
isConfig
:
true
,
showAuthDialog
:
false
,
...
...
@@ -102,15 +103,16 @@ Page({
wx
.
p
.
wxApi
.
showToast
(
err
)
})
},
showBankModel
()
{
this
.
setData
({
showBank
:
true
})
},
bindPickerChange
(
e
)
{
console
.
log
(
e
.
detail
)
const
{
value
}
=
e
.
detail
let
bankInfo
=
this
.
data
.
bankList
[
value
]
bankInfo
.
bankNum
=
bankInfo
.
bankNumber
.
replace
(
/^
(?:\d
+
)(
.
{4})
$/
,
'**** **** **** $1'
)
let
bankInfo
=
e
.
detail
this
.
setData
({
bankInfo
bankInfo
,
showBank
:
false
},
()
=>
{
this
.
checkbankConfig
()
this
.
getAgreementUrl
()
...
...
@@ -124,8 +126,8 @@ Page({
wx
.
showModal
({
title
:
'提示'
,
content
:
'请上传您持卡人对应的身份证正反面照片!'
,
confirmText
:
'确
定
'
,
cancelText
:
'
知道了
'
,
confirmText
:
'确
认上传
'
,
cancelText
:
'
取消
'
,
confirmColor
:
'#F13C3D'
}).
then
(
res
=>
{
if
(
res
.
confirm
)
{
...
...
@@ -136,6 +138,14 @@ Page({
}
})
},
goBank
(){
let
{
score
}
=
this
.
data
;
wx
.
p
.
router
.
go
(
'/packageIndex/pages/bankAccount/add/add'
,
{
score
})
},
toSumbitData
()
{
let
{
sumbitScore
,
...
...
@@ -143,7 +153,7 @@ Page({
bankInfo
:
{
id
},
isConfig
isConfig
}
=
this
.
data
;
if
(
!
sumbitScore
)
return
wx
.
p
.
wxApi
.
showToast
(
'请输入提现积分'
)
const
checkAgree
=
this
.
checkAgree
()
...
...
packageIndex/pages/integral/withdrawal/withdrawal.json
View file @
d7402be
{
"usingComponents"
:
{
"auth-setting"
:
"./components/authSetting/authSetting"
"auth-setting"
:
"./components/authSetting/authSetting"
,
"picker-bank-card"
:
"./components/PickerBankCard/PickerBankCard"
},
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"积分提现"
...
...
packageIndex/pages/integral/withdrawal/withdrawal.wxml
View file @
d7402be
...
...
@@ -29,11 +29,11 @@
<view class="bank-wrap">
<view class="text">提现至:</view>
<view class="select">
<
picker bindchange="bindPickerChange
" range-key="bankName" range="{{bankList}}">
<
view bind:tap="showBankModel
" range-key="bankName" range="{{bankList}}">
<view class="bankName">{{bankInfo.bankName}}</view>
<view class="bankNumber">{{bankInfo.bankNum}}</view>
<mp-icon class="icon-right" icon="arrow" size="{{13}}" color="#333333"></mp-icon>
</
picker
>
</
view
>
</view>
</view>
<view class="auth_box">
...
...
@@ -51,4 +51,5 @@
<text catchtap="jump" data-url="privacy">《免责协议》</text>
</view>
</Dialog>
<picker-bank-card showBank="{{showBank}}" bankList="{{bankList}}" bindPickerChange="bindPickerChange"></picker-bank-card>
packageIndex/pages/integral/withdrawalDetail/withdrawalDetail.js
View file @
d7402be
...
...
@@ -12,13 +12,14 @@ Page({
*/
onLoad
(
options
)
{
wx
.
p
.
router
.
getRouterParams
().
then
(
params
=>
{
console
.
log
(
params
)
wx
.
p
.
api
.
withdrawalApi
.
getScoreDetail
({
id
:
params
.
id
}).
then
(
res
=>
{
if
(
res
.
code
==
0
){
this
.
setData
({
detailInfo
:
res
.
data
detailInfo
:
res
.
data
,
channelSource
:
params
.
channelSource
})
}
...
...
packageIndex/pages/integral/withdrawalDetail/withdrawalDetail.wxml
View file @
d7402be
<!--packageStoreAssistant/packageMine/pages/withdrawalDetail/withdrawalDetail.wxml-->
<view class="container">
<view class="box">
<view class="title">关联订单信息</view>
<view class="col">
<view>订单编号</view>
<view>{{detailInfo.orderCode?detailInfo.orderCode:'-'}}</view>
</view>
<view class="col">
<view>积分变动时间</view>
<view>{{detailInfo.updatedTime?detailInfo.updatedTime:'-'}}</view>
</view>
<view class="col">
<view>客户姓名</view>
<view>{{detailInfo.customerName?detailInfo.customerName:'-'}}</view>
</view>
<view class="col">
<view>商品名称</view>
<view>{{detailInfo.goodsName?detailInfo.goodsName:'-'}}</view>
</view>
<view class="col">
<view>总价</view>
<view>{{detailInfo.orderMoney?'¥'+detailInfo.orderMoney:'0'}}</view>
</view>
<block wx:if="{{detailInfo.infoName=='退款抵扣'}}">
<view class="col border-top ">
<view>退款类型</view>
<view>{{detailInfo.refundType?detailInfo.refundType==1?'全部退款':'部分退款':'-'}}</view>
</view>
<view class="col">
<view>退回积分</view>
<view>{{detailInfo.rewardScore?detailInfo.rewardScore:'0'}}</view>
</view>
<view class="title">{{detailInfo.infoName=='积分收益'&&(channelSource==2||channelSource==3)?'积分明细':'关联订单信息'}}</view>
<block wx:if="{{detailInfo.infoName=='积分收益'&&(channelSource==2||channelSource==3)}}">
<view class="col">
<view>积分来源</view>
<view>{{channelSource==2?'续保返现':'市场费'}}</view>
</view>
<view class="col">
<view>积分变动</view>
<view>{{detailInfo.updatedTime?detailInfo.updatedTime:'-'}}</view>
</view>
</block>
<block wx:else>
<view class="col">
<view>订单编号</view>
<view>{{detailInfo.orderCode?detailInfo.orderCode:'-'}}</view>
</view>
<view class="col">
<view>积分变动时间</view>
<view>{{detailInfo.updatedTime?detailInfo.updatedTime:'-'}}</view>
</view>
<view class="col">
<view>客户姓名</view>
<view>{{detailInfo.customerName?detailInfo.customerName:'-'}}</view>
</view>
<view class="col">
<view>商品名称</view>
<view>{{detailInfo.goodsName?detailInfo.goodsName:'-'}}</view>
</view>
<view class="col">
<view>总价</view>
<view>{{detailInfo.orderMoney?'¥'+detailInfo.orderMoney:'0'}}</view>
</view>
<block wx:if="{{detailInfo.infoName=='退款抵扣'}}">
<view class="col border-top ">
<view>退款类型</view>
<view>{{detailInfo.refundType?detailInfo.refundType==1?'全部退款':'部分退款':'-'}}</view>
</view>
<view class="col">
<view>退回积分</view>
<view>{{detailInfo.rewardScore?detailInfo.rewardScore:'0'}}</view>
</view>
</block>
</block>
</view>
<view class="box" wx:if="{{detailInfo.infoName=='手动抵扣'||detailInfo.infoName=='撤销抵扣'}}">
<view class="title">操作信息</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