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 55169cb6
authored
Aug 15, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
积分提现
1 parent
52f32d8a
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
556 additions
and
9 deletions
app.json
packageIndex/pages/integral/index/components/noOpen/index.wxml
packageIndex/pages/integral/index/components/open/index.scss
packageIndex/pages/integral/index/components/open/index.wxml
packageIndex/pages/integral/index/index.js
packageIndex/pages/integral/index/index.scss
packageIndex/pages/integral/index/index.wxml
packageIndex/pages/integral/toCash/toCash.js
packageIndex/pages/integral/toCash/toCash.json
packageIndex/pages/integral/toCash/toCash.scss
packageIndex/pages/integral/toCash/toCash.wxml
packageIndex/pages/integral/withdrawalSuccess/withdrawalSuccess.js
packageIndex/pages/integral/withdrawalSuccess/withdrawalSuccess.json
packageIndex/pages/integral/withdrawalSuccess/withdrawalSuccess.scss
packageIndex/pages/integral/withdrawalSuccess/withdrawalSuccess.wxml
project.private.config.json
app.json
View file @
55169cb
...
@@ -53,7 +53,9 @@
...
@@ -53,7 +53,9 @@
"pages/integral/withdrawal/withdrawal"
,
"pages/integral/withdrawal/withdrawal"
,
"pages/bankAccount/add/add"
,
"pages/bankAccount/add/add"
,
"pages/bankAccount/list/list"
,
"pages/bankAccount/list/list"
,
"pages/integral/withdrawalNote/withdrawalNote"
"pages/integral/withdrawalNote/withdrawalNote"
,
"pages/integral/toCash/toCash"
,
"pages/integral/withdrawalSuccess/withdrawalSuccess"
]
]
},
},
{
{
...
...
packageIndex/pages/integral/index/components/noOpen/index.wxml
View file @
55169cb
...
@@ -39,15 +39,16 @@
...
@@ -39,15 +39,16 @@
我要提现
我要提现
</view>
</view>
</view>
</view>
<view class="accumulative-content">
<view class="content flex">
<view class="content flex">
<view wx:for="{{havoNOData}}" wx:key="index" wx:for-item="i" class="c-item">
<view wx:for="{{havoNOData}}" wx:key="index" wx:for-item="i" class="c-item">
<view class="value">{{i.value}}</view>
<view class="value">{{i.value}}</view>
<view class="text">{{i.text}}</view>
<view class="text">{{i.text}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<
/view
>
<
slot></slot
>
</view>
</view>
</block>
</block>
</view>
</view>
packageIndex/pages/integral/index/components/open/index.scss
View file @
55169cb
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
padding
:
24rpx
0
;
padding
:
24rpx
0
;
.have-open
{
.have-open
{
margin
:
0
44rpx
36
rpx
54rpx
;
margin
:
0
44rpx
24
rpx
54rpx
;
.my-integral
{
.my-integral
{
margin-bottom
:
36rpx
;
margin-bottom
:
36rpx
;
...
...
packageIndex/pages/integral/index/components/open/index.wxml
View file @
55169cb
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<slot></slot>
</view>
</view>
</block>
</block>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/integral/index/index.js
View file @
55169cb
...
@@ -7,7 +7,7 @@ Page({
...
@@ -7,7 +7,7 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
open
:
fals
e
,
open
:
tru
e
,
listData
:
[{
listData
:
[{
id
:
2104467
,
id
:
2104467
,
infoName
:
"积分兑换"
,
infoName
:
"积分兑换"
,
...
...
packageIndex/pages/integral/index/index.scss
View file @
55169cb
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
border
:
2rpx
solid
#FFFFFF
;
border
:
2rpx
solid
#FFFFFF
;
border-radius
:
24rpx
;
border-radius
:
24rpx
;
padding
:
32rpx
28rpx
;
padding
:
32rpx
28rpx
;
margin
:
142rpx
20rpx
0
;
margin
:
20rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.title_wrap
{
.title_wrap
{
...
...
packageIndex/pages/integral/index/index.wxml
View file @
55169cb
<!--packageIndex/pages/integral/index/index.wxml-->
<!--packageIndex/pages/integral/index/index.wxml-->
<!--积分中心 -->
<!--积分中心 -->
<view class="integral-container {{!open?'bgF':''}}">
<view class="integral-container {{!open?'bgF':''}}">
<have-no-ope></have-no-ope>
<!-- <have-no-ope>
<!-- <have-open></have-open> -->
<view class="list_widget">
<view class="list_widget {{open?'bgt':''}}">
<view class="title_wrap">
收益明细
</view>
<view class="list_data_widget">
<block wx:for="{{listData}}" wx:key="index">
<view class="element" bind:tap="handleDetail" data-id="{{item.id}}">
<view class="title">{{item.infoName}} <view class="right-icon-box">
</view>
</view>
<view class="date">{{item.updatedTime}}</view>
<view class="price {{item.type==0?'':'blackColor'}}">
<text wx:if="{{item.infoName==='积分商品售后'}}" class="tip">退还</text>
<text class="mini">{{item.type==0?'+':'-'}}</text>
<text>{{item.rewardScore}}</text>
<glsx-image mode="widthFix" class="right-arrow" src="/integral/arrow.png" />
</view>
</view>
</block>
<view wx:if="{{listData.length}}" class="no_more_tip">没有更多啦</view>
<view wx:else class="no_more_tip">暂无收益明细</view>
</view>
</view> -->
<!-- </have-no-ope> -->
<have-open>
<view class="list_widget">
<view class="title_wrap">
<view class="title_wrap">
收益明细
收益明细
</view>
</view>
...
@@ -26,4 +50,6 @@
...
@@ -26,4 +50,6 @@
<view wx:else class="no_more_tip">暂无收益明细</view>
<view wx:else class="no_more_tip">暂无收益明细</view>
</view>
</view>
</view>
</view>
</have-open>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/integral/toCash/toCash.js
0 → 100644
View file @
55169cb
// packageIndex/pages/integral/toCash/toCash.js
Page
({
/**
* 页面的初始数据
*/
data
:
{
navStyle
:
"background-color: transparent;"
,
sumbitScore
:
''
,
bankList
:
[{
"id"
:
34
,
"staffId"
:
16550
,
"bankUserName"
:
"望周知"
,
"bankName"
:
"中国邮政储蓄银行"
,
"bankNumber"
:
"6555555555555555555"
,
"bankPhone"
:
"18955555555"
,
"idCardNo"
:
"341181199508252222"
,
"idCardFront"
:
null
,
"idCardBack"
:
null
,
"state"
:
1
},
{
"id"
:
33
,
"staffId"
:
16550
,
"bankUserName"
:
"望周知"
,
"bankName"
:
"招商银行卡"
,
"bankNumber"
:
"6555555555555555555"
,
"bankPhone"
:
"18955555555"
,
"idCardNo"
:
"341181199508253332"
,
"idCardFront"
:
null
,
"idCardBack"
:
null
,
"state"
:
1
}
]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
},
bindPickerChange
(
e
)
{
console
.
log
(
e
.
detail
)
// const {
// value
// } = e.detail, {
// item: {
// key,
// pickerKey,
// pickerData
// }
// } = e.currentTarget.dataset
},
toSumbitData
()
{
if
(
this
.
submit
)
return
wx
.
$api
.
showToast
(
'有一笔兑换正在进行'
)
let
{
sumbitScore
,
score
:
{
existWechatMotivationWithdrawal
}
}
=
this
.
data
let
withDrawType
=
3
const
money
=
this
.
accSub
(
Number
(
sumbitScore
),
0
)
if
(
money
<=
0
)
return
wx
.
$api
.
showToast
(
`您的积分不足,请确认后重新申请兑换`
)
this
.
comfirmSumbit
(
sumbitScore
,
withDrawType
)
},
// 提现确认模块
comfirmSumbit
(
sumbitScore
,
withDrawType
,
rateQuery
=
{},
sourceFrom
)
{
let
{
tabIndex
,
tabData
,
}
=
this
.
data
;
Dialog
.
confirm
({
title
:
'提示'
,
message
:
`请确认是否将
${
sumbitScore
}
积分进行兑换`
,
}).
then
(()
=>
{
if
(
this
.
submit
)
return
this
.
submit
=
true
wx
.
$api
.
showLoading
(
'提交中'
)
MineApi
.
WithdrawalApi
({
withdrawalScore
:
sumbitScore
,
withDrawType
,
sourceFrom
,
wechatAppId
:
appId
,
withdrawalSource
:
3
,
...
rateQuery
}).
then
(
res
=>
{
wx
.
hideLoading
();
if
(
res
.
code
==
0
)
{
wx
.
$eventbus
.
emit
(
'REFRESH_WITHDRALWAL'
)
wx
.
$router
.
redirectTo
(
'/packageStoreAssistant/packageMine/pages/withdrawalSuccess/withdrawalSuccess'
,
{
title
:
tabData
[
tabIndex
]
})
}
else
{
wx
.
$api
.
showToast
(
res
.
message
)
this
.
submit
=
false
}
}).
catch
((
err
)
=>
{
wx
.
$api
.
showToast
(
JSON
.
stringify
(
err
))
this
.
submit
=
false
})
}).
catch
(()
=>
{
this
.
submit
=
false
});
},
accSub
(
arg1
,
arg2
)
{
let
r1
,
r2
,
m
,
n
;
try
{
r1
=
arg1
.
toString
().
split
(
"."
)[
1
].
length
;
}
catch
(
e
)
{
r1
=
0
;
}
try
{
r2
=
arg2
.
toString
().
split
(
"."
)[
1
].
length
;
}
catch
(
e
)
{
r2
=
0
;
}
m
=
Math
.
pow
(
10
,
Math
.
max
(
r1
,
r2
));
//last modify by deeka //动态控制精度长度
n
=
(
r1
>=
r2
)
?
r1
:
r2
;
return
((
arg1
*
m
-
arg2
*
m
)
/
m
).
toFixed
(
n
);
},
toTixianAll
()
{
let
{
score
:
{
existBankWithdrawal
,
bankWithdrawalScore
,
wechatWithdrawalScore
}
}
=
this
.
data
,
withdrawalScore
=
wechatWithdrawalScore
this
.
setData
({
sumbitScore
:
withdrawalScore
})
},
handleInput
(
e
)
{
var
value
=
e
.
detail
.
value
sumbitScore
=
this
.
priceVerify
(
value
,
withdrawalScore
)
this
.
setData
({
sumbitScore
:
value
})
},
// 价格输入校验规则(提现积分值:最小值需大于0)
priceVerify
(
price
,
max
,
min
=
0
)
{
let
result
=
0
// 1.限制小数点为2位
price
=
price
.
replace
(
/
[^\d
.
]
/g
,
""
)
price
=
price
.
replace
(
/^
(\-)
*
(\d
+
)\.(\d\d)
.*$/
,
'$1$2.$3'
)
// 2.禁止第一位为小数点
if
(
price
.
indexOf
(
'.'
)
==
0
)
{
price
=
''
}
// 3.如果第一位是0,那第二位开始禁止为数值,只可以为小数点
if
(
price
.
indexOf
(
'0'
)
==
0
&&
price
.
length
>
1
)
{
if
(
price
.
indexOf
(
'.'
)
!=
1
)
{
price
=
'0'
}
if
(
price
[
2
]
==
'.'
)
{
price
=
'0.'
}
}
// if (price.indexOf('.') != -1) {
// price = price.slice(0, price.indexOf('.'))
// }
result
=
price
// 4.判断最大值和最小值
if
(
price
)
{
price
=
Number
(
price
)
max
=
Number
(
max
)
if
(
max
&&
price
>
max
)
{
result
=
max
}
if
(
min
&&
price
<
min
)
{
result
=
min
}
}
return
result
},
navbarReady
(
e
)
{
let
{
height
}
=
e
.
detail
this
.
setData
({
navHeight
:
height
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
()
{
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
()
{
}
})
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/integral/toCash/toCash.json
0 → 100644
View file @
55169cb
{
"usingComponents"
:
{},
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"积分提现"
}
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/integral/toCash/toCash.scss
0 → 100644
View file @
55169cb
/* packageIndex/pages/integral/toCash/toCash.wxss */
.to-cash-container
{
background-image
:
linear-gradient
(
180deg
,
#FCFDFE
0%
,
#F8F9FC
100%
);
.flex
{
display
:
flex
;
align-items
:
center
;
}
.navigation
{
width
:
750rpx
;
height
:
474rpx
;
background-size
:
100%
;
background-repeat
:
no-repeat
;
background-image
:
url('https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/integral/bg.png')
;
.bar-text
{
font-weight
:
500
;
font-size
:
34rpx
;
color
:
#0A0D14
;
text-align
:
center
;
}
.back
{
width
:
40rpx
;
height
:
40rpx
;
position
:
absolute
;
left
:
32rpx
;
top
:
50%
;
transform
:
translateY
(
-50%
);
z-index
:
8
;
}
}
.to-cash
{
position
:
relative
;
padding
:
32rpx
;
.text
{
font-weight
:
400
;
font-size
:
26rpx
;
color
:
#3F444D
;
margin-bottom
:
16rpx
;
}
.value
{
font-weight
:
600
;
font-size
:
64rpx
;
color
:
#0A0D14
;
line-height
:
72rpx
;
}
.operate-wrap
{
height
:
272rpx
;
background
:
#FFFFFF
;
box-shadow
:
0
4rpx
20rpx
0
#000000
17
;
border-radius
:
24rpx
;
margin-top
:
36rpx
;
padding
:
32rpx
;
box-sizing
:
border-box
;
.info
{
font-weight
:
400
;
font-size
:
32rpx
;
color
:
#292D33
;
margin-bottom
:
32rpx
;
}
.operate
{
display
:
flex
;
align-items
:
center
;
padding
:
24rpx
0
22rpx
0
;
border-bottom
:
2rpx
solid
#E6E6E6
;
position
:
relative
;
.symbol
{
font-weight
:
700
;
font-size
:
48rpx
;
color
:
#333333
;
margin-right
:
16rpx
;
}
.int_widget
{
width
:
400rpx
;
}
.placeStyle
{
font-weight
:
500
;
font-size
:
48rpx
;
color
:
#CCCCCC
;
}
.disintClass
{
font-weight
:
500
;
font-size
:
48rpx
;
color
:
#333333
;
}
.submit
{
position
:
absolute
;
right
:
32rpx
;
top
:
48rpx
;
font-size
:
24rpx
;
color
:
#2B69FF
;
line-height
:
36rpx
;
}
}
}
.bank-wrap
{
.text
{
margin
:
96rpx
0
24rpx
32rpx
;
}
.select
{
width
:
686rpx
;
height
:
136rpx
;
background
:
#FFFFFF
;
border-radius
:
24rpx
;
padding
:
32rpx
24rpx
;
box-sizing
:
border-box
;
.bankName
{
font-weight
:
500
;
font-size
:
30rpx
;
color
:
#292D33
;
margin-bottom
:
12rpx
}
.bankNumber
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#292D33
;
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/integral/toCash/toCash.wxml
0 → 100644
View file @
55169cb
<!--packageIndex/pages/integral/toCash/toCash.wxml-->
<!-- 积分提现-->
<view class="to-cash-container">
<!-- 导航栏 -->
<view class="navigation">
<navigation-bar bindnavbarReady="navbarReady" custom="{{true}}" navStyle="{{navStyle}}" page-title="积分中心">
<view class="nav-wrap">
<view class="back" bindtap="back">
<glsx-image webp src="/integral/back.png" class="icon"></glsx-image>
</view>
<view class="bar-text">积分提现</view>
</view>
</navigation-bar>
</view>
<view class="to-cash" style="top:{{navHeight}}px; margin-top:-474rpx">
<view class="text">当前可提现积分</view>
<view class="value">1680</view>
<view class="operate-wrap">
<view class="info">本次提现积分</view>
<view class="operate">
<view class="symbol">¥</view>
<view class="int_widget flex_scb dis_int_widget">
<input type="digit" value="{{sumbitScore}}" bindinput="handleInput" class="disintClass" maxlength="20" placeholder="请输入" placeholder-class="placeStyle"/>
</view>
<view class="submit" bind:tap="toTixianAll">全部提现</view>
</view>
</view>
<view class="bank-wrap">
<view class="text">提现至:</view>
<view class="select">
<picker bindchange="bindPickerChange" range-key="bankName" range="{{bankList}}">
<view class="bankName">招商银行卡</view>
<view class="bankNumber">**** **** **** 5316</view>
<mp-icon></mp-icon>
</picker>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/integral/withdrawalSuccess/withdrawalSuccess.js
0 → 100644
View file @
55169cb
Page
({
data
:
{
},
onLoad
(
options
)
{
console
.
log
(
options
)
this
.
setData
({
title
:
options
.
title
})
},
toWatchNote
(){
// wx.p.router.go('/packageStoreAssistant/packageMine/pages/withdrawalNote/withdrawalNote')
},
toBackMine
(){
// wx.p.router.reLaunch('/pages/tab/storeAssistant/index?tabIndex=2')
}
})
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/integral/withdrawalSuccess/withdrawalSuccess.json
0 → 100644
View file @
55169cb
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"积分兑换"
}
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/integral/withdrawalSuccess/withdrawalSuccess.scss
0 → 100644
View file @
55169cb
/* packageIndex/pages/integral/withdrawalSuccess/withdrawalSuccess.wxss */
page
{
background
:
#FFFFFF
;
}
.container
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.icon
{
width
:
400rpx
;
height
:
400rpx
;
margin-top
:
64rpx
;
}
.max_text
{
font-weight
:
600
;
font-size
:
40rpx
;
color
:
#1B233D
;
margin-top
:
16rpx
;
margin-bottom
:
24rpx
;
}
.tip_text
{
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#7A8299
;
}
.btn_group
{
margin-top
:
128rpx
;
.btn_left
{
width
:
316rpx
;
height
:
88rpx
;
background
:
#FFFFFF
;
border
:
2rpx
solid
#DCDFE6
;
border-radius
:
20rpx
;
font-weight
:
400
;
font-size
:
32rpx
;
color
:
#1B233D
;
}
.btn_right
{
width
:
316rpx
;
height
:
88rpx
;
background-image
:
linear-gradient
(
-60deg
,
#556AF5
0%
,
#7197FF
100%
);
border-radius
:
20rpx
;
font-weight
:
500
;
font-size
:
32rpx
;
color
:
#FFFFFF
;
margin-left
:
22rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/integral/withdrawalSuccess/withdrawalSuccess.wxml
0 → 100644
View file @
55169cb
<view class="container">
<!-- <glsx-image mode="widthFix" class="icon" src="store-assistant/success_icon_1.png" /> -->
<view class="max_text">提交成功</view>
<view class="tip_text" wx:if="{{title=='微信兑换'}}">您的积分兑换申请已成功提交!</view>
<!-- <view class="tip_text" wx:else>您的银行卡积分兑换申请已成功提交!</view> -->
<view class="btn_group flex_cc">
<view class="btn_left flex_cc" bind:tap="toWatchNote">查看兑换记录</view>
<view class="btn_right flex_cc" bind:tap="toBackMine">返回我的积分</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
project.private.config.json
View file @
55169cb
...
@@ -28,6 +28,13 @@
...
@@ -28,6 +28,13 @@
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
{
"name"
:
"我要提现"
,
"pathName"
:
"packageIndex/pages/integral/toCash/toCash"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
}
]
]
}
}
...
...
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