处理数据看板
This commit is contained in:
66
unpackage/dist/dev/mp-weixin/pages/data/index.js
vendored
Normal file
66
unpackage/dist/dev/mp-weixin/pages/data/index.js
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
if (!Array) {
|
||||
const _easycom_nut_calendar2 = common_vendor.resolveComponent("nut-calendar");
|
||||
_easycom_nut_calendar2();
|
||||
}
|
||||
const _easycom_nut_calendar = () => "../../uni_modules/nutui-uni/components/calendar/calendar.js";
|
||||
if (!Math) {
|
||||
_easycom_nut_calendar();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const getLastMonthFirstDay = () => {
|
||||
const date2 = /* @__PURE__ */ new Date();
|
||||
date2.setMonth(date2.getMonth() - 1);
|
||||
date2.setDate(1);
|
||||
return formatDate(date2);
|
||||
};
|
||||
const getCurrentMonthLastDay = () => {
|
||||
const date2 = /* @__PURE__ */ new Date();
|
||||
date2.setMonth(date2.getMonth() + 1);
|
||||
date2.setDate(0);
|
||||
return formatDate(date2);
|
||||
};
|
||||
const formatDate = (date2) => {
|
||||
const year = date2.getFullYear();
|
||||
const month = (date2.getMonth() + 1).toString().padStart(2, "0");
|
||||
const day = date2.getDate().toString().padStart(2, "0");
|
||||
return `${year}-${month}-${day}`;
|
||||
};
|
||||
const startDate = common_vendor.ref(getLastMonthFirstDay());
|
||||
const endDate = common_vendor.ref(getCurrentMonthLastDay());
|
||||
const date = common_vendor.ref("");
|
||||
const onChoose = (e) => {
|
||||
common_vendor.index.__f__("log", "at pages/data/index.vue:57", "onChoose", e);
|
||||
};
|
||||
const onSelect = (e) => {
|
||||
common_vendor.index.__f__("log", "at pages/data/index.vue:60", "onSelect", e);
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/data/list?date=${e[3]}`
|
||||
});
|
||||
};
|
||||
common_vendor.onLoad((options) => {
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(onChoose),
|
||||
b: common_vendor.o(onSelect),
|
||||
c: common_vendor.p({
|
||||
title: "选择想要的日期",
|
||||
["show-sub-title"]: false,
|
||||
poppable: false,
|
||||
["default-value"]: date.value,
|
||||
["start-date"]: startDate.value,
|
||||
["end-date"]: endDate.value
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-af28c7f4"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/data/index.js.map
|
||||
7
unpackage/dist/dev/mp-weixin/pages/data/index.json
vendored
Normal file
7
unpackage/dist/dev/mp-weixin/pages/data/index.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "运营数据-选择日期",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-calendar": "../../uni_modules/nutui-uni/components/calendar/calendar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/data/index.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/data/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="page-content data-v-af28c7f4"><nut-calendar wx:if="{{c}}" class="data-v-af28c7f4" bindchoose="{{a}}" bindselect="{{b}}" u-i="af28c7f4-0" bind:__l="__l" u-p="{{c}}"></nut-calendar></view>
|
||||
@@ -48,30 +48,7 @@
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.page-content.data-v-6b23c96c {
|
||||
.page-content.data-v-af28c7f4 {
|
||||
min-height: 100vh;
|
||||
background-color: #f2f3f5;
|
||||
padding: 20rpx;
|
||||
}
|
||||
.address-inner.data-v-6b23c96c {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
.total-price-inner.data-v-6b23c96c {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.total-price-inner view.data-v-6b23c96c:nth-child(2) {
|
||||
color: #fa2c19;
|
||||
}
|
||||
.wechat-img-inner.data-v-6b23c96c {
|
||||
margin-top: 60rpx;
|
||||
padding: 0rpx 80rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
9
unpackage/dist/dev/mp-weixin/pages/data/list.js
vendored
Normal file
9
unpackage/dist/dev/mp-weixin/pages/data/list.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {};
|
||||
function _sfc_render(_ctx, _cache) {
|
||||
return {};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/data/list.js.map
|
||||
5
unpackage/dist/dev/mp-weixin/pages/data/list.json
vendored
Normal file
5
unpackage/dist/dev/mp-weixin/pages/data/list.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "运营数据-数据看板",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {}
|
||||
}
|
||||
0
unpackage/dist/dev/mp-weixin/pages/data/list.wxml
vendored
Normal file
0
unpackage/dist/dev/mp-weixin/pages/data/list.wxml
vendored
Normal file
136
unpackage/dist/dev/mp-weixin/pages/mall/detail.js
vendored
136
unpackage/dist/dev/mp-weixin/pages/mall/detail.js
vendored
@@ -1,136 +0,0 @@
|
||||
"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
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<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>
|
||||
211
unpackage/dist/dev/mp-weixin/pages/mall/detail.wxss
vendored
211
unpackage/dist/dev/mp-weixin/pages/mall/detail.wxss
vendored
@@ -1,211 +0,0 @@
|
||||
/**
|
||||
* 这里是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;
|
||||
}
|
||||
@@ -1,303 +0,0 @@
|
||||
"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
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<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>
|
||||
@@ -1,211 +0,0 @@
|
||||
/**
|
||||
* 这里是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;
|
||||
}
|
||||
@@ -58,7 +58,7 @@ const _sfc_main = {
|
||||
h: common_vendor.p({
|
||||
name: "eye"
|
||||
}),
|
||||
i: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/order/shopOrder/index?tab=0")),
|
||||
i: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/data/index")),
|
||||
j: common_vendor.p({
|
||||
text: "运营数据"
|
||||
}),
|
||||
|
||||
128
unpackage/dist/dev/mp-weixin/pages/order/detail.js
vendored
128
unpackage/dist/dev/mp-weixin/pages/order/detail.js
vendored
@@ -1,128 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_order = require("../../api/order.js");
|
||||
const utils_helper = require("../../utils/helper.js");
|
||||
const api_config = require("../../api/config.js");
|
||||
if (!Array) {
|
||||
const _easycom_nut_step2 = common_vendor.resolveComponent("nut-step");
|
||||
const _easycom_nut_steps2 = common_vendor.resolveComponent("nut-steps");
|
||||
const _easycom_nut_cell2 = common_vendor.resolveComponent("nut-cell");
|
||||
const _easycom_nut_cell_group2 = common_vendor.resolveComponent("nut-cell-group");
|
||||
const _easycom_nut_tag2 = common_vendor.resolveComponent("nut-tag");
|
||||
const _easycom_nut_price2 = common_vendor.resolveComponent("nut-price");
|
||||
(_easycom_nut_step2 + _easycom_nut_steps2 + _easycom_nut_cell2 + _easycom_nut_cell_group2 + _easycom_nut_tag2 + _easycom_nut_price2)();
|
||||
}
|
||||
const _easycom_nut_step = () => "../../uni_modules/nutui-uni/components/step/step.js";
|
||||
const _easycom_nut_steps = () => "../../uni_modules/nutui-uni/components/steps/steps.js";
|
||||
const _easycom_nut_cell = () => "../../uni_modules/nutui-uni/components/cell/cell.js";
|
||||
const _easycom_nut_cell_group = () => "../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js";
|
||||
const _easycom_nut_tag = () => "../../uni_modules/nutui-uni/components/tag/tag.js";
|
||||
const _easycom_nut_price = () => "../../uni_modules/nutui-uni/components/price/price.js";
|
||||
if (!Math) {
|
||||
(_easycom_nut_step + _easycom_nut_steps + _easycom_nut_cell + _easycom_nut_cell_group + _easycom_nut_tag + _easycom_nut_price)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "detail",
|
||||
setup(__props) {
|
||||
const audit = common_vendor.ref(true);
|
||||
const id = common_vendor.ref(0);
|
||||
const detail = common_vendor.reactive({});
|
||||
const images = common_vendor.ref([]);
|
||||
common_vendor.onLoad((options) => {
|
||||
id.value = options.id;
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
getConfig();
|
||||
api_order.fetchOrderDetail(id.value).then((res) => {
|
||||
Object.assign(detail, res);
|
||||
});
|
||||
});
|
||||
const getConfig = () => {
|
||||
api_config.fetchGetConfig().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/detail.vue:126", "getConfig=====>", res);
|
||||
audit.value = res.appConfig.is_audit == 1;
|
||||
common_vendor.index.__f__("log", "at pages/order/detail.vue:128", res.appConfig.pay_imgs);
|
||||
let pay_imgs = JSON.parse(res.appConfig.pay_imgs) || [];
|
||||
let wechat_imgs = JSON.parse(res.appConfig.wechat_imgs) || [];
|
||||
let pay_imgs_arr = pay_imgs.map((item) => item.file_path) || [];
|
||||
let wechat_imgs_arr = wechat_imgs.map((item) => item.file_path) || [];
|
||||
const merged_imgs_arr = pay_imgs_arr.concat(wechat_imgs_arr);
|
||||
images.value = merged_imgs_arr;
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
title: "待付款"
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
title: "待发货"
|
||||
}),
|
||||
c: common_vendor.p({
|
||||
title: "待收货"
|
||||
}),
|
||||
d: common_vendor.p({
|
||||
title: "已完成"
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
current: detail.progress
|
||||
}),
|
||||
f: detail.address_info
|
||||
}, detail.address_info ? {
|
||||
g: common_vendor.t(detail.address_info.user_name),
|
||||
h: common_vendor.t(detail.address_info.tel_number),
|
||||
i: common_vendor.t(detail.address_info.province_name + detail.address_info.city_name + detail.address_info.county_name + detail.address_info.street_name + detail.address_info.detail_info_new)
|
||||
} : {}, {
|
||||
j: common_vendor.f(detail.goods, (goods, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(goods.snapshot_info.degree.degree_name),
|
||||
b: "6b23c96c-9-" + i0 + "," + ("6b23c96c-8-" + i0),
|
||||
c: common_vendor.t(goods.goods_name),
|
||||
d: common_vendor.t(goods.goods_no),
|
||||
e: "6b23c96c-10-" + i0 + "," + ("6b23c96c-8-" + i0),
|
||||
f: common_vendor.p({
|
||||
price: goods.goods_price,
|
||||
size: "small",
|
||||
["need-symbol"]: true
|
||||
}),
|
||||
g: index,
|
||||
h: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/mall/detail?id=" + goods.goods_id), index),
|
||||
i: "6b23c96c-8-" + i0 + ",6b23c96c-7"
|
||||
};
|
||||
}),
|
||||
k: common_vendor.p({
|
||||
["custom-color"]: "#1a1a1a"
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
center: true
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
price: detail.pay_price,
|
||||
size: "normal",
|
||||
["need-symbol"]: true
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
title: "订单编号",
|
||||
desc: detail.order_no
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
title: "下单时间",
|
||||
desc: detail.create_time
|
||||
}),
|
||||
p: detail.progress >= 3
|
||||
}, detail.progress >= 3 ? {
|
||||
q: common_vendor.p({
|
||||
title: "物流公司",
|
||||
desc: detail.express_company
|
||||
}),
|
||||
r: common_vendor.p({
|
||||
title: "物流单号",
|
||||
desc: detail.express_no
|
||||
})
|
||||
} : {});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6b23c96c"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order/detail.js.map
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "订单详情",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-step": "../../uni_modules/nutui-uni/components/step/step",
|
||||
"nut-steps": "../../uni_modules/nutui-uni/components/steps/steps",
|
||||
"nut-cell": "../../uni_modules/nutui-uni/components/cell/cell",
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
|
||||
"nut-tag": "../../uni_modules/nutui-uni/components/tag/tag",
|
||||
"nut-price": "../../uni_modules/nutui-uni/components/price/price"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="page-content data-v-6b23c96c"><nut-steps wx:if="{{e}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-0" bind:__l="__l" u-p="{{e}}"><nut-step wx:if="{{a}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-1,6b23c96c-0" bind:__l="__l" u-p="{{a}}">1</nut-step><nut-step wx:if="{{b}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-2,6b23c96c-0" bind:__l="__l" u-p="{{b}}">2</nut-step><nut-step wx:if="{{c}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-3,6b23c96c-0" bind:__l="__l" u-p="{{c}}">3</nut-step><nut-step wx:if="{{d}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-4,6b23c96c-0" bind:__l="__l" u-p="{{d}}">4</nut-step></nut-steps><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-5" bind:__l="__l"><nut-cell class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-6,6b23c96c-5" bind:__l="__l"><view wx:if="{{f}}" class="address-inner data-v-6b23c96c"><text class="data-v-6b23c96c">{{g}} - {{h}}</text><text class="data-v-6b23c96c">{{i}}</text></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-7" bind:__l="__l"><nut-cell wx:for="{{j}}" wx:for-item="goods" wx:key="g" class="data-v-6b23c96c" u-s="{{['title','link']}}" bindclick="{{goods.h}}" u-i="{{goods.i}}" bind:__l="__l" u-p="{{l}}"><view class="goods-info-row data-v-6b23c96c" slot="title"><view class="left-text data-v-6b23c96c"><view class="goods-name data-v-6b23c96c"><nut-tag wx:if="{{k}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{k}}">{{goods.a}}</nut-tag><text class="data-v-6b23c96c" style="margin-left:10rpx">{{goods.c}}</text></view><text class="goods-no data-v-6b23c96c">串号:{{goods.d}}</text></view></view><nut-price class="data-v-6b23c96c" u-i="{{goods.e}}" bind:__l="__l" u-p="{{goods.f}}" slot="link"/></nut-cell></nut-cell-group><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-11" bind:__l="__l"><nut-cell class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-12,6b23c96c-11" bind:__l="__l"><view class="total-price-inner data-v-6b23c96c"><text class="data-v-6b23c96c">商品总额</text><nut-price wx:if="{{m}}" class="data-v-6b23c96c" u-i="6b23c96c-13,6b23c96c-12" bind:__l="__l" u-p="{{m}}"/></view></nut-cell></nut-cell-group><nut-cell-group class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-14" bind:__l="__l"><nut-cell wx:if="{{n}}" class="data-v-6b23c96c" u-i="6b23c96c-15,6b23c96c-14" bind:__l="__l" u-p="{{n}}"/><nut-cell wx:if="{{o}}" class="data-v-6b23c96c" u-i="6b23c96c-16,6b23c96c-14" bind:__l="__l" u-p="{{o}}"/></nut-cell-group><nut-cell-group wx:if="{{p}}" class="data-v-6b23c96c" u-s="{{['d']}}" u-i="6b23c96c-17" bind:__l="__l"><nut-cell wx:if="{{q}}" class="data-v-6b23c96c" u-i="6b23c96c-18,6b23c96c-17" bind:__l="__l" u-p="{{q}}"/><nut-cell wx:if="{{r}}" class="data-v-6b23c96c" u-i="6b23c96c-19,6b23c96c-17" bind:__l="__l" u-p="{{r}}"/></nut-cell-group></view>
|
||||
@@ -1,245 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_house_order = require("../../api/house_order.js");
|
||||
const api_config = require("../../api/config.js");
|
||||
if (!Array) {
|
||||
const _easycom_nut_cell2 = common_vendor.resolveComponent("nut-cell");
|
||||
const _easycom_nut_cell_group2 = common_vendor.resolveComponent("nut-cell-group");
|
||||
const _easycom_nut_tag2 = common_vendor.resolveComponent("nut-tag");
|
||||
const _easycom_nut_price2 = common_vendor.resolveComponent("nut-price");
|
||||
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
|
||||
(_easycom_nut_cell2 + _easycom_nut_cell_group2 + _easycom_nut_tag2 + _easycom_nut_price2 + _easycom_nut_button2)();
|
||||
}
|
||||
const _easycom_nut_cell = () => "../../uni_modules/nutui-uni/components/cell/cell.js";
|
||||
const _easycom_nut_cell_group = () => "../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js";
|
||||
const _easycom_nut_tag = () => "../../uni_modules/nutui-uni/components/tag/tag.js";
|
||||
const _easycom_nut_price = () => "../../uni_modules/nutui-uni/components/price/price.js";
|
||||
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
|
||||
if (!Math) {
|
||||
(_easycom_nut_cell + _easycom_nut_cell_group + _easycom_nut_tag + _easycom_nut_price + _easycom_nut_button)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "housePreview",
|
||||
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/order/housePreview.vue:107", "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 = (goods2) => {
|
||||
if (isWarehouse.value) {
|
||||
common_vendor.index.__f__("log", "at pages/order/housePreview.vue:125", "开启整仓调价");
|
||||
const list = singleRule.value || singleRule;
|
||||
const rule = list.find((item) => item.product_id === (goods2 == null ? void 0 : goods2.goods_id));
|
||||
if (rule) {
|
||||
const basePrice = Number(goods2 == null ? void 0 : goods2.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(goods2 == null ? void 0 : goods2.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/order/housePreview.vue:156", "未开启整仓调价");
|
||||
const singleRuleList = singleRule.value || singleRule;
|
||||
const oneRule = singleRuleList.find((item) => item.product_id === (goods2 == null ? void 0 : goods2.goods_id));
|
||||
if (oneRule) {
|
||||
const basePrice = Number(goods2 == null ? void 0 : goods2.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(goods2 == null ? void 0 : goods2.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 getConfig = () => {
|
||||
api_config.fetchGetConfig().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/housePreview.vue:204", "getConfig=====>", res);
|
||||
audit.value = res.appConfig.is_audit == 1;
|
||||
isWarehouse.value = res.appConfig.is_warehouse == 1;
|
||||
});
|
||||
};
|
||||
const chooseAddress = () => {
|
||||
common_vendor.index.chooseAddress({
|
||||
success(res) {
|
||||
common_vendor.index.__f__("log", "at pages/order/housePreview.vue:226", res);
|
||||
Object.assign(form, {
|
||||
address_info: {
|
||||
address_id: res.addressID || 1,
|
||||
user_name: res.userName,
|
||||
tel_number: res.telNumber,
|
||||
city_name: res.cityName || "",
|
||||
county_name: res.countyName || "",
|
||||
detail_info: res.detailInfo || "",
|
||||
detail_info_new: res.detailInfoNew || "",
|
||||
national_code: res.nationalCode || "",
|
||||
national_code_full: res.nationalCodeFull || "",
|
||||
postal_code: res.postalCode || "",
|
||||
province_name: res.provinceName || "",
|
||||
street_name: res.streetName || ""
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
common_vendor.ref([]);
|
||||
const goods = common_vendor.reactive({});
|
||||
const order_total_price = common_vendor.ref(0);
|
||||
const order_total_num = common_vendor.ref(0);
|
||||
const form = common_vendor.reactive({
|
||||
goods_id: 0,
|
||||
address_info: {}
|
||||
});
|
||||
const fromStr = common_vendor.ref("");
|
||||
common_vendor.onLoad((options) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/housePreview.vue:271", "init");
|
||||
getConfig();
|
||||
GetPriceRules();
|
||||
common_vendor.index.__f__("log", "at pages/order/housePreview.vue:277", "🚀 ~ from:", options.from);
|
||||
fromStr.value = options.from;
|
||||
common_vendor.index.__f__("log", "at pages/order/housePreview.vue:279", "🚀 ~ ids:", options.ids);
|
||||
form.goods_id = options.ids;
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
common_vendor.index.__f__("log", "at pages/order/housePreview.vue:287", "🚀 ~ onShowfrom:", fromStr.value);
|
||||
if (fromStr.value === "list" || fromStr.value === "item") {
|
||||
api_house_order.houseFetchGoodsPreview({
|
||||
goods_id: form.goods_id
|
||||
}).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/housePreview.vue:292", res);
|
||||
Object.assign(goods, res.goods);
|
||||
order_total_price.value = res.order_total_price;
|
||||
order_total_num.value = res.order_total_num;
|
||||
});
|
||||
}
|
||||
});
|
||||
common_vendor.onHide(() => {
|
||||
fromStr.value = "";
|
||||
});
|
||||
const onSubmitClick = () => {
|
||||
var _a;
|
||||
if (!((_a = form.address_info) == null ? void 0 : _a.address_id)) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请选择收货地址",
|
||||
icon: "none"
|
||||
});
|
||||
return;
|
||||
}
|
||||
api_house_order.fetchOrderbuyNow(form).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/housePreview.vue:318", res);
|
||||
common_vendor.index.redirectTo({
|
||||
url: "/pages/order/detail?id=" + res.order_id,
|
||||
success: (res2) => {
|
||||
},
|
||||
fail: () => {
|
||||
},
|
||||
complete: () => {
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
var _a, _b, _c, _d, _e, _f;
|
||||
return common_vendor.e({
|
||||
a: !((_a = form.address_info) == null ? void 0 : _a.address_id)
|
||||
}, !((_b = form.address_info) == null ? void 0 : _b.address_id) ? {
|
||||
b: common_vendor.o(chooseAddress),
|
||||
c: common_vendor.p({
|
||||
title: "添加地址",
|
||||
["is-link"]: true
|
||||
})
|
||||
} : {
|
||||
d: common_vendor.o(chooseAddress),
|
||||
e: common_vendor.p({
|
||||
title: form.address_info.user_name + " " + form.address_info.tel_number,
|
||||
["is-link"]: true,
|
||||
["sub-title"]: form.address_info.province_name + form.address_info.city_name + form.address_info.county_name + form.address_info.street_name + form.address_info.detail_info_new
|
||||
})
|
||||
}, {
|
||||
f: common_vendor.t((_d = (_c = goods == null ? void 0 : goods.goods_house) == null ? void 0 : _c.degree) == null ? void 0 : _d.degree_name),
|
||||
g: common_vendor.p({
|
||||
["custom-color"]: "#1a1a1a"
|
||||
}),
|
||||
h: common_vendor.t((_e = goods == null ? void 0 : goods.goods_house) == null ? void 0 : _e.goods_name),
|
||||
i: common_vendor.t((_f = goods == null ? void 0 : goods.goods_house) == null ? void 0 : _f.goods_no),
|
||||
j: common_vendor.p({
|
||||
price: getPrice(goods == null ? void 0 : goods.goods_house),
|
||||
size: "small",
|
||||
["need-symbol"]: true
|
||||
}),
|
||||
k: common_vendor.p({
|
||||
center: true
|
||||
}),
|
||||
l: common_vendor.t(order_total_num.value),
|
||||
m: common_vendor.p({
|
||||
price: getPrice(goods == null ? void 0 : goods.goods_house),
|
||||
["need-symbol"]: true
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
size: "large",
|
||||
price: getPrice(goods == null ? void 0 : goods.goods_house),
|
||||
["need-symbol"]: true
|
||||
}),
|
||||
o: common_vendor.o(onSubmitClick),
|
||||
p: common_vendor.p({
|
||||
type: "primary"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f68461ec"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order/housePreview.js.map
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "提交订单",
|
||||
"usingComponents": {
|
||||
"nut-cell": "../../uni_modules/nutui-uni/components/cell/cell",
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
|
||||
"nut-tag": "../../uni_modules/nutui-uni/components/tag/tag",
|
||||
"nut-price": "../../uni_modules/nutui-uni/components/price/price",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="page-content data-v-f68461ec"><nut-cell-group class="data-v-f68461ec" u-s="{{['d']}}" u-i="f68461ec-0" bind:__l="__l"><nut-cell wx:if="{{a}}" class="data-v-f68461ec" bindclick="{{b}}" u-i="f68461ec-1,f68461ec-0" bind:__l="__l" u-p="{{c}}"></nut-cell><nut-cell wx:else class="data-v-f68461ec" bindclick="{{d}}" u-i="f68461ec-2,f68461ec-0" bind:__l="__l" u-p="{{e||''}}"></nut-cell></nut-cell-group><nut-cell-group class="data-v-f68461ec" u-s="{{['d']}}" u-i="f68461ec-3" bind:__l="__l"><nut-cell wx:if="{{k}}" class="data-v-f68461ec" u-s="{{['title','link']}}" u-i="f68461ec-4,f68461ec-3" bind:__l="__l" u-p="{{k}}"><view class="goods-info-row data-v-f68461ec" slot="title"><view class="left-text data-v-f68461ec"><view class="goods-name data-v-f68461ec"><nut-tag wx:if="{{g}}" class="data-v-f68461ec" u-s="{{['d']}}" u-i="f68461ec-5,f68461ec-4" bind:__l="__l" u-p="{{g}}">{{f}}</nut-tag><text class="data-v-f68461ec" style="margin-left:10rpx">{{h}}</text></view><text class="goods-no data-v-f68461ec">串号:{{i}}</text></view></view><nut-price class="data-v-f68461ec" u-i="f68461ec-6,f68461ec-4" bind:__l="__l" u-p="{{j}}" slot="link"/></nut-cell></nut-cell-group><nut-cell-group class="data-v-f68461ec" u-s="{{['d']}}" u-i="f68461ec-7" bind:__l="__l"><nut-cell class="data-v-f68461ec" u-s="{{['d']}}" u-i="f68461ec-8,f68461ec-7" bind:__l="__l"><view class="total-price-inner data-v-f68461ec"><text class="data-v-f68461ec">件数</text><text class="data-v-f68461ec">{{l}}件</text></view></nut-cell><nut-cell class="data-v-f68461ec" u-s="{{['d']}}" u-i="f68461ec-9,f68461ec-7" bind:__l="__l"><view class="total-price-inner data-v-f68461ec"><text class="data-v-f68461ec">商品总额</text><nut-price wx:if="{{m}}" class="data-v-f68461ec" u-i="f68461ec-10,f68461ec-9" bind:__l="__l" u-p="{{m}}"/></view></nut-cell></nut-cell-group><view class="bottom-submit-inner data-v-f68461ec"><view class="bottom-submit-inner-info data-v-f68461ec"><text class="data-v-f68461ec">合计:</text><nut-price wx:if="{{n}}" class="data-v-f68461ec" u-i="f68461ec-11" bind:__l="__l" u-p="{{n}}"/></view><view class="bottom-submit-inner-btn data-v-f68461ec"><nut-button wx:if="{{p}}" class="data-v-f68461ec" u-s="{{['d']}}" bindclick="{{o}}" u-i="f68461ec-12" bind:__l="__l" u-p="{{p}}">确认下单</nut-button></view></view></view>
|
||||
@@ -1,107 +0,0 @@
|
||||
/**
|
||||
* 这里是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 */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.page-content.data-v-f68461ec {
|
||||
min-height: calc(100vh - 60px);
|
||||
background-color: #f2f3f5;
|
||||
padding: 20rpx;
|
||||
padding-bottom: 140rpx;
|
||||
}
|
||||
|
||||
/* 信息行布局 */
|
||||
.goods-info-row.data-v-f68461ec {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 10rpx;
|
||||
/* 左侧文字样式 */
|
||||
/* 右侧价格样式 */
|
||||
}
|
||||
.goods-info-row .left-text.data-v-f68461ec {
|
||||
flex: 1;
|
||||
}
|
||||
.goods-info-row .goods-name.data-v-f68461ec {
|
||||
font-size: 30rpx;
|
||||
color: #000000;
|
||||
display: block;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
.goods-info-row .goods-no.data-v-f68461ec {
|
||||
font-size: 26rpx;
|
||||
color: #000000;
|
||||
display: block;
|
||||
}
|
||||
.goods-info-row .price.data-v-f68461ec {
|
||||
margin-left: 20rpx;
|
||||
align-self: center;
|
||||
/* 垂直居中在两行文字之间 */
|
||||
}
|
||||
.bottom-submit-inner.data-v-f68461ec {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
height: 120rpx;
|
||||
background: #fff;
|
||||
width: calc(100% - 40rpx);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin: 0 auto;
|
||||
padding: 15rpx 20rpx;
|
||||
}
|
||||
.total-price-inner.data-v-f68461ec {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.total-price-inner view.data-v-f68461ec:nth-child(2) {
|
||||
color: #fa2c19;
|
||||
}
|
||||
157
unpackage/dist/dev/mp-weixin/pages/order/preview.js
vendored
157
unpackage/dist/dev/mp-weixin/pages/order/preview.js
vendored
@@ -1,157 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_order = require("../../api/order.js");
|
||||
if (!Array) {
|
||||
const _easycom_nut_cell2 = common_vendor.resolveComponent("nut-cell");
|
||||
const _easycom_nut_cell_group2 = common_vendor.resolveComponent("nut-cell-group");
|
||||
const _easycom_nut_tag2 = common_vendor.resolveComponent("nut-tag");
|
||||
const _easycom_nut_price2 = common_vendor.resolveComponent("nut-price");
|
||||
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
|
||||
(_easycom_nut_cell2 + _easycom_nut_cell_group2 + _easycom_nut_tag2 + _easycom_nut_price2 + _easycom_nut_button2)();
|
||||
}
|
||||
const _easycom_nut_cell = () => "../../uni_modules/nutui-uni/components/cell/cell.js";
|
||||
const _easycom_nut_cell_group = () => "../../uni_modules/nutui-uni/components/cellgroup/cellgroup.js";
|
||||
const _easycom_nut_tag = () => "../../uni_modules/nutui-uni/components/tag/tag.js";
|
||||
const _easycom_nut_price = () => "../../uni_modules/nutui-uni/components/price/price.js";
|
||||
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
|
||||
if (!Math) {
|
||||
(_easycom_nut_cell + _easycom_nut_cell_group + _easycom_nut_tag + _easycom_nut_price + _easycom_nut_button)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "preview",
|
||||
setup(__props) {
|
||||
const chooseAddress = () => {
|
||||
common_vendor.index.chooseAddress({
|
||||
success(res) {
|
||||
common_vendor.index.__f__("log", "at pages/order/preview.vue:145", res);
|
||||
Object.assign(form, {
|
||||
address_info: {
|
||||
address_id: res.addressID || 1,
|
||||
user_name: res.userName,
|
||||
tel_number: res.telNumber,
|
||||
city_name: res.cityName || "",
|
||||
county_name: res.countyName || "",
|
||||
detail_info: res.detailInfo || "",
|
||||
detail_info_new: res.detailInfoNew || "",
|
||||
national_code: res.nationalCode || "",
|
||||
national_code_full: res.nationalCodeFull || "",
|
||||
postal_code: res.postalCode || "",
|
||||
province_name: res.provinceName || "",
|
||||
street_name: res.streetName || ""
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
common_vendor.ref([]);
|
||||
const list = common_vendor.reactive([]);
|
||||
const order_total_price = common_vendor.ref(0);
|
||||
const order_total_num = common_vendor.ref(0);
|
||||
const form = common_vendor.reactive({
|
||||
goods_id: 0,
|
||||
address_info: {}
|
||||
});
|
||||
const fromStr = common_vendor.ref("");
|
||||
common_vendor.onLoad((options) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/preview.vue:186", "🚀 ~ from:", options.from);
|
||||
fromStr.value = options.from;
|
||||
common_vendor.index.__f__("log", "at pages/order/preview.vue:188", "🚀 ~ ids:", options.ids);
|
||||
form.goods_id = options.ids;
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
common_vendor.index.__f__("log", "at pages/order/preview.vue:196", "🚀 ~ onShowfrom:", fromStr.value);
|
||||
if (fromStr.value === "list" || fromStr.value === "item") {
|
||||
api_order.fetchOrderPreview(form).then((res) => {
|
||||
Object.assign(list, res.goods_list);
|
||||
Object.assign(form.address_info, res.address_info);
|
||||
order_total_price.value = res.order_total_price;
|
||||
order_total_num.value = res.order_total_num;
|
||||
});
|
||||
}
|
||||
});
|
||||
common_vendor.onHide(() => {
|
||||
fromStr.value = "";
|
||||
});
|
||||
const onSubmitClick = () => {
|
||||
var _a;
|
||||
if (!((_a = form.address_info) == null ? void 0 : _a.address_id)) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请选择收货地址",
|
||||
icon: "none"
|
||||
});
|
||||
return;
|
||||
}
|
||||
api_order.fetchOrderbuyNow(form).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/order/preview.vue:223", res);
|
||||
common_vendor.index.redirectTo({
|
||||
url: "/pages/order/detail?id=" + res.order_id,
|
||||
success: (res2) => {
|
||||
},
|
||||
fail: () => {
|
||||
},
|
||||
complete: () => {
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
var _a, _b;
|
||||
return common_vendor.e({
|
||||
a: !((_a = form.address_info) == null ? void 0 : _a.address_id)
|
||||
}, !((_b = form.address_info) == null ? void 0 : _b.address_id) ? {
|
||||
b: common_vendor.o(chooseAddress),
|
||||
c: common_vendor.p({
|
||||
title: "添加地址",
|
||||
["is-link"]: true
|
||||
})
|
||||
} : {
|
||||
d: common_vendor.o(chooseAddress),
|
||||
e: common_vendor.p({
|
||||
title: form.address_info.user_name + " " + form.address_info.tel_number,
|
||||
["is-link"]: true,
|
||||
["sub-title"]: form.address_info.province_name + form.address_info.city_name + form.address_info.county_name + form.address_info.street_name + form.address_info.detail_info_new
|
||||
})
|
||||
}, {
|
||||
f: common_vendor.f(list, (goods, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(goods.degree.degree_name),
|
||||
b: "2ea27d69-5-" + i0 + "," + ("2ea27d69-4-" + i0),
|
||||
c: common_vendor.t(goods.goods_name),
|
||||
d: common_vendor.t(goods.goods_no),
|
||||
e: "2ea27d69-6-" + i0 + "," + ("2ea27d69-4-" + i0),
|
||||
f: common_vendor.p({
|
||||
price: goods.goods_price,
|
||||
size: "small",
|
||||
["need-symbol"]: true
|
||||
}),
|
||||
g: index,
|
||||
h: "2ea27d69-4-" + i0 + ",2ea27d69-3"
|
||||
};
|
||||
}),
|
||||
g: common_vendor.p({
|
||||
["custom-color"]: "#1a1a1a"
|
||||
}),
|
||||
h: common_vendor.p({
|
||||
center: true
|
||||
}),
|
||||
i: common_vendor.t(order_total_num.value),
|
||||
j: common_vendor.p({
|
||||
price: order_total_price.value,
|
||||
["need-symbol"]: true
|
||||
}),
|
||||
k: common_vendor.p({
|
||||
size: "large",
|
||||
price: order_total_price.value,
|
||||
["need-symbol"]: true
|
||||
}),
|
||||
l: common_vendor.o(onSubmitClick),
|
||||
m: common_vendor.p({
|
||||
type: "primary"
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2ea27d69"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order/preview.js.map
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "提交订单",
|
||||
"usingComponents": {
|
||||
"nut-cell": "../../uni_modules/nutui-uni/components/cell/cell",
|
||||
"nut-cell-group": "../../uni_modules/nutui-uni/components/cellgroup/cellgroup",
|
||||
"nut-tag": "../../uni_modules/nutui-uni/components/tag/tag",
|
||||
"nut-price": "../../uni_modules/nutui-uni/components/price/price",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="page-content data-v-2ea27d69"><nut-cell-group class="data-v-2ea27d69" u-s="{{['d']}}" u-i="2ea27d69-0" bind:__l="__l"><nut-cell wx:if="{{a}}" class="data-v-2ea27d69" bindclick="{{b}}" u-i="2ea27d69-1,2ea27d69-0" bind:__l="__l" u-p="{{c}}"></nut-cell><nut-cell wx:else class="data-v-2ea27d69" bindclick="{{d}}" u-i="2ea27d69-2,2ea27d69-0" bind:__l="__l" u-p="{{e||''}}"></nut-cell></nut-cell-group><nut-cell-group class="data-v-2ea27d69" u-s="{{['d']}}" u-i="2ea27d69-3" bind:__l="__l"><nut-cell wx:for="{{f}}" wx:for-item="goods" wx:key="g" class="data-v-2ea27d69" u-s="{{['title','link']}}" u-i="{{goods.h}}" bind:__l="__l" u-p="{{h}}"><view class="goods-info-row data-v-2ea27d69" slot="title"><view class="left-text data-v-2ea27d69"><view class="goods-name data-v-2ea27d69"><nut-tag wx:if="{{g}}" class="data-v-2ea27d69" u-s="{{['d']}}" u-i="{{goods.b}}" bind:__l="__l" u-p="{{g}}">{{goods.a}}</nut-tag><text class="data-v-2ea27d69" style="margin-left:10rpx">{{goods.c}}</text></view><text class="goods-no data-v-2ea27d69">串号:{{goods.d}}</text></view></view><nut-price class="data-v-2ea27d69" u-i="{{goods.e}}" bind:__l="__l" u-p="{{goods.f}}" slot="link"/></nut-cell></nut-cell-group><nut-cell-group class="data-v-2ea27d69" u-s="{{['d']}}" u-i="2ea27d69-7" bind:__l="__l"><nut-cell class="data-v-2ea27d69" u-s="{{['d']}}" u-i="2ea27d69-8,2ea27d69-7" bind:__l="__l"><view class="total-price-inner data-v-2ea27d69"><text class="data-v-2ea27d69">件数</text><text class="data-v-2ea27d69">{{i}}件</text></view></nut-cell><nut-cell class="data-v-2ea27d69" u-s="{{['d']}}" u-i="2ea27d69-9,2ea27d69-7" bind:__l="__l"><view class="total-price-inner data-v-2ea27d69"><text class="data-v-2ea27d69">商品总额</text><nut-price wx:if="{{j}}" class="data-v-2ea27d69" u-i="2ea27d69-10,2ea27d69-9" bind:__l="__l" u-p="{{j}}"/></view></nut-cell></nut-cell-group><view class="bottom-submit-inner data-v-2ea27d69"><view class="bottom-submit-inner-info data-v-2ea27d69"><text class="data-v-2ea27d69">合计:</text><nut-price wx:if="{{k}}" class="data-v-2ea27d69" u-i="2ea27d69-11" bind:__l="__l" u-p="{{k}}"/></view><view class="bottom-submit-inner-btn data-v-2ea27d69"><nut-button wx:if="{{m}}" class="data-v-2ea27d69" u-s="{{['d']}}" bindclick="{{l}}" u-i="2ea27d69-12" bind:__l="__l" u-p="{{m}}">确认下单</nut-button></view></view></view>
|
||||
@@ -1,107 +0,0 @@
|
||||
/**
|
||||
* 这里是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 */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.page-content.data-v-2ea27d69 {
|
||||
min-height: calc(100vh - 60px);
|
||||
background-color: #f2f3f5;
|
||||
padding: 20rpx;
|
||||
padding-bottom: 140rpx;
|
||||
}
|
||||
|
||||
/* 信息行布局 */
|
||||
.goods-info-row.data-v-2ea27d69 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 10rpx;
|
||||
/* 左侧文字样式 */
|
||||
/* 右侧价格样式 */
|
||||
}
|
||||
.goods-info-row .left-text.data-v-2ea27d69 {
|
||||
flex: 1;
|
||||
}
|
||||
.goods-info-row .goods-name.data-v-2ea27d69 {
|
||||
font-size: 30rpx;
|
||||
color: #000000;
|
||||
display: block;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
.goods-info-row .goods-no.data-v-2ea27d69 {
|
||||
font-size: 26rpx;
|
||||
color: #000000;
|
||||
display: block;
|
||||
}
|
||||
.goods-info-row .price.data-v-2ea27d69 {
|
||||
margin-left: 20rpx;
|
||||
align-self: center;
|
||||
/* 垂直居中在两行文字之间 */
|
||||
}
|
||||
.bottom-submit-inner.data-v-2ea27d69 {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
height: 120rpx;
|
||||
background: #fff;
|
||||
width: calc(100% - 40rpx);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin: 0 auto;
|
||||
padding: 15rpx 20rpx;
|
||||
}
|
||||
.total-price-inner.data-v-2ea27d69 {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.total-price-inner view.data-v-2ea27d69:nth-child(2) {
|
||||
color: #fa2c19;
|
||||
}
|
||||
@@ -120,9 +120,10 @@
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.room-info .room-id.data-v-2f35fb20 {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.room-info .remark.data-v-2f35fb20 {
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.room-info .room-id.data-v-2f35fb20 {
|
||||
font-size: 26rpx;
|
||||
padding-top: 40rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user