Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
XiTianSenMall
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
leiqingsong
XiTianSenMall
Commits
1b3b4c9f
Commit
1b3b4c9f
authored
Mar 23, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改注册,注册成功提示用户下载App
parent
808a2c09
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
53 additions
and
24 deletions
+53
-24
.env.development
H5/.env.development
+0
-0
.env.production
H5/.env.production
+1
-0
package.json
H5/package.json
+1
-1
main.js
H5/src/main.js
+2
-0
airDropPool.vue
H5/src/views/airDropPool.vue
+18
-9
bank.vue
H5/src/views/bank.vue
+5
-1
cash-out.vue
H5/src/views/cashOut/cash-out.vue
+4
-4
myStatus.vue
H5/src/views/my/myStatus.vue
+1
-1
register.vue
H5/src/views/register.vue
+19
-7
vue.config.js
H5/vue.config.js
+2
-1
No files found.
H5/.env
→
H5/.env
.development
View file @
1b3b4c9f
File moved
H5/.env.production
0 → 100644
View file @
1b3b4c9f
VUE_APP_BASE_URL = " http://8.140.108.250"
\ No newline at end of file
H5/package.json
View file @
1b3b4c9f
...
...
@@ -5,7 +5,7 @@
"private"
:
true
,
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"build
:prod
"
:
"vue-cli-service build"
,
"lint"
:
"eslint --fix --ext .js,.vue src"
},
"dependencies"
:
{
...
...
H5/src/main.js
View file @
1b3b4c9f
...
...
@@ -12,7 +12,9 @@ import Vconsole from "vconsole";
import
bridgeToAppFun
from
"@/utils/bridgeToAppFun"
;
Vue
.
prototype
.
$bridgeToAppFun
=
new
bridgeToAppFun
();
/*生产环境请注释掉 */
Vue
.
prototype
.
$vConsole
=
new
Vconsole
();
Vue
.
use
(
MiniRefreshTools
);
Vue
.
config
.
productionTip
=
false
;
...
...
H5/src/views/airDropPool.vue
View file @
1b3b4c9f
...
...
@@ -15,7 +15,11 @@
<img
src=
"@/assets/images/icon-notice.png"
alt=
""
/>
<div
class=
"notice-bar-show"
id=
"scroll-box"
>
<div
class=
"user-id-list"
>
<p
v-for=
"(item, index) in userPoolVos"
:key=
"index"
@
click=
"openUserInfo(item)"
>
<p
v-for=
"(item, index) in userPoolVos"
:key=
"index"
@
click=
"openUserInfo(item)"
>
用户
{{
item
.
userId
}}
进入空投池
</p>
</div>
...
...
@@ -31,9 +35,13 @@
</p>
</div>
</div>
<base-dialog
class=
"user-dialog"
:base-dialog-show=
"userInfoDialog"
@
onClick=
"onCloseUser"
>
<base-dialog
class=
"user-dialog"
:base-dialog-show=
"userInfoDialog"
@
onClick=
"onCloseUser"
>
<div
slot=
"content"
class=
"user-dialog-content"
>
<img
:src=
"currentUser.avatar"
alt=
"头像"
>
<img
:src=
"currentUser.avatar"
alt=
"头像"
/
>
<span
class=
"normal"
>
账号
</span>
<span
class=
"user-id"
>
{{
currentUser
.
userId
}}
</span>
<span
class=
"normal"
>
进入空投池时间
</span>
...
...
@@ -44,9 +52,8 @@
</
template
>
<
script
>
import
{
queryAerialDelivery
}
from
"@/api/airDropPool"
;
import
BaseDialog
from
'../components/BaseDialog.vue'
;
import
BaseDialog
from
"../components/BaseDialog.vue"
;
export
default
{
components
:
{
BaseDialog
},
name
:
"AirDrop"
,
...
...
@@ -65,12 +72,11 @@ export default {
methods
:
{
onCloseUser
()
{
this
.
userInfoDialog
=
false
;
this
.
currentUser
=
{}
},
openUserInfo
(
item
)
{
this
.
userInfoDialog
=
true
;
this
.
currentUser
=
item
;
this
.
currentUser
.
avatar
=
process
.
env
.
VUE_APP_BASE_URL
+
item
.
headImage
this
.
currentUser
.
avatar
=
process
.
env
.
VUE_APP_BASE_URL
+
item
.
headImage
;
},
handlerBack
()
{
try
{
...
...
@@ -87,8 +93,11 @@ export default {
if
(
res
.
code
===
0
)
{
_this
.
total
=
res
.
data
.
total
;
_this
.
userPoolVos
=
res
.
data
.
userPoolVos
.
map
(
item
=>
{
const
temp
=
item
temp
.
userId
=
item
.
userId
.
substring
(
0
,
3
)
+
"****"
+
item
.
userId
.
substring
(
8
,
11
);
const
temp
=
item
;
temp
.
userId
=
item
.
userId
.
substring
(
0
,
3
)
+
"****"
+
item
.
userId
.
substring
(
8
,
11
);
return
temp
;
});
_this
.
$nextTick
(()
=>
{
...
...
H5/src/views/bank.vue
View file @
1b3b4c9f
...
...
@@ -105,7 +105,11 @@ export default {
this
.
$toast
.
fail
(
"请输入身份证号"
);
return
;
}
if
(
!
/^
[
1-9
]\d{5}(
18|19|20|
(
3
\d))\d{2}((
0
[
1-9
])
|
(
1
[
0-2
]))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$/
.
test
(
this
.
form
.
idCardNo
))
{
if
(
!
/^
[
1-9
]\d{5}(
18|19|20|
(
3
\d))\d{2}((
0
[
1-9
])
|
(
1
[
0-2
]))(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$/
.
test
(
this
.
form
.
idCardNo
)
)
{
this
.
$toast
.
fail
(
"请输入正确的身份证号"
);
return
;
}
...
...
H5/src/views/cashOut/cash-out.vue
View file @
1b3b4c9f
...
...
@@ -125,7 +125,7 @@ export default {
validCodeDialogShow
:
false
,
validCode
:
null
,
time
:
60
,
maxValue
:
8
,
maxValue
:
8
};
},
created
()
{
...
...
@@ -165,9 +165,9 @@ export default {
inputClick
()
{
this
.
rate
=
this
.
money
*
0.02
;
this
.
account
=
this
.
money
-
this
.
rate
;
let
num
=
this
.
money
let
num
=
this
.
money
;
var
re
=
/
([
0-9
]
+
\.[
0-9
]{2})[
0-9
]
*/
;
this
.
money
=
num
.
replace
(
re
,
"$1"
);
this
.
money
=
num
.
replace
(
re
,
"$1"
);
},
canCashOut
()
{
const
params
=
{
...
...
H5/src/views/my/myStatus.vue
View file @
1b3b4c9f
...
...
@@ -9,7 +9,7 @@
>
<div
class=
"userAvatar"
>
<div
class=
"avatar-box"
>
<img
class=
"avatar"
:src=
"avatar"
alt
=
"头像"
/>
<img
class=
"avatar"
:src=
"avatar"
alt
/>
<img
class=
"level-img"
src=
"@/assets/images/等级展示框.png"
alt
/>
<span
class=
"avatar-level"
>
Lv.
{{
userRecommendInfo
.
userlevel
}}
</span>
</div>
...
...
H5/src/views/register.vue
View file @
1b3b4c9f
...
...
@@ -65,8 +65,14 @@
<van-overlay
:show=
"show"
class-name=
"registerEorr"
@
click=
"onClickHide"
>
<div
class=
"wrapper"
@
click
.
stop
>
<div
class=
"title"
>
{{
title
}}
</div>
<div
class=
"error-tip"
></div>
<div
class=
"tip"
>
{{
tip
}}
</div>
<div
v-if=
"title == '注册失败'"
class=
"error-tip"
></div>
<div
v-else
class=
"success-tip"
>
<img
src=
"@/assets/images/成功.png"
alt
/>
</div>
<div
v-if=
"title == '注册失败'"
class=
"tip"
>
{{
tip
}}
</div>
<div
v-else
class=
"tip"
>
<a
:href=
"tip"
>
请点击下载App
</a>
</div>
<van-button
@
click=
"show = false"
>
确定
</van-button>
</div>
</van-overlay>
...
...
@@ -114,9 +120,6 @@ export default {
},
sendSms
()
{
const
_this
=
this
;
// if (_this.timer) {
// return false;
// }
// 校验手机号
let
phoneReg
=
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
012356789
]
|17
[
0-9
]
|18
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
;
//如果手机号码输入为空
...
...
@@ -172,11 +175,13 @@ export default {
_this
.
registerBtnDisabled
=
false
;
if
(
res
.
code
===
0
)
{
this
.
$toast
.
success
(
"注册成功"
);
//_this.$toast.sucess(res.msg);
_this
.
show
=
true
;
_this
.
title
=
"注册成功"
;
_this
.
tip
=
"https://www.pgyer.com/WJJS"
;
}
else
{
_this
.
title
=
"注册失败"
;
_this
.
show
=
true
;
_this
.
tip
=
res
.
msg
;
// _this.$toast.fail(res.msg);
}
});
}
...
...
@@ -269,6 +274,13 @@ export default {
letter-spacing
:
0px
;
color
:
#333333
;
}
.success-tip
{
margin
:
25px
auto
;
img
{
width
:
72px
;
height
:
72px
;
}
}
.error-tip
{
width
:
72px
;
height
:
72px
;
...
...
H5/vue.config.js
View file @
1b3b4c9f
...
...
@@ -5,7 +5,8 @@ module.exports = {
devServer
:
{
proxy
:
{
'/shop-mall'
:
{
target
:
"http://8.131.244.76:81/"
,
// target: "http://8.131.244.76:81/",
target
:
"http://8.140.108.250/"
,
changeOrigin
:
true
}
}
...
...
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