yuantianjiao 6 years ago
parent
commit
94cb3026a9

+ 21
- 6
src/pages/sales/customerSearch/index.vue View File

9
           <li class="customer-card">
9
           <li class="customer-card">
10
             <div class="list-box">
10
             <div class="list-box">
11
               <customerCard v-for="(item,index) in cardList" :key="index" :data='item' @record='record'></customerCard>
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
             </div>
14
             </div>
14
           </li>
15
           </li>
15
         </ul>
16
         </ul>
31
 import active from '../../../common/icon/check-box-checked.png'
32
 import active from '../../../common/icon/check-box-checked.png'
32
 import normal from '../../../common/icon/check-box-empty.png'
33
 import normal from '../../../common/icon/check-box-empty.png'
33
 import topCaseInfo from '../../../components/topCaseInfo/index'
34
 import topCaseInfo from '../../../components/topCaseInfo/index'
35
+import noMore from '../../../components/noMore/noMore'
34
 import { mapState, createNamespacedHelpers } from 'vuex'
36
 import { mapState, createNamespacedHelpers } from 'vuex'
35
 const { mapActions: actions } = createNamespacedHelpers('app')
37
 const { mapActions: actions } = createNamespacedHelpers('app')
36
 const { mapActions: caseTableActions } = createNamespacedHelpers('placeOrderForCoffee')
38
 const { mapActions: caseTableActions } = createNamespacedHelpers('placeOrderForCoffee')
51
         normal: normal
53
         normal: normal
52
       },
54
       },
53
       ajaxOff: false,
55
       ajaxOff: false,
56
+      hasPic: false,
54
       key: '',
57
       key: '',
55
       mask: true,
58
       mask: true,
56
       checked: true,
59
       checked: true,
70
   components: {
73
   components: {
71
     customerCard,
74
     customerCard,
72
     topCaseInfo,
75
     topCaseInfo,
76
+    noMore
73
   },
77
   },
74
   created () {
78
   created () {
75
     this.getCaseList().then((res) => {
79
     this.getCaseList().then((res) => {
96
     ]),
100
     ]),
97
     record (item) {
101
     record (item) {
98
       // console.log(item)
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
     searchMask () {
105
     searchMask () {
102
       this.getCustomerList({
106
       this.getCustomerList({
105
         isrecommend: false,
109
         isrecommend: false,
106
         key: this.key,
110
         key: this.key,
107
       }).then((res) => {
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
         this.mask = false
128
         this.mask = false
114
         this.ajaxOff = true
129
         this.ajaxOff = true
115
       })
130
       })

+ 1
- 1
src/pages/user/couponsDetail/index.vue View File

8
         </div>
8
         </div>
9
         <div>
9
         <div>
10
           <span>有效时间:</span>
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
         </div>
12
         </div>
13
       </div>
13
       </div>
14
       <div class="rule">
14
       <div class="rule">

+ 1
- 1
src/pages/user/placeOrderForCourse/index.vue View File

182
               })
182
               })
183
             } else {
183
             } else {
184
               for (var a = 0; a < res[n].Coupon.Targets.length; a++) {
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
                   this.couponList.push({
186
                   this.couponList.push({
187
                     title: res[n].Coupon.CouponName,
187
                     title: res[n].Coupon.CouponName,
188
                     desc: res[n].Coupon.Share.UseInstruction,
188
                     desc: res[n].Coupon.Share.UseInstruction,

+ 10
- 1
src/pages/user/receiveChannel/index.vue View File

15
       <div class="title" v-if="$route.query.type === 'card'">{{data.CardName}}</div>
15
       <div class="title" v-if="$route.query.type === 'card'">{{data.CardName}}</div>
16
       <div class="title" v-else>{{data.CouponName}}</div>
16
       <div class="title" v-else>{{data.CouponName}}</div>
17
       <div class="video" v-if='video'>
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
       </div>
28
       </div>
20
       <div class="text">
29
       <div class="text">
21
         <div>
30
         <div>