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
4b3e0854
Commit
4b3e0854
authored
May 28, 2020
by
ziyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 接口联调
parent
b22c9d5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
prize.wpy
src/pages/prize.wpy
+11
-5
No files found.
src/pages/prize.wpy
View file @
4b3e0854
...
...
@@ -88,7 +88,7 @@
</van-popup>
<view class="footerheight"></view>
<view class="footer">
<button class="getprize" bindtap="goprize">
领取
</button>
<button class="getprize" bindtap="goprize">
{{btnfont}}
</button>
</view>
<van-dialog id="van-dialog" confirmButtonColor="#FF5D15"/>
<van-notify id="van-notify" />
...
...
@@ -110,12 +110,13 @@
address:'',
province:'',
city:'',
count
r
y:'',
county:'',
cityValue:'',
areaList:[],
showAddress:false,
joinRecordId:null,
chance:''
chance:'',
btnfont:'领取'
},
methods: {
goprize() {
...
...
@@ -148,19 +149,24 @@
phone:this.phone,
province:this.province,
city:this.city,
count
ry:this.countr
y,
count
y:this.count
y,
address:this.address,
};
let message = '您所领取的奖品我们将在3到5个工作日内寄出,请您耐心等待,感谢您的参与!';
let cashmeg = '您所领取的奖品我们将会在几分钟内发出,请您耐心等待,感谢您的参与!';
let that = this;
this.btnfont = '提交中...'
if(this.btnfont!=='领取') return;
getPrize(params).then(()=>{
this.btnfont = '领取';
Dialog.alert({
title: '领取成功',
message: that.prize.cash?cashmeg:message,
}).then(() => {
wx.reLaunch({url:'/pages/index'})
});
}).catch(()=>{
this.btnfont = '领取';
});
},
onClose() {
...
...
@@ -175,7 +181,7 @@
let detail = event.$wx.detail.values;
this.province = detail[0].name;
this.city = detail[1].name;
this.count
r
y = detail[2].name;
this.county = detail[2].name;
this.cityValue = detail[0].name+detail[1].name+detail[2].name
this.onClose()
}
...
...
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