提交 c228475332c6cff38a4227db6442bc112c92de93

作者 wangyu
1 个父辈 0851918f

修改

@@ -50,7 +50,7 @@ App({ @@ -50,7 +50,7 @@ App({
50 console.log("getTokenByCode", res.data) 50 console.log("getTokenByCode", res.data)
51 var user = res.data.user; 51 var user = res.data.user;
52 var tenant = res.data.tenant; 52 var tenant = res.data.tenant;
53 - if (tenant && tenant.length > 0) { 53 + if (tenant) {
54 that.globalData.tenant_id = tenant.id; 54 that.globalData.tenant_id = tenant.id;
55 } 55 }
56 that.globalData.userInfo = res.data.user; 56 that.globalData.userInfo = res.data.user;
@@ -32,7 +32,7 @@ Page({ @@ -32,7 +32,7 @@ Page({
32 if (this.data.buttonDisable) return; 32 if (this.data.buttonDisable) return;
33 var that = this; 33 var that = this;
34 var mobile = this.data.mobile; 34 var mobile = this.data.mobile;
35 - var regMobile = /^1[3|4|5|7|8][0-9]{9}$/; 35 + var regMobile = /^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[8-9])[0-9]{8}$/;
36 console.log("mobile---", mobile); 36 console.log("mobile---", mobile);
37 if (!regMobile.test(mobile)) { 37 if (!regMobile.test(mobile)) {
38 wx.showToast({ 38 wx.showToast({
@@ -124,7 +124,9 @@ Page({ @@ -124,7 +124,9 @@ Page({
124 }, 124 },
125 125
126 gosave:function(){ 126 gosave:function(){
127 - 127 + wx.navigateBack({
  128 + delta: 1
  129 + })
128 }, 130 },
129 131
130 onPickerSelect: function (e) { 132 onPickerSelect: function (e) {
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 <view class='divide_line_f5f5f5'></view> 17 <view class='divide_line_f5f5f5'></view>
18 <view style='height:90rpx'> 18 <view style='height:90rpx'>
19 <text class='text_black_30 float_left'>子女身份证号</text> 19 <text class='text_black_30 float_left'>子女身份证号</text>
20 - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入子女身份证号'></input> 20 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入子女身份证号'type='idcard'></input>
21 </view> 21 </view>
22 <view class='divide_line_f5f5f5'></view> 22 <view class='divide_line_f5f5f5'></view>
23 <view style='height:90rpx'> 23 <view style='height:90rpx'>
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 <view class='divide_line_f5f5f5'></view> 38 <view class='divide_line_f5f5f5'></view>
39 <view style='height:90rpx'> 39 <view style='height:90rpx'>
40 <text class='text_black_30 float_left'>扣除金额</text> 40 <text class='text_black_30 float_left'>扣除金额</text>
41 - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;;text-align: right' placeholder='请输入扣除金额'></input> 41 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;;text-align: right' placeholder='请输入扣除金额' type='digit'></input>
42 </view> 42 </view>
43 <view class='divide_line_f5f5f5'></view> 43 <view class='divide_line_f5f5f5'></view>
44 <view style='height:90rpx;'> 44 <view style='height:90rpx;'>
@@ -88,7 +88,7 @@ @@ -88,7 +88,7 @@
88 <view class='divide_line_f5f5f5'></view> 88 <view class='divide_line_f5f5f5'></view>
89 <view style='height:90rpx'> 89 <view style='height:90rpx'>
90 <text class='text_black_30 float_left'>老人身份证号</text> 90 <text class='text_black_30 float_left'>老人身份证号</text>
91 - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入老人身份证号'></input> 91 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入老人身份证号'type='idcard'></input>
92 </view> 92 </view>
93 <view class='divide_line_f5f5f5'></view> 93 <view class='divide_line_f5f5f5'></view>
94 <!-- <view style='height:90rpx'> 94 <!-- <view style='height:90rpx'>
@@ -115,7 +115,7 @@ @@ -115,7 +115,7 @@
115 <view wx:if="{{cur_index==3}}"> 115 <view wx:if="{{cur_index==3}}">
116 <view style='height:90rpx'> 116 <view style='height:90rpx'>
117 <text class='text_black_30 float_left'>扣除金额</text> 117 <text class='text_black_30 float_left'>扣除金额</text>
118 - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入扣除金额'></input> 118 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入扣除金额'type='digit'></input>
119 </view> 119 </view>
120 </view> 120 </view>
121 121
@@ -128,7 +128,7 @@ @@ -128,7 +128,7 @@
128 <view class='divide_line_f5f5f5'></view> 128 <view class='divide_line_f5f5f5'></view>
129 <view style='height:90rpx'> 129 <view style='height:90rpx'>
130 <text class='text_black_30 float_left'>配偶身份证号</text> 130 <text class='text_black_30 float_left'>配偶身份证号</text>
131 - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入配偶身份证号'></input> 131 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入配偶身份证号'type='idcard'></input>
132 </view> 132 </view>
133 </view> 133 </view>
134 <view class='divide_line_f5f5f5'></view> 134 <view class='divide_line_f5f5f5'></view>
@@ -7,33 +7,29 @@ Page({ @@ -7,33 +7,29 @@ Page({
7 data: { 7 data: {
8 flag_housing01: false, 8 flag_housing01: false,
9 flag_housing02: false, 9 flag_housing02: false,
10 - repContent: [{  
11 - message: '子女教育'  
12 - }, {  
13 - message: '继续教育'  
14 - }, {  
15 - message: '赡养老人'  
16 - }, {  
17 - message: '大病医疗'  
18 - }, {  
19 - message: '住房'  
20 - }],  
21 selectIndex: [{ 10 selectIndex: [{
  11 + message: '子女教育',
22 sureid: false 12 sureid: false
23 }, { 13 }, {
  14 + message: '继续教育',
24 sureid: false 15 sureid: false
25 }, { 16 }, {
  17 + message: '赡养老人',
26 sureid: false 18 sureid: false
27 }, { 19 }, {
  20 + message: '大病医疗',
28 sureid: false 21 sureid: false
29 }, { 22 }, {
30 - sureid: false 23 + message: '住房',
  24 + sureid: false,
  25 + housing01:false,
  26 + extra_message :''
31 }, ], 27 }, ],
32 unitData: { 28 unitData: {
33 label: '选择申报单位', 29 label: '选择申报单位',
34 bindtype: 'unit', 30 bindtype: 'unit',
35 - selected: '',  
36 - values: ["北京小爱智能科技有限公司", "杭州蜗壳爱有限公司"], 31 + selected: '北京小爱智能科技',
  32 + values: ["北京小爱智能科技"],
37 placeholder: '请选择申报单位', 33 placeholder: '请选择申报单位',
38 onChange: 'onPickerSelect' 34 onChange: 'onPickerSelect'
39 }, 35 },
@@ -44,7 +40,19 @@ Page({ @@ -44,7 +40,19 @@ Page({
44 * Lifecycle function--Called when page load 40 * Lifecycle function--Called when page load
45 */ 41 */
46 onLoad: function(options) { 42 onLoad: function(options) {
47 - 43 + var that = this
  44 + // wx.clearStorage()
  45 + wx.getStorage({
  46 + key: 'selectitems',
  47 + success: function (res) {
  48 + console.log("selectitems", res.data)
  49 + that.setData({
  50 + selectIndex: res.data,
  51 + flag_housing01: res.data[res.data.length - 1].housing01,
  52 + flag_housing02: !res.data[res.data.length - 1].housing01
  53 + })
  54 + },
  55 + })
48 }, 56 },
49 57
50 /** 58 /**
@@ -101,6 +109,55 @@ Page({ @@ -101,6 +109,55 @@ Page({
101 } 109 }
102 }, 110 },
103 111
  112 + gocommit: function() {
  113 + if (!this.data.unitData.selected || !this.data.unitData.selected.length>0){
  114 + wx.showToast({
  115 + title: '请选择申报单位',
  116 + })
  117 + return;
  118 + }
  119 + var selectjson = new Array();
  120 + for (var i = 0; i < this.data.selectIndex.length; i++) {
  121 + if (this.data.selectIndex[i].sureid) {
  122 + selectjson.push(this.data.selectIndex[i]);
  123 + }
  124 + }
  125 + console.log("selectjson01",selectjson)
  126 + if (selectjson.length<1) {
  127 + wx.showToast({
  128 + title: '请选择专项附加扣除',
  129 + })
  130 + return;
  131 + } else {
  132 + if (selectjson[selectjson.length - 1].sureid ) {
  133 + if(this.data.flag_housing01 || this.data.flag_housing02){
  134 + selectjson[selectjson.length - 1].housing01 = true;
  135 + selectjson[selectjson.length - 1].extra_message = this.data.flag_housing01 ? "住房贷款利息" :"住房租金" ;
  136 + this.setData({
  137 + selectIndex: selectjson
  138 + })
  139 + }
  140 + } else {
  141 + wx.showToast({
  142 + title: '请选择住房类型',
  143 + })
  144 + return;
  145 + }
  146 + }
  147 + wx.setStorage({
  148 + key: 'is_declared',
  149 + data: true,
  150 + })
  151 + wx.setStorage({
  152 + key: 'selectitems',
  153 + data: this.data.selectIndex,
  154 + })
  155 +
  156 + wx.redirectTo({
  157 + url: '../godetail/godetail'
  158 + })
  159 + },
  160 +
104 /** 161 /**
105 * Lifecycle function--Called when page hide 162 * Lifecycle function--Called when page hide
106 */ 163 */
@@ -16,13 +16,13 @@ @@ -16,13 +16,13 @@
16 </view> 16 </view>
17 <text class='text_black_30' style='padding-left:30rpx'>选择专项附加扣除项</text> 17 <text class='text_black_30' style='padding-left:30rpx'>选择专项附加扣除项</text>
18 18
19 - <view wx:for="{{repContent}}" class="multi-selection" style='padding:0 30rpx'> 19 + <view wx:for="{{selectIndex}}" class="multi-selection" style='padding:0 30rpx'>
20 <view class='float_left'> 20 <view class='float_left'>
21 <image src="{{selectIndex[index].sureid? '/images/selected.png' : '/images/unselected.png'}}" class="multi-img" data-selectIndex="{{index}}" bindtap="selectRep" style='margin-top:20rpx' /> 21 <image src="{{selectIndex[index].sureid? '/images/selected.png' : '/images/unselected.png'}}" class="multi-img" data-selectIndex="{{index}}" bindtap="selectRep" style='margin-top:20rpx' />
22 </view> 22 </view>
23 <text class="{{selectIndex[index].sureid?'select_blue_28':'select_666_28'}}" style='line-height:80rpx;margin-left: 34rpx;'>{{item.message}}</text> 23 <text class="{{selectIndex[index].sureid?'select_blue_28':'select_666_28'}}" style='line-height:80rpx;margin-left: 34rpx;'>{{item.message}}</text>
24 </view> 24 </view>
25 - <view wx:if='{{selectIndex[4].sureid}}' style='background: #F1FAFD;height:62rpx;position: relative;display: flex;justify-content:center'> 25 + <view wx:if="{{selectIndex[4].sureid}}" style='background: #F1FAFD;height:62rpx;position: relative;display: flex;justify-content:center'>
26 <view bindtap='housing01'> 26 <view bindtap='housing01'>
27 <view class='float_left'> 27 <view class='float_left'>
28 <image class='single-img' src="{{flag_housing01? '/images/selected02.png' : '/images/unselected02.png'}}" style='margin-top:16rpx'></image> 28 <image class='single-img' src="{{flag_housing01? '/images/selected02.png' : '/images/unselected02.png'}}" style='margin-top:16rpx'></image>
@@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
39 </view> 39 </view>
40 </view> 40 </view>
41 41
42 - <view>  
43 - <button class="btn_bottom"> 提交</button> 42 + <view class="btn_bottom" bindtap='gocommit'>
  43 + <button class="btn_bottom" > 提交</button>
44 </view> 44 </view>
45 </view> 45 </view>
@@ -5,14 +5,23 @@ Page({ @@ -5,14 +5,23 @@ Page({
5 * Page initial data 5 * Page initial data
6 */ 6 */
7 data: { 7 data: {
8 - datas: ["子女教育", "继续教育", "赡养老人", "大病医疗"] 8 + datas02: ["子女教育", "继续教育", "赡养老人", "大病医疗"]
9 }, 9 },
10 10
11 /** 11 /**
12 * Lifecycle function--Called when page load 12 * Lifecycle function--Called when page load
13 */ 13 */
14 onLoad: function (options) { 14 onLoad: function (options) {
15 - 15 + var that = this
  16 + wx.getStorage({
  17 + key: 'selectitems',
  18 + success: function (res) {
  19 + console.log("selectitems", res.data)
  20 + that.setData({
  21 + datas02: res.data
  22 + })
  23 + },
  24 + })
16 }, 25 },
17 26
18 /** 27 /**
@@ -32,7 +41,7 @@ Page({ @@ -32,7 +41,7 @@ Page({
32 lookandadd:function(e){ 41 lookandadd:function(e){
33 console.log("e", e); 42 console.log("e", e);
34 wx.navigateTo({ 43 wx.navigateTo({
35 - url: '../addextrainfo/addextrainfo?index=' + e.currentTarget.id, 44 + url: '../lookandupdate/lookandupdate?index=' + e.currentTarget.id,
36 }) 45 })
37 }, 46 },
38 47
@@ -7,9 +7,9 @@ @@ -7,9 +7,9 @@
7 <view class='divide_line_f5f5f5' style='margin-top:30rpx' ></view> 7 <view class='divide_line_f5f5f5' style='margin-top:30rpx' ></view>
8 </view> 8 </view>
9 <view wx:if="true"> 9 <view wx:if="true">
10 - <view wx:for="{{datas}}"> 10 + <view wx:for="{{datas02}}">
11 <view class='card_rectangle_bg_column' style='padding:30rpx;margin-top:30rpx'> 11 <view class='card_rectangle_bg_column' style='padding:30rpx;margin-top:30rpx'>
12 - <text class='text_black_32'>{{datas[index]}}</text> 12 + <text class='text_black_32'>{{datas02[index].message}}</text>
13 <view style='margin:20rpx 0'> 13 <view style='margin:20rpx 0'>
14 <text class='text_gray_22 float_left'>已抵扣额度:4890.00</text> 14 <text class='text_gray_22 float_left'>已抵扣额度:4890.00</text>
15 <text class='text_gray_22 float_right'>剩余可抵扣额度:12810.00</text> 15 <text class='text_gray_22 float_right'>剩余可抵扣额度:12810.00</text>
@@ -5,30 +5,32 @@ Page({ @@ -5,30 +5,32 @@ Page({
5 * Page initial data 5 * Page initial data
6 */ 6 */
7 data: { 7 data: {
8 - datas:["子女教育","继续教育","赡养老人","大病医疗","住房贷款利息"] 8 + datas: [""],
  9 + is_declared: false,
  10 + datas02: ["子女教育", "继续教育", "赡养老人", "大病医疗", "住房贷款利息"]
9 }, 11 },
10 12
11 /** 13 /**
12 * Lifecycle function--Called when page load 14 * Lifecycle function--Called when page load
13 */ 15 */
14 - onLoad: function (options) {  
15 - 16 + onLoad: function(options) {
  17 + console.log("onLoad");
16 }, 18 },
17 19
18 - godeclare:function(){ 20 + godeclare: function() {
19 wx.navigateTo({ 21 wx.navigateTo({
20 url: 'godeclare/godeclare', 22 url: 'godeclare/godeclare',
21 }) 23 })
22 }, 24 },
23 25
24 - godetail: function () {  
25 - wx.navigateTo({  
26 - url: 'godetail/godetail',  
27 - }) 26 + godetail: function() {
  27 + wx.navigateTo({
  28 + url: 'godetail/godetail',
  29 + })
28 }, 30 },
29 31
30 - lookandadd: function (e) {  
31 - console.log("lookandadd",e); 32 + lookandadd: function(e) {
  33 + console.log("lookandadd", e);
32 wx.navigateTo({ 34 wx.navigateTo({
33 url: 'lookandupdate/lookandupdate?index=' + e.currentTarget.id, 35 url: 'lookandupdate/lookandupdate?index=' + e.currentTarget.id,
34 }) 36 })
@@ -37,49 +39,70 @@ Page({ @@ -37,49 +39,70 @@ Page({
37 /** 39 /**
38 * Lifecycle function--Called when page is initially rendered 40 * Lifecycle function--Called when page is initially rendered
39 */ 41 */
40 - onReady: function () {  
41 - 42 + onReady: function() {
  43 + console.log("onReady");
42 }, 44 },
43 45
44 /** 46 /**
45 * Lifecycle function--Called when page show 47 * Lifecycle function--Called when page show
46 */ 48 */
47 - onShow: function () { 49 + onShow: function() {
  50 + console.log("onShow");
  51 + var that = this
  52 + // wx.clearStorage()
  53 + wx.getStorage({
  54 + key: 'is_declared',
  55 + success: function (res) {
  56 + console.log("is_declared", res.data)
  57 + that.setData({
  58 + is_declared: res.data
  59 + })
  60 + },
  61 + })
48 62
  63 + wx.getStorage({
  64 + key: 'selectitems',
  65 + success: function (res) {
  66 + console.log("selectitems", res.data)
  67 + that.setData({
  68 + datas02: res.data
  69 + })
  70 + },
  71 + })
49 }, 72 },
50 73
51 /** 74 /**
52 * Lifecycle function--Called when page hide 75 * Lifecycle function--Called when page hide
53 */ 76 */
54 - onHide: function () { 77 + onHide: function() {
55 78
56 }, 79 },
57 80
58 /** 81 /**
59 * Lifecycle function--Called when page unload 82 * Lifecycle function--Called when page unload
60 */ 83 */
61 - onUnload: function () { 84 + onUnload: function() {
62 85
63 }, 86 },
64 87
65 /** 88 /**
66 * Page event handler function--Called when user drop down 89 * Page event handler function--Called when user drop down
67 */ 90 */
68 - onPullDownRefresh: function () { 91 + onPullDownRefresh: function() {
69 92
70 }, 93 },
71 94
72 /** 95 /**
73 * Called when page reach bottom 96 * Called when page reach bottom
74 */ 97 */
75 - onReachBottom: function () { 98 + onReachBottom: function() {
76 99
77 }, 100 },
78 101
79 /** 102 /**
80 * Called when user click on the top right corner to share 103 * Called when user click on the top right corner to share
81 */ 104 */
82 - onShareAppMessage: function () { 105 + onShareAppMessage: function() {
83 106
84 } 107 }
85 }) 108 })
@@ -5,38 +5,39 @@ @@ -5,38 +5,39 @@
5 <block wx:for="{{datas}}" wx:key=""> 5 <block wx:for="{{datas}}" wx:key="">
6 <view class='card_rectangle_bg_column' style="margin-top:30rpx"> 6 <view class='card_rectangle_bg_column' style="margin-top:30rpx">
7 <view style='position:absolute' style='padding:44rpx 30rpx;'> 7 <view style='position:absolute' style='padding:44rpx 30rpx;'>
8 - <view hidden='{{index!=0}}' style='float:left;margin-top:4rpx'>  
9 - <text class='text_999_32'>北京小爱科技北京小爱科</text> 8 + <view hidden='{{is_declared}}' style='float:left;margin-top:4rpx'>
  9 + <text class='text_999_32'>北京小爱智能科技</text>
10 </view> 10 </view>
11 - <view hidden='{{index==0}}' style='float:left;margin-top:4rpx'>  
12 - <text class='text_black_32'>北京小爱科技北京小爱</text> 11 + <view hidden='{{!is_declared}}' style='float:left;margin-top:4rpx'>
  12 + <text class='text_black_32'>北京小爱智能科技</text>
13 </view> 13 </view>
14 14
15 - <image hidden='{{index!=0}}' class='declare_image_wrap' style='margin-top:12rpx;' src='/images/already_declare.png'></image>  
16 -  
17 - <image hidden='{{index==0}}' class='declare_image_wrap' style='margin-top:12rpx;' src='/images/not_declare.png'></image>  
18 - <view style='float:right' hidden='{{index!=0}}' bindtap='godeclare'> 15 + <image hidden='{{is_declared}}' class='declare_image_wrap' style='margin-top:12rpx;' src='/images/not_declare.png'></image>
  16 + <image hidden='{{!is_declared}}' class='declare_image_wrap' style='margin-top:12rpx;' src='/images/already_declare.png'></image>
  17 + <view style='float:right' hidden='{{is_declared}}' bindtap='godeclare'>
19 <text class='text_blue_28'>去申报</text> 18 <text class='text_blue_28'>去申报</text>
20 <image class='arrow_img_wrap' src='/images/arrow_right.png'></image> 19 <image class='arrow_img_wrap' src='/images/arrow_right.png'></image>
21 </view> 20 </view>
22 - <view style='float:right' hidden='{{index==0}}' bindtap='godetail'> 21 + <view style='float:right' hidden='{{!is_declared}}' bindtap='godeclare'>
23 <text class='text_blue_28'>调整使用项</text> 22 <text class='text_blue_28'>调整使用项</text>
24 <image class='arrow_img_wrap' src='/images/arrow_right.png'></image> 23 <image class='arrow_img_wrap' src='/images/arrow_right.png'></image>
25 </view> 24 </view>
26 25
27 </view> 26 </view>
28 27
29 - <view wx:if="{{index!=0}}" style=''>  
30 - <block wx:for="{{datas}}" wx:key="">  
31 - <view class='divide_line'></view>  
32 - <view style='padding:44rpx 30rpx;display:flex;flex-direction:column'>  
33 - <view >  
34 - <text class='text_666_30 float_left'>{{datas[index]}}</text>  
35 - <text class='text_blue_28 float_right' bindtap='lookandadd' id='{{index}}'>查看并调整</text>  
36 - </view>  
37 - <view style='margin-top:20rpx'>  
38 - <text class='text_gray_22 float_left'>已抵扣额度:4890.00</text>  
39 - <text class='text_gray_22 float_right'>剩余可抵扣额度:12810.00</text> 28 + <view wx:if="{{is_declared}}" style=''>
  29 + <block wx:for="{{datas02}}" wx:key="">
  30 + <view hidden="{{!datas02[index].sureid}}">
  31 + <view class='divide_line'></view>
  32 + <view style='padding:44rpx 30rpx;display:flex;flex-direction:column'>
  33 + <view>
  34 + <text class='text_666_30 float_left'>{{datas02[index].message}}</text>
  35 + <text class='text_blue_28 float_right' bindtap='lookandadd' id='{{index}}'>查看并调整</text>
  36 + </view>
  37 + <view style='margin-top:20rpx'>
  38 + <text class='text_gray_22 float_left'>已抵扣额度:4890.00</text>
  39 + <text class='text_gray_22 float_right'>剩余可抵扣额度:12810.00</text>
  40 + </view>
40 </view> 41 </view>
41 </view> 42 </view>
42 </block> 43 </block>
@@ -6,21 +6,38 @@ Page({ @@ -6,21 +6,38 @@ Page({
6 */ 6 */
7 data: { 7 data: {
8 cur_index:0, 8 cur_index:0,
9 - add_text_arr: ["添加子女", "添加继续教育", "添加老人", "添加大病医疗", "添加住房贷款利息"],  
10 - title_arr: ["子女教育", "继续教育","赡养老人","大病医疗","住房贷款利息"] 9 + add_text_arr: ["添加子女", "添加继续教育", "添加老人", "添加大病医疗", "添加住房贷款利息"], title:'',
  10 + datas02: []
11 }, 11 },
12 12
13 /** 13 /**
14 * Lifecycle function--Called when page load 14 * Lifecycle function--Called when page load
15 */ 15 */
16 onLoad: function (options) { 16 onLoad: function (options) {
  17 + var that= this
17 console.log("options", options); 18 console.log("options", options);
18 this.setData({ 19 this.setData({
19 cur_index: options.index 20 cur_index: options.index
20 }) 21 })
21 - wx.setNavigationBarTitle({  
22 - title: this.data.title_arr[this.data.cur_index] 22 + wx.getStorage({
  23 + key: 'selectitems',
  24 + success: function (res) {
  25 + console.log("selectitems", res.data)
  26 + wx.setNavigationBarTitle({
  27 + title: res.data[options.index].message,
  28 + })
  29 + that.setData({
  30 + title: res.data[options.index].message,
  31 + datas02: res.data
  32 + })
  33 + },
23 }) 34 })
  35 +
  36 + // if (this.data.datas02 && this.data.datas02.length>0){
  37 + // for (var i = 0; i < this.data.datas02.length;i++){
  38 +
  39 + // }
  40 + // }
24 }, 41 },
25 42
26 /** 43 /**
@@ -34,11 +51,18 @@ Page({ @@ -34,11 +51,18 @@ Page({
34 * Lifecycle function--Called when page show 51 * Lifecycle function--Called when page show
35 */ 52 */
36 onShow: function () { 53 onShow: function () {
37 - 54 + // wx.showLoading({
  55 + // title: '加载中',
  56 + // })
  57 + // setTimeout(function(){
  58 + // wx.hideLoading()
  59 + // },2000)
38 }, 60 },
39 61
40 lookimg:function(){//查看材料 62 lookimg:function(){//查看材料
41 - 63 + wx.showToast({
  64 + title: '查看材料',
  65 + })
42 }, 66 },
43 67
44 goadd:function(e){//添加 68 goadd:function(e){//添加
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 <view class='divide_line_f5f5f5'></view> 25 <view class='divide_line_f5f5f5'></view>
26 <view style='margin:30rpx;' class='card_rectangle_bg_column'> 26 <view style='margin:30rpx;' class='card_rectangle_bg_column'>
27 <!-- 子女教育 --> 27 <!-- 子女教育 -->
28 - <view wx:if="{{cur_index==0}}" style='display:flex;flex-direction:column;padding:30rpx;'> 28 + <view wx:if="{{title=='子女教育'}}" style='display:flex;flex-direction:column;padding:30rpx;'>
29 <view style='height:40rpx'> 29 <view style='height:40rpx'>
30 <text class='text_999_28 float_left'>子女姓名</text> 30 <text class='text_999_28 float_left'>子女姓名</text>
31 <text class='text_333_28 float_right'>纳兰嫣然</text> 31 <text class='text_333_28 float_right'>纳兰嫣然</text>
@@ -54,14 +54,10 @@ @@ -54,14 +54,10 @@
54 <text class='text_999_28 float_left'>扣除比例</text> 54 <text class='text_999_28 float_left'>扣除比例</text>
55 <text class='text_333_28 float_right'>40%</text> 55 <text class='text_333_28 float_right'>40%</text>
56 </view> 56 </view>
57 - <view style='height:40rpx'>  
58 - <text class='text_999_28 float_left'>扣除时间</text>  
59 - <text class='text_333_28 float_right'>2018年10月</text>  
60 - </view>  
61 </view> 57 </view>
62 58
63 <!-- 继续教育 --> 59 <!-- 继续教育 -->
64 - <view wx:if="{{cur_index==1}}" style='display:flex;flex-direction:column;padding:30rpx;'> 60 + <view wx:if="{{title=='继续教育'}}" style='display:flex;flex-direction:column;padding:30rpx;'>
65 <view style='height:40rpx'> 61 <view style='height:40rpx'>
66 <text class='text_999_28 float_left'>教育类型</text> 62 <text class='text_999_28 float_left'>教育类型</text>
67 <text class='text_333_28 float_right'>消防工程师</text> 63 <text class='text_333_28 float_right'>消防工程师</text>
@@ -74,14 +70,10 @@ @@ -74,14 +70,10 @@
74 <text class='text_999_28 float_left'>职业资格编号</text> 70 <text class='text_999_28 float_left'>职业资格编号</text>
75 <text class='text_333_28 float_right'>ed29839284</text> 71 <text class='text_333_28 float_right'>ed29839284</text>
76 </view> 72 </view>
77 - <view style='height:40rpx'>  
78 - <text class='text_999_28 float_left'>扣除时间</text>  
79 - <text class='text_333_28 float_right'>2018年1月</text>  
80 - </view>  
81 </view> 73 </view>
82 74
83 <!-- 赡养老人 --> 75 <!-- 赡养老人 -->
84 - <view wx:if="{{cur_index==2}}" style='display:flex;flex-direction:column;padding:30rpx;'> 76 + <view wx:if="{{title=='赡养老人'}}" style='display:flex;flex-direction:column;padding:30rpx;'>
85 <view style='height:40rpx'> 77 <view style='height:40rpx'>
86 <text class='text_999_28 float_left'>老人姓名</text> 78 <text class='text_999_28 float_left'>老人姓名</text>
87 <text class='text_333_28 float_right'>任我行</text> 79 <text class='text_333_28 float_right'>任我行</text>
@@ -102,26 +94,18 @@ @@ -102,26 +94,18 @@
102 <text class='text_999_28 float_left'>分摊比例</text> 94 <text class='text_999_28 float_left'>分摊比例</text>
103 <text class='text_333_28 float_right'>5:5</text> 95 <text class='text_333_28 float_right'>5:5</text>
104 </view> 96 </view>
105 - <view style='height:40rpx'>  
106 - <text class='text_999_28 float_left'>扣除时间</text>  
107 - <text class='text_333_28 float_right'>2019年10月</text>  
108 - </view>  
109 </view> 97 </view>
110 98
111 <!-- 大病医疗 --> 99 <!-- 大病医疗 -->
112 - <view wx:if="{{cur_index==3}}" style='display:flex;flex-direction:column;padding:30rpx;'> 100 + <view wx:if="{{title=='大病医疗'}}" style='display:flex;flex-direction:column;padding:30rpx;'>
113 <view style='height:40rpx'> 101 <view style='height:40rpx'>
114 <text class='text_999_28 float_left'>扣除金额</text> 102 <text class='text_999_28 float_left'>扣除金额</text>
115 <text class='text_333_28 float_right'>42895</text> 103 <text class='text_333_28 float_right'>42895</text>
116 </view> 104 </view>
117 - <view style='height:40rpx'>  
118 - <text class='text_999_28 float_left'>扣除时间</text>  
119 - <text class='text_333_28 float_right'>2019年10月</text>  
120 - </view>  
121 </view> 105 </view>
122 106
123 <!-- 住房 --> 107 <!-- 住房 -->
124 - <view wx:if="{{cur_index==4}}" style='display:flex;flex-direction:column;padding:30rpx;'> 108 + <view wx:if="{{title=='住房贷款利息'||title=='住房租金'}}" style='display:flex;flex-direction:column;padding:30rpx;'>
125 <view style='height:40rpx'> 109 <view style='height:40rpx'>
126 <text class='text_999_28 float_left'>配偶姓名</text> 110 <text class='text_999_28 float_left'>配偶姓名</text>
127 <text class='text_333_28 float_right'>刘顺丰</text> 111 <text class='text_333_28 float_right'>刘顺丰</text>
@@ -130,10 +114,10 @@ @@ -130,10 +114,10 @@
130 <text class='text_999_28 float_left'>配偶身份证号</text> 114 <text class='text_999_28 float_left'>配偶身份证号</text>
131 <text class='text_333_28 float_right'>42902384023855252</text> 115 <text class='text_333_28 float_right'>42902384023855252</text>
132 </view> 116 </view>
133 - <view style='height:40rpx'>  
134 - <text class='text_999_28 float_left'>扣除时间</text>  
135 - <text class='text_333_28 float_right'>2019年10月</text>  
136 - </view> 117 + </view>
  118 + <view style='height:40rpx;padding:0 30rpx;'>
  119 + <text class='text_999_28 float_left'>扣除时间</text>
  120 + <text class='text_333_28 float_right'>2019年10月</text>
137 </view> 121 </view>
138 122
139 <view class='divide_line_f5f5f5' style='margin-top:20rpx'></view> 123 <view class='divide_line_f5f5f5' style='margin-top:20rpx'></view>
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 </picker> 13 </picker>
14 <view class='divide_line_f5f5f5'></view> 14 <view class='divide_line_f5f5f5'></view>
15 <view style='padding:30rpx 0'> 15 <view style='padding:30rpx 0'>
16 - <text class='text_666_30 float_left'>累计工资税收</text> 16 + <text class='text_666_30 float_left'>累计工资收入</text>
17 <text class='text_333_30_bold float_right'>400000.00</text> 17 <text class='text_333_30_bold float_right'>400000.00</text>
18 </view> 18 </view>
19 <view class='divide_line_f5f5f5' style='margin-top:30rpx'></view> 19 <view class='divide_line_f5f5f5' style='margin-top:30rpx'></view>
@@ -53,7 +53,7 @@ @@ -53,7 +53,7 @@
53 <view class='view_bg_wrap' style='margin-top: 44rpx;'> 53 <view class='view_bg_wrap' style='margin-top: 44rpx;'>
54 <view style='flex-grow: 1;text-align:center;display: flex;flex-direction: column;'> 54 <view style='flex-grow: 1;text-align:center;display: flex;flex-direction: column;'>
55 <text class='text_num_wrap'>3838.9</text> 55 <text class='text_num_wrap'>3838.9</text>
56 - <text class='text_text_wrap'>本期应预扣预缴税额</text> 56 + <text class='text_text_wrap'>累计应预扣预缴税额</text>
57 </view> 57 </view>
58 <view style='width:2rpx;height:74rpx;background:#ffffff;'></view> 58 <view style='width:2rpx;height:74rpx;background:#ffffff;'></view>
59 <view style='flex-grow: 1;text-align:center;display: flex;flex-direction: column;'> 59 <view style='flex-grow: 1;text-align:center;display: flex;flex-direction: column;'>
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 <view class='divide_line_f5f5f5'></view> 18 <view class='divide_line_f5f5f5'></view>
19 19
20 <view class="container_wrap"> 20 <view class="container_wrap">
21 - <canvas canvas-id="pieCanvas" class="canvas" style="height:560rpx" bindtouchstart="touchHandler"></canvas> 21 + <canvas canvas-id="pieCanvas" class="canvas" style="height:560rpx" bindtouchstart=""></canvas>
22 </view> 22 </view>
23 23
24 <view class='divide_line_f5f5f5'></view> 24 <view class='divide_line_f5f5f5'></view>
@@ -17,7 +17,7 @@ Page({ @@ -17,7 +17,7 @@ Page({
17 onLoad: function(options) { 17 onLoad: function(options) {
18 var mydate = new Date(); 18 var mydate = new Date();
19 this.setData({ 19 this.setData({
20 - choosed_date: mydate.getFullYear() + "年" + (mydate.getMonth() + 1) + "月", 20 + choosed_date: mydate.getFullYear() + "年" ,
21 long_date: mydate.getTime() / 1000 21 long_date: mydate.getTime() / 1000
22 }) 22 })
23 }, 23 },
@@ -42,7 +42,7 @@ Page({ @@ -42,7 +42,7 @@ Page({
42 console.log('datelong', datelong) 42 console.log('datelong', datelong)
43 this.setData({ 43 this.setData({
44 long_date: datelong, 44 long_date: datelong,
45 - choosed_date: format.yearFormString(datelong) + "年" + format.monthFormString(datelong) + "月" 45 + choosed_date: format.yearFormString(datelong) + "年"
46 }) 46 })
47 }, 47 },
48 48
1 { 1 {
2 - "navigationBarTitleText": "历史缴纳明细" 2 + "navigationBarTitleText": "历史信息"
3 } 3 }
1 <!--pages/main/finalpayment/historylist/historylist.wxml--> 1 <!--pages/main/finalpayment/historylist/historylist.wxml-->
2 <view class='page'> 2 <view class='page'>
3 - <picker mode="date" fields="month" start="1970-01" end="2100-01" bindchange="datePickerChange" style='background:#fff'> 3 + <picker mode="date" fields="year" start="1970" end="2100" bindchange="datePickerChange" style='background:#fff'>
4 <view style='padding:30rpx;'> 4 <view style='padding:30rpx;'>
5 - <text class='text_gray_32'>当前选择月份</text> 5 + <text class='text_gray_32'>本人年度累计缴税情况</text>
6 <view class='float_right'> 6 <view class='float_right'>
7 <text class='text_gray_32'>{{choosed_date}}</text> 7 <text class='text_gray_32'>{{choosed_date}}</text>
8 <image class='arrow_wrap' src='/images/arrow_right.png'></image> 8 <image class='arrow_wrap' src='/images/arrow_right.png'></image>
@@ -19,7 +19,7 @@ Page({ @@ -19,7 +19,7 @@ Page({
19 onLoad: function(options) { 19 onLoad: function(options) {
20 var mydate = new Date(); 20 var mydate = new Date();
21 this.setData({ 21 this.setData({
22 - choosed_date: mydate.getFullYear() + "年" + (mydate.getMonth() + 1) + "月", 22 + choosed_date: mydate.getFullYear() + "年" ,
23 long_date: mydate.getTime() / 1000 23 long_date: mydate.getTime() / 1000
24 }) 24 })
25 25
@@ -108,7 +108,7 @@ Page({ @@ -108,7 +108,7 @@ Page({
108 console.log('datelong', datelong) 108 console.log('datelong', datelong)
109 this.setData({ 109 this.setData({
110 long_date: datelong, 110 long_date: datelong,
111 - choosed_date: format.yearFormString(datelong) + "年" + format.monthFormString(datelong) + "月" 111 + choosed_date: format.yearFormString(datelong) + "年"
112 }) 112 })
113 }, 113 },
114 114
1 <!--pages/main/finalpayment/home.wxml--> 1 <!--pages/main/finalpayment/home.wxml-->
2 <view class='page'> 2 <view class='page'>
3 - <scroll-view style='padding-bottom:200rpx'>  
4 - <view style='background:#ffffff'>  
5 - <picker mode="date" fields="month" start="1970-01" end="2100-01" bindchange="datePickerChange">  
6 - <view style='padding:30rpx;'>  
7 - <text class='text_gray_32'>当前选择月份</text>  
8 - <view class='float_right'>  
9 - <text class='text_gray_32'>{{choosed_date}}</text>  
10 - <image class='arrow_wrap' src='/images/arrow_right.png'></image> 3 + <scroll-view style=''>
  4 + <view style='background:#fff'>
  5 + <picker mode="date" fields="year" start="1970" end="2100" bindchange="datePickerChange">
  6 + <view style='padding:30rpx;'>
  7 + <text class='text_gray_32'>本人年度累计缴税情况</text>
  8 + <view class='float_right'>
  9 + <text class='text_gray_32'>{{choosed_date}}</text>
  10 + <image class='arrow_wrap' src='/images/arrow_right.png'></image>
  11 + </view>
11 </view> 12 </view>
12 - </view>  
13 </picker> 13 </picker>
14 <view class='divide_line_f5f5f5'></view> 14 <view class='divide_line_f5f5f5'></view>
15 <view style='margin: 30rpx;positive:relative;width:92%;height:454rpx'> 15 <view style='margin: 30rpx;positive:relative;width:92%;height:454rpx'>
@@ -48,17 +48,34 @@ @@ -48,17 +48,34 @@
48 </view> 48 </view>
49 </view> 49 </view>
50 <view class='divide_line_f5f5f5'></view> 50 <view class='divide_line_f5f5f5'></view>
51 - <view style='padding-left:30rpx;background:#ffffff;height:100rpx;'> 51 + <view style='padding-left:30rpx;background-color:#fff;height:100rpx;'>
52 <image class='icon_wrap' src="/images/rectangle_icon.png"></image> 52 <image class='icon_wrap' src="/images/rectangle_icon.png"></image>
53 <text style='padding-left:20rpx;line-height:100rpx' class='text_gray_32'>专项附加扣除概览</text> 53 <text style='padding-left:20rpx;line-height:100rpx' class='text_gray_32'>专项附加扣除概览</text>
54 </view> 54 </view>
55 </view> 55 </view>
56 - <view class="container_wrap">  
57 - <canvas canvas-id="pieCanvas" class="canvas" style="height:330px" ></canvas> 56 + <view class="container_wrap" style='background:#fff'>
  57 + <canvas canvas-id="pieCanvas" class="canvas" style="height:330px"></canvas>
  58 + </view>
  59 + <view class='divide_line' style='margin-top:50rpx'></view>
  60 + <view style='height:180rpx;display: flex;flex-direction: row;align-items:center;background-color:#fff'>
  61 + <view style='flex: 1;text-align:center;display: flex;flex-direction: column;'>
  62 + <text class='text_333_bold_36'>3838.9</text>
  63 + <text class='text_333_22'>年度可扣除额度</text>
  64 + </view>
  65 + <view style='width:2rpx;height:84rpx;background:#E5E5E5;'></view>
  66 + <view style='flex: 1;text-align:center;display: flex;flex-direction: column;'>
  67 + <text class='text_333_bold_36'>10398.01</text>
  68 + <text class='text_333_22'>年度已扣除额度</text>
  69 + </view>
  70 + <view style='width:2rpx;height:84rpx;background:#E5E5E5;'></view>
  71 + <view style='flex: 1;text-align:center;display: flex;flex-direction: column;'>
  72 + <text class='text_333_bold_36'>133.09</text>
  73 + <text class='text_333_22'>剩余已抵扣额度</text>
  74 + </view>
58 </view> 75 </view>
59 - </scroll-view>  
60 76
61 - <view>  
62 - <button class="btn_bottom" bindtap='addinfo'>录入信息</button>  
63 - </view> 77 + <view style='margin-top:50rpx;background:#357aeb' bindtap='addinfo'>
  78 + <button class="btn_bottom" >录入信息</button>
  79 + </view>
  80 + </scroll-view>
64 </view> 81 </view>
1 /* pages/main/finalpayment/home.wxss */ 1 /* pages/main/finalpayment/home.wxss */
  2 +
  3 +.page{
  4 + background-color: #fcfcfc
  5 +}
  6 +
2 .arrow_wrap { 7 .arrow_wrap {
3 position: relative; 8 position: relative;
4 width: 40rpx; 9 width: 40rpx;
@@ -46,6 +51,20 @@ color: #357AEB; @@ -46,6 +51,20 @@ color: #357AEB;
46 letter-spacing: 0; 51 letter-spacing: 0;
47 } 52 }
48 53
  54 +.text_333_bold_36{
  55 +font-size: 36rpx;
  56 +font-family: PingFangSC-Semibold;
  57 +color: #333333;
  58 +text-align: center;
  59 +}
  60 +
  61 +.text_333_22{
  62 +font-size: 22rpx;
  63 +font-family: PingFangSC-Regular;
  64 +color: #333333;
  65 +text-align: center;
  66 +}
  67 +
49 .icon_wrap { 68 .icon_wrap {
50 width: 8rpx; 69 width: 8rpx;
51 height: 28rpx; 70 height: 28rpx;
@@ -64,4 +83,15 @@ letter-spacing: 0; @@ -64,4 +83,15 @@ letter-spacing: 0;
64 .canvas { 83 .canvas {
65 width: 100%; 84 width: 100%;
66 height: 200px; 85 height: 200px;
67 -}  
  86 +}
  87 +
  88 +.btn_bottom {
  89 + width: 100%;
  90 + height: 84rpx;
  91 + background: #357aeb;
  92 + text-align: center;
  93 + position: relative;
  94 + color: #fff;
  95 + bottom: 0;
  96 + line-height: 84rpx;
  97 +}
@@ -5,14 +5,20 @@ Page({ @@ -5,14 +5,20 @@ Page({
5 * Page initial data 5 * Page initial data
6 */ 6 */
7 data: { 7 data: {
8 - 8 + datas: [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
  9 + choosed_date: '',
  10 + long_date: 0
9 }, 11 },
10 12
11 /** 13 /**
12 * Lifecycle function--Called when page load 14 * Lifecycle function--Called when page load
13 */ 15 */
14 onLoad: function (options) { 16 onLoad: function (options) {
15 - 17 + var mydate = new Date();
  18 + this.setData({
  19 + choosed_date: mydate.getFullYear() + "年" + (mydate.getMonth() + 1) + "月",
  20 + long_date: mydate.getTime() / 1000
  21 + })
16 }, 22 },
17 23
18 /** 24 /**
@@ -29,6 +35,16 @@ Page({ @@ -29,6 +35,16 @@ Page({
29 35
30 }, 36 },
31 37
  38 + datePickerChange: function (e) {
  39 + console.log("e", e)
  40 + var datelong = Date.parse(new Date(e.detail.value)) / 1000
  41 + console.log('datelong', datelong)
  42 + this.setData({
  43 + long_date: datelong,
  44 + choosed_date: format.yearFormString(datelong) + "年" + format.monthFormString(datelong) + "月"
  45 + })
  46 + },
  47 +
32 /** 48 /**
33 * Lifecycle function--Called when page hide 49 * Lifecycle function--Called when page hide
34 */ 50 */
1 <!--pages/main/finalpayment/inputinfo/inputinfo.wxml--> 1 <!--pages/main/finalpayment/inputinfo/inputinfo.wxml-->
2 <view class='page'> 2 <view class='page'>
3 - <view style='padding:30rpx;'>  
4 - <text class='text_gray_32'>当前选择月份</text>  
5 - <view class='float_right'>  
6 - <text class='text_gray_32'>2018年</text>  
7 - <image class='arrow_wrap' style='margin-top: 8rpx'src='/images/arrow_right.png'></image>  
8 - </view>  
9 - </view> 3 +<picker mode="date" fields="month" start="1970-01" end="2100-01" bindchange="datePickerChange" style='background:#fff'>
  4 + <view style='padding:30rpx;'>
  5 + <text class='text_gray_32'>记账月</text>
  6 + <view class='float_right'>
  7 + <text class='text_gray_32'>{{choosed_date}}</text>
  8 + <image class='arrow_wrap' style='margin-top:10rpx' src='/images/arrow_right.png'></image>
  9 + </view>
  10 + </view>
  11 + </picker>
10 <view style='height:20rpx;width:100%;background:#f5f5f5'></view> 12 <view style='height:20rpx;width:100%;background:#f5f5f5'></view>
11 <view style='padding:0 30rpx;height:100rpx'> 13 <view style='padding:0 30rpx;height:100rpx'>
12 <text class='text_333_28_bold ' style='line-height:100rpx'>专项扣除</text> 14 <text class='text_333_28_bold ' style='line-height:100rpx'>专项扣除</text>
@@ -17,22 +19,27 @@ @@ -17,22 +19,27 @@
17 <view style='height:2rpx;width:94%;background:#f5f5f5;align-self:center'></view> 19 <view style='height:2rpx;width:94%;background:#f5f5f5;align-self:center'></view>
18 <view style='padding:0 30rpx;height:80rpx'> 20 <view style='padding:0 30rpx;height:80rpx'>
19 <text class='text_333_28 float_left'>基本养老保险</text> 21 <text class='text_333_28 float_left'>基本养老保险</text>
20 - <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input> 22 + <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'type='digit'> </input>
21 </view> 23 </view>
22 <view style='height:2rpx;width:94%;background:#f5f5f5'></view> 24 <view style='height:2rpx;width:94%;background:#f5f5f5'></view>
23 <view style='padding:0 30rpx;height:80rpx'> 25 <view style='padding:0 30rpx;height:80rpx'>
24 <text class='text_333_28 float_left'>基本失业保险</text> 26 <text class='text_333_28 float_left'>基本失业保险</text>
25 - <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input> 27 + <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'type='digit'> </input>
26 </view> 28 </view>
27 <view style='height:2rpx;width:94%;background:#f5f5f5'></view> 29 <view style='height:2rpx;width:94%;background:#f5f5f5'></view>
28 <view style='padding:0 30rpx;height:80rpx'> 30 <view style='padding:0 30rpx;height:80rpx'>
29 <text class='text_333_28 float_left'>基本医疗保险</text> 31 <text class='text_333_28 float_left'>基本医疗保险</text>
30 - <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input> 32 + <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00' type='digit'> </input>
31 </view> 33 </view>
32 <view style='height:2rpx;width:94%;background:#f5f5f5'></view> 34 <view style='height:2rpx;width:94%;background:#f5f5f5'></view>
33 <view style='padding:0 30rpx;height:80rpx'> 35 <view style='padding:0 30rpx;height:80rpx'>
34 <text class='text_333_28 float_left'>住房公积金</text> 36 <text class='text_333_28 float_left'>住房公积金</text>
35 - <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input> 37 + <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00' type='digit'> </input>
  38 + </view>
  39 + <view style='height:2rpx;width:94%;background:#f5f5f5'></view>
  40 + <view style='padding:0 30rpx;height:80rpx'>
  41 + <text class='text_333_28 float_left'>总额</text>
  42 + <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00' type='digit'> </input>
36 </view> 43 </view>
37 </view> 44 </view>
38 45
@@ -50,12 +57,12 @@ @@ -50,12 +57,12 @@
50 <view style='height:2rpx;width:94%;background:#f5f5f5'></view> 57 <view style='height:2rpx;width:94%;background:#f5f5f5'></view>
51 <view style='padding:0 30rpx;height:80rpx'> 58 <view style='padding:0 30rpx;height:80rpx'>
52 <text class='text_333_28 float_left'>总额</text> 59 <text class='text_333_28 float_left'>总额</text>
53 - <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input> 60 + <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00' type='digit'> </input>
54 </view> 61 </view>
55 </view> 62 </view>
56 63
57 64
58 - <view style='height:20rpx;width:100%;background:#f5f5f5'></view> 65 + <!-- <view style='height:20rpx;width:100%;background:#f5f5f5'></view>
59 <view style='padding:0 30rpx;height:100rpx'> 66 <view style='padding:0 30rpx;height:100rpx'>
60 <text class='text_333_28_bold ' style='line-height:100rpx'>专项附加扣除</text> 67 <text class='text_333_28_bold ' style='line-height:100rpx'>专项附加扣除</text>
61 <text class='text_blue_28 float_right' style='line-height:100rpx'>编辑</text> 68 <text class='text_blue_28 float_right' style='line-height:100rpx'>编辑</text>
@@ -86,7 +93,7 @@ @@ -86,7 +93,7 @@
86 <text class='text_333_28 float_left'>赡养老人</text> 93 <text class='text_333_28 float_left'>赡养老人</text>
87 <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input> 94 <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input>
88 </view> 95 </view>
89 - </view> 96 + </view> -->
90 97
91 <view style='height:20rpx;width:100%;background:#f5f5f5'></view> 98 <view style='height:20rpx;width:100%;background:#f5f5f5'></view>
92 <view style='padding:0 30rpx;height:100rpx'> 99 <view style='padding:0 30rpx;height:100rpx'>
@@ -97,13 +104,13 @@ @@ -97,13 +104,13 @@
97 <view style='height:2rpx;width:94%;background:#f5f5f5'></view> 104 <view style='height:2rpx;width:94%;background:#f5f5f5'></view>
98 <view style='padding:0 30rpx;height:80rpx'> 105 <view style='padding:0 30rpx;height:80rpx'>
99 <text class='text_333_28 float_left'>收入类型</text> 106 <text class='text_333_28 float_left'>收入类型</text>
100 - <image class='arrow_wrap' src='/images/arrow_right.png'></image> 107 + <image class='arrow_wrap' style='margin-top:20rpx'src='/images/arrow_right.png'></image>
101 <text class='text_333_28 float_right'>工作</text> 108 <text class='text_333_28 float_right'>工作</text>
102 </view> 109 </view>
103 <view style='height:2rpx;width:94%;background:#f5f5f5'></view> 110 <view style='height:2rpx;width:94%;background:#f5f5f5'></view>
104 <view style='padding:0 30rpx;height:80rpx'> 111 <view style='padding:0 30rpx;height:80rpx'>
105 <text class='text_333_28 float_left'>收入金额(含免税部分)</text> 112 <text class='text_333_28 float_left'>收入金额(含免税部分)</text>
106 - <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input> 113 + <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00' type='digit'> </input>
107 </view> 114 </view>
108 <view style='height:2rpx;width:94%;background:#f5f5f5'></view> 115 <view style='height:2rpx;width:94%;background:#f5f5f5'></view>
109 <view style='padding:0 30rpx;height:80rpx'> 116 <view style='padding:0 30rpx;height:80rpx'>
@@ -122,7 +129,7 @@ @@ -122,7 +129,7 @@
122 </view> 129 </view>
123 <view style='height:2rpx;width:94%;background:#f5f5f5'></view> 130 <view style='height:2rpx;width:94%;background:#f5f5f5'></view>
124 <view style='padding:0 30rpx;height:80rpx'> 131 <view style='padding:0 30rpx;height:80rpx'>
125 - <text class='text_333_28 float_left'>总额</text> 132 + <text class='text_333_28 float_left'>含税收入总额</text>
126 <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input> 133 <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input>
127 </view> 134 </view>
128 </view> 135 </view>
@@ -7,14 +7,23 @@ @@ -7,14 +7,23 @@
7 7
8 .text_333_28_bold { 8 .text_333_28_bold {
9 font-family: PingFangSC-Semibold; 9 font-family: PingFangSC-Semibold;
10 - font-size: 28rpx; 10 + font-size: 30rpx;
11 color: #333; 11 color: #333;
12 text-align: left; 12 text-align: left;
13 } 13 }
14 14
15 -.arrow_wrap { 15 +.arrow_wrap01 {
16 position: relative; 16 position: relative;
17 width: 40rpx; 17 width: 40rpx;
18 height: 40rpx; 18 height: 40rpx;
19 align-self: center; 19 align-self: center;
  20 + margin-top: 8rpx
  21 +}
  22 +
  23 +.arrow_wrap02 {
  24 + position: relative;
  25 + width: 40rpx;
  26 + height: 40rpx;
  27 + align-self: center;
  28 + margin-top: 16rpx
20 } 29 }
@@ -627,7 +627,7 @@ Page({ @@ -627,7 +627,7 @@ Page({
627 formSubmit: function(e) { 627 formSubmit: function(e) {
628 console.log("date", Date.parse(new Date(this.data.birthday)) / 1000) 628 console.log("date", Date.parse(new Date(this.data.birthday)) / 1000)
629 var regMoney = /^[0-9]*(\.[0,10]{1,2})?$/; 629 var regMoney = /^[0-9]*(\.[0,10]{1,2})?$/;
630 - var regMobile = /^1[3|4|5|7|8][0-9]{9}$/; 630 + var regMobile = /^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[8-9])[0-9]{8}$/;
631 var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,}$/; 631 var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,}$/;
632 var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$"); 632 var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$");
633 var formdata = e.detail.value; 633 var formdata = e.detail.value;
@@ -63,6 +63,8 @@ @@ -63,6 +63,8 @@
63 <image class='arrow_wrap' src='/images/arrow_right.png'></image> 63 <image class='arrow_wrap' src='/images/arrow_right.png'></image>
64 <text class='text_333_28 float_right'>在职</text> 64 <text class='text_333_28 float_right'>在职</text>
65 </view> --> 65 </view> -->
  66 +
  67 + <!-- 注释2018/11/26 -->
66 <template is="picker_cell_normal" data="{{...personstatusData}}" /> 68 <template is="picker_cell_normal" data="{{...personstatusData}}" />
67 <view class="divide_line"></view> 69 <view class="divide_line"></view>
68 70
@@ -829,7 +829,7 @@ Page({ @@ -829,7 +829,7 @@ Page({
829 formSubmit: function(e) { 829 formSubmit: function(e) {
830 console.log("date", Date.parse(new Date(this.data.birthday)) / 1000) 830 console.log("date", Date.parse(new Date(this.data.birthday)) / 1000)
831 var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$"); 831 var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$");
832 - var regMobile = /^1[3|4|5|7|8][0-9]{9}$/; 832 + var regMobile = /^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[8-9])[0-9]{8}$/;
833 var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/; 833 var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/;
834 // var regMoney = /^[0-9]*(\.[0,9]{1,2})?$/; 834 // var regMoney = /^[0-9]*(\.[0,9]{1,2})?$/;
835 var regMoney = /^([1-9][\d]{0,10}|0)(\.[\d]{1,2})?$/ 835 var regMoney = /^([1-9][\d]{0,10}|0)(\.[\d]{1,2})?$/
@@ -727,7 +727,7 @@ function drawPieText(series, opts, config, context, radius, center) { @@ -727,7 +727,7 @@ function drawPieText(series, opts, config, context, radius, center) {
727 var seriesConvert = series.map(function(item) { 727 var seriesConvert = series.map(function(item) {
728 var arc = 2 * Math.PI - (item._start_ + 2 * Math.PI * item._proportion_ / 2); 728 var arc = 2 * Math.PI - (item._start_ + 2 * Math.PI * item._proportion_ / 2);
729 // var text = item.format ? item.format(+item._proportion_.toFixed(2)) : util.toFixed(item._proportion_ * 100) + '%'; 729 // var text = item.format ? item.format(+item._proportion_.toFixed(2)) : util.toFixed(item._proportion_ * 100) + '%';
730 - var text = item.data.toFixed(2); 730 + var text = item.data.toFixed(2)+'元';
731 var color = item.color; 731 var color = item.color;
732 return { 732 return {
733 arc: arc, 733 arc: arc,
@@ -1150,6 +1150,8 @@ function drawLegend(series, opts, config, context) { @@ -1150,6 +1150,8 @@ function drawLegend(series, opts, config, context) {
1150 // context.setFillStyle(opts.extra.legendTextColor || '#333333'); 1150 // context.setFillStyle(opts.extra.legendTextColor || '#333333');
1151 context.setFillStyle( '#6C7596'); 1151 context.setFillStyle( '#6C7596');
1152 context.fillText(item.name, startX, startY + 9); 1152 context.fillText(item.name, startX, startY + 9);
  1153 + // context.setTextAlign("left");
  1154 + // context.setTextBaseline("middle");
1153 context.closePath(); 1155 context.closePath();
1154 context.stroke(); 1156 context.stroke();
1155 startX += measureText(item.name) + 2 * padding; 1157 startX += measureText(item.name) + 2 * padding;
@@ -727,7 +727,7 @@ function drawPieText(series, opts, config, context, radius, center) { @@ -727,7 +727,7 @@ function drawPieText(series, opts, config, context, radius, center) {
727 var seriesConvert = series.map(function(item) { 727 var seriesConvert = series.map(function(item) {
728 var arc = 2 * Math.PI - (item._start_ + 2 * Math.PI * item._proportion_ / 2); 728 var arc = 2 * Math.PI - (item._start_ + 2 * Math.PI * item._proportion_ / 2);
729 // var text = item.format ? item.format(+item._proportion_.toFixed(2)) : util.toFixed(item._proportion_ * 100) + '%'; 729 // var text = item.format ? item.format(+item._proportion_.toFixed(2)) : util.toFixed(item._proportion_ * 100) + '%';
730 - var text = item.data.toFixed(2); 730 + var text = item.data.toFixed(2) + '元';
731 var color = item.color; 731 var color = item.color;
732 return { 732 return {
733 arc: arc, 733 arc: arc,
注册登录 后发表评论