|
|
@@ -10,9 +10,9 @@
|
|
|
circular="true" duration="1000">
|
|
|
<block v-for="(item, index) in bannerList" :key="index">
|
|
|
<swiper-item autoplay="true">
|
|
|
- <contact-button :img-url="item.pic + '?x-oss-process=style/w750-auto'" class-name="banner-img" v-if="item.type == 8"></contact-button>
|
|
|
+ <contact-button :img-url="item.pic" class-name="banner-img" v-if="item.type == 8"></contact-button>
|
|
|
<block v-else>
|
|
|
- <image lazy-load="true" :src="item.pic + '?x-oss-process=style/w750-auto'"
|
|
|
+ <image lazy-load="true" :src="item.pic"
|
|
|
mode="aspectFill" @tap="getUrl2" :data-type="item.type"
|
|
|
:data-content="item.content" :data-merchant="url"></image>
|
|
|
</block>
|
|
|
@@ -230,21 +230,37 @@
|
|
|
url: url
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
getUrl2(e) {
|
|
|
+ console.log(e)
|
|
|
var dt = e.currentTarget.dataset;
|
|
|
var url = "";
|
|
|
var id = "";
|
|
|
var acid = "";
|
|
|
-
|
|
|
+
|
|
|
if (dt.content != "") {
|
|
|
let conunt = dt.content.split("_");
|
|
|
id = conunt[1];
|
|
|
acid = conunt[0];
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (dt.type * 1 == 2 && dt.content != "") {
|
|
|
url = "product/detail/detail?id=" + dt.content;
|
|
|
+ } else if (dt.type * 1 == 3) {
|
|
|
+ url = dt.content;
|
|
|
+ console.log('urlgetUrl2===',url)
|
|
|
+ if(!url){
|
|
|
+ req.msg('功能待接入')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if(url=='pages/index/index'||url=='pages/matchList/index'||url=='pages/interactive/index'||url=='pages/found/found'||url=='pages/user/user'){
|
|
|
+ app.globalData.switchTab(url)
|
|
|
+ return false
|
|
|
+ }else{
|
|
|
+ if(url.indexOf('http')!=-1){
|
|
|
+ app.globalData.openPage('pages/web/web?url='+url);
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
} else if (dt.type * 1 == 4) {
|
|
|
url = "product/groupDetail/groupDetail?acid=" + acid + "&id=" + id;
|
|
|
} else if (dt.type * 1 == 5) {
|
|
|
@@ -254,7 +270,7 @@
|
|
|
} else if (dt.type * 1 == 7) {
|
|
|
url = "product/groupList/groupList" + dt.merchant;
|
|
|
} else if (dt.type * 1 == 9 && dt.content != "") {
|
|
|
- url = "product/list/list?id=" + dt.content;
|
|
|
+ url = "product/list/list?id=" + dt.content + '&title=' + dt.title + this.web;
|
|
|
} else if (dt.type * 1 == 10) {
|
|
|
url = "plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=" + dt.content;
|
|
|
// console.log(
|
|
|
@@ -276,15 +292,15 @@
|
|
|
} else if (dt.type * 1 == 18 && dt.content != "") {
|
|
|
url = "activity/group/detail/detail?acid=" + acid + "&id=" + id;
|
|
|
} else if (dt.type * 1 == 19 && dt.content != "") {//文章内容
|
|
|
- url = "activity/content/content?id=" + dt.content + "&type=" + 1;//1为普通文章内容
|
|
|
+ url = "topic/content/content?id=" + dt.content + "&type=" + 1;//1为普通文章内容
|
|
|
} else if (dt.type * 1 == 21 && dt.content != "") {//专题类型
|
|
|
url = "pages/topic/topic?id=" + dt.content;
|
|
|
- } else if (dt.type * 1 == 3 && dt.content != "") {//外链类型
|
|
|
- url = dt.content;//1为普通文章内容
|
|
|
- } else {
|
|
|
+ } else if (dt.type * 1 == 27 && dt.content != "") {
|
|
|
+ url = "match/activityDetail/activityDetail?id=" + dt.content;
|
|
|
+ } else{
|
|
|
url = "";
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (dt.type * 1 == 6) app.globalData.switchTab(url);
|
|
|
else app.globalData.openPage(url);
|
|
|
this.hideAd();
|