处理数据看板
This commit is contained in:
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,77 +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-6b23c96c {
|
||||
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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user