1002884655 преди 4 години
родител
ревизия
a94a482a79
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5
    1
      src/pages/index/ShouYe/index.vue

+ 5
- 1
src/pages/index/ShouYe/index.vue Целия файл

@@ -48,7 +48,7 @@
48 48
                       </div>
49 49
                       <div class="Time flex-h">
50 50
                         <span v-if="item.lotteryId !== 'football' && item.lotteryId !== 'basketball'">第{{item.issueNo}}期</span>
51
-                        <span class="flex-item">下单人:{{item.customerName}}</span>
51
+                        <span class="flex-item">下单人:{{IsPhone(item.customerName) ? `${item.customerName.substring(0, 3)}****${item.customerName.substring(7, 11)}` : item.customerName}}</span>
52 52
                         <router-link :to="{ name: 'DingDanXiangQing', query: {id: item.orderId} }">查看详情</router-link>
53 53
                       </div>
54 54
                     </li>
@@ -114,6 +114,10 @@ export default {
114 114
     ...mapUserActions([
115 115
       'GetCurrentShopOrderList'
116 116
     ]),
117
+    IsPhone (str) { // 校验手机号
118
+      let myreg = /^[1][3,4,5,7,8][0-9]{9}$/
119
+      return !!myreg.test(str)
120
+    },
117 121
     Init (done = () => { }) { // 初始化
118 122
       this.EmptyCurrentShopOrderList()
119 123
       this.PageData.pageNum = 1