Commit 2dab9797f8e8cd1fd8877dc246626f174f25360a
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
Showing
8 changed files
with
104 additions
and
14 deletions
src/components/swiper/swiper.less
| ... | ... | @@ -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 | 8 | <img v-else v-lazy="item.simg + SIGN.BIG" class="img" mode="widthFix" /> |
| 9 | 9 | </div> |
| 10 | 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 | 15 | </swipe-item> |
| 12 | 16 | <template v-if="isPointsMall" #indicator> |
| 13 | 17 | <div class="custom-indicator"> |
| ... | ... | @@ -44,7 +48,53 @@ export default { |
| 44 | 48 | onChange (index) { |
| 45 | 49 | this.current = index; |
| 46 | 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 | 100 | </script> | ... | ... |
src/pages/healthGoodDetails/healthGoodDetails.vue
| ... | ... | @@ -471,7 +471,7 @@ export default { |
| 471 | 471 | // 加载中提示 |
| 472 | 472 | Indicator.open("加载中..."); |
| 473 | 473 | // 获取证书请求接口 |
| 474 | - this.http("/Api/" + this.getApiVersion().LuckDraw + "/integralGoodsInfo", { | |
| 474 | + this.http("/Api/" + this.getApiVersion().LuckDraw + "/luckGoodsInfo", { | |
| 475 | 475 | id: goodsId, // 商品ID |
| 476 | 476 | uid: this.getStore("uid") // 用户ID |
| 477 | 477 | }, this.getGoodsInfoCallback, { | ... | ... |
src/pages/healthMall/healthMall.less
src/pages/healthMall/healthMall.vue
| ... | ... | @@ -28,9 +28,13 @@ |
| 28 | 28 | </column-list-box> |
| 29 | 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 | 33 | </div> |
| 34 | + <!-- 暂无商品 --> | |
| 35 | + <div v-else-if="phyicalGoods.list.length == 0 && page==1" class="no_more not_yet"> | |
| 36 | + — 暂无商品 — | |
| 37 | + </div> | |
| 34 | 38 | </div> |
| 35 | 39 | </template> |
| 36 | 40 | |
| ... | ... | @@ -43,7 +47,7 @@ export default { |
| 43 | 47 | name: 'morePoints', |
| 44 | 48 | data () { |
| 45 | 49 | return { |
| 46 | - title: "", // 标题 | |
| 50 | + title: "健康商城", // 标题 | |
| 47 | 51 | backs: null, // 后退按钮组 |
| 48 | 52 | loading: true, |
| 49 | 53 | distance: 50, |
| ... | ... | @@ -108,9 +112,8 @@ export default { |
| 108 | 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 | 117 | page: page || 1 |
| 115 | 118 | }, this.getIntegralNewGoodsListCallback, { |
| 116 | 119 | method: "POST" |
| ... | ... | @@ -175,7 +178,7 @@ export default { |
| 175 | 178 | // 设置跳转参数 |
| 176 | 179 | let params = { |
| 177 | 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 | 182 | shop_type: '' |
| 180 | 183 | }; |
| 181 | 184 | |
| ... | ... | @@ -241,7 +244,6 @@ export default { |
| 241 | 244 | }); |
| 242 | 245 | } |
| 243 | 246 | /*设置标题 */ |
| 244 | - this.$set(this, "title", "健康商城"); | |
| 245 | 247 | this.$set(this.backs, 'title', "健康商城"); |
| 246 | 248 | }, |
| 247 | 249 | mounted () { | ... | ... |
src/pages/pointsExchangeRecords/pointsExchangeRecords.less
| ... | ... | @@ -6,10 +6,10 @@ |
| 6 | 6 | background: #FFFFFF; |
| 7 | 7 | border-radius: 24px; |
| 8 | 8 | .item_box{ |
| 9 | - padding: 30px; | |
| 9 | + margin: 0 30px; | |
| 10 | 10 | border-bottom: solid 2px #EAEAEA; |
| 11 | 11 | display: flex; |
| 12 | - padding-bottom: 28px; | |
| 12 | + padding: 30px 0; | |
| 13 | 13 | img{ |
| 14 | 14 | display: flex; |
| 15 | 15 | width: 190px; |
| ... | ... | @@ -80,6 +80,17 @@ |
| 80 | 80 | align-items: center; |
| 81 | 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 | 94 | img{ |
| 84 | 95 | display: block; |
| 85 | 96 | width: 22px; | ... | ... |
src/pages/pointsExchangeRecords/pointsExchangeRecords.vue
| ... | ... | @@ -26,17 +26,24 @@ |
| 26 | 26 | 收货人: {{item.address_name}}{{item.address_phone}}{{item.address_address}} |
| 27 | 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 | 33 | </div> |
| 32 | 34 | <div class="exchange_time"> |
| 33 | 35 | 兑换时间 {{item.create_time*1000 | datetime('yyyy-MM-dd hh:mm:ss')}} |
| 34 | 36 | </div> |
| 35 | 37 | <div v-show="item.shop_type == 1 && !item.address_name && !item.address_address && !item.address_phone" class="btn-box"> |
| 38 | + <!-- 需要填写地址状态 --> | |
| 36 | 39 | <div @click.stop="addAddressInfo(item)" class="btn"> |
| 37 | 40 | 填写地址 |
| 38 | 41 | <img src="static/img/red_right_icon.png" alt=""/> |
| 39 | 42 | </div> |
| 43 | + <!-- 已填写地址等待发货状态 --> | |
| 44 | + <div v-show="item.sendtime && item.sendtime>0" class="look_logistics"> | |
| 45 | + 查看物流 | |
| 46 | + </div> | |
| 40 | 47 | </div> |
| 41 | 48 | </div> |
| 42 | 49 | </div> |
| ... | ... | @@ -167,7 +174,7 @@ export default { |
| 167 | 174 | { |
| 168 | 175 | uid: this.getStore("uid"), |
| 169 | 176 | page: page, |
| 170 | - type: "3" // 1亲子嘉年华 2 康疫健步 3 积分商城 | |
| 177 | + type: this.$route.query.type // 1亲子嘉年华 2 康疫健步 3 积分商城 4 脐橙 7 健康商城 | |
| 171 | 178 | }, |
| 172 | 179 | this.myLuckDrawCallback, |
| 173 | 180 | { | ... | ... |