Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-webview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
frontend
mall-webview
Commits
8ca9a996
Commit
8ca9a996
authored
Apr 26, 2021
by
wykolor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 提现规则金额改为接口获取
parent
519d18d6
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
43 additions
and
26 deletions
+43
-26
bind-w-x-dialog.vue
src/views/bonus/bind-w-x-dialog.vue
+0
-0
add.vue
src/views/bonus/bonus-detail/add.vue
+1
-1
reduce.vue
src/views/bonus/bonus-detail/reduce.vue
+1
-1
pull-pefresh-list.vue
src/views/bonus/components/pull-pefresh-list.vue
+1
-6
index.vue
src/views/bonus/index.vue
+7
-7
withdraw-list.vue
src/views/bonus/withdraw-list.vue
+1
-1
withdraw-rules-dialog.vue
src/views/bonus/withdraw-rules-dialog.vue
+26
-4
index.vue
src/views/bonus/withdraw/index.vue
+6
-6
withdraw-dialog.vue
src/views/bonus/withdraw/withdraw-dialog.vue
+0
-0
withdraw-success-dialog.vue
src/views/bonus/withdraw/withdraw-success-dialog.vue
+0
-0
withdrawable-dialog.vue
src/views/bonus/withdrawable-dialog.vue
+0
-0
No files found.
src/views/bonus/bind
WXD
ialog.vue
→
src/views/bonus/bind
-w-x-d
ialog.vue
View file @
8ca9a996
File moved
src/views/bonus/bonus-detail/add.vue
View file @
8ca9a996
<
template
>
<
template
>
<div
class=
"tab-add"
>
<div
class=
"tab-add"
>
<pull-refresh-list
v-slot=
"
{ list }" :request="getBonusList" :params
F
n="paramsFn">
<pull-refresh-list
v-slot=
"
{ list }" :request="getBonusList" :params
-f
n="paramsFn">
<div
v-for=
"item in list"
:key=
"item.id"
class=
"add-item"
>
<div
v-for=
"item in list"
:key=
"item.id"
class=
"add-item"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<span>
{{
item
.
bizTypeName
}}
</span>
<span>
{{
item
.
bizTypeName
}}
</span>
...
...
src/views/bonus/bonus-detail/reduce.vue
View file @
8ca9a996
<
template
>
<
template
>
<div
class=
"tab-reduce"
>
<div
class=
"tab-reduce"
>
<pull-refresh-list
v-slot=
"
{ list }" :request="getBonusList" :params
F
n="paramsFn">
<pull-refresh-list
v-slot=
"
{ list }" :request="getBonusList" :params
-f
n="paramsFn">
<div
v-for=
"item in list"
:key=
"item.id"
class=
"reduce-item"
>
<div
v-for=
"item in list"
:key=
"item.id"
class=
"reduce-item"
>
<ul>
<ul>
<li
style=
"color: #000"
>
{{
item
.
bizTypeName
}}
</li>
<li
style=
"color: #000"
>
{{
item
.
bizTypeName
}}
</li>
...
...
src/views/bonus/components/pull-pefresh-list.vue
View file @
8ca9a996
<
template
>
<
template
>
<van-pull-refresh
:modelValue=
"paging.refreshing"
@
refresh=
"refresh"
>
<van-pull-refresh
:modelValue=
"paging.refreshing"
@
refresh=
"refresh"
>
<van-list
<van-list
:finished=
"isFinished"
:finished-text=
"finishText"
@
load=
"loadMore"
>
:modelValue=
"paging.loading"
:finished=
"isFinished"
:finished-text=
"finishText"
@
load=
"loadMore"
>
<slot
:list=
"paging.list"
></slot>
<slot
:list=
"paging.list"
></slot>
<van-empty
key=
"2"
image=
"search"
v-if=
"paging.error"
:description=
"paging.error"
/>
<van-empty
key=
"2"
image=
"search"
v-if=
"paging.error"
:description=
"paging.error"
/>
<van-empty
v-else-if=
"paging.isLoad && paging.total
<
1
"
/>
<van-empty
v-else-if=
"paging.isLoad && paging.total
<
1
"
/>
...
...
src/views/bonus/index.vue
View file @
8ca9a996
...
@@ -85,11 +85,11 @@
...
@@ -85,11 +85,11 @@
<!-- 绑定微信弹窗 -->
<!-- 绑定微信弹窗 -->
<BindWXDialog
<BindWXDialog
v-model:show=
"showBindWx"
v-model:show=
"showBindWx"
:withdraw
A
ccount=
"bonusAccount?.withdrawAccount"
:withdraw
-a
ccount=
"bonusAccount?.withdrawAccount"
@
update
BonusA
ccount=
"getBonusAccountReq"
@
update
-bonus-a
ccount=
"getBonusAccountReq"
/>
/>
<!-- 奖励金账户状态弹窗 -->
<!-- 奖励金账户状态弹窗 -->
<WithdrawableDialog
v-model:show=
"showDangerous"
:err
C
ode=
"bonusAccount?.errCode"
/>
<WithdrawableDialog
v-model:show=
"showDangerous"
:err
-c
ode=
"bonusAccount?.errCode"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -104,10 +104,10 @@ import { BonusAccountResponse } from "@/model/bonus";
...
@@ -104,10 +104,10 @@ import { BonusAccountResponse } from "@/model/bonus";
import
{
BonusAccountStatus
,
ErrCode
}
from
"@/model/bonus/constant"
;
import
{
BonusAccountStatus
,
ErrCode
}
from
"@/model/bonus/constant"
;
import
{
bindWeChat
,
useNativeBridge
}
from
"@/util/use-native-bridge"
;
import
{
bindWeChat
,
useNativeBridge
}
from
"@/util/use-native-bridge"
;
import
{
bindWeiChat
,
getBonusAccount
}
from
"@/server/api/bonus"
;
import
{
bindWeiChat
,
getBonusAccount
}
from
"@/server/api/bonus"
;
import
WithdrawList
from
"./withdraw
L
ist.vue"
;
import
WithdrawList
from
"./withdraw
-l
ist.vue"
;
import
WithdrawRulesDialog
from
"./withdraw
RulesD
ialog.vue"
;
import
WithdrawRulesDialog
from
"./withdraw
-rules-d
ialog.vue"
;
import
WithdrawableDialog
from
"./withdrawable
D
ialog.vue"
;
import
WithdrawableDialog
from
"./withdrawable
-d
ialog.vue"
;
import
BindWXDialog
from
"./bind
WXD
ialog.vue"
;
import
BindWXDialog
from
"./bind
-w-x-d
ialog.vue"
;
interface
BonusState
{
interface
BonusState
{
bonusAccount
:
BonusAccountResponse
|
null
;
bonusAccount
:
BonusAccountResponse
|
null
;
...
...
src/views/bonus/withdraw
L
ist.vue
→
src/views/bonus/withdraw
-l
ist.vue
View file @
8ca9a996
<
template
>
<
template
>
<pull-refresh-list
v-slot=
"
{ list }" :request="getWithdrawList" :params
F
n="paramsFn">
<pull-refresh-list
v-slot=
"
{ list }" :request="getWithdrawList" :params
-f
n="paramsFn">
<div
class=
"withdraw-list"
v-for=
"item in list"
:key=
"item.id"
>
<div
class=
"withdraw-list"
v-for=
"item in list"
:key=
"item.id"
>
<div
class=
"header"
>
<div
class=
"header"
>
<div
class=
"header-status"
>
<div
class=
"header-status"
>
...
...
src/views/bonus/withdraw
RulesD
ialog.vue
→
src/views/bonus/withdraw
-rules-d
ialog.vue
View file @
8ca9a996
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
<ul
class=
"bonus-rule-list"
>
<ul
class=
"bonus-rule-list"
>
<li>
1.当前只有转介绍收入可以在线提现;
</li>
<li>
1.当前只有转介绍收入可以在线提现;
</li>
<li>
2.提现前,确保已经绑定了微信,且微信已经实名认证;
</li>
<li>
2.提现前,确保已经绑定了微信,且微信已经实名认证;
</li>
<li>
3.每个学生,单日累计提现金额不超过
500.00
元;
</li>
<li>
3.每个学生,单日累计提现金额不超过
{{
studentDailyWithdrawLimit
}}
元;
</li>
<li>
4.每个家长,单日累计提现金额不超过
1000.00
元;
</li>
<li>
4.每个家长,单日累计提现金额不超过
{{
userDailyWithdrawLimit
}}
元;
</li>
<li>
5.系统一般都是“秒到账”,具体到账时间, 请以系统提示为准;
</li>
<li>
5.系统一般都是“秒到账”,具体到账时间, 请以系统提示为准;
</li>
<li>
6.如需帮助请联系:400—8777389!
</li>
<li>
6.如需帮助请联系:400—8777389!
</li>
</ul>
</ul>
...
@@ -22,11 +22,13 @@
...
@@ -22,11 +22,13 @@
</van-dialog>
</van-dialog>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
ref
,
watchEffect
}
from
"vue"
;
import
{
defineComponent
,
ref
,
watchEffect
,
reactive
,
toRefs
,
computed
,
onMounted
}
from
"vue"
;
import
{
useStore
}
from
"vuex"
;
import
{
Dialog
,
Button
}
from
"vant"
;
import
{
Dialog
,
Button
}
from
"vant"
;
import
{
makeCall
}
from
"@/util/use-native-bridge"
;
import
{
makeCall
}
from
"@/util/use-native-bridge"
;
import
{
getWithdrawRisk
}
from
"@/server/api/bonus"
;
export
default
defineComponent
({
export
default
defineComponent
({
components
:
{
components
:
{
...
@@ -37,14 +39,34 @@ export default defineComponent({
...
@@ -37,14 +39,34 @@ export default defineComponent({
show
:
Boolean
show
:
Boolean
},
},
setup
(
props
)
{
setup
(
props
)
{
const
store
=
useStore
();
const
bonusStoreState
=
computed
(()
=>
store
.
state
.
bonus
);
const
state
=
reactive
({
studentDailyWithdrawLimit
:
0
,
userDailyWithdrawLimit
:
0
});
const
showDialog
=
ref
(
false
);
const
showDialog
=
ref
(
false
);
watchEffect
(()
=>
{
watchEffect
(()
=>
{
showDialog
.
value
=
props
.
show
;
showDialog
.
value
=
props
.
show
;
});
});
const
phoneCall
=
()
=>
{
const
phoneCall
=
()
=>
{
makeCall
(
"400—8777389"
);
makeCall
(
"400—8777389"
);
};
};
return
{
showDialog
,
phoneCall
};
const
getWithdrawRiskReq
=
async
()
=>
{
const
{
studentDailyWithdrawLimit
,
userDailyWithdrawLimit
}
=
await
getWithdrawRisk
(
bonusStoreState
.
value
.
studentId
);
state
.
studentDailyWithdrawLimit
=
studentDailyWithdrawLimit
;
state
.
userDailyWithdrawLimit
=
userDailyWithdrawLimit
;
};
onMounted
(
getWithdrawRiskReq
);
return
{
showDialog
,
phoneCall
,
...
toRefs
(
state
)
};
}
}
});
});
</
script
>
</
script
>
...
...
src/views/bonus/withdraw/index.vue
View file @
8ca9a996
...
@@ -45,14 +45,14 @@
...
@@ -45,14 +45,14 @@
<!-- 提现弹窗 -->
<!-- 提现弹窗 -->
<WithdrawDialog
<WithdrawDialog
v-model:show=
"showWithdraw"
v-model:show=
"showWithdraw"
:withdraw
A
mount=
"Number(withdrawAmount)"
:withdraw
-a
mount=
"Number(withdrawAmount)"
:withdraw
A
ccount=
"withdrawAccount"
:withdraw
-a
ccount=
"withdrawAccount"
@
withdraw
S
uccess=
"withdrawSuccess"
@
withdraw
-s
uccess=
"withdrawSuccess"
/>
/>
<!-- 提现成功弹窗 -->
<!-- 提现成功弹窗 -->
<WithdrawSuccessDialog
<WithdrawSuccessDialog
v-model:show=
"showWithdrawSuccess"
v-model:show=
"showWithdrawSuccess"
:withdraw
R
esponse=
"withdrawResponse"
:withdraw
-r
esponse=
"withdrawResponse"
/>
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -67,8 +67,8 @@ import { Button, Cell, Dialog, Field, Toast } from "vant";
...
@@ -67,8 +67,8 @@ import { Button, Cell, Dialog, Field, Toast } from "vant";
import
{
sendNativeMessage
}
from
"@/util/use-native-bridge"
;
import
{
sendNativeMessage
}
from
"@/util/use-native-bridge"
;
import
{
getWithdrawRisk
}
from
"@/server/api/bonus"
;
import
{
getWithdrawRisk
}
from
"@/server/api/bonus"
;
import
{
WithdrawResponse
}
from
"@/model/bonus"
;
import
{
WithdrawResponse
}
from
"@/model/bonus"
;
import
WithdrawSuccessDialog
from
"./withdraw
SuccessD
ialog.vue"
;
import
WithdrawSuccessDialog
from
"./withdraw
-success-d
ialog.vue"
;
import
WithdrawDialog
from
"./withdraw
D
ialog.vue"
;
import
WithdrawDialog
from
"./withdraw
-d
ialog.vue"
;
interface
State
{
interface
State
{
WithdrawResponse
?:
WithdrawResponse
|
object
;
WithdrawResponse
?:
WithdrawResponse
|
object
;
...
...
src/views/bonus/withdraw/withdraw
D
ialog.vue
→
src/views/bonus/withdraw/withdraw
-d
ialog.vue
View file @
8ca9a996
File moved
src/views/bonus/withdraw/withdraw
SuccessD
ialog.vue
→
src/views/bonus/withdraw/withdraw
-success-d
ialog.vue
View file @
8ca9a996
File moved
src/views/bonus/withdrawable
D
ialog.vue
→
src/views/bonus/withdrawable
-d
ialog.vue
View file @
8ca9a996
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment