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
2b4b7b8d
Commit
2b4b7b8d
authored
Jun 15, 2020
by
ziyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 优化
parent
c12c7ca6
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
.eslintcache
.eslintcache
+1
-1
index.wpy
src/pages/index.wpy
+6
-1
prize.wpy
src/pages/prize.wpy
+5
-2
No files found.
.eslintcache
View file @
2b4b7b8d
This diff is collapsed.
Click to expand it.
src/pages/index.wpy
View file @
2b4b7b8d
...
...
@@ -205,6 +205,7 @@
import Notify from '../components/vant/notify/notify';
import Dialog from '../components/vant/dialog/dialog';
import { login, register, getMainInfo, addGold, getPrizeList, signIn, getActivityFeed, checkCornCode } from '../common/api.js';
let flag = false;
wepy.page({
store,
data: {
...
...
@@ -446,6 +447,8 @@
// 获取openid
await this.getOpenId();
this.getMainInfo();
flag = true;
// 获取用户信息并注册
if (this.userInfo.nickName) {
...
...
@@ -468,7 +471,9 @@
},
async onShow() {
// 获取主页信息
this.getMainInfo();
if(flag) {
this.getMainInfo();
}
let join = wx.getStorageSync('userJoin');
if (join === 1) {
...
...
src/pages/prize.wpy
View file @
2b4b7b8d
...
...
@@ -59,6 +59,9 @@
font-size: @font-large;
}
}
.addtitle{
color:#c8c9cc
}
.van-picker .van-picker__cancel,.van-picker .van-picker__confirm{
color:@maincolor;
}
...
...
@@ -81,7 +84,7 @@
<van-field value="{{name}}" data-form="name" placeholder="收货人" bind:input ="setValue"></van-field>
<van-field value="{{phone}}" data-form="phone" placeholder="手机号码" bind:input ="setValue" maxlength="{{11}}"></van-field>
<van-field value="{{idNumber}}" data-form="idNumber" placeholder="收货人身份证号(应监管要求,必须填写)" bind:input ="setValue"></van-field>
<van-
field value="{{cityValue}}" placeholder="所在地区" bindtap="onClose" is-link readonly></van-field
>
<van-
cell title="{{cityValue}}" is-link bindtap="onClose" title-class="{{!city?'addtitle':''}}"></van-cell
>
<van-field value="{{address}}" data-form="address" placeholder="详细地址:如街道、小区、门牌号、楼栋号等" bind:input ="setValue"></van-field>
</view>
</view>
...
...
@@ -113,7 +116,7 @@
province: '',
city: '',
county: '',
cityValue: '',
cityValue: '
所在地区
',
areaList: [],
showAddress: false,
joinRecordId: null,
...
...
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