Commit 9f130a31 authored by youjie's avatar youjie

no message

parent 6e9dc926
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<u-col span="6" v-for="(x, i) in g" :key="i"> <u-col span="6" v-for="(x, i) in g" :key="i">
<view <view
class="good_study_two" class="good_study_two"
@click="openGood(x.ID)" @click="openGood(x.ID,x.MallBaseId)"
:style="{ borderRadius: '20rpx' }" :style="{ borderRadius: '20rpx' }"
> >
<view class="img-box"> <view class="img-box">
...@@ -46,7 +46,13 @@ ...@@ -46,7 +46,13 @@
this.replace = uni.getStorageSync('replace_page_index') this.replace = uni.getStorageSync('replace_page_index')
}, },
methods:{ methods:{
openGood(id) { openGood(id,MallBaseId) {
if(MallBaseId==18){
uni.navigateTo({
url: "/pages/kotra/brand/detail?id=" + id,
});
return
}
if(this.replace.state=='1'){ if(this.replace.state=='1'){
uni.navigateTo({ uni.navigateTo({
url: "/pages/kotra/brand/detail_brand?id=" + id, url: "/pages/kotra/brand/detail_brand?id=" + id,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view v-for="(item, index) in dataList" :key="index"> <view v-for="(item, index) in dataList" :key="index">
<div <div
class="good_study_one" class="good_study_one"
@click="openGood(item.ID, item.CategoryName)" @click="openGood(item.ID, item.CategoryName,item.MallBaseId)"
:style="{ :style="{
borderRadius: '15px', borderRadius: '15px',
}" }"
...@@ -82,7 +82,13 @@ ...@@ -82,7 +82,13 @@
this.replace = uni.getStorageSync('replace_page_index') this.replace = uni.getStorageSync('replace_page_index')
}, },
methods:{ methods:{
openGood(id, type) { openGood(id, type,mallbase) {
if(mallbase==18){
uni.navigateTo({
url: "/pages/kotra/carrier/detail?id=" + id + "&&type=" + type,
});
return
}
if(this.replace.state=='1'){ if(this.replace.state=='1'){
uni.navigateTo({ uni.navigateTo({
url: "/pages/kotra/carrier/detail_carrier?id=" + id + "&&type=" + type, url: "/pages/kotra/carrier/detail_carrier?id=" + id + "&&type=" + type,
......
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