Commit f8e7c23c541249e585febd331242a0a608f5b74a

Authored by 后端研发-倪永富
1 parent e2cfdfc7

流动资金预转存券的背景颜色由仅一种绿色变更为绿、红、黄、蓝四种

pages/user/deposit/prepaid/prepaid.wxml
1 1 <block wx:for="{{perpaid}}" wx:for-index="idx" wx:for-item="perpaid">
2   - <image class="picture" src="{{iurl}}/miniapp/images/usermoney/green.png">
  2 + <view>
  3 + <image wx:if="{{idx % 4 == 0}}" class="picture" src="{{iurl+'miniapp/images/usermoney/green.png'}}"></image>
  4 + <image wx:if="{{idx % 4 == 1}}" class="picture" src="{{iurl+'miniapp/images/usermoney/red.png'}}"></image>
  5 + <image wx:if="{{idx % 4 == 2}}" class="picture" src="{{iurl+'miniapp/images/usermoney/yellow.png'}}"></image>
  6 + <image wx:if="{{idx % 4 == 3}}" class="picture" src="{{iurl+'miniapp/images/usermoney/blue.png'}}"></image>
  7 + <view class="wz">{{perpaid.ItemName}}</view>
  8 + <view class="rim">
  9 + <view class="con">充</view>
  10 + <view class="qian">{{perpaid.BeginSum}}</view>
  11 + <view class="q-one">送{{perpaid.NewSum}}元</view>
  12 + <view class="give">充值送大礼 ></view>
  13 + </view>
  14 + <view class="bz">备注:
  15 + <view class="yck">{{perpaid.ItemName}}</view>
  16 + </view>
  17 + <view class="ljcz" bindtap="submit" data-name="{{perpaid.BeginSum}}" data-advance="{{perpaid.AdvanceItemId}}"data-money="{{perpaid.NewSum}}">立即充值</view>
  18 + </view>
3 19  
4   - <view class="wz">{{perpaid.ItemName}}</view>
5   - <view class="rim">
6   - <view class="con">充</view>
7   - <view class="qian">{{perpaid.BeginSum}}</view>
8   - <view class="q-one">送{{perpaid.NewSum}}元</view>
9   - </view>
10   - <view class="bz">备注:
11   - <view class="yck">{{perpaid.ItemName}}</view>
12   - </view>
13   - <view class="ljcz" bindtap="submit" data-name="{{perpaid.BeginSum}}" data-advance="{{perpaid.AdvanceItemId}}"data-money="{{perpaid.NewSum}}">立即充值</view>
14   - </image>
15   - </block>
  20 +
  21 +</block>
16 22  
17 23 <view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
18 24 <view class="big-rim modalDlg" wx:if="{{showModal}}">
19 25 <view class="gb-rim" bindtap="shut">
20 26 <image class="imag" src="{{iurl}}/miniapp/images/usermoney/img.png"></image>
21   -
22 27 </view>
23 28 <view class="bk">
24 29 <view class="text">充{{BeginSum}}送{{NewSum}}元</view>
... ... @@ -29,3 +34,24 @@
29 34 <button bindtap="determine" class="button" data-adv="{{adv}}" data-money='{{BeginSum}}' data-moneyone='{{NewSum}}' >确定</button>
30 35 </view>
31 36 </view>
  37 +
  38 +
  39 +<!-- <view> -->
  40 + <!-- 列表 -->
  41 + <!-- <view class="list"> -->
  42 + <!-- 列表项 -->
  43 + <!-- <view class="coupon"> -->
  44 + <!-- 左 -->
  45 + <!-- <view class="left">
  46 + <view>预存5折</view>
  47 + <view>充1000元</view>
  48 + <view>充值送大礼</view>
  49 + </view> -->
  50 + <!-- 右 -->
  51 + <!-- <view class="right">
  52 + <view>备注:</view>
  53 + <view>立即充值</view>
  54 + </view>
  55 + </view>
  56 + </view>
  57 +</view> -->
... ...
pages/user/deposit/prepaid/prepaid.wxss
... ... @@ -180,6 +180,52 @@ font-size:28rpx;
180 180 left:0;
181 181 }
182 182  
  183 +.give {
  184 + position: absolute;
  185 + margin-top: 80rpx;
  186 + margin-left: 60rpx;
  187 +}
  188 +
  189 +.list {
  190 + padding: 0 20rpx;
  191 +}
  192 +
  193 +.coupon {
  194 + box-sizing: border-box;
  195 + display: flex;
  196 + justify-content: space-between;
  197 + background-color: pink;
  198 + padding: 0 40rpx;
  199 +
  200 +
  201 + background-image: radial-gradient(circle at 8rpx 8rpx, transparent, red);
  202 + /* background-image:
  203 + radial-gradient(
  204 + circle at 0px 8px,
  205 + transparent 6px,
  206 + #ff9e6d 6px,
  207 + #ff9e6d 0px),
  208 + radial-gradient(
  209 + circle at 199px 8px,
  210 + transparent 6px,
  211 + #ff9e6d 6px,
  212 + #ff9e6d 0px); */
  213 + background-size: 30px 30px;
  214 + /* background-position: 0 0, 200px 0; */
  215 + /* background-repeat-y: no-repeat; */
  216 + background-repeat-x: no-repeat;
  217 +}
  218 +
  219 +.left {
  220 + background-color: skyblue;
  221 + flex: 1;
  222 +}
  223 +
  224 +.right {
  225 + border-left: 2rpx dashed white;
  226 + padding-left: 60rpx;
  227 +}
  228 +
183 229  
184 230  
185 231  
... ...