Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mini-program-wepy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
mini-program-wepy
Commits
22886f97
Commit
22886f97
authored
Jun 11, 2020
by
ziyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 修改bug,优化
parent
18d15417
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
raffle.wpy
src/pages/raffle.wpy
+8
-4
No files found.
src/pages/raffle.wpy
View file @
22886f97
...
@@ -269,7 +269,7 @@
...
@@ -269,7 +269,7 @@
isInnerDone: 'hide',
isInnerDone: 'hide',
innerActivity: '',
innerActivity: '',
isError: false,
isError: false,
code: ''
code: ''
,
},
},
methods: {
methods: {
check() {
check() {
...
@@ -282,9 +282,9 @@
...
@@ -282,9 +282,9 @@
let detail = e.$wx.detail || {};
let detail = e.$wx.detail || {};
function goprize() {
function goprize() {
updateUserPhone(detail).then(() => {
updateUserPhone(detail).then(() => {
that.confirmRaff();
wx.setStorageSync('hasPhone', true);
wx.setStorageSync('hasPhone', true);
that.hasPhone = true;
that.hasPhone = true;
that.joinin();
}).catch(() => {
}).catch(() => {
that.btnfont = '立即参与';
that.btnfont = '立即参与';
});
});
...
@@ -371,6 +371,10 @@
...
@@ -371,6 +371,10 @@
this.code = '';
this.code = '';
},
},
checkCode () {
checkCode () {
if(this.code === '') {
this.isError = true;
return;
}
checkInnerCode({code: this.code}).then(data => {
checkInnerCode({code: this.code}).then(data => {
if (+data.checkCode === 0) {
if (+data.checkCode === 0) {
this.closeModal();
this.closeModal();
...
@@ -391,8 +395,8 @@
...
@@ -391,8 +395,8 @@
}
}
},
},
watch: {
watch: {
code(val) {
code(val
,oldval
) {
if (
!val.length
&& this.isError) {
if (
val!==oldval
&& this.isError) {
this.isError = false;
this.isError = false;
}
}
}
}
...
...
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