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 61cd1d25
authored
Aug 19, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
积分优化
1 parent
1ad54c88
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
139 additions
and
55 deletions
api/module/entmicro.js
api/module/index.js
api/module/system.js
api/module/withdrawal.js
packageIndex/pages/bankAccount/add/add.js
packageIndex/pages/bankAccount/add/add.wxml
packageIndex/pages/bankAccount/list/list.js
packageIndex/pages/integral/withdrawal/withdrawal.js
packageIndex/pages/integral/withdrawalRules/withdrawalRules.js
packageIndex/pages/integral/withdrawalRules/withdrawalRules.wxml
pages/tab/index/index.js
api/module/entmicro.js
deleted
100644 → 0
View file @
1ad54c8
import
api
from
'../request/http'
module
.
exports
=
{
getServiceCode
(
data
)
{
return
api
.
fetch
(
'dracIm.api.entmicro.findMiniProgramIm'
,
data
)
},
/**智能外呼-联系人 */
findByActivityIdAndPhone
(
data
)
{
return
api
.
fetch
(
'dracIm.api.entmicro.findByActivityIdAndPhone'
,
data
)
}
}
\ No newline at end of file
\ No newline at end of file
api/module/index.js
View file @
61cd1d2
...
@@ -8,7 +8,7 @@ import systemApi from './system'
...
@@ -8,7 +8,7 @@ import systemApi from './system'
import
couponsApi
from
'./coupons'
import
couponsApi
from
'./coupons'
import
equityApi
from
'./equity'
import
equityApi
from
'./equity'
import
common
from
'./common'
import
common
from
'./common'
import
entmicroApi
from
'./entmicro
'
import
withdrawalApi
from
'./withdrawal
'
module
.
exports
=
{
module
.
exports
=
{
wechatApi
,
wechatApi
,
...
@@ -21,5 +21,5 @@ module.exports = {
...
@@ -21,5 +21,5 @@ module.exports = {
couponsApi
,
couponsApi
,
equityApi
,
equityApi
,
common
,
common
,
entmicro
Api
withdrawal
Api
}
}
\ No newline at end of file
\ No newline at end of file
api/module/system.js
View file @
61cd1d2
...
@@ -6,7 +6,7 @@ const serverConfig = {
...
@@ -6,7 +6,7 @@ const serverConfig = {
mockTimer
:
{},
mockTimer
:
{},
mockCache
:
null
,
mockCache
:
null
,
};
};
const
configModule
=
'mini-
hmd
'
const
configModule
=
'mini-
points-mall
'
const
configUrl
=
`https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=
${
configModule
}
&env=
${
env
}
`
;
const
configUrl
=
`https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=
${
configModule
}
&env=
${
env
}
`
;
/**获取mock数据 */
/**获取mock数据 */
...
...
api/module/withdrawal.js
0 → 100644
View file @
61cd1d2
import
api
from
'../request/http'
module
.
exports
=
{
/**积分汇总查询 */
searchScoreSummary
(
data
)
{
return
api
.
fetch
(
'scrm.api.shopmall.score.summary.search'
,
data
,
);
},
/**积分明细列表查询 */
/**根据员工id查询员工银行卡列表 */
getStaffBankList
(
data
)
{
return
api
.
fetch
(
'scrm.api.stoassistant.withdrawal.staff.bank.list'
,
data
,
);
},
/** 插入或更新员工银行卡信息 */
insetorupdateStaffBank
(
data
)
{
return
api
.
fetch
(
'scrm.api.stoassistant.withdrawal.staff.bank.insetorupdate'
,
data
);
},
/**智能外呼-联系人 */
findByActivityIdAndPhone
(
data
)
{
return
api
.
fetch
(
'dracIm.api.entmicro.findByActivityIdAndPhone'
,
data
)
}
}
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/bankAccount/add/add.js
View file @
61cd1d2
...
@@ -86,11 +86,13 @@ Page({
...
@@ -86,11 +86,13 @@ Page({
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
()
{
if
(
options
&&
options
.
item
)
{
wx
.
p
.
router
.
getRouterParams
().
then
(
params
=>
{
const
{
console
.
log
(
params
)
let
{
item
item
}
=
options
}
=
params
;
if
(
item
)
{
this
.
setData
({
this
.
setData
({
formData
:
{
formData
:
{
bankUserName
:
item
.
bankUserName
,
bankUserName
:
item
.
bankUserName
,
...
@@ -106,9 +108,11 @@ Page({
...
@@ -106,9 +108,11 @@ Page({
})
})
this
.
check
()
this
.
check
()
}
}
// this.getBankList()
})
this
.
getBankList
()
},
},
repeatConfirm
(
e
){
repeatConfirm
(
e
)
{
let
{
let
{
index
index
}
=
e
.
detail
}
=
e
.
detail
...
@@ -168,15 +172,15 @@ Page({
...
@@ -168,15 +172,15 @@ Page({
}
}
},
},
async
getBankList
()
{
async
getBankList
()
{
//
const {
const
{
//
bankList
bankList
// } = await wx.$util
.getMockData(), {
}
=
await
wx
.
p
.
api
.
systemApi
.
getMockData
(),
{
//
form
form
//
} = this.data,
}
=
this
.
data
,
//
index = form.findIndex(e => e.key == 'bankName')
index
=
form
.
findIndex
(
e
=>
e
.
key
==
'bankName'
)
//
this.setData({
this
.
setData
({
//
[`form[${index}].pickerData`]: bankList
[
`form[
${
index
}
].pickerData`
]:
bankList
//
})
})
},
},
bindInput
(
e
)
{
bindInput
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
...
@@ -223,7 +227,7 @@ Page({
...
@@ -223,7 +227,7 @@ Page({
})
})
},
},
dialogClose
()
{
dialogClose
()
{
wx
.
$
router
.
back
()
wx
.
p
.
router
.
back
()
},
},
dialogConfirm
()
{
dialogConfirm
()
{
const
{
const
{
...
@@ -243,13 +247,14 @@ Page({
...
@@ -243,13 +247,14 @@ Page({
})
})
},
},
async
submit
()
{
async
submit
()
{
console
.
log
(
wx
.
p
)
const
{
const
{
formData
formData
}
=
this
.
data
,
{
}
=
this
.
data
,
{
item
item
}
=
this
.
options
,
{
}
=
this
.
options
,
{
uuid
uuid
}
=
wx
.
$
storage
.
get
(
'userInfo'
),
}
=
wx
.
p
.
storage
.
get
(
'userInfo'
),
validateKeys
=
[
'bankPhone'
,
'idCardNo'
]
validateKeys
=
[
'bankPhone'
,
'idCardNo'
]
try
{
try
{
validateKeys
.
map
(
e
=>
{
validateKeys
.
map
(
e
=>
{
...
@@ -264,17 +269,17 @@ Page({
...
@@ -264,17 +269,17 @@ Page({
const
{
const
{
code
,
code
,
message
message
}
=
await
Mine
Api
.
insetorupdateStaffBank
(
formData
)
}
=
await
wx
.
p
.
api
.
withdrawal
Api
.
insetorupdateStaffBank
(
formData
)
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
this
.
setData
({
this
.
setData
({
showModal
:
true
,
showModal
:
true
,
success
:
true
,
success
:
'success'
,
dialogText
:
'您的银行账户添加成功!'
dialogText
:
'您的银行账户添加成功!'
})
})
}
else
{
}
else
{
this
.
setData
({
this
.
setData
({
showModal
:
true
,
showModal
:
true
,
success
:
false
,
success
:
'fail'
,
dialogText
:
`原因:
${
message
}
`
dialogText
:
`原因:
${
message
}
`
})
})
// wx.$api.showToast(message)
// wx.$api.showToast(message)
...
...
packageIndex/pages/bankAccount/add/add.wxml
View file @
61cd1d2
...
@@ -51,11 +51,11 @@
...
@@ -51,11 +51,11 @@
</view>
</view>
<!-- disabled="{{btnDisabled}}" -->
<!-- disabled="{{btnDisabled}}" -->
<button class="button text-center" hover-class="btn-hover" loading="{{submitLoading}}" bindtap="submit">提交</button>
<button class="button text-center"
disabled="{{btnDisabled}}"
hover-class="btn-hover" loading="{{submitLoading}}" bindtap="submit">提交</button>
</block>
</block>
<Dialog show="{{ showModal }}" mask="true" bindbuttontap="dialogConfirm" buttons="{{buttons}}" statusIcon="
success
">
<Dialog show="{{ showModal }}" mask="true" bindbuttontap="dialogConfirm" buttons="{{buttons}}" statusIcon="
{{success}}
">
<view class="suggest-box">
<view class="suggest-box">
您的银行账户修改成功!
{{success}}
</view>
</view>
</Dialog>
</Dialog>
<Dialog show="{{ showModal }}" mask="true" bindbuttontap="repeatConfirm" buttons="{{repeatButtons}}" title="提示">
<Dialog show="{{ showModal }}" mask="true" bindbuttontap="repeatConfirm" buttons="{{repeatButtons}}" title="提示">
...
...
packageIndex/pages/bankAccount/list/list.js
View file @
61cd1d2
...
@@ -11,7 +11,7 @@ Page({
...
@@ -11,7 +11,7 @@ Page({
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
// this.getBankList()
// res = await MineApi.getStaffBankList({
// res = await MineApi.getStaffBankList({
// uuid
// uuid
// })
// })
...
@@ -45,18 +45,35 @@ Page({
...
@@ -45,18 +45,35 @@ Page({
flag
:
true
flag
:
true
})
})
},
},
async
getBankList
()
{
const
{
uuid
}
=
wx
.
p
.
storage
.
get
(
'userInfo'
),
res
=
await
wx
.
p
.
api
.
withdrawalApi
.
getStaffBankList
({
uuid
})
res
&&
res
?.
map
(
e
=>
{
e
.
bankNum
=
e
.
bankNumber
.
replace
(
/^
(?:\d
+
)(
.
{4})
$/
,
'**** **** **** $1'
)
})
this
.
setData
({
list
:
res
||
[],
flag
:
true
})
},
jump
(
e
)
{
jump
(
e
)
{
// const {
const
{
// item
item
// } = e.currentTarget.dataset, {
}
=
e
.
currentTarget
.
dataset
;
console
.
log
(
item
)
// {
// score,
// score,
// user
// user
// } = this.options
// } = this.options
//
wx.p.router.go('/packageIndex/pages/bankAccount/add/add', {
wx
.
p
.
router
.
go
(
'/packageIndex/pages/bankAccount/add/add'
,
{
//
item,
item
,
// score,
// score,
// user
// user
//
})
})
wx
.
p
.
router
.
go
(
'/packageIndex/pages/bankAccount/add/add'
)
//
wx.p.router.go('/packageIndex/pages/bankAccount/add/add')
}
}
})
})
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/integral/withdrawal/withdrawal.js
View file @
61cd1d2
...
@@ -9,7 +9,7 @@ Page({
...
@@ -9,7 +9,7 @@ Page({
agree
:
false
,
agree
:
false
,
showAuthDialog
:
false
,
showAuthDialog
:
false
,
showConfirmDialog
:
false
,
showConfirmDialog
:
false
,
sumbitScore
:
''
,
sumbitScore
:
'
250.00
'
,
buttons
:
[{
buttons
:
[{
text
:
'取消'
text
:
'取消'
},
{
},
{
...
@@ -22,6 +22,19 @@ Page({
...
@@ -22,6 +22,19 @@ Page({
text
:
'确认'
,
text
:
'确认'
,
extClass
:
'btn_primary'
extClass
:
'btn_primary'
}],
}],
score
:
{
"bankWithdrawalScore"
:
"230.00"
,
"currentScore"
:
"0.00"
,
"existBankWithdrawal"
:
false
,
"existWechatMotivationWithdrawal"
:
false
,
"motivationWithdrawalScore"
:
"0.00"
,
"notExchangeScore"
:
"0.00"
,
"supportWithdrawalScore"
:
"0.00"
,
"totalRewardScore"
:
"0.00"
,
"totalWithdrawalScore"
:
"0.00"
,
"wechatMotivationWithdrawalScore"
:
"0.00"
,
"wechatWithdrawalScore"
:
"0.00"
},
bankInfo
:
{
bankInfo
:
{
"id"
:
34
,
"id"
:
34
,
"staffId"
:
16550
,
"staffId"
:
16550
,
...
@@ -66,7 +79,23 @@ Page({
...
@@ -66,7 +79,23 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
console
.
log
(
wx
.
p
)
this
.
getBankList
()
},
async
getBankList
(){
const
{
uuid
}
=
wx
.
p
.
storage
.
get
(
'userInfo'
),
res
=
await
wx
.
p
.
api
.
withdrawalApi
.
getStaffBankList
({
uuid
})
res
&&
res
?.
map
(
e
=>
{
e
.
bankNum
=
e
.
bankNumber
.
replace
(
/^
(?:\d
+
)(
.
{4})
$/
,
'**** **** **** $1'
)
})
this
.
setData
({
list
:
res
||
[],
flag
:
true
})
},
},
bindPickerChange
(
e
)
{
bindPickerChange
(
e
)
{
console
.
log
(
e
.
detail
)
console
.
log
(
e
.
detail
)
...
@@ -164,16 +193,27 @@ Page({
...
@@ -164,16 +193,27 @@ Page({
wechatWithdrawalScore
wechatWithdrawalScore
}
}
}
=
this
.
data
,
}
=
this
.
data
,
withdrawalScore
=
wechat
WithdrawalScore
withdrawalScore
=
bank
WithdrawalScore
this
.
setData
({
this
.
setData
({
sumbitScore
:
withdrawalScore
sumbitScore
:
withdrawalScore
})
})
},
},
handleInput
(
e
)
{
handleInput
(
e
)
{
var
value
=
e
.
detail
.
value
let
{
value
}
=
e
.
detail
let
{
sumbitScore
,
score
:
{
existBankWithdrawal
,
bankWithdrawalScore
,
wechatWithdrawalScore
},
}
=
this
.
data
,
withdrawalScore
=
bankWithdrawalScore
sumbitScore
=
this
.
priceVerify
(
value
,
withdrawalScore
)
sumbitScore
=
this
.
priceVerify
(
value
,
withdrawalScore
)
this
.
setData
({
this
.
setData
({
sumbitScore
:
value
sumbitScore
:
sumbitScore
||
''
})
})
},
},
// 价格输入校验规则(提现积分值:最小值需大于0)
// 价格输入校验规则(提现积分值:最小值需大于0)
...
...
packageIndex/pages/integral/withdrawalRules/withdrawalRules.js
View file @
61cd1d2
...
@@ -17,7 +17,12 @@ Page({
...
@@ -17,7 +17,12 @@ Page({
goMall
()
{
goMall
()
{
wx
.
p
.
router
.
replace
(
'/pages/tab/index/index'
)
wx
.
p
.
router
.
replace
(
'/pages/tab/index/index'
)
},
},
policyDetail
()
{
wx
.
p
.
router
.
jumpH5
(
`https://fgk.chinatax.gov.cn/zcfgk/c100012/c5241472/content.html`
)
},
goContinue
(){
wx
.
p
.
router
.
replace
(
'/packageIndex/pages/integral/withdrawalSuccess/withdrawalSuccess'
)
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
...
...
packageIndex/pages/integral/withdrawalRules/withdrawalRules.wxml
View file @
61cd1d2
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view class="reminder-container">
<view class="reminder-container">
<view class="reminder-title">郑重提醒</view>
<view class="reminder-title">郑重提醒</view>
<view class="content">根据国家税务总局2025第16号公告,<text class="bold">提现收入</text>也将纳入<text>个人累计收入计算税额</text>,以上政策将于10月1日起正式实施。
<view class="content">根据国家税务总局2025第16号公告,<text class="bold">提现收入</text>也将纳入<text>个人累计收入计算税额</text>,以上政策将于10月1日起正式实施。
<view class="detail">详情请点击 >></view>
<view class="detail"
bind:tap="policyDetail"
>详情请点击 >></view>
</view>
</view>
<view class="consumption">
<view class="consumption">
<view class="info">截止当前</view>
<view class="info">截止当前</view>
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<view class="suggest">若您仍然想提现,请点击<text>“继续提现”</text>按钮提交提现申请。</view>
<view class="suggest">若您仍然想提现,请点击<text>“继续提现”</text>按钮提交提现申请。</view>
<view class="btns flex_scb">
<view class="btns flex_scb">
<view class="btn-text" bind:tap="goMall">去商城</view>
<view class="btn-text" bind:tap="goMall">去商城</view>
<view class="btn-text withdraw">继续提现</view>
<view class="btn-text withdraw"
bind:tap="goContinue"
>继续提现</view>
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
pages/tab/index/index.js
View file @
61cd1d2
...
@@ -136,8 +136,7 @@ Page({
...
@@ -136,8 +136,7 @@ Page({
},
},
// 查看公告政策详情
// 查看公告政策详情
policyDetail
()
{
policyDetail
()
{
wx
.
p
.
router
.
go
(
'/packageIndex/pages/integral/withdrawalRules/withdrawalRules'
)
wx
.
p
.
router
.
jumpH5
(
`https://fgk.chinatax.gov.cn/zcfgk/c100012/c5241472/content.html`
)
// wx.p.router.jumpH5(`https://fgk.chinatax.gov.cn/zcfgk/c100012/c5241472/content.html`)
},
},
// 跳转专场
// 跳转专场
handleSpecialSale
(
e
)
{
handleSpecialSale
(
e
)
{
...
...
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