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