...
|
...
|
@@ -289,7 +289,7 @@ Page({ |
|
|
data
|
|
|
}
|
|
|
} = await request({
|
|
|
url: 'api/shop4s2/img3',
|
|
|
url: 'api/shop4s2/newImg3',
|
|
|
data: {
|
|
|
s4_id: that.data.s4_id
|
|
|
}
|
...
|
...
|
@@ -322,7 +322,7 @@ Page({ |
|
|
},
|
|
|
goSearch() {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/search/search?S4_num=1'
|
|
|
url: '/pages/Vmore4SList/Vmore4SList?home=1'
|
|
|
})
|
|
|
},
|
|
|
goVnewslist() {
|
...
|
...
|
@@ -349,24 +349,7 @@ Page({ |
|
|
this.popTest()
|
|
|
}
|
|
|
},
|
|
|
hotProducts() { //热销车型
|
|
|
let that = this
|
|
|
let token = wx.getStorageSync("token")
|
|
|
let decorations = that.data.decorations
|
|
|
let s4_id = decorations.id
|
|
|
console.log(s4_id);
|
|
|
if (token) {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/VSpikeMall/VSpikeMall?id=' + s4_id
|
|
|
})
|
|
|
|
|
|
} else {
|
|
|
this.setData({
|
|
|
msg: '请登录后操作'
|
|
|
})
|
|
|
this.popTest()
|
|
|
}
|
|
|
},
|
|
|
goReservation() {
|
|
|
let that = this
|
|
|
let token = wx.getStorageSync("token")
|
...
|
...
|
@@ -525,7 +508,6 @@ Page({ |
|
|
title: that.data.decorations.name || "车唛分享", // 默认是小程序的名称(可以写slogan等)
|
|
|
path: '/pages/Vnew4Sstore/Vnew4Sstore', // 默认是当前页面,必须是以‘/’开头的完整路径
|
|
|
imageUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
|
|
|
|
|
|
};
|
|
|
// 返回shareObj
|
|
|
return shareObj;
|
...
|
...
|
@@ -534,54 +516,50 @@ Page({ |
|
|
|
|
|
toGoDetailA(e) {
|
|
|
let that = this
|
|
|
let idata = e.currentTarget.dataset.idata
|
|
|
let jump = idata.jump_type
|
|
|
let good_type = Number(idata.good_type1)
|
|
|
let good_id = idata.good1_id
|
|
|
that.publicDetails(jump, good_type, good_id)
|
|
|
},
|
|
|
toGoDetailB(e) {
|
|
|
let that = this
|
|
|
let idata = e.currentTarget.dataset.idata
|
|
|
let jump = idata.jump_type
|
|
|
let good_type = Number(idata.good_type2)
|
|
|
let good_id = idata.good2_id
|
|
|
that.publicDetails(jump, good_type, good_id)
|
|
|
let good_type = Number(e.currentTarget.dataset.good_type)
|
|
|
let type = e.currentTarget.dataset.type
|
|
|
that.publicDetails(type, good_type)
|
|
|
},
|
|
|
toGoDetailC(e) {
|
|
|
publicDetails(type, good_type) {
|
|
|
let that = this
|
|
|
let idata = e.currentTarget.dataset.idata
|
|
|
let jump = idata.jump_type
|
|
|
let good_type = Number(idata.good_type3)
|
|
|
let good_id = idata.good3_id
|
|
|
that.publicDetails(jump, good_type, good_id)
|
|
|
},
|
|
|
publicDetails(jump, good_type, good_id) {
|
|
|
if (jump == 1) { //可以跳转
|
|
|
console.log(type, good_type, "珊瑚");
|
|
|
let decorations = that.data.decorations
|
|
|
let s4_id = decorations.id
|
|
|
if (type == 1) { //可以跳转
|
|
|
switch (good_type) {
|
|
|
case 1: // 人气好物
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/detail/detail?id=' + good_id
|
|
|
url: '/pages/VSpikeMall/VSpikeMall?id_name=' + '人气好物' + '&id=' + s4_id
|
|
|
})
|
|
|
break;
|
|
|
case 2: // 精选推荐
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/productdetailsImg/productdetailsImg?id=' + good_id
|
|
|
url: '/pages/VSpikeMall/VSpikeMall?id_name=' + '精选推荐' + '&id=' + s4_id
|
|
|
})
|
|
|
break;
|
|
|
case 3: // 团购热卖
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/VtuanDetail/VtuanDetail?id' + good_id
|
|
|
url: '/pages/VSpikeMall/VSpikeMall?id_name=' + '团购热卖' + '&id=' + s4_id
|
|
|
})
|
|
|
break;
|
|
|
case 4: //限时抢购
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/VSpikeMallDetail/VSpikeMallDetail?id=' + good_id
|
|
|
url: '/pages/VSpikeMall/VSpikeMall?id_name=' + '限时抢购' + '&id=' + s4_id
|
|
|
})
|
|
|
break;
|
|
|
case 5: //车型商品
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/carDetails/carDetails?id=' + good_id
|
|
|
url: '/pages/VSpikeMall/VSpikeMall?id_name=' + '车型商品' + '&id=' + s4_id
|
|
|
})
|
|
|
break;
|
|
|
case -1: //活动列表
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/goPromotion/goPromotion?id=' + s4_id
|
|
|
})
|
|
|
break;
|
|
|
case -2: //活动列表
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/goPromotion/goPromotion?id=' + s4_id
|
|
|
})
|
|
|
break;
|
|
|
default:
|
...
|
...
|
|