增加新模块
This commit is contained in:
@@ -0,0 +1,169 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
swiperList: [
|
||||
"/static/home/banner03.png"
|
||||
],
|
||||
productList: [
|
||||
{
|
||||
id: 1,
|
||||
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
|
||||
url: "/static/common/product_def.png",
|
||||
zqPrice: 42.84,
|
||||
// 专区价格
|
||||
price: 424.84,
|
||||
// 到手价格
|
||||
oPrice: 466.84,
|
||||
// 原价价格
|
||||
type: 1
|
||||
// 1:爆款区的 0:普通区
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
|
||||
url: "/static/common/product_def.png",
|
||||
zqPrice: 42.84,
|
||||
// 专区价格
|
||||
price: 424.84,
|
||||
// 到手价格
|
||||
oPrice: 466.84,
|
||||
// 原价价格
|
||||
type: 0
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
|
||||
url: "/static/common/product_def.png",
|
||||
zqPrice: 42.84,
|
||||
// 专区价格
|
||||
price: 424.84,
|
||||
// 到手价格
|
||||
oPrice: 466.84,
|
||||
// 原价价格
|
||||
type: 0
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
|
||||
url: "/static/common/product_def.png",
|
||||
zqPrice: 42.84,
|
||||
// 专区价格
|
||||
price: 424.84,
|
||||
// 到手价格
|
||||
oPrice: 466.84,
|
||||
// 原价价格
|
||||
type: 1
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
|
||||
url: "/static/common/product_def.png",
|
||||
zqPrice: 42.84,
|
||||
// 专区价格
|
||||
price: 424.84,
|
||||
// 到手价格
|
||||
oPrice: 466.84,
|
||||
// 原价价格
|
||||
type: 0
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
|
||||
url: "/static/common/product_def.png",
|
||||
zqPrice: 42.84,
|
||||
// 专区价格
|
||||
price: 424.84,
|
||||
// 到手价格
|
||||
oPrice: 466.84,
|
||||
// 原价价格
|
||||
type: 0
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
|
||||
url: "/static/common/product_def.png",
|
||||
zqPrice: 42.84,
|
||||
// 专区价格
|
||||
price: 424.84,
|
||||
// 到手价格
|
||||
oPrice: 466.84,
|
||||
// 原价价格
|
||||
type: 0
|
||||
}
|
||||
]
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
jumpHome() {
|
||||
common_vendor.index.switchTab({
|
||||
url: "/pages/home/home"
|
||||
});
|
||||
},
|
||||
// 邀请好友
|
||||
jumpInviteFriends() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/invite_friends/invite_friends"
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
|
||||
(_easycom_up_image2 + _easycom_up_swiper2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_image + _easycom_up_swiper)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o($options.jumpHome),
|
||||
b: common_vendor.p({
|
||||
src: "/static/common/left.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.o($options.jumpInviteFriends),
|
||||
d: common_vendor.p({
|
||||
src: "/static/common/share.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
list: $data.swiperList,
|
||||
height: "140"
|
||||
}),
|
||||
f: common_vendor.p({
|
||||
src: "/static/product/title_bg.png",
|
||||
width: "100%",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
g: common_vendor.f($data.productList, (item, k0, i0) => {
|
||||
return common_vendor.e({
|
||||
a: "7539d408-4-" + i0,
|
||||
b: common_vendor.p({
|
||||
src: item.url,
|
||||
width: "100",
|
||||
height: "100",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: item.type === 1
|
||||
}, item.type === 1 ? {} : {}, {
|
||||
d: common_vendor.t(item.name),
|
||||
e: common_vendor.t(item.oPrice),
|
||||
f: common_vendor.t(item.zqPrice),
|
||||
g: common_vendor.t(item.price)
|
||||
});
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7539d408"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/preference/preference.js.map
|
||||
Reference in New Issue
Block a user