12345678910111213141516171819202122232425262728293031323334353637383940 |
- <wxs module="phoneReg">
- var toHide = function (array) {
- var mphone = array.substring(0, 3) + '****' + array.substring(7);
- return mphone;
- }
- module.exports.toHide = toHide;
- </wxs>
- <view class="address-item-wrapper item-wrapper-class">
- <t-swipe-cell class="swipe-out">
- <view class="address {{isDrawLine ? 'draw-line' : ''}}" bindtap="onSelect" data-item="{{address}}">
- <view class="address-left" wx:if="{{extraSpace}}">
- <t-icon wx:if="{{address.checked}}" name="check" color="#FA4126" size="46rpx" />
- </view>
- <view style="display: flex;align-items: center; flex: 1;">
- <view style="margin-right: 30rpx;" wx:if="{{!isManage}}">
- <t-icon name="location" size="40rpx" color="#333" />
- </view>
- <view class="address-content">
- <view class="title title-class">
- <text class="text-style">{{address.name}}</text>
- <text class="text-lighter">{{phoneReg.toHide(address.phone || '')}}</text>
- </view>
- <view class="label-adds">
- <text class="adds address-info-class">
- <text wx:if="{{address.isDefault}}" class="tag tag-default default-tag-class">默认</text>
- <text wx:if="{{address.addressTag}}" class="tag tag-primary normal-tag-class">{{address.addressTag}}</text>
- <text class="address-text">{{address.detailAddress}}</text>
- </text>
- </view>
- </view>
- </view>
- <view catch:tap="onEdit" data-item="{{address}}" class="address-edit" wx:if="{{isEdit}}">
- <t-icon name="{{customIcon}}" class-prefix="{{classPrefix}}" size="46rpx" color="#BBBBBB" />
- </view>
- </view>
- <view wx:if="{{isManage}}" slot="right" class="swipe-right-del delete-class" bindtap="onDelete" data-item="{{address}}">
- 删除
- </view>
- </t-swipe-cell>
- </view>
|