yuantianjiao 6 年之前
父節點
當前提交
94cb3026a9

+ 21
- 6
src/pages/sales/customerSearch/index.vue 查看文件

@@ -9,7 +9,8 @@
9 9
           <li class="customer-card">
10 10
             <div class="list-box">
11 11
               <customerCard v-for="(item,index) in cardList" :key="index" :data='item' @record='record'></customerCard>
12
-              <span class="noData" v-if="ajaxOff && !cardList.length">暂无数据</span>
12
+              <!-- <span class="noData" v-if="ajaxOff && !cardList.length">暂无数据</span> -->
13
+              <noMore v-if="ajaxOff && hasPic"></noMore>
13 14
             </div>
14 15
           </li>
15 16
         </ul>
@@ -31,6 +32,7 @@ import customerCard from '../../../components/customerCard/customerCard'
31 32
 import active from '../../../common/icon/check-box-checked.png'
32 33
 import normal from '../../../common/icon/check-box-empty.png'
33 34
 import topCaseInfo from '../../../components/topCaseInfo/index'
35
+import noMore from '../../../components/noMore/noMore'
34 36
 import { mapState, createNamespacedHelpers } from 'vuex'
35 37
 const { mapActions: actions } = createNamespacedHelpers('app')
36 38
 const { mapActions: caseTableActions } = createNamespacedHelpers('placeOrderForCoffee')
@@ -51,6 +53,7 @@ export default {
51 53
         normal: normal
52 54
       },
53 55
       ajaxOff: false,
56
+      hasPic: false,
54 57
       key: '',
55 58
       mask: true,
56 59
       checked: true,
@@ -70,6 +73,7 @@ export default {
70 73
   components: {
71 74
     customerCard,
72 75
     topCaseInfo,
76
+    noMore
73 77
   },
74 78
   created () {
75 79
     this.getCaseList().then((res) => {
@@ -96,7 +100,7 @@ export default {
96 100
     ]),
97 101
     record (item) {
98 102
       // console.log(item)
99
-      this.$router.push({ name: 'getRecord', query: {name: item.Name, phone: item.Phone, id: item.CustomerId} })
103
+      this.$router.push({ name: 'getRecord', query: { name: item.Name, phone: item.Phone, id: item.CustomerId } })
100 104
     },
101 105
     searchMask () {
102 106
       this.getCustomerList({
@@ -105,11 +109,22 @@ export default {
105 109
         isrecommend: false,
106 110
         key: this.key,
107 111
       }).then((res) => {
108
-        // console.log(JSON.stringify(res))
109
-        res = res || []
110
-        for (var n = 0; n < res.length; n++) {
111
-          this.cardList.push({...res[n], invalid: false})
112
+        if (res) {
113
+          for (var n = 0; n < res.length; n++) {
114
+            if (res[n].RecommendId === this.userInfo.customer.MapUser) {
115
+              res[n].showTag = true
116
+            } else {
117
+              res[n].showTag = false
118
+            }
119
+            this.cardList.push(res[n])
120
+          }
121
+        } else {
122
+          this.hasPic = true
112 123
         }
124
+        // res = res || []
125
+        // for (var n = 0; n < res.length; n++) {
126
+        //   this.cardList.push({...res[n], invalid: false})
127
+        // }
113 128
         this.mask = false
114 129
         this.ajaxOff = true
115 130
       })

+ 1
- 1
src/pages/user/couponsDetail/index.vue 查看文件

@@ -8,7 +8,7 @@
8 8
         </div>
9 9
         <div>
10 10
           <span>有效时间:</span>
11
-          <div class="time">{{toolClass.dateFormat(info.EndDate)}}</div>
11
+          <div class="time">{{toolClass.dateFormat(info.StartDate) + ' ~ ' + toolClass.dateFormat(info.EndDate)}}</div>
12 12
         </div>
13 13
       </div>
14 14
       <div class="rule">

+ 1
- 1
src/pages/user/placeOrderForCourse/index.vue 查看文件

@@ -182,7 +182,7 @@ export default {
182 182
               })
183 183
             } else {
184 184
               for (var a = 0; a < res[n].Coupon.Targets.length; a++) {
185
-                if (res[n].Coupon.Targets[a].TargetId === id && nowDate >= new Date(res[n].StartDate).getTime() && nowDate < new Date(res[n].EndDate).getTime()) {
185
+                if (res[n].Coupon.Targets[a].TargetId === id && nowDate < new Date(res[n].EndDate).getTime()) {
186 186
                   this.couponList.push({
187 187
                     title: res[n].Coupon.CouponName,
188 188
                     desc: res[n].Coupon.Share.UseInstruction,

+ 10
- 1
src/pages/user/receiveChannel/index.vue 查看文件

@@ -15,7 +15,16 @@
15 15
       <div class="title" v-if="$route.query.type === 'card'">{{data.CardName}}</div>
16 16
       <div class="title" v-else>{{data.CouponName}}</div>
17 17
       <div class="video" v-if='video'>
18
-        <video :src="data.VideoUrl" width="100%" height="100%"></video>
18
+        <video :src="data.VideoUrl" width="100%" height="100%"
19
+          style="object-fit:fill" 
20
+          webkit-playsinline="true" 
21
+          x-webkit-airplay="true" 
22
+          playsinline="true" 
23
+          x5-video-player-type="h5"
24
+          x5-video-orientation="h5" 
25
+          x5-video-player-fullscreen="true"
26
+          preload="auto" 
27
+        ></video>
19 28
       </div>
20 29
       <div class="text">
21 30
         <div>