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
d9f9875e
Commit
d9f9875e
authored
May 12, 2021
by
hewenhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/2021_03_12_bonus' into 'release/2021_03_12_bonus'
Feature/2021 03 12 bonus See merge request wykolor/mall-webview!1
parents
8ca9a996
eedd3105
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
1 deletion
+11
-1
index.ts
src/util/index.ts
+7
-0
withdraw-rules-dialog.vue
src/views/bonus/withdraw-rules-dialog.vue
+1
-0
withdraw-dialog.vue
src/views/bonus/withdraw/withdraw-dialog.vue
+2
-1
withdrawable-dialog.vue
src/views/bonus/withdrawable-dialog.vue
+1
-0
No files found.
src/util/index.ts
0 → 100644
View file @
d9f9875e
let
appId
=
"2095826303"
;
// 腾讯验证码appid
if
(
process
.
env
.
VUE_APP_DEPLOY_MODE
===
"test"
)
{
appId
=
"2087826974"
;
}
export
default
appId
\ No newline at end of file
src/views/bonus/withdraw-rules-dialog.vue
View file @
d9f9875e
...
@@ -38,6 +38,7 @@ export default defineComponent({
...
@@ -38,6 +38,7 @@ export default defineComponent({
props
:
{
props
:
{
show
:
Boolean
show
:
Boolean
},
},
emits
:
[
"update:show"
],
setup
(
props
)
{
setup
(
props
)
{
const
store
=
useStore
();
const
store
=
useStore
();
const
bonusStoreState
=
computed
(()
=>
store
.
state
.
bonus
);
const
bonusStoreState
=
computed
(()
=>
store
.
state
.
bonus
);
...
...
src/views/bonus/withdraw/withdraw-dialog.vue
View file @
d9f9875e
...
@@ -70,6 +70,7 @@ import { Dialog, Button, Field, Toast, Cell } from "vant";
...
@@ -70,6 +70,7 @@ import { Dialog, Button, Field, Toast, Cell } from "vant";
import
{
checkCaptcha
,
withdraw
}
from
"@/server/api/bonus"
;
import
{
checkCaptcha
,
withdraw
}
from
"@/server/api/bonus"
;
import
{
countDown
}
from
"@/util/timer"
;
import
{
countDown
}
from
"@/util/timer"
;
import
appId
from
"@/util/index"
;
interface
TencentCaptchaResponse
{
interface
TencentCaptchaResponse
{
ret
:
number
;
ret
:
number
;
...
@@ -121,7 +122,7 @@ export default defineComponent({
...
@@ -121,7 +122,7 @@ export default defineComponent({
// 获取验证码
// 获取验证码
const
getSmsVerifyCode
=
()
=>
{
const
getSmsVerifyCode
=
()
=>
{
const
captcha
=
new
TencentCaptcha
(
const
captcha
=
new
TencentCaptcha
(
"2087826974"
,
appId
,
async
(
res
:
TencentCaptchaResponse
)
=>
{
async
(
res
:
TencentCaptchaResponse
)
=>
{
const
{
ret
,
randstr
,
ticket
}
=
res
;
const
{
ret
,
randstr
,
ticket
}
=
res
;
if
(
ret
===
0
)
{
if
(
ret
===
0
)
{
...
...
src/views/bonus/withdrawable-dialog.vue
View file @
d9f9875e
...
@@ -26,6 +26,7 @@ export default defineComponent({
...
@@ -26,6 +26,7 @@ export default defineComponent({
show
:
Boolean
,
show
:
Boolean
,
errCode
:
String
errCode
:
String
},
},
emits
:
[
"update:show"
],
setup
(
props
)
{
setup
(
props
)
{
const
showDialog
=
ref
(
false
);
const
showDialog
=
ref
(
false
);
watchEffect
(()
=>
{
watchEffect
(()
=>
{
...
...
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