增加新模块
This commit is contained in:
@@ -0,0 +1,168 @@
|
||||
"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/bk_title_bg.png",
|
||||
width: "200",
|
||||
height: "20"
|
||||
}),
|
||||
g: common_vendor.f($data.productList, (item, k0, i0) => {
|
||||
return common_vendor.e({
|
||||
a: "085f0530-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-085f0530"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/welcome/welcome.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="preference_warp data-v-085f0530"><view class="header_comm data-v-085f0530"><up-image wx:if="{{b}}" class="data-v-085f0530" bindclick="{{a}}" u-i="085f0530-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="data-v-085f0530">爆款专区</view><up-image wx:if="{{d}}" class="data-v-085f0530" bindclick="{{c}}" u-i="085f0530-1" bind:__l="__l" u-p="{{d}}"></up-image></view><view class="preference_content_warp data-v-085f0530"><up-swiper wx:if="{{e}}" class="data-v-085f0530" u-i="085f0530-2" bind:__l="__l" u-p="{{e}}"></up-swiper><view class="preference_title data-v-085f0530"><up-image wx:if="{{f}}" class="data-v-085f0530" u-i="085f0530-3" bind:__l="__l" u-p="{{f}}"></up-image><view class="msg data-v-085f0530">款款都是爆款</view></view><view class="preference_product data-v-085f0530"><view wx:for="{{g}}" wx:for-item="item" class="product_item data-v-085f0530"><view class="product_item_left data-v-085f0530"><up-image wx:if="{{item.b}}" class="data-v-085f0530" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view wx:if="{{item.c}}" class="product_item_left_bz product_item_left_bz_img data-v-085f0530"><view class="data-v-085f0530">爆款专区</view></view></view><view class="product_item_right data-v-085f0530"><view class="title_warp data-v-085f0530">{{item.d}}</view><view class="price_warp data-v-085f0530"><view class="price_o_warp data-v-085f0530"><view class="price_o_title_warp data-v-085f0530">原价</view><view class="price_o_value_warp data-v-085f0530"><text class="data-v-085f0530">¥</text><text class="data-v-085f0530">{{item.e}}</text></view></view><view class="price_zq_warp data-v-085f0530"><view class="price_lj_warp data-v-085f0530">专区立省{{item.f}}元</view><view class="price_ds_warp data-v-085f0530">到手¥<text class="data-v-085f0530" style="font-size:31rpx">{{item.g}}</text></view></view></view></view></view></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user