Commit f985a76d by 陈超

T

parent d28bbebd
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
@load="onLoad"> @load="onLoad">
<template v-if="tab == 2"> <template v-if="tab == 2">
<div v-for="(item, idx) in options[2].items" :key="idx" class="home_item_goods layout_h"> <div @click="onItem(item)" v-for="(item, idx) in options[2].items" :key="idx" class="home_item_goods layout_h">
<van-image <van-image
style="margin-right: 0.75rem;" style="margin-right: 0.75rem;"
height="68" height="68"
...@@ -177,6 +177,12 @@ ...@@ -177,6 +177,12 @@
}, },
methods: { methods: {
onItem: function(item) {
if(this.tab == 2) {
console.log("{:U('mall/Goods/view')}" + "/" + item.uid)
//window.location.href = "{:U('mall/Goods/view')}" + "/" + item.uid
}
},
onTab: function(idx) { onTab: function(idx) {
this.tab = idx this.tab = idx
let opt = this.options[idx] let opt = this.options[idx]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment