|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-03-23 10:31:12
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-05-21 17:02:24
|
|
|
|
|
* @LastEditTime: 2022-05-21 17:25:04
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
@ -45,6 +45,12 @@ export default {
|
|
|
|
|
goDetail(idx){
|
|
|
|
|
let item = this.data[idx];
|
|
|
|
|
if(item.link){
|
|
|
|
|
// ifdef H5
|
|
|
|
|
window.location.href = item.link;
|
|
|
|
|
// #endif
|
|
|
|
|
// #ifdef APP-PLUS
|
|
|
|
|
plus.runtime.openURL(item.link)
|
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
this.$Router.push(`/goodsDetail?id=${this.data[idx].id}`)
|
|
|
|
|