Commit c62d67bf authored by zhengke's avatar zhengke

修改

parent 7393afe0
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
}, },
clickHandler(item) { clickHandler(item) {
console.log("GoodsId",item) console.log("GoodsId",item)
uni.navigateTo({ url: '/pages/goods/goods?GoodsId='+item.Id }); uni.navigateTo({ url: '/pages/goods/goods?GoodsId='+item.id });
}, },
showSkuHandler(g) { showSkuHandler(g) {
this.sku = g; this.sku = g;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
v-for="(item, gli) in goodList" v-for="(item, gli) in goodList"
:key="gli" :key="gli"
class="good-one" class="good-one"
@click="openGood(item.page_url)" @click="openGood(item)"
:style="{ :style="{
border: goodsInfo.goodsStyle == 2 ? '1px solid rgb(226, 226, 226)' : '', border: goodsInfo.goodsStyle == 2 ? '1px solid rgb(226, 226, 226)' : '',
background: background:
...@@ -107,10 +107,8 @@ export default { ...@@ -107,10 +107,8 @@ export default {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
}, },
methods: { methods: {
openGood(url) { openGood(item) {
uni.navigateTo({ uni.navigateTo({ url: '/pages/goods/goods?GoodsId='+item.id});
url: url
});
}, },
showSkuHandler(g){ showSkuHandler(g){
this.sku=g this.sku=g
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<u-col span="6" v-for="(item, gli) in goodList" :key="gli"> <u-col span="6" v-for="(item, gli) in goodList" :key="gli">
<view <view
class="good-two" class="good-two"
@click="openGood" @click="openGood(item)"
:style="{ :style="{
border: border:
goodsInfo.goodsStyle == 2 ? '1px solid rgb(226, 226, 226)' : '', goodsInfo.goodsStyle == 2 ? '1px solid rgb(226, 226, 226)' : '',
...@@ -103,8 +103,8 @@ export default { ...@@ -103,8 +103,8 @@ export default {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
}, },
methods: { methods: {
openGood(e) { openGood(item) {
console.log(e); uni.navigateTo({ url: '/pages/goods/goods?GoodsId='+item.id});
}, },
}, },
}; };
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
v-for="(item, gli) in goodList" v-for="(item, gli) in goodList"
:key="gli" :key="gli"
> >
<div class="good-three" @click="openGood(item.page_url)" :style="{ <div class="good-three" @click="openGood(item)" :style="{
border: border:
goodsInfo.goodsStyle == 2 ? '1px solid rgb(226, 226, 226)' : '', goodsInfo.goodsStyle == 2 ? '1px solid rgb(226, 226, 226)' : '',
background: background:
...@@ -110,10 +110,8 @@ export default { ...@@ -110,10 +110,8 @@ export default {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
}, },
methods: { methods: {
openGood(url) { openGood(item) {
uni.navigateTo({ uni.navigateTo({ url: '/pages/goods/goods?GoodsId='+item.id});
url: url
});
}, },
showSkuHandler(g){ showSkuHandler(g){
this.sku=g this.sku=g
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
> >
<view <view
class="good-five" class="good-five"
@click="openGood" @click="openGood(item)"
v-for="(item, gli) in goodList" v-for="(item, gli) in goodList"
:key="gli" :key="gli"
:style="{ :style="{
...@@ -100,8 +100,8 @@ export default { ...@@ -100,8 +100,8 @@ export default {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
}, },
methods: { methods: {
openGood(e) { openGood(item) {
console.log(e); uni.navigateTo({ url: '/pages/goods/goods?GoodsId='+item.id});
}, },
showSkuHandler(g){ showSkuHandler(g){
this.sku=g this.sku=g
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
class="good-four" class="good-four"
v-for="(item, gli) in goodList" v-for="(item, gli) in goodList"
:key="gli" :key="gli"
@click="openGood" @click="openGood(item)"
:style="{ :style="{
border: goodsInfo.goodsStyle == 2 ? '1px solid rgb(226, 226, 226)' : '', border: goodsInfo.goodsStyle == 2 ? '1px solid rgb(226, 226, 226)' : '',
background: background:
...@@ -92,8 +92,8 @@ export default { ...@@ -92,8 +92,8 @@ export default {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
}, },
methods: { methods: {
openGood(e) { openGood(item) {
console.log(e); uni.navigateTo({ url: '/pages/goods/goods?GoodsId='+item.id});
}, },
}, },
}; };
......
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