|
@@ -5,7 +5,7 @@
|
|
|
<image class="image_bg" src="/images/luck-draw/per_head.png" />
|
|
|
<image class="image_portrait" src="/images/luck-draw/portrait.png" />
|
|
|
<button class="luck-draw-isLogin" wx:if="{{!isLogin}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" >登录</button>
|
|
|
- <view class="luck-draw-pro-nickname" wx:if="{{isLogin}}">{{mobileTop}}</view>
|
|
|
+ <view class="luck-draw-pro-nickname" wx:if="{{isLogin}}">{{phone.toHide(mobileTop)}}</view>
|
|
|
</view>
|
|
|
<view class="luck-draw-pro-cp">
|
|
|
<!-- 优惠券 -->
|
|
@@ -46,6 +46,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
+<!-- 使用wxs 手机号码中间四位显示为*号 -->
|
|
|
+<wxs module="phone">
|
|
|
+var toHide = function(array) {
|
|
|
+ var mphone = array.substring(0, 3) + '****' + array.substring(7);
|
|
|
+ return mphone;
|
|
|
+}
|
|
|
+module.exports.toHide = toHide;
|
|
|
+</wxs>
|
|
|
<!-- 底部导航 -->
|
|
|
<tab-bar />
|