正在显示
7 个修改的文件
包含
112 行增加
和
9 行删除
@@ -5,7 +5,8 @@ Page({ | @@ -5,7 +5,8 @@ Page({ | ||
5 | * Page initial data | 5 | * Page initial data |
6 | */ | 6 | */ |
7 | data: { | 7 | data: { |
8 | - | 8 | + infoList:[{}], |
9 | + deductPick:["30%","100%"], | ||
9 | }, | 10 | }, |
10 | 11 | ||
11 | /** | 12 | /** |
@@ -29,6 +30,19 @@ Page({ | @@ -29,6 +30,19 @@ Page({ | ||
29 | 30 | ||
30 | }, | 31 | }, |
31 | 32 | ||
33 | + addItem: function () {//继续添加 | ||
34 | + var info = this.data.infoList; | ||
35 | + console.log(info); | ||
36 | + info.push(this.data.infoList.length); | ||
37 | + this.setData({ | ||
38 | + infoList: info | ||
39 | + }); | ||
40 | + }, | ||
41 | + | ||
42 | + goSubmit: function (e) { | ||
43 | + console.log('form发生了submit事件,携带数据为:', e.detail.value) | ||
44 | + }, | ||
45 | + | ||
32 | /** | 46 | /** |
33 | * Lifecycle function--Called when page hide | 47 | * Lifecycle function--Called when page hide |
34 | */ | 48 | */ |
1 | -<!--pages/main/finalpay/donationDetail/donationDetail.wxml--> | ||
2 | -<text>pages/main/finalpay/donationDetail/donationDetail.wxml</text> | 1 | + |
2 | +<view class="page"> | ||
3 | + <view style="background:#fff;padding:0 30rpx;"> | ||
4 | + <text class="text_gray7_34">准予扣除的捐赠额合计</text> | ||
5 | + <text class="text_black3_34 float_right">{{300090}}</text> | ||
6 | + </view> | ||
7 | + | ||
8 | + <view wx:for="{{infoList}}" style="background:#fff;margin-top:20rpx"> | ||
9 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx;display: flex;"> | ||
10 | + <view style="font-size: 32rpx;color: #777777;text-align: center;width:320rpx;display:flex;align-items: center;">受赠单位纳税人识别号(统一社会信用代码)</view> | ||
11 | + <input style='text-align:right;color:#000;font-size: 30rpx;height:104rpx;width:366rpx' placeholder='请输入' name='name' maxlength="20" bindblur="" value="{{}}"></input> | ||
12 | + </view> | ||
13 | + <view class="divide_line_30"></view> | ||
14 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | ||
15 | + <text class="text_gray7_34">受赠单位名称</text> | ||
16 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="" value="{{}}"></input> | ||
17 | + </view> | ||
18 | + <view class="divide_line_30"></view> | ||
19 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | ||
20 | + <text class="text_gray7_34">报捐赠凭证号</text> | ||
21 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="" value="{{}}"></input> | ||
22 | + </view> | ||
23 | + <view class="divide_line_30"></view> | ||
24 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | ||
25 | + <text class="text_gray7_34">捐赠年度</text> | ||
26 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="" value="{{}}"></input> | ||
27 | + </view> | ||
28 | + <view class="divide_line_30"></view> | ||
29 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | ||
30 | + <text class="text_gray7_34">捐赠金额</text> | ||
31 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | ||
32 | + </view> | ||
33 | + <view class="divide_line_30"></view> | ||
34 | + <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="selector" bindchange="" range="{{deductPick}}"> | ||
35 | + <text class="text_gray7_34">扣除比例</text> | ||
36 | + <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> | ||
37 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请选择' name='' value="{{}}"></input> | ||
38 | + </picker> | ||
39 | + <view class="divide_line_30"></view> | ||
40 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | ||
41 | + <text class="text_gray7_34">备注</text> | ||
42 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="" value="{{}}"></input> | ||
43 | + </view> | ||
44 | + </view> | ||
45 | + | ||
46 | + <view style="background:#fff;margin-top:20rpx;height:104rpx;display:flex;align-items:center;justify-content:center;padding-bottom:84rpx" bindtap="addItem"> | ||
47 | + <image style="width:28rpx;height:28rpx;margin-right:16rpx" src="/images/add_extra.png"></image> | ||
48 | + <text style="font-size:28rpx;color:#4986fe">继续添加</text> | ||
49 | + </view> | ||
50 | + <view class="btn_bottom" bindtap="goSubmit"> | ||
51 | + <button class="btn_bottom">保存</button> | ||
52 | + </view> | ||
53 | +</view> |
1 | -/* pages/main/finalpay/donationDetail/donationDetail.wxss */ | ||
1 | +/* pages/main/finalpay/donationDetail/donationDetail.wxss */ | ||
2 | +page { | ||
3 | + background-color: #f5f5f5; | ||
4 | +} | ||
5 | + | ||
6 | +.text_gray7_34 { | ||
7 | + font-family:PingFangSC-Regular,PingFang SC; | ||
8 | + font-size: 34rpx; | ||
9 | + color: #777777; | ||
10 | + text-align: center; | ||
11 | + line-height: 104rpx; | ||
12 | +} | ||
13 | + | ||
14 | +.text_black3_34 { | ||
15 | + font-family:PingFangSC-Regular,PingFang SC; | ||
16 | + font-size: 34rpx; | ||
17 | + color: #333333; | ||
18 | + text-align: center; | ||
19 | + line-height: 104rpx; | ||
20 | +} | ||
21 | + | ||
22 | +.input_wrap { | ||
23 | + max-width: 600rpx; | ||
24 | + height: 104rpx; | ||
25 | + font-size: 32rpx; | ||
26 | + color: #fff; | ||
27 | + text-align: right; | ||
28 | + overflow: hidden; | ||
29 | + float: right; | ||
30 | +} | ||
31 | + | ||
32 | +.arrow_wrap { | ||
33 | + width: 60rpx; | ||
34 | + height: 60rpx; | ||
35 | + margin-top: 20rpx | ||
36 | +} |
1 | -<view class="page"> | 1 | +<view > |
2 | <view style="background:#fff;padding:0 30rpx;"> | 2 | <view style="background:#fff;padding:0 30rpx;"> |
3 | <text class="text_gray7_34">免税收入合计</text> | 3 | <text class="text_gray7_34">免税收入合计</text> |
4 | <text class="text_black3_34 float_right">{{3000}}</text> | 4 | <text class="text_black3_34 float_right">{{3000}}</text> |
@@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
29 | </view> | 29 | </view> |
30 | </view> | 30 | </view> |
31 | 31 | ||
32 | - <view style="background:#fff;margin-top:20rpx;height:104rpx;display:flex;align-items:center;justify-content:center;padding-bottom:84rpx" bindtap="addItem"> | 32 | + <view style="background:#fff;margin-top:20rpx;height:104rpx;display:flex;align-items:center;justify-content:center;margin-bottom:84rpx" bindtap="addItem"> |
33 | <image style="width:28rpx;height:28rpx;margin-right:16rpx" src="/images/add_extra.png"></image> | 33 | <image style="width:28rpx;height:28rpx;margin-right:16rpx" src="/images/add_extra.png"></image> |
34 | <text style="font-size:28rpx;color:#4986fe">继续添加</text> | 34 | <text style="font-size:28rpx;color:#4986fe">继续添加</text> |
35 | </view> | 35 | </view> |
请
注册
或
登录
后发表评论