Commit c76136511c7f5e564d90b0985753122df22d19cf
1 parent
8b1bed2e
兑换完跳转到积分首页
Showing
1 changed file
with
32 additions
and
5 deletions
src/pages/goodDetails/goodDetails.vue
| ... | ... | @@ -53,7 +53,7 @@ |
| 53 | 53 | <div class="good-title"> |
| 54 | 54 | <span class="left"></span>商品详情<span class="right"></span> |
| 55 | 55 | </div> |
| 56 | - <div v-if="goodsInfo && goodsInfo.content" v-html="goodsInfo.content" class="good-desc"> | |
| 56 | + <div v-if="goodsInfo && goodsInfo.content" v-html="goodsInfo.content" class="good-desc html_box"> | |
| 57 | 57 | </div> |
| 58 | 58 | <div class="good-title"> |
| 59 | 59 | <span class="left"></span>兑换规则<span class="right"></span> |
| ... | ... | @@ -103,7 +103,7 @@ |
| 103 | 103 | </div> |
| 104 | 104 | </div> |
| 105 | 105 | <!-- 地址信息组件 --> |
| 106 | - <address-toast ref="itemsInfo" @toUpdate="getGoodsInfo" v-show="pointsToast_control"></address-toast> | |
| 106 | + <address-toast ref="itemsInfo" @toUpdate="toLinkPointsMall" v-show="pointsToast_control"></address-toast> | |
| 107 | 107 | </div> |
| 108 | 108 | </template> |
| 109 | 109 | |
| ... | ... | @@ -147,9 +147,30 @@ export default { |
| 147 | 147 | methods: { |
| 148 | 148 | // 跳转网家家购买音频协议 |
| 149 | 149 | toLink () { |
| 150 | - window.location.href = "https://wjj.ys1.cnliveimg.com/term/liveFwxy.html" | |
| 150 | + if (this.isCNLive.value) { | |
| 151 | + // 跳转封装 | |
| 152 | + if (typeof this.$parent.gotoDetail === 'function') { | |
| 153 | + // 设置跳转参数 | |
| 154 | + let params = { | |
| 155 | + type: '34', | |
| 156 | + to: "https://wjj.ys1.cnliveimg.com/term/liveFwxy.html?type=web", | |
| 157 | + shop_type: '' | |
| 158 | + }; | |
| 159 | + // 页面跳转 | |
| 160 | + this.$parent.gotoDetail(params); | |
| 161 | + } | |
| 162 | + } else { | |
| 163 | + this.$parent.callApps(); | |
| 164 | + } | |
| 165 | + }, | |
| 166 | + toLinkPointsMall () { | |
| 167 | + this.$router.push({ | |
| 168 | + path: '/pointsMall', | |
| 169 | + query: { | |
| 170 | + uid: this.getStore("uid") | |
| 171 | + } | |
| 172 | + }) | |
| 151 | 173 | }, |
| 152 | - | |
| 153 | 174 | /** |
| 154 | 175 | * 后退 |
| 155 | 176 | */ |
| ... | ... | @@ -170,7 +191,6 @@ export default { |
| 170 | 191 | * @param {Object} item [数据对象] |
| 171 | 192 | */ |
| 172 | 193 | toDetail (item) { |
| 173 | - console.log(item.id); | |
| 174 | 194 | if (this.isCNLive.value) { |
| 175 | 195 | // 跳转封装 |
| 176 | 196 | if (typeof this.$parent.gotoDetail === 'function') { |
| ... | ... | @@ -423,3 +443,10 @@ export default { |
| 423 | 443 | @import './goodDetails.less'; |
| 424 | 444 | </style> |
| 425 | 445 | |
| 446 | +<style> | |
| 447 | +.html_box img { | |
| 448 | + display: block; | |
| 449 | + width: 100%; | |
| 450 | +} | |
| 451 | +</style> | |
| 452 | + | ... | ... |