Commit 2dab9797f8e8cd1fd8877dc246626f174f25360a

Authored by 王强
2 parents a26b6701 7445500a

Merge branch 'version_2.0.0_optimization_mall_update' of http://bj.gitlab.cnlive…

….com/w-front-end/select_good into version_2.0.0_optimization_mall_update
src/components/swiper/swiper.less
@@ -63,6 +63,22 @@ @@ -63,6 +63,22 @@
63 } 63 }
64 } 64 }
65 } 65 }
  66 + .play-button-box {
  67 + position: absolute;
  68 + top: 0;
  69 + left: 0;
  70 + z-index: 1;
  71 + display: flex;
  72 + justify-content: center;
  73 + align-items: center;
  74 + width: 100%;
  75 + height: 100%;
  76 + .play-button-img {
  77 + display: block;
  78 + width: 100px;
  79 + height: 100px;
  80 + }
  81 + }
66 } 82 }
67 } 83 }
68 // 积分商城样式 84 // 积分商城样式
src/components/swiper/swiper.vue
@@ -8,6 +8,10 @@ @@ -8,6 +8,10 @@
8 <img v-else v-lazy="item.simg + SIGN.BIG" class="img" mode="widthFix" /> 8 <img v-else v-lazy="item.simg + SIGN.BIG" class="img" mode="widthFix" />
9 </div> 9 </div>
10 </div> 10 </div>
  11 + <!-- 展示播放按钮 -->
  12 + <div @click="playNow(item.to)" v-if="item.type == 22" class="play-button-box">
  13 + <img src="static/img/play_dark.png" class="play-button-img" />
  14 + </div>
11 </swipe-item> 15 </swipe-item>
12 <template v-if="isPointsMall" #indicator> 16 <template v-if="isPointsMall" #indicator>
13 <div class="custom-indicator"> 17 <div class="custom-indicator">
@@ -44,7 +48,53 @@ export default { @@ -44,7 +48,53 @@ export default {
44 onChange (index) { 48 onChange (index) {
45 this.current = index; 49 this.current = index;
46 this.$emit("onChange", index); 50 this.$emit("onChange", index);
47 - } 51 + },
  52 + /**
  53 + * 播放视频
  54 + * @param {String} videoUrl [数据对象]
  55 + */
  56 + playNow(videoUrl) {
  57 + debugger
  58 + // 判断App内
  59 + if (this.isCNLive.value) {
  60 +
  61 + // 判断通用跳转函数是否存在
  62 + if (typeof this.$parent.$parent.gotoDetail === 'function') {
  63 +
  64 + // 设置跳转参数
  65 + let params = {
  66 + type: '22',
  67 + to: videoUrl,
  68 + shop_type: ''
  69 + };
  70 + // 通用跳转
  71 + this.$parent.$parent.gotoDetail(params);
  72 + }
  73 + } else {
  74 +
  75 + // App外,唤起App
  76 + this.openApp();
  77 + }
  78 + },
  79 + /**
  80 + * 唤起App封装
  81 + */
  82 + openApp() {
  83 + this.$nextTick(() => {
  84 +
  85 + // 唤起App
  86 + if (typeof this.$parent.$parent.callAppModal === 'function' && typeof this.$parent.$refs.callApp === 'object') {
  87 +
  88 + // 设置唤起参数
  89 + let options = {
  90 + success: this.$parent.$refs.callApp.callApp
  91 + }
  92 +
  93 + // 唤起App
  94 + this.$parent.$parent.callAppModal(options);
  95 + }
  96 + });
  97 + },
48 } 98 }
49 } 99 }
50 </script> 100 </script>
src/pages/healthGoodDetails/healthGoodDetails.vue
@@ -471,7 +471,7 @@ export default { @@ -471,7 +471,7 @@ export default {
471 // 加载中提示 471 // 加载中提示
472 Indicator.open("加载中..."); 472 Indicator.open("加载中...");
473 // 获取证书请求接口 473 // 获取证书请求接口
474 - this.http("/Api/" + this.getApiVersion().LuckDraw + "/integralGoodsInfo", { 474 + this.http("/Api/" + this.getApiVersion().LuckDraw + "/luckGoodsInfo", {
475 id: goodsId, // 商品ID 475 id: goodsId, // 商品ID
476 uid: this.getStore("uid") // 用户ID 476 uid: this.getStore("uid") // 用户ID
477 }, this.getGoodsInfoCallback, { 477 }, this.getGoodsInfoCallback, {
src/pages/healthMall/healthMall.less
@@ -21,4 +21,7 @@ @@ -21,4 +21,7 @@
21 margin-top:10px; 21 margin-top:10px;
22 // margin-bottom: 60px; 22 // margin-bottom: 60px;
23 } 23 }
  24 + .not_yet{
  25 + margin-top:200px;
  26 + }
24 } 27 }
25 \ No newline at end of file 28 \ No newline at end of file
src/pages/healthMall/healthMall.vue
@@ -28,9 +28,13 @@ @@ -28,9 +28,13 @@
28 </column-list-box> 28 </column-list-box>
29 </div> 29 </div>
30 <!-- 没有更多了 --> 30 <!-- 没有更多了 -->
31 - <div v-if="isNoMore" class="no_more"> 31 + <div v-if="isNoMore && page>1" class="no_more">
32 — 没有更多了 — 32 — 没有更多了 —
33 </div> 33 </div>
  34 + <!-- 暂无商品 -->
  35 + <div v-else-if="phyicalGoods.list.length == 0 && page==1" class="no_more not_yet">
  36 + — 暂无商品 —
  37 + </div>
34 </div> 38 </div>
35 </template> 39 </template>
36 40
@@ -43,7 +47,7 @@ export default { @@ -43,7 +47,7 @@ export default {
43 name: 'morePoints', 47 name: 'morePoints',
44 data () { 48 data () {
45 return { 49 return {
46 - title: "", // 标题 50 + title: "健康商城", // 标题
47 backs: null, // 后退按钮组 51 backs: null, // 后退按钮组
48 loading: true, 52 loading: true,
49 distance: 50, 53 distance: 50,
@@ -108,9 +112,8 @@ export default { @@ -108,9 +112,8 @@ export default {
108 Indicator.open("加载中..."); 112 Indicator.open("加载中...");
109 113
110 // 请求接口 114 // 请求接口
111 - this.http("/Api/" + (this.getApiVersion().LuckDraw) + "/integralNewGoodsList", {  
112 - type: this.$route.query.type,  
113 - // uid: this.getStore("uid"), 115 + this.http("/Api/" + (this.getApiVersion().LuckDraw) + "/integralMallGoods", {
  116 + type: 7,
114 page: page || 1 117 page: page || 1
115 }, this.getIntegralNewGoodsListCallback, { 118 }, this.getIntegralNewGoodsListCallback, {
116 method: "POST" 119 method: "POST"
@@ -175,7 +178,7 @@ export default { @@ -175,7 +178,7 @@ export default {
175 // 设置跳转参数 178 // 设置跳转参数
176 let params = { 179 let params = {
177 type: '5', 180 type: '5',
178 - to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id, 181 + to: window.location.origin + '/html/select_good/1/#/healthGoodDetails?goodsId=' + item.id,
179 shop_type: '' 182 shop_type: ''
180 }; 183 };
181 184
@@ -241,7 +244,6 @@ export default { @@ -241,7 +244,6 @@ export default {
241 }); 244 });
242 } 245 }
243 /*设置标题 */ 246 /*设置标题 */
244 - this.$set(this, "title", "健康商城");  
245 this.$set(this.backs, 'title', "健康商城"); 247 this.$set(this.backs, 'title', "健康商城");
246 }, 248 },
247 mounted () { 249 mounted () {
src/pages/pointsExchangeRecords/pointsExchangeRecords.less
@@ -6,10 +6,10 @@ @@ -6,10 +6,10 @@
6 background: #FFFFFF; 6 background: #FFFFFF;
7 border-radius: 24px; 7 border-radius: 24px;
8 .item_box{ 8 .item_box{
9 - padding: 30px; 9 + margin: 0 30px;
10 border-bottom: solid 2px #EAEAEA; 10 border-bottom: solid 2px #EAEAEA;
11 display: flex; 11 display: flex;
12 - padding-bottom: 28px; 12 + padding: 30px 0;
13 img{ 13 img{
14 display: flex; 14 display: flex;
15 width: 190px; 15 width: 190px;
@@ -80,6 +80,17 @@ @@ -80,6 +80,17 @@
80 align-items: center; 80 align-items: center;
81 justify-content: center; 81 justify-content: center;
82 } 82 }
  83 + .look_logistics{
  84 + width: 160px;
  85 + height: 60px;
  86 + border: 1px solid #3EB781;
  87 + border-radius: 30px;
  88 + font-size: 30px;
  89 + font-weight: 400;
  90 + color: #3EB781;
  91 + line-height: 60px;
  92 + text-align: center;
  93 + }
83 img{ 94 img{
84 display: block; 95 display: block;
85 width: 22px; 96 width: 22px;
src/pages/pointsExchangeRecords/pointsExchangeRecords.vue
@@ -26,17 +26,24 @@ @@ -26,17 +26,24 @@
26 收货人: {{item.address_name}}{{item.address_phone}}{{item.address_address}} 26 收货人: {{item.address_name}}{{item.address_phone}}{{item.address_address}}
27 </div> 27 </div>
28 28
29 - <div class="exchange_type">  
30 - <!-- 500积分+9.9元 --> 29 + <div v-show="item.price || item.total" class="exchange_type">
  30 + <span v-show="item.total && $route.query.type==3">{{item.total}}积分</span>
  31 + <span class="灰色" v-show="item.total && $route.query.type==7">{{item.total}}健康值</span>
  32 + <span v-show="parseInt(item.price)>0">+{{item.price}}元</span>
31 </div> 33 </div>
32 <div class="exchange_time"> 34 <div class="exchange_time">
33 兑换时间 {{item.create_time*1000 | datetime('yyyy-MM-dd hh:mm:ss')}} 35 兑换时间 {{item.create_time*1000 | datetime('yyyy-MM-dd hh:mm:ss')}}
34 </div> 36 </div>
35 <div v-show="item.shop_type == 1 && !item.address_name && !item.address_address && !item.address_phone" class="btn-box"> 37 <div v-show="item.shop_type == 1 && !item.address_name && !item.address_address && !item.address_phone" class="btn-box">
  38 + <!-- 需要填写地址状态 -->
36 <div @click.stop="addAddressInfo(item)" class="btn"> 39 <div @click.stop="addAddressInfo(item)" class="btn">
37 填写地址 40 填写地址
38 <img src="static/img/red_right_icon.png" alt=""/> 41 <img src="static/img/red_right_icon.png" alt=""/>
39 </div> 42 </div>
  43 + <!-- 已填写地址等待发货状态 -->
  44 + <div v-show="item.sendtime && item.sendtime>0" class="look_logistics">
  45 + 查看物流
  46 + </div>
40 </div> 47 </div>
41 </div> 48 </div>
42 </div> 49 </div>
@@ -167,7 +174,7 @@ export default { @@ -167,7 +174,7 @@ export default {
167 { 174 {
168 uid: this.getStore("uid"), 175 uid: this.getStore("uid"),
169 page: page, 176 page: page,
170 - type: "3" // 1亲子嘉年华 2 康疫健步 3 积分商城 177 + type: this.$route.query.type // 1亲子嘉年华 2 康疫健步 3 积分商城 4 脐橙 7 健康商城
171 }, 178 },
172 this.myLuckDrawCallback, 179 this.myLuckDrawCallback,
173 { 180 {
src/pages/pointsMall/pointsMall.vue
@@ -193,6 +193,7 @@ export default { @@ -193,6 +193,7 @@ export default {
193 path: '/pointsExchangeRecords', 193 path: '/pointsExchangeRecords',
194 query: { 194 query: {
195 uid: this.getStore("uid"), 195 uid: this.getStore("uid"),
  196 + type: 3 // 1亲子嘉年华 2 康疫健步 3 积分商城 4 脐橙 7 健康商城
196 } 197 }
197 }) 198 })
198 } else { 199 } else {