正在显示
28 个修改的文件
包含
336 行增加
和
153 行删除
| ... | ... | @@ -50,7 +50,7 @@ App({ |
| 50 | 50 | console.log("getTokenByCode", res.data) |
| 51 | 51 | var user = res.data.user; |
| 52 | 52 | var tenant = res.data.tenant; |
| 53 | - if (tenant && tenant.length > 0) { | |
| 53 | + if (tenant) { | |
| 54 | 54 | that.globalData.tenant_id = tenant.id; |
| 55 | 55 | } |
| 56 | 56 | that.globalData.userInfo = res.data.user; | ... | ... |
| ... | ... | @@ -32,7 +32,7 @@ Page({ |
| 32 | 32 | if (this.data.buttonDisable) return; |
| 33 | 33 | var that = this; |
| 34 | 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 | 36 | console.log("mobile---", mobile); |
| 37 | 37 | if (!regMobile.test(mobile)) { |
| 38 | 38 | wx.showToast({ | ... | ... |
| ... | ... | @@ -17,7 +17,7 @@ |
| 17 | 17 | <view class='divide_line_f5f5f5'></view> |
| 18 | 18 | <view style='height:90rpx'> |
| 19 | 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 | 21 | </view> |
| 22 | 22 | <view class='divide_line_f5f5f5'></view> |
| 23 | 23 | <view style='height:90rpx'> |
| ... | ... | @@ -38,7 +38,7 @@ |
| 38 | 38 | <view class='divide_line_f5f5f5'></view> |
| 39 | 39 | <view style='height:90rpx'> |
| 40 | 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 | 42 | </view> |
| 43 | 43 | <view class='divide_line_f5f5f5'></view> |
| 44 | 44 | <view style='height:90rpx;'> |
| ... | ... | @@ -88,7 +88,7 @@ |
| 88 | 88 | <view class='divide_line_f5f5f5'></view> |
| 89 | 89 | <view style='height:90rpx'> |
| 90 | 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 | 92 | </view> |
| 93 | 93 | <view class='divide_line_f5f5f5'></view> |
| 94 | 94 | <!-- <view style='height:90rpx'> |
| ... | ... | @@ -115,7 +115,7 @@ |
| 115 | 115 | <view wx:if="{{cur_index==3}}"> |
| 116 | 116 | <view style='height:90rpx'> |
| 117 | 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 | 119 | </view> |
| 120 | 120 | </view> |
| 121 | 121 | |
| ... | ... | @@ -128,7 +128,7 @@ |
| 128 | 128 | <view class='divide_line_f5f5f5'></view> |
| 129 | 129 | <view style='height:90rpx'> |
| 130 | 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 | 132 | </view> |
| 133 | 133 | </view> |
| 134 | 134 | <view class='divide_line_f5f5f5'></view> | ... | ... |
| ... | ... | @@ -7,33 +7,29 @@ Page({ |
| 7 | 7 | data: { |
| 8 | 8 | flag_housing01: false, |
| 9 | 9 | flag_housing02: false, |
| 10 | - repContent: [{ | |
| 11 | - message: '子女教育' | |
| 12 | - }, { | |
| 13 | - message: '继续教育' | |
| 14 | - }, { | |
| 15 | - message: '赡养老人' | |
| 16 | - }, { | |
| 17 | - message: '大病医疗' | |
| 18 | - }, { | |
| 19 | - message: '住房' | |
| 20 | - }], | |
| 21 | 10 | selectIndex: [{ |
| 11 | + message: '子女教育', | |
| 22 | 12 | sureid: false |
| 23 | 13 | }, { |
| 14 | + message: '继续教育', | |
| 24 | 15 | sureid: false |
| 25 | 16 | }, { |
| 17 | + message: '赡养老人', | |
| 26 | 18 | sureid: false |
| 27 | 19 | }, { |
| 20 | + message: '大病医疗', | |
| 28 | 21 | sureid: false |
| 29 | 22 | }, { |
| 30 | - sureid: false | |
| 23 | + message: '住房', | |
| 24 | + sureid: false, | |
| 25 | + housing01:false, | |
| 26 | + extra_message :'' | |
| 31 | 27 | }, ], |
| 32 | 28 | unitData: { |
| 33 | 29 | label: '选择申报单位', |
| 34 | 30 | bindtype: 'unit', |
| 35 | - selected: '', | |
| 36 | - values: ["北京小爱智能科技有限公司", "杭州蜗壳爱有限公司"], | |
| 31 | + selected: '北京小爱智能科技', | |
| 32 | + values: ["北京小爱智能科技"], | |
| 37 | 33 | placeholder: '请选择申报单位', |
| 38 | 34 | onChange: 'onPickerSelect' |
| 39 | 35 | }, |
| ... | ... | @@ -44,7 +40,19 @@ Page({ |
| 44 | 40 | * Lifecycle function--Called when page load |
| 45 | 41 | */ |
| 46 | 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 | 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 | 162 | * Lifecycle function--Called when page hide |
| 106 | 163 | */ | ... | ... |
| ... | ... | @@ -16,13 +16,13 @@ |
| 16 | 16 | </view> |
| 17 | 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 | 20 | <view class='float_left'> |
| 21 | 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 | 22 | </view> |
| 23 | 23 | <text class="{{selectIndex[index].sureid?'select_blue_28':'select_666_28'}}" style='line-height:80rpx;margin-left: 34rpx;'>{{item.message}}</text> |
| 24 | 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 | 26 | <view bindtap='housing01'> |
| 27 | 27 | <view class='float_left'> |
| 28 | 28 | <image class='single-img' src="{{flag_housing01? '/images/selected02.png' : '/images/unselected02.png'}}" style='margin-top:16rpx'></image> |
| ... | ... | @@ -39,7 +39,7 @@ |
| 39 | 39 | </view> |
| 40 | 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 | 44 | </view> |
| 45 | 45 | </view> |
| \ No newline at end of file | ... | ... |
| ... | ... | @@ -5,14 +5,23 @@ Page({ |
| 5 | 5 | * Page initial data |
| 6 | 6 | */ |
| 7 | 7 | data: { |
| 8 | - datas: ["子女教育", "继续教育", "赡养老人", "大病医疗"] | |
| 8 | + datas02: ["子女教育", "继续教育", "赡养老人", "大病医疗"] | |
| 9 | 9 | }, |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Lifecycle function--Called when page load |
| 13 | 13 | */ |
| 14 | 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 | 41 | lookandadd:function(e){ |
| 33 | 42 | console.log("e", e); |
| 34 | 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 | 7 | <view class='divide_line_f5f5f5' style='margin-top:30rpx' ></view> |
| 8 | 8 | </view> |
| 9 | 9 | <view wx:if="true"> |
| 10 | - <view wx:for="{{datas}}"> | |
| 10 | + <view wx:for="{{datas02}}"> | |
| 11 | 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 | 13 | <view style='margin:20rpx 0'> |
| 14 | 14 | <text class='text_gray_22 float_left'>已抵扣额度:4890.00</text> |
| 15 | 15 | <text class='text_gray_22 float_right'>剩余可抵扣额度:12810.00</text> | ... | ... |
| ... | ... | @@ -5,30 +5,32 @@ Page({ |
| 5 | 5 | * Page initial data |
| 6 | 6 | */ |
| 7 | 7 | data: { |
| 8 | - datas:["子女教育","继续教育","赡养老人","大病医疗","住房贷款利息"] | |
| 8 | + datas: [""], | |
| 9 | + is_declared: false, | |
| 10 | + datas02: ["子女教育", "继续教育", "赡养老人", "大病医疗", "住房贷款利息"] | |
| 9 | 11 | }, |
| 10 | 12 | |
| 11 | 13 | /** |
| 12 | 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 | 21 | wx.navigateTo({ |
| 20 | 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 | 34 | wx.navigateTo({ |
| 33 | 35 | url: 'lookandupdate/lookandupdate?index=' + e.currentTarget.id, |
| 34 | 36 | }) |
| ... | ... | @@ -37,49 +39,70 @@ Page({ |
| 37 | 39 | /** |
| 38 | 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 | 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 | 75 | * Lifecycle function--Called when page hide |
| 53 | 76 | */ |
| 54 | - onHide: function () { | |
| 77 | + onHide: function() { | |
| 55 | 78 | |
| 56 | 79 | }, |
| 57 | 80 | |
| 58 | 81 | /** |
| 59 | 82 | * Lifecycle function--Called when page unload |
| 60 | 83 | */ |
| 61 | - onUnload: function () { | |
| 84 | + onUnload: function() { | |
| 62 | 85 | |
| 63 | 86 | }, |
| 64 | 87 | |
| 65 | 88 | /** |
| 66 | 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 | 96 | * Called when page reach bottom |
| 74 | 97 | */ |
| 75 | - onReachBottom: function () { | |
| 98 | + onReachBottom: function() { | |
| 76 | 99 | |
| 77 | 100 | }, |
| 78 | 101 | |
| 79 | 102 | /** |
| 80 | 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 | }) |
| \ No newline at end of file | ... | ... |
| ... | ... | @@ -5,38 +5,39 @@ |
| 5 | 5 | <block wx:for="{{datas}}" wx:key=""> |
| 6 | 6 | <view class='card_rectangle_bg_column' style="margin-top:30rpx"> |
| 7 | 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 | 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 | 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 | 18 | <text class='text_blue_28'>去申报</text> |
| 20 | 19 | <image class='arrow_img_wrap' src='/images/arrow_right.png'></image> |
| 21 | 20 | </view> |
| 22 | - <view style='float:right' hidden='{{index==0}}' bindtap='godetail'> | |
| 21 | + <view style='float:right' hidden='{{!is_declared}}' bindtap='godeclare'> | |
| 23 | 22 | <text class='text_blue_28'>调整使用项</text> |
| 24 | 23 | <image class='arrow_img_wrap' src='/images/arrow_right.png'></image> |
| 25 | 24 | </view> |
| 26 | 25 | |
| 27 | 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 | 41 | </view> |
| 41 | 42 | </view> |
| 42 | 43 | </block> | ... | ... |
| ... | ... | @@ -6,21 +6,38 @@ Page({ |
| 6 | 6 | */ |
| 7 | 7 | data: { |
| 8 | 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 | 14 | * Lifecycle function--Called when page load |
| 15 | 15 | */ |
| 16 | 16 | onLoad: function (options) { |
| 17 | + var that= this | |
| 17 | 18 | console.log("options", options); |
| 18 | 19 | this.setData({ |
| 19 | 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 | 51 | * Lifecycle function--Called when page show |
| 35 | 52 | */ |
| 36 | 53 | onShow: function () { |
| 37 | - | |
| 54 | + // wx.showLoading({ | |
| 55 | + // title: '加载中', | |
| 56 | + // }) | |
| 57 | + // setTimeout(function(){ | |
| 58 | + // wx.hideLoading() | |
| 59 | + // },2000) | |
| 38 | 60 | }, |
| 39 | 61 | |
| 40 | 62 | lookimg:function(){//查看材料 |
| 41 | - | |
| 63 | + wx.showToast({ | |
| 64 | + title: '查看材料', | |
| 65 | + }) | |
| 42 | 66 | }, |
| 43 | 67 | |
| 44 | 68 | goadd:function(e){//添加 | ... | ... |
| ... | ... | @@ -25,7 +25,7 @@ |
| 25 | 25 | <view class='divide_line_f5f5f5'></view> |
| 26 | 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 | 29 | <view style='height:40rpx'> |
| 30 | 30 | <text class='text_999_28 float_left'>子女姓名</text> |
| 31 | 31 | <text class='text_333_28 float_right'>纳兰嫣然</text> |
| ... | ... | @@ -54,14 +54,10 @@ |
| 54 | 54 | <text class='text_999_28 float_left'>扣除比例</text> |
| 55 | 55 | <text class='text_333_28 float_right'>40%</text> |
| 56 | 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 | 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 | 61 | <view style='height:40rpx'> |
| 66 | 62 | <text class='text_999_28 float_left'>教育类型</text> |
| 67 | 63 | <text class='text_333_28 float_right'>消防工程师</text> |
| ... | ... | @@ -74,14 +70,10 @@ |
| 74 | 70 | <text class='text_999_28 float_left'>职业资格编号</text> |
| 75 | 71 | <text class='text_333_28 float_right'>ed29839284</text> |
| 76 | 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 | 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 | 77 | <view style='height:40rpx'> |
| 86 | 78 | <text class='text_999_28 float_left'>老人姓名</text> |
| 87 | 79 | <text class='text_333_28 float_right'>任我行</text> |
| ... | ... | @@ -102,26 +94,18 @@ |
| 102 | 94 | <text class='text_999_28 float_left'>分摊比例</text> |
| 103 | 95 | <text class='text_333_28 float_right'>5:5</text> |
| 104 | 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 | 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 | 101 | <view style='height:40rpx'> |
| 114 | 102 | <text class='text_999_28 float_left'>扣除金额</text> |
| 115 | 103 | <text class='text_333_28 float_right'>42895</text> |
| 116 | 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 | 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 | 109 | <view style='height:40rpx'> |
| 126 | 110 | <text class='text_999_28 float_left'>配偶姓名</text> |
| 127 | 111 | <text class='text_333_28 float_right'>刘顺丰</text> |
| ... | ... | @@ -130,10 +114,10 @@ |
| 130 | 114 | <text class='text_999_28 float_left'>配偶身份证号</text> |
| 131 | 115 | <text class='text_333_28 float_right'>42902384023855252</text> |
| 132 | 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 | 121 | </view> |
| 138 | 122 | |
| 139 | 123 | <view class='divide_line_f5f5f5' style='margin-top:20rpx'></view> | ... | ... |
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | </picker> |
| 14 | 14 | <view class='divide_line_f5f5f5'></view> |
| 15 | 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 | 17 | <text class='text_333_30_bold float_right'>400000.00</text> |
| 18 | 18 | </view> |
| 19 | 19 | <view class='divide_line_f5f5f5' style='margin-top:30rpx'></view> |
| ... | ... | @@ -53,7 +53,7 @@ |
| 53 | 53 | <view class='view_bg_wrap' style='margin-top: 44rpx;'> |
| 54 | 54 | <view style='flex-grow: 1;text-align:center;display: flex;flex-direction: column;'> |
| 55 | 55 | <text class='text_num_wrap'>3838.9</text> |
| 56 | - <text class='text_text_wrap'>本期应预扣预缴税额</text> | |
| 56 | + <text class='text_text_wrap'>累计应预扣预缴税额</text> | |
| 57 | 57 | </view> |
| 58 | 58 | <view style='width:2rpx;height:74rpx;background:#ffffff;'></view> |
| 59 | 59 | <view style='flex-grow: 1;text-align:center;display: flex;flex-direction: column;'> | ... | ... |
| ... | ... | @@ -18,7 +18,7 @@ |
| 18 | 18 | <view class='divide_line_f5f5f5'></view> |
| 19 | 19 | |
| 20 | 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 | 22 | </view> |
| 23 | 23 | |
| 24 | 24 | <view class='divide_line_f5f5f5'></view> | ... | ... |
| ... | ... | @@ -17,7 +17,7 @@ Page({ |
| 17 | 17 | onLoad: function(options) { |
| 18 | 18 | var mydate = new Date(); |
| 19 | 19 | this.setData({ |
| 20 | - choosed_date: mydate.getFullYear() + "年" + (mydate.getMonth() + 1) + "月", | |
| 20 | + choosed_date: mydate.getFullYear() + "年" , | |
| 21 | 21 | long_date: mydate.getTime() / 1000 |
| 22 | 22 | }) |
| 23 | 23 | }, |
| ... | ... | @@ -42,7 +42,7 @@ Page({ |
| 42 | 42 | console.log('datelong', datelong) |
| 43 | 43 | this.setData({ |
| 44 | 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 | <!--pages/main/finalpayment/historylist/historylist.wxml--> |
| 2 | 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 | 4 | <view style='padding:30rpx;'> |
| 5 | - <text class='text_gray_32'>当前选择月份</text> | |
| 5 | + <text class='text_gray_32'>本人年度累计缴税情况</text> | |
| 6 | 6 | <view class='float_right'> |
| 7 | 7 | <text class='text_gray_32'>{{choosed_date}}</text> |
| 8 | 8 | <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ... | ... |
| ... | ... | @@ -19,7 +19,7 @@ Page({ |
| 19 | 19 | onLoad: function(options) { |
| 20 | 20 | var mydate = new Date(); |
| 21 | 21 | this.setData({ |
| 22 | - choosed_date: mydate.getFullYear() + "年" + (mydate.getMonth() + 1) + "月", | |
| 22 | + choosed_date: mydate.getFullYear() + "年" , | |
| 23 | 23 | long_date: mydate.getTime() / 1000 |
| 24 | 24 | }) |
| 25 | 25 | |
| ... | ... | @@ -108,7 +108,7 @@ Page({ |
| 108 | 108 | console.log('datelong', datelong) |
| 109 | 109 | this.setData({ |
| 110 | 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 | 1 | <!--pages/main/finalpayment/home.wxml--> |
| 2 | 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 | 12 | </view> |
| 12 | - </view> | |
| 13 | 13 | </picker> |
| 14 | 14 | <view class='divide_line_f5f5f5'></view> |
| 15 | 15 | <view style='margin: 30rpx;positive:relative;width:92%;height:454rpx'> |
| ... | ... | @@ -48,17 +48,34 @@ |
| 48 | 48 | </view> |
| 49 | 49 | </view> |
| 50 | 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 | 52 | <image class='icon_wrap' src="/images/rectangle_icon.png"></image> |
| 53 | 53 | <text style='padding-left:20rpx;line-height:100rpx' class='text_gray_32'>专项附加扣除概览</text> |
| 54 | 54 | </view> |
| 55 | 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 | 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 | 81 | </view> |
| \ No newline at end of file | ... | ... |
| 1 | 1 | /* pages/main/finalpayment/home.wxss */ |
| 2 | + | |
| 3 | +.page{ | |
| 4 | + background-color: #fcfcfc | |
| 5 | +} | |
| 6 | + | |
| 2 | 7 | .arrow_wrap { |
| 3 | 8 | position: relative; |
| 4 | 9 | width: 40rpx; |
| ... | ... | @@ -46,6 +51,20 @@ color: #357AEB; |
| 46 | 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 | 68 | .icon_wrap { |
| 50 | 69 | width: 8rpx; |
| 51 | 70 | height: 28rpx; |
| ... | ... | @@ -64,4 +83,15 @@ letter-spacing: 0; |
| 64 | 83 | .canvas { |
| 65 | 84 | width: 100%; |
| 66 | 85 | height: 200px; |
| 67 | -} | |
| \ No newline at end of file | ||
| 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 | 5 | * Page initial data |
| 6 | 6 | */ |
| 7 | 7 | data: { |
| 8 | - | |
| 8 | + datas: [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}], | |
| 9 | + choosed_date: '', | |
| 10 | + long_date: 0 | |
| 9 | 11 | }, |
| 10 | 12 | |
| 11 | 13 | /** |
| 12 | 14 | * Lifecycle function--Called when page load |
| 13 | 15 | */ |
| 14 | 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 | 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 | 49 | * Lifecycle function--Called when page hide |
| 34 | 50 | */ | ... | ... |
| 1 | 1 | <!--pages/main/finalpayment/inputinfo/inputinfo.wxml--> |
| 2 | 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 | 12 | <view style='height:20rpx;width:100%;background:#f5f5f5'></view> |
| 11 | 13 | <view style='padding:0 30rpx;height:100rpx'> |
| 12 | 14 | <text class='text_333_28_bold ' style='line-height:100rpx'>专项扣除</text> |
| ... | ... | @@ -17,22 +19,27 @@ |
| 17 | 19 | <view style='height:2rpx;width:94%;background:#f5f5f5;align-self:center'></view> |
| 18 | 20 | <view style='padding:0 30rpx;height:80rpx'> |
| 19 | 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 | 23 | </view> |
| 22 | 24 | <view style='height:2rpx;width:94%;background:#f5f5f5'></view> |
| 23 | 25 | <view style='padding:0 30rpx;height:80rpx'> |
| 24 | 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 | 28 | </view> |
| 27 | 29 | <view style='height:2rpx;width:94%;background:#f5f5f5'></view> |
| 28 | 30 | <view style='padding:0 30rpx;height:80rpx'> |
| 29 | 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 | 33 | </view> |
| 32 | 34 | <view style='height:2rpx;width:94%;background:#f5f5f5'></view> |
| 33 | 35 | <view style='padding:0 30rpx;height:80rpx'> |
| 34 | 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 | 43 | </view> |
| 37 | 44 | </view> |
| 38 | 45 | |
| ... | ... | @@ -50,12 +57,12 @@ |
| 50 | 57 | <view style='height:2rpx;width:94%;background:#f5f5f5'></view> |
| 51 | 58 | <view style='padding:0 30rpx;height:80rpx'> |
| 52 | 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 | 61 | </view> |
| 55 | 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 | 66 | <view style='padding:0 30rpx;height:100rpx'> |
| 60 | 67 | <text class='text_333_28_bold ' style='line-height:100rpx'>专项附加扣除</text> |
| 61 | 68 | <text class='text_blue_28 float_right' style='line-height:100rpx'>编辑</text> |
| ... | ... | @@ -86,7 +93,7 @@ |
| 86 | 93 | <text class='text_333_28 float_left'>赡养老人</text> |
| 87 | 94 | <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input> |
| 88 | 95 | </view> |
| 89 | - </view> | |
| 96 | + </view> --> | |
| 90 | 97 | |
| 91 | 98 | <view style='height:20rpx;width:100%;background:#f5f5f5'></view> |
| 92 | 99 | <view style='padding:0 30rpx;height:100rpx'> |
| ... | ... | @@ -97,13 +104,13 @@ |
| 97 | 104 | <view style='height:2rpx;width:94%;background:#f5f5f5'></view> |
| 98 | 105 | <view style='padding:0 30rpx;height:80rpx'> |
| 99 | 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 | 108 | <text class='text_333_28 float_right'>工作</text> |
| 102 | 109 | </view> |
| 103 | 110 | <view style='height:2rpx;width:94%;background:#f5f5f5'></view> |
| 104 | 111 | <view style='padding:0 30rpx;height:80rpx'> |
| 105 | 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 | 114 | </view> |
| 108 | 115 | <view style='height:2rpx;width:94%;background:#f5f5f5'></view> |
| 109 | 116 | <view style='padding:0 30rpx;height:80rpx'> |
| ... | ... | @@ -122,7 +129,7 @@ |
| 122 | 129 | </view> |
| 123 | 130 | <view style='height:2rpx;width:94%;background:#f5f5f5'></view> |
| 124 | 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 | 133 | <input class='text_999_28 float_right' style='margin-top:12rpx' value='500.00'> </input> |
| 127 | 134 | </view> |
| 128 | 135 | </view> | ... | ... |
| ... | ... | @@ -7,14 +7,23 @@ |
| 7 | 7 | |
| 8 | 8 | .text_333_28_bold { |
| 9 | 9 | font-family: PingFangSC-Semibold; |
| 10 | - font-size: 28rpx; | |
| 10 | + font-size: 30rpx; | |
| 11 | 11 | color: #333; |
| 12 | 12 | text-align: left; |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | -.arrow_wrap { | |
| 15 | +.arrow_wrap01 { | |
| 16 | 16 | position: relative; |
| 17 | 17 | width: 40rpx; |
| 18 | 18 | height: 40rpx; |
| 19 | 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 | } |
| \ No newline at end of file | ... | ... |
| ... | ... | @@ -627,7 +627,7 @@ Page({ |
| 627 | 627 | formSubmit: function(e) { |
| 628 | 628 | console.log("date", Date.parse(new Date(this.data.birthday)) / 1000) |
| 629 | 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 | 631 | var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,}$/; |
| 632 | 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 | 633 | var formdata = e.detail.value; | ... | ... |
| ... | ... | @@ -63,6 +63,8 @@ |
| 63 | 63 | <image class='arrow_wrap' src='/images/arrow_right.png'></image> |
| 64 | 64 | <text class='text_333_28 float_right'>在职</text> |
| 65 | 65 | </view> --> |
| 66 | + | |
| 67 | + <!-- 注释2018/11/26 --> | |
| 66 | 68 | <template is="picker_cell_normal" data="{{...personstatusData}}" /> |
| 67 | 69 | <view class="divide_line"></view> |
| 68 | 70 | ... | ... |
| ... | ... | @@ -829,7 +829,7 @@ Page({ |
| 829 | 829 | formSubmit: function(e) { |
| 830 | 830 | console.log("date", Date.parse(new Date(this.data.birthday)) / 1000) |
| 831 | 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 | 833 | var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/; |
| 834 | 834 | // var regMoney = /^[0-9]*(\.[0,9]{1,2})?$/; |
| 835 | 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 | 727 | var seriesConvert = series.map(function(item) { |
| 728 | 728 | var arc = 2 * Math.PI - (item._start_ + 2 * Math.PI * item._proportion_ / 2); |
| 729 | 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 | 731 | var color = item.color; |
| 732 | 732 | return { |
| 733 | 733 | arc: arc, |
| ... | ... | @@ -1150,6 +1150,8 @@ function drawLegend(series, opts, config, context) { |
| 1150 | 1150 | // context.setFillStyle(opts.extra.legendTextColor || '#333333'); |
| 1151 | 1151 | context.setFillStyle( '#6C7596'); |
| 1152 | 1152 | context.fillText(item.name, startX, startY + 9); |
| 1153 | + // context.setTextAlign("left"); | |
| 1154 | + // context.setTextBaseline("middle"); | |
| 1153 | 1155 | context.closePath(); |
| 1154 | 1156 | context.stroke(); |
| 1155 | 1157 | startX += measureText(item.name) + 2 * padding; | ... | ... |
| ... | ... | @@ -727,7 +727,7 @@ function drawPieText(series, opts, config, context, radius, center) { |
| 727 | 727 | var seriesConvert = series.map(function(item) { |
| 728 | 728 | var arc = 2 * Math.PI - (item._start_ + 2 * Math.PI * item._proportion_ / 2); |
| 729 | 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 | 731 | var color = item.color; |
| 732 | 732 | return { |
| 733 | 733 | arc: arc, | ... | ... |
请
注册
或
登录
后发表评论