Commit d19ce286b31dbb7ee61239f18dee903dd66210ba
1 parent
bf545917
图片替换
Showing
11 changed files
with
131 additions
and
96 deletions
src/components/goodsItem_7/goodsItem_7.less
| @@ -28,12 +28,13 @@ | @@ -28,12 +28,13 @@ | ||
| 28 | // 积分商城需要商品是否有货显示补货中 | 28 | // 积分商城需要商品是否有货显示补货中 |
| 29 | .goods_active{ | 29 | .goods_active{ |
| 30 | width: 100%; | 30 | width: 100%; |
| 31 | - height: 58px; | ||
| 32 | - line-height: 58px; | ||
| 33 | - background: #000000; | 31 | + height: 100%; |
| 32 | + background: rgba(0, 0, 0, 0.5); | ||
| 33 | + display: flex; | ||
| 34 | + align-items: center; | ||
| 35 | + justify-content: center; | ||
| 34 | color: #fff; | 36 | color: #fff; |
| 35 | font-size: 30px; | 37 | font-size: 30px; |
| 36 | - opacity: 0.39; | ||
| 37 | text-align: center; | 38 | text-align: center; |
| 38 | position: absolute; | 39 | position: absolute; |
| 39 | left: 0; | 40 | left: 0; |
src/components/goodsItem_7/goodsItem_7.vue
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | <img v-lazy="item.simg + SIGN.MIDDLE" class="img" /> | 5 | <img v-lazy="item.simg + SIGN.MIDDLE" class="img" /> |
| 6 | <!-- 补货中按钮 --> | 6 | <!-- 补货中按钮 --> |
| 7 | <div v-show="item.time_state == 2 && item.stock == 0" class="goods_active"> | 7 | <div v-show="item.time_state == 2 && item.stock == 0" class="goods_active"> |
| 8 | - 补货中 | 8 | + 已售罄 |
| 9 | </div> | 9 | </div> |
| 10 | </div> | 10 | </div> |
| 11 | <div class="content-box"> | 11 | <div class="content-box"> |
src/pages/pointsMall/pointsMall.less
| 1 | @charset "UTF-8"; | 1 | @charset "UTF-8"; |
| 2 | .main_box{ | 2 | .main_box{ |
| 3 | - background: #fff; | ||
| 4 | -} | 3 | + width: 100%; |
| 4 | + // min-height: 1840px; | ||
| 5 | + background:#fff url("../../../static/img/pointsBack.png") no-repeat | ||
| 6 | + center top; | ||
| 7 | + background-size: 100%; | ||
| 8 | + overflow: hidden; | ||
| 5 | // 头部 | 9 | // 头部 |
| 6 | .top_main{ | 10 | .top_main{ |
| 7 | margin:40px 30px; | 11 | margin:40px 30px; |
| @@ -150,4 +154,5 @@ | @@ -150,4 +154,5 @@ | ||
| 150 | font-weight: 400; | 154 | font-weight: 400; |
| 151 | border-radius: 6px; | 155 | border-radius: 6px; |
| 152 | } | 156 | } |
| 153 | -} | ||
| 154 | \ No newline at end of file | 157 | \ No newline at end of file |
| 158 | + } | ||
| 159 | +} | ||
| 155 | \ No newline at end of file | 160 | \ No newline at end of file |
src/pages/pointsMall/pointsMall.vue
| 1 | <template> | 1 | <template> |
| 2 | <div> | 2 | <div> |
| 3 | - <div class="main_box"> | ||
| 4 | - <div class="top_main"> | ||
| 5 | - <!-- 头部 --> | ||
| 6 | - <div class="top"> | ||
| 7 | - <div class="left"> | ||
| 8 | - 我的积分: <span>2800</span> | ||
| 9 | - </div> | ||
| 10 | - <div class="right"> | ||
| 11 | - 兑换记录 | ||
| 12 | - <!-- 返回图标 --> | ||
| 13 | - <img class="back_right_iocn" src="static/img/back_right.png" alt=""/> | ||
| 14 | - </div> | ||
| 15 | - </div> | ||
| 16 | - <!-- 商品类型 --> | ||
| 17 | - <div class="item_box"> | ||
| 18 | - <div class="item"> | ||
| 19 | - <img src="static/img/1.png" alt=""/> | ||
| 20 | - <div class="text">实物商品</div> | ||
| 21 | - </div> | ||
| 22 | - <div class="item"> | ||
| 23 | - <img src="static/img/1.png" alt=""/> | ||
| 24 | - <div class="text">虚拟商品</div> | ||
| 25 | - </div> | ||
| 26 | - <div class="item"> | ||
| 27 | - <img src="static/img/1.png" alt=""/> | ||
| 28 | - <div class="text">满减红包</div> | ||
| 29 | - </div> | ||
| 30 | - </div> | ||
| 31 | - <!--积分赚取 --> | ||
| 32 | - <div class="earn_points_box"> | ||
| 33 | - <img class="earn_icon" src="static/img/1.png" alt=""> | ||
| 34 | - <div class="desc">赚取更多积分,兑换精美礼品~</div> | ||
| 35 | - <div class="btn">赚取积分 <img class="earn_right_back" src="static/img/back_right.png" alt=""/></div> | ||
| 36 | - </div> | ||
| 37 | - </div> | ||
| 38 | - <!-- 为你推荐 --> | ||
| 39 | - <div class="tab_item_box"> | ||
| 40 | - <div class="item active">为你推荐</div> | ||
| 41 | - <!-- 分割线 --> | ||
| 42 | - <div class="line"> </div> | ||
| 43 | - <div class="item">热门商品</div> | ||
| 44 | - </div> | ||
| 45 | - <!-- 为你推荐商品列表 --> | ||
| 46 | - <div class="list-box"> | ||
| 47 | - <!-- 商品展示样式 2 --> | ||
| 48 | - <goods-item-2 class="item" v-for="(item, index) in goodsLists" :key="index" @jump="toDiscountList(item)" | ||
| 49 | - :item="item" | ||
| 50 | - pid="4"> | ||
| 51 | - </goods-item-2> | ||
| 52 | - </div> | 3 | + <!-- H5唤起App组件 --> |
| 4 | + <call-app-box class="call-app-box" ref="callApp" v-if="!isCNLive.value" | ||
| 5 | + :callApps="$parent.callApps"> | ||
| 6 | + </call-app-box> | ||
| 53 | 7 | ||
| 8 | + <!-- 后退导航 --> | ||
| 9 | + <back-box class="back-box" :style="'padding-top: ' + $parent.top.value + 'px'" ref="backBox" v-if="isCNLive.value && $route.query.showBack == true" @back="back" | ||
| 10 | + :backs="backs"> | ||
| 11 | + </back-box> | ||
| 54 | 12 | ||
| 55 | - <!-- 实物商品 --> | ||
| 56 | - <div class="tab_item_box"> | ||
| 57 | - <div class="item active">实物商品</div> | ||
| 58 | - <!-- 分割线 --> | ||
| 59 | - <div class="line"> </div> | ||
| 60 | - <div class="item">实物商品实物商品实物商品实物商品</div> | ||
| 61 | - </div> | ||
| 62 | - <!-- 实物商品裂变 --> | ||
| 63 | - <!-- 商品样式 7 列表 --> | ||
| 64 | - <column-list-box class="column-list-box" v-if="phyicalGoods && phyicalGoods.list && phyicalGoods.list.length" @jump="toDetail" @primary="primary" | ||
| 65 | - :lists="phyicalGoods" | ||
| 66 | - com="7"> | ||
| 67 | - </column-list-box> | 13 | + <!-- pl --> |
| 14 | + <div class="pl" :class="{'is-cnlive': isCNLive.value && $route.query.showBack == true, 'is-open-app': $parent.isOpenApp.value}"></div> | ||
| 15 | + <div class="main_box"> | ||
| 16 | + <div class="top_main"> | ||
| 17 | + <!-- 头部 --> | ||
| 18 | + <div class="top"> | ||
| 19 | + <div class="left"> | ||
| 20 | + 我的积分: <span>2800</span> | ||
| 21 | + </div> | ||
| 22 | + <div class="right"> | ||
| 23 | + 兑换记录 | ||
| 24 | + <!-- 返回图标 --> | ||
| 25 | + <img class="back_right_iocn" src="static/img/points_icon_grey_right.png" alt=""/> | ||
| 26 | + </div> | ||
| 27 | + </div> | ||
| 28 | + <!-- 商品类型 --> | ||
| 29 | + <div class="item_box"> | ||
| 30 | + <div class="item"> | ||
| 31 | + <img src="static/img/1.png" alt=""/> | ||
| 32 | + <div class="text">实物商品</div> | ||
| 33 | + </div> | ||
| 34 | + <div class="item"> | ||
| 35 | + <img src="static/img/1.png" alt=""/> | ||
| 36 | + <div class="text">虚拟商品</div> | ||
| 37 | + </div> | ||
| 38 | + <div class="item"> | ||
| 39 | + <img src="static/img/1.png" alt=""/> | ||
| 40 | + <div class="text">满减红包</div> | ||
| 41 | + </div> | ||
| 42 | + </div> | ||
| 43 | + <!--积分赚取 --> | ||
| 44 | + <div class="earn_points_box"> | ||
| 45 | + <img class="earn_icon" src="static/img/points_icon_pice.png" alt=""> | ||
| 46 | + <div class="desc">赚取更多积分,兑换精美礼品~</div> | ||
| 47 | + <div class="btn">赚取积分 <img class="earn_right_back" src="static/img/points_icon_white_right.png" alt=""/></div> | ||
| 48 | + </div> | ||
| 49 | + </div> | ||
| 50 | + <!-- 为你推荐 --> | ||
| 51 | + <div class="tab_item_box"> | ||
| 52 | + <div class="item active">为你推荐</div> | ||
| 53 | + <!-- 分割线 --> | ||
| 54 | + <div class="line"> </div> | ||
| 55 | + <div class="item">热门商品</div> | ||
| 56 | + </div> | ||
| 57 | + <!-- 为你推荐商品列表 --> | ||
| 58 | + <div class="list-box"> | ||
| 59 | + <!-- 商品展示样式 2 --> | ||
| 60 | + <goods-item-2 class="item" v-for="(item, index) in goodsLists" :key="index" @jump="toDiscountList(item)" | ||
| 61 | + :item="item" | ||
| 62 | + pid="4"> | ||
| 63 | + </goods-item-2> | ||
| 64 | + </div> | ||
| 68 | 65 | ||
| 69 | 66 | ||
| 70 | - <!-- 虚拟商品 --> | ||
| 71 | - <div class="tab_item_box"> | ||
| 72 | - <div class="item active">虚拟商品</div> | ||
| 73 | - <!-- 分割线 --> | ||
| 74 | - <div class="line"> </div> | ||
| 75 | - <div class="item">热门商品</div> | ||
| 76 | - </div> | ||
| 77 | - <!-- 商品样式 7 列表 --> | ||
| 78 | - <column-list-box class="column-list-box" v-if="virtualGoods && virtualGoods.list && virtualGoods.list.length" @jump="toDetail" @primary="primary" | ||
| 79 | - :lists="virtualGoods" | ||
| 80 | - com="7"> | ||
| 81 | - </column-list-box> | 67 | + <!-- 实物商品 --> |
| 68 | + <div class="tab_item_box"> | ||
| 69 | + <div class="item active">实物商品</div> | ||
| 70 | + <!-- 分割线 --> | ||
| 71 | + <div class="line"> </div> | ||
| 72 | + <div class="item">实物商品实物商品实物商品实物商品</div> | ||
| 73 | + </div> | ||
| 74 | + <!-- 实物商品裂变 --> | ||
| 75 | + <!-- 商品样式 7 列表 --> | ||
| 76 | + <column-list-box class="column-list-box" v-if="phyicalGoods && phyicalGoods.list && phyicalGoods.list.length" @jump="toDetail" | ||
| 77 | + :lists="phyicalGoods" | ||
| 78 | + com="7"> | ||
| 79 | + </column-list-box> | ||
| 82 | 80 | ||
| 83 | 81 | ||
| 84 | - <!-- 满减红包 --> | ||
| 85 | - <div class="tab_item_box"> | ||
| 86 | - <div class="item active">满减红包</div> | ||
| 87 | - <!-- 分割线 --> | ||
| 88 | - <div class="line"> </div> | ||
| 89 | - <div class="item">热门商品</div> | ||
| 90 | - </div> | ||
| 91 | - <!-- 商品样式 7 列表 --> | ||
| 92 | - <column-list-box class="column-list-box" v-if="redEnvelopeFull && redEnvelopeFull.list && redEnvelopeFull.list.length" @jump="toDetail" @primary="primary" | ||
| 93 | - :lists="redEnvelopeFull" | ||
| 94 | - com="7"> | ||
| 95 | - </column-list-box> | ||
| 96 | - </div> | 82 | + <!-- 虚拟商品 --> |
| 83 | + <div class="tab_item_box"> | ||
| 84 | + <div class="item active">虚拟商品</div> | ||
| 85 | + <!-- 分割线 --> | ||
| 86 | + <div class="line"> </div> | ||
| 87 | + <div class="item">热门商品</div> | ||
| 88 | + </div> | ||
| 89 | + <!-- 商品样式 7 列表 --> | ||
| 90 | + <column-list-box class="column-list-box" v-if="virtualGoods && virtualGoods.list && virtualGoods.list.length" @jump="toDetail" | ||
| 91 | + :lists="virtualGoods" | ||
| 92 | + com="7"> | ||
| 93 | + </column-list-box> | ||
| 94 | + | ||
| 95 | + | ||
| 96 | + <!-- 满减红包 --> | ||
| 97 | + <div class="tab_item_box"> | ||
| 98 | + <div class="item active">满减红包</div> | ||
| 99 | + <!-- 分割线 --> | ||
| 100 | + <div class="line"> </div> | ||
| 101 | + <div class="item">热门商品</div> | ||
| 102 | + </div> | ||
| 103 | + <!-- 商品样式 7 列表 --> | ||
| 104 | + <column-list-box class="column-list-box" v-if="redEnvelopeFull && redEnvelopeFull.list && redEnvelopeFull.list.length" @jump="toDetail" | ||
| 105 | + :lists="redEnvelopeFull" | ||
| 106 | + com="7"> | ||
| 107 | + </column-list-box> | ||
| 108 | + </div> | ||
| 97 | </div> | 109 | </div> |
| 98 | </template> | 110 | </template> |
| 99 | 111 | ||
| @@ -125,6 +137,23 @@ export default { | @@ -125,6 +137,23 @@ export default { | ||
| 125 | }, | 137 | }, |
| 126 | //方法表示一个具体的操作,主要书写业务逻辑; | 138 | //方法表示一个具体的操作,主要书写业务逻辑; |
| 127 | methods: { | 139 | methods: { |
| 140 | + /** | ||
| 141 | + * 跳转商品详情 | ||
| 142 | + * @param {Object} item [数据对象] | ||
| 143 | + */ | ||
| 144 | + toDetail (item) { | ||
| 145 | + | ||
| 146 | + // 判断通用跳转函数是否存在 | ||
| 147 | + if (typeof this.$parent.gotoDetail === 'function') { | ||
| 148 | + | ||
| 149 | + | ||
| 150 | + console.log('toDetail', item); | ||
| 151 | + | ||
| 152 | + | ||
| 153 | + // 通用跳转 | ||
| 154 | + this.$parent.gotoDetail(item); | ||
| 155 | + } | ||
| 156 | + }, | ||
| 128 | }, | 157 | }, |
| 129 | //请求数据 | 158 | //请求数据 |
| 130 | created () { | 159 | created () { |
static/img/pointsBack.png
0 → 100755
134 KB
static/img/points_icon_grey_right.png
0 → 100755
327 Bytes
static/img/points_icon_pice.png
0 → 100755
5.17 KB
static/img/points_icon_white_right.png
0 → 100755
287 Bytes
static/img/points_item01.png
0 → 100755
7.29 KB
static/img/points_item02.png
0 → 100755
8.27 KB
static/img/points_item03.png
0 → 100755
5.2 KB