正在显示
7 个修改的文件
包含
44 行增加
和
37 行删除
1 | 1 | { |
2 | 2 | "pages": [ |
3 | - "pages/main/home/home", | |
3 | + "pages/main/home/home", | |
4 | + "pages/getPhone/getPhone", | |
4 | 5 | "pages/main/editinfo/editinfo", |
5 | 6 | "pages/main/idinfo/idinfo", |
6 | - "pages/login/login", | |
7 | - "pages/getPhone/getPhone" | |
8 | - | |
7 | + "pages/login/login" | |
9 | 8 | ], |
10 | 9 | "window": { |
11 | 10 | "backgroundTextStyle": "light", | ... | ... |
... | ... | @@ -72,7 +72,7 @@ Page({ |
72 | 72 | data: { |
73 | 73 | "mobile": mobile, |
74 | 74 | "type": "bindmobile", |
75 | - "scope": "global_access:expert" | |
75 | + "scope": "global_access:end_user" | |
76 | 76 | }, |
77 | 77 | header: { |
78 | 78 | 'content-type': 'application/json', // 默认值 |
... | ... | @@ -98,7 +98,7 @@ Page({ |
98 | 98 | "wx_open_id": that.data.wx_open_id, //可选,如果传了,绑定到对应的微信号 |
99 | 99 | "tenant_id": that.data.tenant_id, |
100 | 100 | "source": "wx_app", |
101 | - "scope": "expert" | |
101 | + "scope": "end_user" | |
102 | 102 | }, |
103 | 103 | method: "POST", |
104 | 104 | header: { |
... | ... | @@ -117,7 +117,7 @@ Page({ |
117 | 117 | app.globalData.wx_open_id = user.wx_open_id; |
118 | 118 | |
119 | 119 | wx.reLaunch({ |
120 | - url: '../tabbar/home/home' | |
120 | + url: '../main/home/home' | |
121 | 121 | }) |
122 | 122 | } else { |
123 | 123 | wx.showToast({ |
... | ... | @@ -130,7 +130,7 @@ Page({ |
130 | 130 | }, |
131 | 131 | complete: function (res) { |
132 | 132 | wx.reLaunch({ |
133 | - url: '../tabbar/home/home' | |
133 | + url: '../main/home/home' | |
134 | 134 | }) |
135 | 135 | } |
136 | 136 | }) | ... | ... |
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 | <view class="divide_line"></view> |
14 | 14 | |
15 | 15 | <view class='input-wrap' style='height:100rpx;right:0'> |
16 | - <input class="text-area float_left" bindinput="mobileInputEvent" name="mobile" type="number" placeholder='短信验证码' placeholder-class='text-area' style='width:320rpx'></input> | |
16 | + <input class="text-area float_left" bindinput="verifyInputEvent" name="verify_code" placeholder='短信验证码' placeholder-class='text-area' style='width:320rpx'></input> | |
17 | 17 | <button class="code-btn float_right" bindtap="verifyCodeEvent" disabled="{{buttonDisable}}">{{verifyCodeTime}}</button> |
18 | 18 | </view> |
19 | 19 | <view class="divide_line"></view> | ... | ... |
... | ... | @@ -22,22 +22,6 @@ |
22 | 22 | letter-spacing: 0; |
23 | 23 | } |
24 | 24 | |
25 | -/* .btn_bg { | |
26 | - margin-top: 16rpx; | |
27 | - background: #7fbefc; | |
28 | - box-shadow: 0 4px 14px 0 rgba(127, 190, 252, 0.30); | |
29 | - border-radius: 100px; | |
30 | -} | |
31 | - | |
32 | -.btn { | |
33 | - opacity: 0.8; | |
34 | - font-family: PingFang-SC-Medium; | |
35 | - font-size: 14px; | |
36 | - color: #fff; | |
37 | - letter-spacing: 0; | |
38 | - text-align: center; | |
39 | -} */ | |
40 | - | |
41 | 25 | .code-btn { |
42 | 26 | relative:absolute; |
43 | 27 | float: right; |
... | ... | @@ -45,7 +29,7 @@ |
45 | 29 | color: #fff; |
46 | 30 | font-size: 24rpx; |
47 | 31 | height: 64rpx; |
48 | - margin-top: 16rpx; | |
32 | + margin-top: 20rpx; | |
49 | 33 | background: #7fbefc; |
50 | 34 | box-shadow: 0 4px 14px 0 rgba(127, 190, 252, 0.30); |
51 | 35 | border-radius: 100px; | ... | ... |
1 | 1 | // pages/home/home.js |
2 | +var app = getApp(); | |
3 | +var baseUrl = app.globalData.baseUrl; | |
2 | 4 | Page({ |
3 | 5 | |
4 | 6 | /** |
5 | 7 | * 页面的初始数据 |
6 | 8 | */ |
7 | 9 | data: { |
8 | - list:["",""] | |
10 | + taxlist:["",""] | |
9 | 11 | }, |
10 | 12 | |
11 | 13 | /** |
12 | 14 | * 生命周期函数--监听页面加载 |
13 | 15 | */ |
14 | 16 | onLoad: function (options) { |
15 | - | |
17 | + | |
16 | 18 | }, |
17 | 19 | |
18 | 20 | /** |
... | ... | @@ -26,10 +28,33 @@ Page({ |
26 | 28 | * 生命周期函数--监听页面显示 |
27 | 29 | */ |
28 | 30 | onShow: function () { |
29 | - | |
31 | + this.getTaxList() | |
32 | + }, | |
33 | + | |
34 | + getTaxList:function(){ | |
35 | + var that = this; | |
36 | + var Authorization = app.globalData.Authorization; | |
37 | + wx.request({ | |
38 | + url: baseUrl + 'payroll/v1/personal-taxes', | |
39 | + method: "GET", | |
40 | + header: { | |
41 | + 'content-type': 'application/json', // 默认值 | |
42 | + "Authorization": Authorization | |
43 | + }, | |
44 | + success: function (res) { | |
45 | + console.log(res.data) | |
46 | + that.setData({ | |
47 | + taxlist:res.data.items | |
48 | + }) | |
49 | + }, | |
50 | + fail(res) { | |
51 | + console.log(res.data) | |
52 | + } | |
53 | + }) | |
30 | 54 | }, |
31 | 55 | |
32 | 56 | goadd:function(){ |
57 | + console.log("goadd") | |
33 | 58 | wx.navigateTo({ |
34 | 59 | url: '../editinfo/editinfo', |
35 | 60 | }) | ... | ... |
1 | 1 | <view class='page'> |
2 | 2 | |
3 | - <view wx:if="{{list.length>0}}"> | |
4 | - <block wx:for="{{list}}" wx:key=""> | |
5 | - <view class='rectangle_solid_bg'> | |
3 | + <view wx:if="{{taxlist.length>0}}"> | |
4 | + <block wx:for="{{taxlist}}" wx:key=""> | |
5 | + <view class='rectangle_solid_bg' bindtap='goadd'> | |
6 | 6 | <view style='padding:12rpx 22rpx'> |
7 | - <text class='text_black_28'>小爱同学</text> | |
7 | + <text class='text_black_28'>{{item.name}}</text> | |
8 | 8 | <text class='rectangle_orange_bg text_red_20' hidden="true">子女</text> |
9 | 9 | <image class='arrow_wrap' src='/images/arrow_right.png'> </image> |
10 | 10 | <text class='text_light_blue_28' style='float:right'>去完善</text> |
... | ... | @@ -12,10 +12,10 @@ |
12 | 12 | </view> |
13 | 13 | <view style='padding:12rpx 22rpx'> |
14 | 14 | <image class='phone_image_wrap' src='/images/phone.png'></image> |
15 | - <text class='text_999_22'>130****8888</text> | |
15 | + <text class='text_999_22'>{{item.mobile}}</text> | |
16 | 16 | <text style='margin:0rpx 20rpx;color:#999;height:16rpx'>|</text> |
17 | 17 | <image class='id_image_wrap' src='/images/id.png'></image> |
18 | - <text class='text_999_22'>152000********0000</text> | |
18 | + <text class='text_999_22'>{{item.id_card_no}}</text> | |
19 | 19 | </view> |
20 | 20 | </view> |
21 | 21 | </block> | ... | ... |
请
注册
或
登录
后发表评论