暂存代码

This commit is contained in:
何江明
2025-05-23 18:03:45 +08:00
parent 8217069b9a
commit a2c87e47bf
313 changed files with 6157 additions and 1102 deletions
@@ -0,0 +1,138 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_product = require("../../api/product.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const api_common = require("../../api/common.js");
const _sfc_main = {
data() {
return {
swiperList: [],
productList: [],
productListLoading: false
};
},
onLoad() {
this.getSearchList();
this.getCarouselImage();
},
methods: {
// 查询轮播图
async getCarouselImage() {
const params = {
pageUi: utils_enumUtils.APP_PAGE_TYPE.INTEGRAL
};
const resp = await api_common.getCarouselImage(params);
if (resp && resp.bizcode === 100) {
const data = resp.data || [];
this.swiperList = data.length !== 0 ? data.map((obj) => obj.carouselImage) : [];
}
},
jumpHome() {
common_vendor.index.switchTab({
url: "/pages/home/home"
});
},
// 邀请好友
jumpInviteFriends() {
common_vendor.index.navigateTo({
url: "/pages/invite_friends/invite_friends"
});
},
async getSearchList() {
this.productListLoading = true;
const params = {
type: utils_enumUtils.SEARCH_TYPE.EXPLOSIVE,
page: 1,
pageSize: 99
};
const resp = await api_product.searchList(params);
if (resp && resp.bizcode === 100) {
const data = resp.data || [];
if (data && data.length !== 0) {
data.map((item) => {
const priceN = item.price.split("-");
item.priceN = priceN[0];
});
}
this.productList = data;
}
this.productListLoading = false;
},
/**
* 跳转到商品详情
* @param {Object} item
*/
jumpInfo(item) {
common_vendor.index.navigateTo({
url: "/pages/productInfo/productInfo?id=" + item.id
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_up_loading_page2 = common_vendor.resolveComponent("up-loading-page");
(_easycom_up_image2 + _easycom_up_swiper2 + _easycom_up_loading_page2)();
}
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";
const _easycom_up_loading_page = () => "../../uni_modules/uview-plus/components/u-loading-page/u-loading-page.js";
if (!Math) {
(_easycom_up_image + _easycom_up_swiper + _easycom_up_loading_page)();
}
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_l.png",
width: "60",
height: "2",
bgColor: "#f1f6ff00"
}),
g: common_vendor.p({
src: "/static/product/bk_r.png",
width: "60",
height: "2",
bgColor: "#f1f6ff00"
}),
h: common_vendor.p({
loading: $data.productListLoading
}),
i: common_vendor.f($data.productList, (item, index, i0) => {
return {
a: "8f611226-6-" + i0,
b: common_vendor.p({
src: item.url,
width: "100",
height: "100",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.adPrice),
e: index,
f: common_vendor.o(($event) => $options.jumpInfo(item), index)
};
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8f611226"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/pointsRedemption/pointsRedemption.js.map
@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"up-loading-page": "../../uni_modules/uview-plus/components/u-loading-page/u-loading-page"
}
}
@@ -0,0 +1 @@
<view class="preference_warp data-v-8f611226"><view class="header_comm data-v-8f611226"><up-image wx:if="{{b}}" class="data-v-8f611226" bindclick="{{a}}" u-i="8f611226-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="data-v-8f611226">积分兑换专区</view><up-image wx:if="{{d}}" class="data-v-8f611226" bindclick="{{c}}" u-i="8f611226-1" bind:__l="__l" u-p="{{d}}"></up-image></view><view class="preference_content_warp data-v-8f611226"><up-swiper wx:if="{{e}}" class="data-v-8f611226" u-i="8f611226-2" bind:__l="__l" u-p="{{e}}"></up-swiper><view class="preference_title data-v-8f611226"><up-image wx:if="{{f}}" class="data-v-8f611226" u-i="8f611226-3" bind:__l="__l" u-p="{{f}}"></up-image><view class="msg data-v-8f611226">德商汇积分</view><up-image wx:if="{{g}}" class="data-v-8f611226" u-i="8f611226-4" bind:__l="__l" u-p="{{g}}"></up-image></view><view class="preference_product data-v-8f611226"><up-loading-page wx:if="{{h}}" class="data-v-8f611226" u-i="8f611226-5" bind:__l="__l" u-p="{{h}}"></up-loading-page><view wx:for="{{i}}" wx:for-item="item" wx:key="e" class="product_item data-v-8f611226" bindtap="{{item.f}}"><view class="product_item_left data-v-8f611226"><up-image wx:if="{{item.b}}" class="data-v-8f611226" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="product_item_left_bz product_item_left_bz_img data-v-8f611226"><view class="data-v-8f611226">爆款专区</view></view></view><view class="product_item_right data-v-8f611226"><view class="title_warp data-v-8f611226">{{item.c}}</view><view class="price_warp data-v-8f611226"><view class="price_jf_warp data-v-8f611226">{{item.d}} <text class="data-v-8f611226" style="font-size:18rpx">积分</text></view><view class="price_dh_but data-v-8f611226"> 立即兑换 </view></view></view></view></view></view></view>
File diff suppressed because one or more lines are too long