This commit is contained in:
2026-01-05 12:47:14 +08:00
commit 1fc846fae3
1614 changed files with 162035 additions and 0 deletions

View File

@@ -0,0 +1,136 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_helper = require("../../utils/helper.js");
const api_goods = require("../../api/goods.js");
const api_config = require("../../api/config.js");
if (!Array) {
const _easycom_nut_watermark2 = common_vendor.resolveComponent("nut-watermark");
const _easycom_nut_cell_group2 = common_vendor.resolveComponent("nut-cell-group");
const _easycom_nut_icon2 = common_vendor.resolveComponent("nut-icon");
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
(_easycom_nut_watermark2 + _easycom_nut_cell_group2 + _easycom_nut_icon2 + _easycom_nut_button2)();
}
const _easycom_nut_watermark = () => "../../uni_modules/nutui-uni/components/watermark/watermark.js";
const _easycom_nut_cell_group = () => "../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js";
const _easycom_nut_icon = () => "../../uni_modules/nutui-uni/components/icon/icon.js";
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
if (!Math) {
(_easycom_nut_watermark + _easycom_nut_cell_group + _easycom_nut_icon + _easycom_nut_button)();
}
const _sfc_main = {
__name: "detail",
setup(__props) {
const audit = common_vendor.ref(true);
const serviceTxt = common_vendor.ref("");
const id = common_vendor.ref(0);
const detail = common_vendor.reactive({});
common_vendor.onLoad((options) => {
common_vendor.index.__f__("log", "at pages/mall/detail.vue:110", "init");
getConfig();
id.value = options.id;
api_goods.fetchGoodsDetail(id.value).then((res) => {
Object.assign(detail, res);
});
});
const buyNow = (goodsId) => {
let token = common_vendor.index.getStorageSync("token");
if (token) {
common_vendor.index.__f__("log", "at pages/mall/detail.vue:127", "已经登陆");
common_vendor.index.navigateTo({
url: `/pages/order/preview?ids=${goodsId}&from=item`
});
} else {
utils_helper.goToLoginPage();
}
};
const getConfig = () => {
api_config.fetchGetConfig().then((res) => {
common_vendor.index.__f__("log", "at pages/mall/detail.vue:140", "getConfig=====>", res);
audit.value = res.appConfig.is_audit == 1;
serviceTxt.value = res.appConfig.service_txt;
});
};
common_vendor.onShareTimeline((res) => {
return {
title: detail.goods_name,
path: "/pages/mall/detail?id=" + detail.goods_id,
imageUrl: detail.image[0].file_path
};
});
common_vendor.onShareAppMessage((res) => {
return {
title: detail.goods_name,
path: "/pages/mall/detail?id=" + detail.goods_id,
imageUrl: detail.image[0].file_path
};
});
const showGoodsImages = (index) => {
common_vendor.index.previewImage({
current: index,
// 指定当前显示的图片索引
urls: detail.image.map((e) => {
return e.file_path;
})
});
};
return (_ctx, _cache) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
return common_vendor.e({
a: ((_a = detail.status) == null ? void 0 : _a.value) === 10
}, ((_b = detail.status) == null ? void 0 : _b.value) === 10 ? {
b: common_vendor.p({
["z-index"]: 1,
content: "此商品已下架"
})
} : {}, {
c: ((_c = detail.status) == null ? void 0 : _c.value) === 30
}, ((_d = detail.status) == null ? void 0 : _d.value) === 30 ? {
d: common_vendor.p({
["z-index"]: 1,
content: "此商品已锁定"
})
} : {}, {
e: ((_e = detail.status) == null ? void 0 : _e.value) === 40
}, ((_f = detail.status) == null ? void 0 : _f.value) === 40 ? {
f: common_vendor.p({
["z-index"]: 1,
content: "此商品已售出"
})
} : {}, {
g: common_vendor.f(detail.image, (item, idx, i0) => {
return {
a: item.file_path,
b: common_vendor.o(($event) => showGoodsImages(idx), idx),
c: idx
};
}),
h: common_vendor.t(detail.goods_price),
i: common_vendor.t((_g = detail.degree) == null ? void 0 : _g.degree_name),
j: common_vendor.t(detail.goods_name),
k: common_vendor.t(detail.content),
l: common_vendor.t(serviceTxt.value),
m: common_vendor.p({
name: "service"
}),
n: ((_h = detail.status) == null ? void 0 : _h.value) === 20
}, ((_i = detail.status) == null ? void 0 : _i.value) === 20 ? common_vendor.e({
o: !audit.value
}, !audit.value ? {
p: common_vendor.o(($event) => buyNow(detail.goods_id)),
q: common_vendor.p({
type: "primary"
})
} : {}) : common_vendor.e({
r: !audit.value
}, !audit.value ? {
s: common_vendor.p({
plain: true
})
} : {}));
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-da39d73f"]]);
_sfc_main.__runtimeHooks = 6;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mall/detail.js.map

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "店铺商品详情",
"usingComponents": {
"nut-watermark": "../../uni_modules/nutui-uni/components/watermark/watermark",
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
"nut-icon": "../../uni_modules/nutui-uni/components/icon/icon",
"nut-button": "../../uni_modules/nutui-uni/components/button/button"
}
}

View File

@@ -0,0 +1 @@
<view class="content data-v-da39d73f"><nut-watermark wx:if="{{a}}" class="mark1 data-v-da39d73f" u-i="da39d73f-0" bind:__l="__l" u-p="{{b}}"></nut-watermark><nut-watermark wx:if="{{c}}" class="mark1 data-v-da39d73f" u-i="da39d73f-1" bind:__l="__l" u-p="{{d}}"></nut-watermark><nut-watermark wx:if="{{e}}" class="mark1 data-v-da39d73f" u-i="da39d73f-2" bind:__l="__l" u-p="{{f}}"></nut-watermark><swiper class="swiper data-v-da39d73f" circular indicator-dots autoplay><swiper-item wx:for="{{g}}" wx:for-item="item" wx:key="c" class="data-v-da39d73f" bindtap="{{item.b}}"><image class="data-v-da39d73f" src="{{item.a}}" mode="aspectFill"></image></swiper-item></swiper><view class="goods_info data-v-da39d73f"><nut-cell-group class="data-v-da39d73f" u-s="{{['d']}}" u-i="da39d73f-3" bind:__l="__l"><view class="price data-v-da39d73f"><text class="unit data-v-da39d73f">¥</text><text class="value data-v-da39d73f">{{h}}</text></view></nut-cell-group><nut-cell-group class="data-v-da39d73f" u-s="{{['d']}}" u-i="da39d73f-4" bind:__l="__l"><view class="name data-v-da39d73f"><view class="top data-v-da39d73f"><view class="tag data-v-da39d73f"><text class="data-v-da39d73f">{{i}}</text></view><text class="title data-v-da39d73f">{{j}}</text></view><view class="data-v-da39d73f"><text class="info data-v-da39d73f">{{k}}</text></view></view></nut-cell-group><view class="service data-v-da39d73f"><view class="info data-v-da39d73f"><text class="title data-v-da39d73f">服务</text><text class="value data-v-da39d73f">{{l}}</text></view></view></view><view class="bottom-action data-v-da39d73f"><view class="bottom-action-icon data-v-da39d73f"><button plain open-type="contact" style="border:none;border-width:0" class="bottom-action-icon-item data-v-da39d73f"><nut-icon wx:if="{{m}}" class="data-v-da39d73f" u-i="da39d73f-5" bind:__l="__l" u-p="{{m}}"></nut-icon><text class="data-v-da39d73f">客服</text></button></view><view wx:if="{{n}}" class="bottom-action-btn data-v-da39d73f"><nut-button wx:if="{{o}}" class="data-v-da39d73f" u-s="{{['d']}}" bindclick="{{p}}" u-i="da39d73f-6" bind:__l="__l" u-p="{{q}}">立即购买</nut-button></view><view wx:else class="bottom-action-btn data-v-da39d73f"><nut-button wx:if="{{r}}" class="data-v-da39d73f" u-s="{{['d']}}" u-i="da39d73f-7" bind:__l="__l" u-p="{{s}}">暂不支持购买</nut-button></view></view></view>

View File

@@ -0,0 +1,211 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.bottom-action.data-v-da39d73f {
position: fixed;
bottom: 0;
left: 0;
height: 50px;
background: #fff;
width: calc(100% - 20px);
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 auto;
padding: 5px 10px;
}
.bottom-action .bottom-action-icon.data-v-da39d73f {
align-items: center;
display: flex;
justify-content: center;
}
.bottom-action .bottom-action-icon .bottom-action-icon-item.data-v-da39d73f {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
}
.bottom-action .bottom-action-icon .bottom-action-icon-item text.data-v-da39d73f {
color: rgba(0, 0, 0, 0.5);
font-size: 11px;
}
.bottom-action .bottom-action-btn.data-v-da39d73f {
-ms-flex-align: center;
-ms-flex-pack: end;
align-items: center;
display: flex;
gap: 5px;
justify-content: flex-end;
}
.content.data-v-da39d73f {
display: flex;
flex-direction: column;
min-height: calc(100vh - 50px);
/* align-items: center; */
background-color: #f2f3f5;
--nut-cell-group-title-color: #000;
--nut-collapse-item-padding: 10px 10px 10px 10px;
--nut-collapse-wrapper-content-padding: 10px 10px 10px 10px;
--nut-collapse-item-color: #000;
padding-bottom: 50px;
}
.report-inner.data-v-da39d73f {
display: flex;
flex-direction: column;
gap: 5px;
}
.report-inner .report-item .report-item-name.data-v-da39d73f {
color: rgba(0, 0, 0, 0.9);
font-weight: 700;
}
.report-inner .report-item .report-item-content.data-v-da39d73f {
display: flex;
flex-wrap: wrap;
}
.report-inner .report-item .report-item-content .report-item-content-item.data-v-da39d73f {
padding-top: 2px;
padding-bottom: 2px;
width: 50%;
display: flex;
align-items: center;
}
.count-item.data-v-da39d73f {
display: flex;
justify-content: center;
align-items: center;
gap: 2px;
}
.swiper.data-v-da39d73f {
width: 100%;
height: 414px;
}
.swiper image.data-v-da39d73f {
width: 100%;
height: 100%;
}
.goods_info.data-v-da39d73f {
padding: 5px;
color: #000;
}
.goods_info .price.data-v-da39d73f {
border-radius: 5px;
padding: 10px;
background: #fff;
}
.goods_info .price .unit.data-v-da39d73f {
font-size: 12px;
}
.goods_info .price .value.data-v-da39d73f {
font-size: 24px;
}
.goods_info .name.data-v-da39d73f {
border-radius: 5px;
padding: 10px;
background: #fff;
display: flex;
gap: 5px;
flex-direction: column;
}
.goods_info .name .top.data-v-da39d73f {
display: flex;
gap: 5px;
}
.goods_info .name .top .tag.data-v-da39d73f {
background: #000;
padding: 1px 2px;
justify-content: center;
align-items: center;
display: flex;
border-radius: 2px;
}
.goods_info .name .top .tag text.data-v-da39d73f {
font-size: 10px;
color: #fff;
}
.goods_info .name .top .title.data-v-da39d73f {
font-size: 16px;
}
.goods_info .name .info.data-v-da39d73f {
color: rgba(0, 0, 0, 0.7);
font-size: 13px;
}
.goods_info .service.data-v-da39d73f {
border-radius: 5px;
padding: 10px;
background: #fff;
display: flex;
align-items: center;
justify-content: space-between;
}
.goods_info .service .info.data-v-da39d73f {
display: flex;
flex-direction: column;
justify-content: center;
gap: 5px;
}
.goods_info .service .info .title.data-v-da39d73f {
font-size: 16px;
}
.goods_info .service .info .value.data-v-da39d73f {
color: rgba(0, 0, 0, 0.7);
font-size: 13px;
}
.goods_info .service .right_icon.data-v-da39d73f {
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0zNTMuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAxIDYwLjM0LTYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDEgMCA2MC4zNmwtMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMS02MC4zNC02MC4zNkw3MDcuNjcgNTEyeiIvPjwvc3ZnPg==") 0 0/100% 100% no-repeat;
mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0zNTMuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAxIDYwLjM0LTYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDEgMCA2MC4zNmwtMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMS02MC4zNC02MC4zNkw3MDcuNjcgNTEyeiIvPjwvc3ZnPg==") 0 0/100% 100% no-repeat;
width: 12px;
height: 12px;
}
.goods_info .report.data-v-da39d73f {
border-radius: 5px;
padding: 1px;
background: #fff;
}

View File

@@ -0,0 +1,303 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_helper = require("../../utils/helper.js");
const api_house_goods = require("../../api/house_goods.js");
const api_house_order = require("../../api/house_order.js");
const api_config = require("../../api/config.js");
if (!Array) {
const _easycom_nut_watermark2 = common_vendor.resolveComponent("nut-watermark");
const _easycom_nut_cell_group2 = common_vendor.resolveComponent("nut-cell-group");
const _easycom_nut_icon2 = common_vendor.resolveComponent("nut-icon");
const _easycom_nut_collapse_item2 = common_vendor.resolveComponent("nut-collapse-item");
const _easycom_nut_collapse2 = common_vendor.resolveComponent("nut-collapse");
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
(_easycom_nut_watermark2 + _easycom_nut_cell_group2 + _easycom_nut_icon2 + _easycom_nut_collapse_item2 + _easycom_nut_collapse2 + _easycom_nut_button2)();
}
const _easycom_nut_watermark = () => "../../uni_modules/nutui-uni/components/watermark/watermark.js";
const _easycom_nut_cell_group = () => "../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js";
const _easycom_nut_icon = () => "../../uni_modules/nutui-uni/components/icon/icon.js";
const _easycom_nut_collapse_item = () => "../../uni_modules/nutui-uni/components/collapseitem/collapseitem.js";
const _easycom_nut_collapse = () => "../../uni_modules/nutui-uni/components/collapse/collapse.js";
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
if (!Math) {
(_easycom_nut_watermark + _easycom_nut_cell_group + _easycom_nut_icon + _easycom_nut_collapse_item + _easycom_nut_collapse + _easycom_nut_button)();
}
const _sfc_main = {
__name: "houseDetail",
setup(__props) {
const audit = common_vendor.ref(true);
const isWarehouse = common_vendor.ref(false);
const singleRule = common_vendor.ref([]);
const rangeRule = common_vendor.ref([]);
const warehouseRule = common_vendor.reactive({
val: 0,
val_type: 1
});
const GetPriceRules = () => {
api_config.fetchGetPriceRules().then((res) => {
var _a;
common_vendor.index.__f__("log", "at pages/mall/houseDetail.vue:174", "res", res);
rangeRule.value = (res == null ? void 0 : res.range) ?? [];
singleRule.value = (res == null ? void 0 : res.single) ?? [];
Object.assign(warehouseRule, ((_a = res == null ? void 0 : res.warehouse) == null ? void 0 : _a[0]) ?? {
val: 0,
val_type: 1
});
});
};
const getPrice = (goods) => {
if (isWarehouse.value) {
common_vendor.index.__f__("log", "at pages/mall/houseDetail.vue:192", "开启整仓调价");
const list = singleRule.value || singleRule;
const rule = list.find((item) => item.product_id === goods.goods_id);
if (rule) {
const basePrice = Number(goods.goods_price);
const val = Number(rule.val);
let finalPrice = basePrice;
if (rule.val_type == 1) {
finalPrice = basePrice + val;
} else if (rule.val_type == 2) {
finalPrice = basePrice + basePrice * val / 100;
}
return finalPrice.toFixed(2);
} else {
const basePrice = Number(goods.goods_price);
const val = Number(warehouseRule.val);
let finalPrice = basePrice;
if (warehouseRule.val_type == 1) {
finalPrice = basePrice + val;
} else if (warehouseRule.val_type == 2) {
finalPrice = basePrice + basePrice * val / 100;
}
return finalPrice.toFixed(2);
}
} else {
common_vendor.index.__f__("log", "at pages/mall/houseDetail.vue:223", "未开启整仓调价");
const singleRuleList = singleRule.value || singleRule;
const oneRule = singleRuleList.find((item) => item.product_id === goods.goods_id);
if (oneRule) {
const basePrice = Number(goods.goods_price);
const val = Number(oneRule.val);
let finalPrice = basePrice;
if (oneRule.val_type == 1) {
finalPrice = basePrice + val;
} else if (oneRule.val_type == 2) {
finalPrice = basePrice + basePrice * val / 100;
}
return finalPrice.toFixed(2);
} else {
const basePrice = Number(goods.goods_price);
const rangeRulelist = rangeRule.value || rangeRule;
const quRule = rangeRulelist.find((item) => {
const min = Number(item.min_price);
const max = Number(item.max_price);
return basePrice >= min && basePrice < max;
}) || null;
if (quRule) {
const val = Number(quRule.val);
let finalPrice = basePrice;
if (quRule.val_type == 1) {
finalPrice = basePrice + val;
} else if (quRule.val_type == 2) {
finalPrice = basePrice + basePrice * val / 100;
}
return finalPrice.toFixed(2);
} else {
return basePrice;
}
}
}
};
const id = common_vendor.ref(0);
const detail = common_vendor.reactive({});
const user_goods_cart_ids = common_vendor.ref([]);
const goods_cart_ids = common_vendor.ref([]);
const buyNow = (goodsId) => {
let token = common_vendor.index.getStorageSync("token");
if (token) {
api_house_order.houseFetchCheckGoods({
goods_id: goodsId
}).then((res) => {
common_vendor.index.__f__("log", "at pages/mall/houseDetail.vue:292", res);
common_vendor.index.__f__("log", "at pages/mall/houseDetail.vue:293", "已经登陆");
common_vendor.index.navigateTo({
url: `/pages/order/housePreview?ids=${goodsId}&from=item`
});
});
} else {
utils_helper.goToLoginPage();
}
};
const getConfig = () => {
api_config.fetchGetConfig().then((res) => {
common_vendor.index.__f__("log", "at pages/mall/houseDetail.vue:309", "getConfig=====>", res);
audit.value = res.appConfig.is_audit == 1;
isWarehouse.value = res.appConfig.is_warehouse == 1;
});
};
common_vendor.onLoad((options) => {
common_vendor.index.__f__("log", "at pages/mall/houseDetail.vue:317", "init");
getConfig();
GetPriceRules();
id.value = options.id;
api_house_goods.houseFetchGoodsDetail(id.value).then((res) => {
Object.assign(detail, res);
});
api_house_goods.houseFetchCartGoodsIds().then((res) => {
common_vendor.index.__f__("log", "at pages/mall/houseDetail.vue:331", res);
user_goods_cart_ids.value = res.user_cart_goods_ids;
goods_cart_ids.value = res.cart_goods_ids;
});
});
common_vendor.onShareTimeline((res) => {
return {
title: detail.goods_name,
path: "/pages/mall/houseDetail?id=" + detail.goods_id,
imageUrl: detail.image[0].file_path
};
});
common_vendor.onShareAppMessage((res) => {
return {
title: detail.goods_name,
path: "/pages/mall/houseDetail?id=" + detail.goods_id,
imageUrl: detail.image[0].file_path
};
});
const activeNames = common_vendor.ref([1, 2]);
const onChange = (modelValue, currName, status) => {
common_vendor.index.__f__("log", "at pages/mall/houseDetail.vue:364", modelValue, currName, status);
};
const showGoodsImages = (index) => {
common_vendor.index.previewImage({
current: index,
// 指定当前显示的图片索引
urls: detail.image.map((e) => {
return e.file_path;
})
});
};
return (_ctx, _cache) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
return common_vendor.e({
a: ((_a = detail.shelves_status) == null ? void 0 : _a.value) === 10
}, ((_b = detail.shelves_status) == null ? void 0 : _b.value) === 10 ? {
b: common_vendor.p({
["z-index"]: 1,
content: "此商品已下架"
})
} : {}, {
c: ((_c = detail.shelves_status) == null ? void 0 : _c.value) === 30
}, ((_d = detail.shelves_status) == null ? void 0 : _d.value) === 30 ? {
d: common_vendor.p({
["z-index"]: 1,
content: "此商品已售出"
})
} : {}, {
e: detail.is_locked
}, detail.is_locked ? {
f: common_vendor.p({
["z-index"]: 1,
content: "此商品被锁单"
})
} : {}, {
g: common_vendor.f(detail.image, (item, idx, i0) => {
return {
a: item.file_path,
b: common_vendor.o(($event) => showGoodsImages(idx), idx),
c: idx
};
}),
h: common_vendor.t(getPrice(detail)),
i: common_vendor.t((_e = detail.degree) == null ? void 0 : _e.degree_name),
j: common_vendor.t(detail.goods_name),
k: common_vendor.t(detail.content),
l: common_vendor.t(detail.service_txt),
m: common_vendor.p({
name: "tips",
size: "12",
["custom-color"]: "#ff3535"
}),
n: common_vendor.t((_f = detail.report_tags) == null ? void 0 : _f.bad_count),
o: common_vendor.f((_g = detail == null ? void 0 : detail.report_tags) == null ? void 0 : _g.bad, (item, idx, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.f(item.value_list, (iitem, iidx, i1) => {
return {
a: "cec1cea2-9-" + i0 + "-" + i1 + ",cec1cea2-7",
b: common_vendor.t(iitem.name),
c: iidx
};
}),
c: idx
};
}),
p: common_vendor.p({
name: "tips",
size: "12",
["custom-color"]: "#ff3535"
}),
q: common_vendor.p({
name: 1,
icon: "rect-down"
}),
r: common_vendor.p({
name: "success",
size: "12",
["custom-color"]: "#5dcc30"
}),
s: common_vendor.t((_h = detail.report_tags) == null ? void 0 : _h.ok_count),
t: common_vendor.f((_i = detail == null ? void 0 : detail.report_tags) == null ? void 0 : _i.ok, (item, idx, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.f(item.value_list, (iitem, iidx, i1) => {
return {
a: "cec1cea2-12-" + i0 + "-" + i1 + ",cec1cea2-10",
b: common_vendor.t(iitem.name),
c: iidx
};
}),
c: idx
};
}),
v: common_vendor.p({
name: "success",
size: "12",
["custom-color"]: "#5dcc30"
}),
w: common_vendor.p({
name: 2,
icon: "rect-down"
}),
x: common_vendor.o(onChange),
y: common_vendor.o(($event) => activeNames.value = $event),
z: common_vendor.p({
modelValue: activeNames.value
}),
A: common_vendor.p({
title: "验机报告"
}),
B: common_vendor.p({
name: "service"
}),
C: ((_j = detail.shelves_status) == null ? void 0 : _j.value) === 20 && !goods_cart_ids.value.includes(detail.goods_id)
}, ((_k = detail.shelves_status) == null ? void 0 : _k.value) === 20 && !goods_cart_ids.value.includes(detail.goods_id) ? common_vendor.e({
D: !audit.value
}, !audit.value ? {
E: common_vendor.o(($event) => buyNow(detail.goods_id)),
F: common_vendor.p({
type: "primary"
})
} : {}) : common_vendor.e({
G: !audit.value
}, !audit.value ? {
H: common_vendor.p({
plain: true
})
} : {}));
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-cec1cea2"]]);
_sfc_main.__runtimeHooks = 6;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mall/houseDetail.js.map

View File

@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "仓库商品详情",
"usingComponents": {
"nut-watermark": "../../uni_modules/nutui-uni/components/watermark/watermark",
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
"nut-icon": "../../uni_modules/nutui-uni/components/icon/icon",
"nut-collapse-item": "../../uni_modules/nutui-uni/components/collapseitem/collapseitem",
"nut-collapse": "../../uni_modules/nutui-uni/components/collapse/collapse",
"nut-button": "../../uni_modules/nutui-uni/components/button/button"
}
}

View File

@@ -0,0 +1 @@
<view class="content data-v-cec1cea2"><nut-watermark wx:if="{{a}}" class="mark1 data-v-cec1cea2" u-i="cec1cea2-0" bind:__l="__l" u-p="{{b}}"></nut-watermark><nut-watermark wx:if="{{c}}" class="mark1 data-v-cec1cea2" u-i="cec1cea2-1" bind:__l="__l" u-p="{{d}}"></nut-watermark><nut-watermark wx:if="{{e}}" class="mark1 data-v-cec1cea2" u-i="cec1cea2-2" bind:__l="__l" u-p="{{f}}"></nut-watermark><swiper class="swiper data-v-cec1cea2" circular indicator-dots autoplay><swiper-item wx:for="{{g}}" wx:for-item="item" wx:key="c" class="data-v-cec1cea2" bindtap="{{item.b}}"><image class="data-v-cec1cea2" src="{{item.a}}" mode="aspectFill"></image></swiper-item></swiper><view class="goods_info data-v-cec1cea2"><nut-cell-group class="data-v-cec1cea2" u-s="{{['d']}}" u-i="cec1cea2-3" bind:__l="__l"><view class="price data-v-cec1cea2"><text class="unit data-v-cec1cea2">¥</text><text class="value data-v-cec1cea2">{{h}}</text></view></nut-cell-group><nut-cell-group class="data-v-cec1cea2" u-s="{{['d']}}" u-i="cec1cea2-4" bind:__l="__l"><view class="name data-v-cec1cea2"><view class="top data-v-cec1cea2"><view class="tag data-v-cec1cea2"><text class="data-v-cec1cea2">{{i}}</text></view><text class="title data-v-cec1cea2">{{j}}</text></view><view class="data-v-cec1cea2"><text class="info data-v-cec1cea2">{{k}}</text></view></view></nut-cell-group><view class="service data-v-cec1cea2"><view class="info data-v-cec1cea2"><text class="title data-v-cec1cea2">服务</text><text class="value data-v-cec1cea2">{{l}}</text></view></view><nut-cell-group wx:if="{{A}}" class="data-v-cec1cea2" u-s="{{['d']}}" u-i="cec1cea2-5" bind:__l="__l" u-p="{{A}}"><nut-collapse wx:if="{{z}}" class="data-v-cec1cea2" u-s="{{['d']}}" bindchange="{{x}}" u-i="cec1cea2-6,cec1cea2-5" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"><nut-collapse-item wx:if="{{q}}" class="data-v-cec1cea2" u-s="{{['title','value','d']}}" u-i="cec1cea2-7,cec1cea2-6" bind:__l="__l" u-p="{{q}}"><view slot="title"> 瑕疵项 </view><view class="count-item data-v-cec1cea2" slot="value"><nut-icon wx:if="{{m}}" class="data-v-cec1cea2" u-i="cec1cea2-8,cec1cea2-7" bind:__l="__l" u-p="{{m}}"></nut-icon><text class="data-v-cec1cea2">{{n}}项</text></view><view class="report-inner data-v-cec1cea2"><view wx:for="{{o}}" wx:for-item="item" wx:key="c" class="report-item data-v-cec1cea2"><view class="report-item-name data-v-cec1cea2">{{item.a}}</view><view class="report-item-content data-v-cec1cea2"><view wx:for="{{item.b}}" wx:for-item="iitem" wx:key="c" class="report-item-content-item data-v-cec1cea2"><nut-icon wx:if="{{p}}" class="data-v-cec1cea2" u-i="{{iitem.a}}" bind:__l="__l" u-p="{{p}}"></nut-icon><text class="data-v-cec1cea2">{{iitem.b}}</text></view></view></view></view></nut-collapse-item><nut-collapse-item wx:if="{{w}}" class="data-v-cec1cea2" u-s="{{['title','value','d']}}" u-i="cec1cea2-10,cec1cea2-6" bind:__l="__l" u-p="{{w}}"><view slot="title"> 正常项 </view><view class="count-item data-v-cec1cea2" slot="value"><nut-icon wx:if="{{r}}" class="data-v-cec1cea2" u-i="cec1cea2-11,cec1cea2-10" bind:__l="__l" u-p="{{r}}"></nut-icon><text class="data-v-cec1cea2">{{s}}项</text></view><view class="report-inner data-v-cec1cea2"><view wx:for="{{t}}" wx:for-item="item" wx:key="c" class="report-item data-v-cec1cea2"><view class="report-item-name data-v-cec1cea2">{{item.a}}</view><view class="report-item-content data-v-cec1cea2"><view wx:for="{{item.b}}" wx:for-item="iitem" wx:key="c" class="report-item-content-item data-v-cec1cea2"><nut-icon wx:if="{{v}}" class="data-v-cec1cea2" u-i="{{iitem.a}}" bind:__l="__l" u-p="{{v}}"></nut-icon><text class="data-v-cec1cea2">{{iitem.b}}</text></view></view></view></view></nut-collapse-item></nut-collapse></nut-cell-group></view><view class="bottom-action data-v-cec1cea2"><view class="bottom-action-icon data-v-cec1cea2"><button plain open-type="contact" style="border:none;border-width:0" class="bottom-action-icon-item data-v-cec1cea2"><nut-icon wx:if="{{B}}" class="data-v-cec1cea2" u-i="cec1cea2-13" bind:__l="__l" u-p="{{B}}"></nut-icon><text class="data-v-cec1cea2">客服</text></button></view><view wx:if="{{C}}" class="bottom-action-btn data-v-cec1cea2"><nut-button wx:if="{{D}}" class="data-v-cec1cea2" u-s="{{['d']}}" bindclick="{{E}}" u-i="cec1cea2-14" bind:__l="__l" u-p="{{F}}">立即购买</nut-button></view><view wx:else class="bottom-action-btn data-v-cec1cea2"><nut-button wx:if="{{G}}" class="data-v-cec1cea2" u-s="{{['d']}}" u-i="cec1cea2-15" bind:__l="__l" u-p="{{H}}">已锁定</nut-button></view></view></view>

View File

@@ -0,0 +1,211 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.bottom-action.data-v-cec1cea2 {
position: fixed;
bottom: 0;
left: 0;
height: 50px;
background: #fff;
width: calc(100% - 20px);
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 auto;
padding: 5px 10px;
}
.bottom-action .bottom-action-icon.data-v-cec1cea2 {
align-items: center;
display: flex;
justify-content: center;
}
.bottom-action .bottom-action-icon .bottom-action-icon-item.data-v-cec1cea2 {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
}
.bottom-action .bottom-action-icon .bottom-action-icon-item text.data-v-cec1cea2 {
color: rgba(0, 0, 0, 0.5);
font-size: 11px;
}
.bottom-action .bottom-action-btn.data-v-cec1cea2 {
-ms-flex-align: center;
-ms-flex-pack: end;
align-items: center;
display: flex;
gap: 5px;
justify-content: flex-end;
}
.content.data-v-cec1cea2 {
display: flex;
flex-direction: column;
/* align-items: center; */
background-color: #f2f3f5;
height: calc(100% - 50px);
--nut-cell-group-title-color: #000;
--nut-collapse-item-padding: 10px 10px 10px 10px;
--nut-collapse-wrapper-content-padding: 10px 10px 10px 10px;
--nut-collapse-item-color: #000;
padding-bottom: 50px;
}
.report-inner.data-v-cec1cea2 {
display: flex;
flex-direction: column;
gap: 5px;
}
.report-inner .report-item .report-item-name.data-v-cec1cea2 {
color: rgba(0, 0, 0, 0.9);
font-weight: 700;
}
.report-inner .report-item .report-item-content.data-v-cec1cea2 {
display: flex;
flex-wrap: wrap;
}
.report-inner .report-item .report-item-content .report-item-content-item.data-v-cec1cea2 {
padding-top: 2px;
padding-bottom: 2px;
width: 50%;
display: flex;
align-items: center;
}
.count-item.data-v-cec1cea2 {
display: flex;
justify-content: center;
align-items: center;
gap: 2px;
}
.swiper.data-v-cec1cea2 {
width: 100%;
height: 414px;
}
.swiper image.data-v-cec1cea2 {
width: 100%;
height: 100%;
}
.goods_info.data-v-cec1cea2 {
padding: 5px;
color: #000;
}
.goods_info .price.data-v-cec1cea2 {
border-radius: 5px;
padding: 10px;
background: #fff;
}
.goods_info .price .unit.data-v-cec1cea2 {
font-size: 12px;
}
.goods_info .price .value.data-v-cec1cea2 {
font-size: 24px;
}
.goods_info .name.data-v-cec1cea2 {
border-radius: 5px;
padding: 10px;
background: #fff;
display: flex;
gap: 5px;
flex-direction: column;
}
.goods_info .name .top.data-v-cec1cea2 {
display: flex;
gap: 5px;
}
.goods_info .name .top .tag.data-v-cec1cea2 {
background: #000;
padding: 1px 2px;
justify-content: center;
align-items: center;
display: flex;
border-radius: 2px;
}
.goods_info .name .top .tag text.data-v-cec1cea2 {
font-size: 10px;
color: #fff;
}
.goods_info .name .top .title.data-v-cec1cea2 {
font-size: 16px;
}
.goods_info .name .info.data-v-cec1cea2 {
color: rgba(0, 0, 0, 0.7);
font-size: 13px;
}
.goods_info .service.data-v-cec1cea2 {
border-radius: 5px;
padding: 10px;
background: #fff;
display: flex;
align-items: center;
justify-content: space-between;
}
.goods_info .service .info.data-v-cec1cea2 {
display: flex;
flex-direction: column;
justify-content: center;
gap: 5px;
}
.goods_info .service .info .title.data-v-cec1cea2 {
font-size: 16px;
}
.goods_info .service .info .value.data-v-cec1cea2 {
color: rgba(0, 0, 0, 0.7);
font-size: 13px;
}
.goods_info .service .right_icon.data-v-cec1cea2 {
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0zNTMuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAxIDYwLjM0LTYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDEgMCA2MC4zNmwtMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMS02MC4zNC02MC4zNkw3MDcuNjcgNTEyeiIvPjwvc3ZnPg==") 0 0/100% 100% no-repeat;
mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0zNTMuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAxIDYwLjM0LTYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDEgMCA2MC4zNmwtMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMS02MC4zNC02MC4zNkw3MDcuNjcgNTEyeiIvPjwvc3ZnPg==") 0 0/100% 100% no-repeat;
width: 12px;
height: 12px;
}
.goods_info .report.data-v-cec1cea2 {
border-radius: 5px;
padding: 1px;
background: #fff;
}