暂存code

This commit is contained in:
hejiangming
2025-05-07 09:54:33 +08:00
parent 78270eeda0
commit 007b002b81
403 changed files with 14507 additions and 6320 deletions
@@ -1,49 +1,34 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_product = require("../../api/product.js");
const _sfc_main = {
name: "choiceness",
data() {
return {
productList: [
{
id: 1,
url: "/static/common/product_def2.png",
name: "美的双开门冰箱大容量多层速冷冰箱",
price: "7088.",
priceDouble: "00",
sell: "1.4万",
type: 0
},
{
id: 2,
url: "/static/common/product_def2.png",
name: "西门子双开门家庭冰箱大开口设计",
price: "7088.",
priceDouble: "00",
sell: "1.4万",
type: 1
//1 哈希优选
},
{
id: 2,
url: "/static/common/product_def2.png",
name: "西门子双开门家庭冰箱大开口设计",
price: "7088.",
priceDouble: "00",
sell: "1.4万",
type: 1
//1 哈希优选
}
]
productList: []
};
},
mounted() {
this.getSearchList();
},
methods: {
//
jumpInfo(item) {
common_vendor.index.__f__("log", "at components/choiceness/choiceness.vue:62", "item", item);
common_vendor.index.navigateTo({
url: "/pages/productInfo/productInfo?id=" + item.id
});
},
async getSearchList() {
const params = {
isRecomm: true,
page: 1,
pageSize: 66
};
const resp = await api_product.searchList(params);
common_vendor.index.__f__("log", "at components/choiceness/choiceness.vue:51", "resp", resp);
if (resp && resp.bizcode === 100) {
this.productList = resp.data;
}
}
}
};
@@ -59,14 +44,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
src: "/static/common/jingxuan_left.png",
width: "50",
height: "12",
width: "24",
height: "6",
bgColor: "#f1f6ff00"
}),
b: common_vendor.p({
src: "/static/common/jingxuan_right.png",
width: "50",
height: "12",
width: "24",
height: "6",
bgColor: "#f1f6ff00"
}),
c: common_vendor.f($data.productList, (item, k0, i0) => {
@@ -78,12 +63,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
height: "140",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.name),
c: common_vendor.t(item.title),
d: common_vendor.t(item.price),
e: common_vendor.t(item.priceDouble),
f: common_vendor.t(item.sell),
g: item.id,
h: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
e: item.id,
f: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
})
};
@@ -1 +1 @@
<view class="choiceness_warp data-v-3619806e"><view class="choiceness_title data-v-3619806e"><up-image wx:if="{{a}}" class="data-v-3619806e" u-i="3619806e-0" bind:__l="__l" u-p="{{a}}"></up-image><view class="choiceness_title_msg data-v-3619806e">为您精选</view><up-image wx:if="{{b}}" class="data-v-3619806e" u-i="3619806e-1" bind:__l="__l" u-p="{{b}}"></up-image></view><view class="choiceness_product data-v-3619806e"><view wx:for="{{c}}" wx:for-item="item" wx:key="g" class="choiceness_product_item data-v-3619806e" bindtap="{{item.h}}"><up-image wx:if="{{item.b}}" class="data-v-3619806e" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="product_item_name data-v-3619806e">{{item.c}}</view><view class="product_item_price data-v-3619806e"><view class="price_ data-v-3619806e"><text class="data-v-3619806e">¥</text><text class="data-v-3619806e" style="color:36rpx">{{item.d}}</text><text class="data-v-3619806e">{{item.e}}</text></view><view class="price_sell data-v-3619806e">已售{{item.f}}件</view></view></view></view></view>
<view class="choiceness_warp data-v-3619806e"><view class="choiceness_title data-v-3619806e"><up-image wx:if="{{a}}" class="data-v-3619806e" u-i="3619806e-0" bind:__l="__l" u-p="{{a}}"></up-image><view class="choiceness_title_msg data-v-3619806e">为您精选</view><up-image wx:if="{{b}}" class="data-v-3619806e" u-i="3619806e-1" bind:__l="__l" u-p="{{b}}"></up-image></view><view class="choiceness_product data-v-3619806e"><view wx:for="{{c}}" wx:for-item="item" wx:key="e" class="choiceness_product_item data-v-3619806e" bindtap="{{item.f}}"><up-image wx:if="{{item.b}}" class="data-v-3619806e" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="product_item_name data-v-3619806e">{{item.c}}</view><view class="product_item_price data-v-3619806e"><view class="price_ data-v-3619806e"><text class="data-v-3619806e">¥</text><text class="data-v-3619806e" style="color:36rpx">{{item.d}}</text></view></view></view></view></view>