1
This commit is contained in:
@@ -4,21 +4,15 @@ const api_goods = require("../../api/goods.js");
|
||||
const utils_helper = require("../../utils/helper.js");
|
||||
if (!Array) {
|
||||
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
|
||||
const _easycom_nut_searchbar2 = common_vendor.resolveComponent("nut-searchbar");
|
||||
const _easycom_nut_menu_item2 = common_vendor.resolveComponent("nut-menu-item");
|
||||
const _easycom_nut_menu2 = common_vendor.resolveComponent("nut-menu");
|
||||
const _easycom_nut_tag2 = common_vendor.resolveComponent("nut-tag");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_nut_button2 + _easycom_nut_searchbar2 + _easycom_nut_menu_item2 + _easycom_nut_menu2 + _easycom_nut_tag2 + _easycom_z_paging2)();
|
||||
(_easycom_nut_button2 + _easycom_nut_tag2 + _easycom_z_paging2)();
|
||||
}
|
||||
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
|
||||
const _easycom_nut_searchbar = () => "../../uni_modules/nutui-uni/components/searchbar/searchbar.js";
|
||||
const _easycom_nut_menu_item = () => "../../uni_modules/nutui-uni/components/menuitem/menuitem.js";
|
||||
const _easycom_nut_menu = () => "../../uni_modules/nutui-uni/components/menu/menu.js";
|
||||
const _easycom_nut_tag = () => "../../uni_modules/nutui-uni/components/tag/tag.js";
|
||||
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
||||
if (!Math) {
|
||||
(_easycom_nut_button + _easycom_nut_searchbar + _easycom_nut_menu_item + _easycom_nut_menu + _easycom_nut_tag + _easycom_z_paging)();
|
||||
(_easycom_nut_button + _easycom_nut_tag + _easycom_z_paging)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "goodsList",
|
||||
@@ -30,9 +24,9 @@ const _sfc_main = {
|
||||
};
|
||||
const paging = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const selectPriceSortRef = common_vendor.ref(null);
|
||||
const selectDegreeRef = common_vendor.ref(null);
|
||||
const selectProductRef = common_vendor.ref(null);
|
||||
common_vendor.ref(null);
|
||||
common_vendor.ref(null);
|
||||
common_vendor.ref(null);
|
||||
const state = common_vendor.reactive({
|
||||
type_params: [],
|
||||
// 产品类型
|
||||
@@ -72,113 +66,10 @@ const _sfc_main = {
|
||||
search_val: ""
|
||||
// 搜索
|
||||
});
|
||||
const onSearch = () => {
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:241", "搜索:", state.search_val);
|
||||
paging.value.reload();
|
||||
};
|
||||
const onClear = () => {
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:247", "搜索:", state.search_val);
|
||||
paging.value.reload();
|
||||
};
|
||||
const onResetProduct = () => {
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:255", "重置产品");
|
||||
state.type_id = 1;
|
||||
state.type_name = "手机";
|
||||
state.brand_id = 0;
|
||||
state.brand_name = "全部";
|
||||
state.product_ids = [0];
|
||||
state.product_name = "机型";
|
||||
};
|
||||
const onConfirmProduct = () => {
|
||||
var _a;
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:265", "当前产品类型", {
|
||||
"type_id": state.type_id,
|
||||
"type_name": state.type_name,
|
||||
"brand_id": state.brand_id,
|
||||
"brand_name": state.brand_name,
|
||||
"product_ids": state.product_ids
|
||||
});
|
||||
(_a = selectProductRef.value) == null ? void 0 : _a.toggle(false);
|
||||
paging.value.reload();
|
||||
};
|
||||
const selectProduct = (product) => {
|
||||
if (product.value === 0) {
|
||||
state.product_ids = [0];
|
||||
} else {
|
||||
state.product_ids = state.product_ids.filter((e) => e != 0);
|
||||
const index = state.product_ids.indexOf(product.value);
|
||||
if (index > -1) {
|
||||
state.product_ids.splice(index, 1);
|
||||
if (state.product_ids.length === 0) {
|
||||
state.product_ids = [0];
|
||||
}
|
||||
} else {
|
||||
state.product_ids.push(product.value);
|
||||
}
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:294", product);
|
||||
};
|
||||
const productOptions = common_vendor.computed(() => {
|
||||
common_vendor.computed(() => {
|
||||
var _a;
|
||||
return (_a = state == null ? void 0 : state.o_drop_down_options[state.type_id]) == null ? void 0 : _a.children[state.brand_id].children;
|
||||
});
|
||||
const selectBrand = (brand) => {
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:304", brand);
|
||||
state.brand_id = brand.value;
|
||||
state.brand_name = brand.label;
|
||||
state.product_ids = [0];
|
||||
state.product_name = brand.label;
|
||||
};
|
||||
const selectType = (type) => {
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:314", type);
|
||||
state.type_id = type.type_id;
|
||||
state.type_name = type.name;
|
||||
state.brand_id = 0;
|
||||
state.brand_name = "全部";
|
||||
state.product_ids = [0];
|
||||
};
|
||||
const selectPriceSort = (item) => {
|
||||
var _a;
|
||||
if (state.price_sort !== item.value) {
|
||||
state.price_sort = item.value;
|
||||
state.price_sort_name = item.text;
|
||||
} else {
|
||||
state.price_sort_name = "默认排序";
|
||||
state.price_sort = "";
|
||||
}
|
||||
(_a = selectPriceSortRef.value) == null ? void 0 : _a.toggle(false);
|
||||
paging.value.reload();
|
||||
};
|
||||
const selectDegree = (item) => {
|
||||
const index = state.degree_ids.indexOf(item.value);
|
||||
if (index > -1) {
|
||||
state.degree_ids.splice(index, 1);
|
||||
} else {
|
||||
state.degree_ids.push(item.value);
|
||||
}
|
||||
if (state.degree_ids.length > 0) {
|
||||
state.degree_name = "已选" + state.degree_ids.length.toString() + "项";
|
||||
} else {
|
||||
state.degree_name = "成色";
|
||||
}
|
||||
};
|
||||
const onResetDegree = () => {
|
||||
var _a;
|
||||
state.degree_ids = [];
|
||||
state.degree_name = "成色";
|
||||
(_a = selectDegreeRef.value) == null ? void 0 : _a.toggle(false);
|
||||
paging.value.reload();
|
||||
};
|
||||
const onConfirmDegree = () => {
|
||||
var _a;
|
||||
if (state.degree_ids.length > 0) {
|
||||
state.degree_name = "已选" + state.degree_ids.length.toString() + "项";
|
||||
} else {
|
||||
state.degree_name = "成色";
|
||||
}
|
||||
(_a = selectDegreeRef.value) == null ? void 0 : _a.toggle(false);
|
||||
paging.value.reload();
|
||||
};
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
const params = {
|
||||
pageSize,
|
||||
@@ -190,18 +81,18 @@ const _sfc_main = {
|
||||
product_ids: state.product_ids,
|
||||
search: state.search_val
|
||||
};
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:387", params);
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:299", params);
|
||||
api_goods.fetchSysGoodsList(params).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:389", "res=>", res.list);
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:301", "res=>", res.list);
|
||||
paging.value.complete(res.list);
|
||||
}).catch((res) => {
|
||||
paging.value.complete(false);
|
||||
});
|
||||
};
|
||||
const init = () => {
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:406", "init111");
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:318", "init111");
|
||||
api_goods.fetchFilterParmas().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:409", res);
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:321", res);
|
||||
let degree_params = res.degree_list;
|
||||
state.degree_params = degree_params.reduce((it, cit) => {
|
||||
it.push({
|
||||
@@ -216,8 +107,8 @@ const _sfc_main = {
|
||||
});
|
||||
};
|
||||
common_vendor.onShow(() => {
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:428", "onshow---");
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:429", "paging.value", paging.value);
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:340", "onshow---");
|
||||
common_vendor.index.__f__("log", "at pages/config/goodsList.vue:341", "paging.value", paging.value);
|
||||
if (paging.value) {
|
||||
paging.value.refresh();
|
||||
}
|
||||
@@ -226,7 +117,6 @@ const _sfc_main = {
|
||||
init();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
var _a;
|
||||
return {
|
||||
a: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/config/goodsAdd")),
|
||||
b: common_vendor.p({
|
||||
@@ -234,107 +124,13 @@ const _sfc_main = {
|
||||
block: true,
|
||||
plain: true
|
||||
}),
|
||||
c: common_vendor.o(onSearch),
|
||||
d: common_vendor.p({
|
||||
type: "primary"
|
||||
}),
|
||||
e: common_vendor.o(onSearch),
|
||||
f: common_vendor.o(onClear),
|
||||
g: common_vendor.o(($event) => state.search_val = $event),
|
||||
h: common_vendor.p({
|
||||
placeholder: "请输入商品名称",
|
||||
clearable: true,
|
||||
["input-background"]: "#eee",
|
||||
modelValue: state.search_val
|
||||
}),
|
||||
i: common_vendor.f(state.price_sort_params, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.text),
|
||||
b: state.price_sort === item.value ? 1 : "",
|
||||
c: idx,
|
||||
d: common_vendor.o(($event) => selectPriceSort(item), idx)
|
||||
};
|
||||
}),
|
||||
j: common_vendor.sr(selectPriceSortRef, "d044a737-5,d044a737-4", {
|
||||
"k": "selectPriceSortRef"
|
||||
}),
|
||||
k: common_vendor.p({
|
||||
title: state.price_sort_name
|
||||
}),
|
||||
l: common_vendor.f(state.type_params, (type, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(type.name),
|
||||
b: idx,
|
||||
c: common_vendor.o(($event) => selectType(type), idx),
|
||||
d: state.type_id == type.type_id ? 1 : ""
|
||||
};
|
||||
}),
|
||||
m: common_vendor.f((_a = state == null ? void 0 : state.drop_down_options[state.type_id]) == null ? void 0 : _a.children, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.label),
|
||||
b: idx,
|
||||
c: common_vendor.o(($event) => selectBrand(item), idx),
|
||||
d: item.value == state.brand_id ? 1 : ""
|
||||
};
|
||||
}),
|
||||
n: common_vendor.f(productOptions.value, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.label),
|
||||
b: idx,
|
||||
c: state.product_ids.includes(item.value) ? 1 : "",
|
||||
d: common_vendor.o(($event) => selectProduct(item), idx)
|
||||
};
|
||||
}),
|
||||
o: common_vendor.o(($event) => onResetProduct()),
|
||||
p: common_vendor.p({
|
||||
plain: true,
|
||||
type: "default"
|
||||
}),
|
||||
q: common_vendor.o(($event) => onConfirmProduct()),
|
||||
r: common_vendor.p({
|
||||
block: true,
|
||||
type: "primary"
|
||||
}),
|
||||
s: common_vendor.sr(selectProductRef, "d044a737-6,d044a737-4", {
|
||||
"k": "selectProductRef"
|
||||
}),
|
||||
t: common_vendor.p({
|
||||
title: state.product_name
|
||||
}),
|
||||
v: common_vendor.f(state.degree_params, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.text),
|
||||
b: state.degree_ids.includes(item.value) ? 1 : "",
|
||||
c: idx,
|
||||
d: common_vendor.o(($event) => selectDegree(item), idx)
|
||||
};
|
||||
}),
|
||||
w: common_vendor.o(($event) => onResetDegree()),
|
||||
x: common_vendor.p({
|
||||
plain: true,
|
||||
type: "default"
|
||||
}),
|
||||
y: common_vendor.o(($event) => onConfirmDegree()),
|
||||
z: common_vendor.p({
|
||||
block: true,
|
||||
type: "primary"
|
||||
}),
|
||||
A: common_vendor.sr(selectDegreeRef, "d044a737-9,d044a737-4", {
|
||||
"k": "selectDegreeRef"
|
||||
}),
|
||||
B: common_vendor.p({
|
||||
title: state.degree_name
|
||||
}),
|
||||
C: common_vendor.p({
|
||||
["title-class"]: "titleClass"
|
||||
}),
|
||||
D: common_vendor.s("top:0px"),
|
||||
E: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
c: common_vendor.s("top:0px"),
|
||||
d: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: getImg(item),
|
||||
b: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/config/goodsDetail?id=" + item.goods_id), index),
|
||||
c: common_vendor.t(item.degree.degree_name),
|
||||
d: "d044a737-12-" + i0 + ",d044a737-0",
|
||||
d: "d044a737-2-" + i0 + ",d044a737-0",
|
||||
e: common_vendor.t(item.goods_name),
|
||||
f: common_vendor.t(item.content),
|
||||
g: common_vendor.t(item.goods_price),
|
||||
@@ -342,7 +138,7 @@ const _sfc_main = {
|
||||
i: item.status.value == 10 || item.status.value == 20
|
||||
}, item.status.value == 10 || item.status.value == 20 ? {
|
||||
j: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/config/goodsEdit?id=" + item.goods_id), index),
|
||||
k: "d044a737-13-" + i0 + ",d044a737-0",
|
||||
k: "d044a737-3-" + i0 + ",d044a737-0",
|
||||
l: common_vendor.p({
|
||||
size: "small",
|
||||
type: "primary"
|
||||
@@ -351,7 +147,7 @@ const _sfc_main = {
|
||||
m: item.status.value == 40
|
||||
}, item.status.value == 40 ? {
|
||||
n: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/config/goodsEdit?id=" + item.goods_id), index),
|
||||
o: "d044a737-14-" + i0 + ",d044a737-0",
|
||||
o: "d044a737-4-" + i0 + ",d044a737-0",
|
||||
p: common_vendor.p({
|
||||
size: "small",
|
||||
type: "primary"
|
||||
@@ -360,15 +156,15 @@ const _sfc_main = {
|
||||
q: index
|
||||
});
|
||||
}),
|
||||
F: common_vendor.p({
|
||||
e: common_vendor.p({
|
||||
["custom-color"]: "#1a1a1a"
|
||||
}),
|
||||
G: common_vendor.sr(paging, "d044a737-0", {
|
||||
f: common_vendor.sr(paging, "d044a737-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
H: common_vendor.o(queryList),
|
||||
I: common_vendor.o(($event) => dataList.value = $event),
|
||||
J: common_vendor.p({
|
||||
g: common_vendor.o(queryList),
|
||||
h: common_vendor.o(($event) => dataList.value = $event),
|
||||
i: common_vendor.p({
|
||||
["refresher-enabled"]: false,
|
||||
["auto-clean-list-when-reload"]: false,
|
||||
["auto-scroll-to-top-when-reload"]: false,
|
||||
|
||||
@@ -3,9 +3,6 @@
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
|
||||
"nut-searchbar": "../../uni_modules/nutui-uni/components/searchbar/searchbar",
|
||||
"nut-menu-item": "../../uni_modules/nutui-uni/components/menuitem/menuitem",
|
||||
"nut-menu": "../../uni_modules/nutui-uni/components/menu/menu",
|
||||
"nut-tag": "../../uni_modules/nutui-uni/components/tag/tag",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
923
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
923
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
@@ -1,892 +1,81 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_house_goods = require("../../api/house_goods.js");
|
||||
const api_goods = require("../../api/goods.js");
|
||||
const api_config = require("../../api/config.js");
|
||||
const utils_helper = require("../../utils/helper.js");
|
||||
if (!Array) {
|
||||
const _easycom_nut_noticebar2 = common_vendor.resolveComponent("nut-noticebar");
|
||||
const _easycom_z_tabs2 = common_vendor.resolveComponent("z-tabs");
|
||||
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
|
||||
const _easycom_nut_searchbar2 = common_vendor.resolveComponent("nut-searchbar");
|
||||
const _easycom_nut_menu_item2 = common_vendor.resolveComponent("nut-menu-item");
|
||||
const _easycom_nut_menu2 = common_vendor.resolveComponent("nut-menu");
|
||||
const _easycom_nut_tag2 = common_vendor.resolveComponent("nut-tag");
|
||||
const _easycom_nut_price2 = common_vendor.resolveComponent("nut-price");
|
||||
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
|
||||
(_easycom_nut_noticebar2 + _easycom_z_tabs2 + _easycom_nut_button2 + _easycom_nut_searchbar2 + _easycom_nut_menu_item2 + _easycom_nut_menu2 + _easycom_nut_tag2 + _easycom_nut_price2 + _easycom_z_paging2)();
|
||||
const _easycom_nut_grid_item2 = common_vendor.resolveComponent("nut-grid-item");
|
||||
const _easycom_nut_grid2 = common_vendor.resolveComponent("nut-grid");
|
||||
(_easycom_nut_button2 + _easycom_nut_grid_item2 + _easycom_nut_grid2)();
|
||||
}
|
||||
const _easycom_nut_noticebar = () => "../../uni_modules/nutui-uni/components/noticebar/noticebar.js";
|
||||
const _easycom_z_tabs = () => "../../uni_modules/z-tabs/components/z-tabs/z-tabs.js";
|
||||
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
|
||||
const _easycom_nut_searchbar = () => "../../uni_modules/nutui-uni/components/searchbar/searchbar.js";
|
||||
const _easycom_nut_menu_item = () => "../../uni_modules/nutui-uni/components/menuitem/menuitem.js";
|
||||
const _easycom_nut_menu = () => "../../uni_modules/nutui-uni/components/menu/menu.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_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
|
||||
const _easycom_nut_grid_item = () => "../../uni_modules/nutui-uni/components/griditem/griditem.js";
|
||||
const _easycom_nut_grid = () => "../../uni_modules/nutui-uni/components/grid/grid.js";
|
||||
if (!Math) {
|
||||
(IndexCustomNavigationbar + _easycom_nut_noticebar + _easycom_z_tabs + _easycom_nut_button + _easycom_nut_searchbar + _easycom_nut_menu_item + _easycom_nut_menu + _easycom_nut_tag + _easycom_nut_price + _easycom_z_paging)();
|
||||
(_easycom_nut_button + _easycom_nut_grid_item + _easycom_nut_grid)();
|
||||
}
|
||||
const IndexCustomNavigationbar = () => "../../components/index-custom-navigationbar/index.js";
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
const statusBarHeight = common_vendor.index.getWindowInfo().statusBarHeight;
|
||||
const windowWidth = common_vendor.index.getWindowInfo().windowWidth;
|
||||
const menu_top = common_vendor.ref(0);
|
||||
const menu_bottom = common_vendor.ref(0);
|
||||
const menu_button_info = common_vendor.index.getMenuButtonBoundingClientRect();
|
||||
menu_top.value = menu_button_info.top;
|
||||
menu_bottom.value = menu_button_info.bottom;
|
||||
const navbarHeight = menu_bottom.value - statusBarHeight + (menu_top.value - statusBarHeight);
|
||||
const getImg = (goods) => {
|
||||
var _a, _b, _c, _d, _e;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:332", "====>tabIndex", tabIndex.value);
|
||||
if (tabIndex.value === 0) {
|
||||
const url = (_c = (_b = (_a = goods == null ? void 0 : goods.goods_house) == null ? void 0 : _a.image) == null ? void 0 : _b[0]) == null ? void 0 : _c.file_path;
|
||||
return url ? url + "?imageView2/1/w/200/h/200" : "";
|
||||
} else {
|
||||
const url = (_e = (_d = goods == null ? void 0 : goods.image) == null ? void 0 : _d[0]) == null ? void 0 : _e.file_path;
|
||||
return url ? url + "?imageView2/1/w/200/h/200" : "";
|
||||
const rooms = [
|
||||
{
|
||||
name: "房间名称 1"
|
||||
},
|
||||
{
|
||||
name: "房间名称 2"
|
||||
},
|
||||
{
|
||||
name: "房间名称 3"
|
||||
},
|
||||
{
|
||||
name: "房间名称 4"
|
||||
},
|
||||
{
|
||||
name: "房间名称 5"
|
||||
},
|
||||
{
|
||||
name: "房间名称 6"
|
||||
},
|
||||
{
|
||||
name: "房间名称 7"
|
||||
},
|
||||
{
|
||||
name: "房间名称 8"
|
||||
},
|
||||
{
|
||||
name: "房间名称 9"
|
||||
}
|
||||
};
|
||||
const audit = common_vendor.ref(true);
|
||||
const shopName = common_vendor.ref("");
|
||||
const shopDesc = common_vendor.ref("");
|
||||
const bulletinTxt = common_vendor.ref("");
|
||||
const isWarehouse = common_vendor.ref(false);
|
||||
const getConfig = () => {
|
||||
api_config.fetchGetConfig().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:361", "getConfig=====>", res);
|
||||
audit.value = res.appConfig.is_audit == 1;
|
||||
shopName.value = res.appConfig.shop_name;
|
||||
shopDesc.value = res.appConfig.shop_desc;
|
||||
bulletinTxt.value = res.appConfig.bulletin_txt;
|
||||
isWarehouse.value = res.appConfig.is_warehouse == 1;
|
||||
});
|
||||
};
|
||||
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/index/index.vue:385", "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/index/index.vue:404", "开启整仓调价");
|
||||
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/index/index.vue:435", "未开启整仓调价");
|
||||
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 tabList = common_vendor.ref(["仓库现货", "店内现货"]);
|
||||
const tabIndex = common_vendor.ref(0);
|
||||
const tabsChange = (index) => {
|
||||
tabIndex.value = index;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:495", tabIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:497", "切换tab 重置选中排序");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:498", "切换tab 重置选中产品");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:499", "切换tab 重置选中成色");
|
||||
if (tabIndex.value === 0) {
|
||||
dataList.value = [];
|
||||
house_state.price_sort_name = "默认排序";
|
||||
house_state.price_sort = "";
|
||||
house_state.type_id = 1;
|
||||
house_state.type_name = "手机";
|
||||
house_state.brand_id = 0;
|
||||
house_state.brand_name = "全部";
|
||||
house_state.product_ids = [0];
|
||||
house_state.product_name = "机型";
|
||||
house_state.degree_ids = [];
|
||||
house_state.degree_name = "成色";
|
||||
} else {
|
||||
dataList.value = [];
|
||||
state.price_sort_name = "默认排序";
|
||||
state.price_sort = "";
|
||||
state.type_id = 1;
|
||||
state.type_name = "手机";
|
||||
state.brand_id = 0;
|
||||
state.brand_name = "全部";
|
||||
state.product_ids = [0];
|
||||
state.product_name = "机型";
|
||||
state.degree_ids = [];
|
||||
state.degree_name = "成色";
|
||||
}
|
||||
paging.value.reload();
|
||||
};
|
||||
const paging = common_vendor.ref(null);
|
||||
const dataList = common_vendor.ref([]);
|
||||
const user_goods_cart_ids = common_vendor.ref([]);
|
||||
const goods_cart_ids = common_vendor.ref([]);
|
||||
const selectPriceSortRef = common_vendor.ref(null);
|
||||
const selectDegreeRef = common_vendor.ref(null);
|
||||
const selectProductRef = common_vendor.ref(null);
|
||||
const house_state = common_vendor.reactive({
|
||||
type_params: [],
|
||||
// 产品类型
|
||||
drop_down_options: [],
|
||||
// 产品类型下的品牌列表
|
||||
o_drop_down_options: [],
|
||||
// 价格排序
|
||||
price_sort_params: [
|
||||
{
|
||||
text: "默认排序",
|
||||
value: ""
|
||||
},
|
||||
{
|
||||
text: "价格升序",
|
||||
value: "ascend"
|
||||
},
|
||||
{
|
||||
text: "价格降序",
|
||||
value: "descend"
|
||||
}
|
||||
],
|
||||
// 成色所有选项
|
||||
degree_params: [],
|
||||
price_sort: "",
|
||||
price_sort_name: "默认排序",
|
||||
degree_ids: [],
|
||||
degree_name: "成色",
|
||||
product_name: "机型",
|
||||
type_id: 1,
|
||||
// 产品类型id 默认 1 手机
|
||||
type_name: "手机",
|
||||
brand_id: 0,
|
||||
// 品牌id // 默认 0 全部
|
||||
brand_name: "全部",
|
||||
product_ids: [0],
|
||||
// 机型ids 默认 0 全部
|
||||
search_val: ""
|
||||
// 搜索
|
||||
});
|
||||
const state = common_vendor.reactive({
|
||||
type_params: [],
|
||||
// 产品类型
|
||||
drop_down_options: [],
|
||||
// 产品类型下的品牌列表
|
||||
o_drop_down_options: [],
|
||||
// 价格排序
|
||||
price_sort_params: [
|
||||
{
|
||||
text: "默认排序",
|
||||
value: ""
|
||||
},
|
||||
{
|
||||
text: "价格升序",
|
||||
value: "ascend"
|
||||
},
|
||||
{
|
||||
text: "价格降序",
|
||||
value: "descend"
|
||||
}
|
||||
],
|
||||
// 成色所有选项
|
||||
degree_params: [],
|
||||
price_sort: "",
|
||||
price_sort_name: "默认排序",
|
||||
degree_ids: [],
|
||||
degree_name: "成色",
|
||||
product_name: "机型",
|
||||
type_id: 1,
|
||||
// 产品类型id 默认 1 手机
|
||||
type_name: "手机",
|
||||
brand_id: 0,
|
||||
// 品牌id // 默认 0 全部
|
||||
brand_name: "全部",
|
||||
product_ids: [0],
|
||||
// 机型ids 默认 0 全部
|
||||
search_val: ""
|
||||
// 搜索
|
||||
});
|
||||
const onSearch = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:679", "搜索:", state.search_val);
|
||||
paging.value.reload();
|
||||
};
|
||||
const onClear = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:685", "搜索:", state.search_val);
|
||||
paging.value.reload();
|
||||
};
|
||||
const onResetProduct = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:693", "====>tabIndex", tabIndex.value);
|
||||
if (tabIndex.value === 0) {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:695", "重置产品");
|
||||
house_state.type_id = 1;
|
||||
house_state.type_name = "手机";
|
||||
house_state.brand_id = 0;
|
||||
house_state.brand_name = "全部";
|
||||
house_state.product_ids = [0];
|
||||
house_state.product_name = "机型";
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:703", "重置产品");
|
||||
state.type_id = 1;
|
||||
state.type_name = "手机";
|
||||
state.brand_id = 0;
|
||||
state.brand_name = "全部";
|
||||
state.product_ids = [0];
|
||||
state.product_name = "机型";
|
||||
}
|
||||
};
|
||||
const onConfirmProduct = () => {
|
||||
var _a;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:715", "====>tabIndex", tabIndex.value);
|
||||
if (tabIndex.value === 0) {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:717", "当前仓库产品类型", {
|
||||
"type_id": house_state.type_id,
|
||||
"type_name": house_state.type_name,
|
||||
"brand_id": house_state.brand_id,
|
||||
"brand_name": house_state.brand_name,
|
||||
"product_ids": house_state.product_ids
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:725", "当前自营产品类型", {
|
||||
"type_id": state.type_id,
|
||||
"type_name": state.type_name,
|
||||
"brand_id": state.brand_id,
|
||||
"brand_name": state.brand_name,
|
||||
"product_ids": state.product_ids
|
||||
});
|
||||
}
|
||||
(_a = selectProductRef.value) == null ? void 0 : _a.toggle(false);
|
||||
paging.value.reload();
|
||||
};
|
||||
const selectProduct = (product) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:742", "====>tabIndex", tabIndex.value);
|
||||
if (tabIndex.value === 0) {
|
||||
if (product.value === 0) {
|
||||
house_state.product_ids = [0];
|
||||
} else {
|
||||
house_state.product_ids = house_state.product_ids.filter((e) => e != 0);
|
||||
const index = house_state.product_ids.indexOf(product.value);
|
||||
if (index > -1) {
|
||||
house_state.product_ids.splice(index, 1);
|
||||
if (house_state.product_ids.length === 0) {
|
||||
house_state.product_ids = [0];
|
||||
}
|
||||
} else {
|
||||
house_state.product_ids.push(product.value);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (product.value === 0) {
|
||||
state.product_ids = [0];
|
||||
} else {
|
||||
state.product_ids = state.product_ids.filter((e) => e != 0);
|
||||
const index = state.product_ids.indexOf(product.value);
|
||||
if (index > -1) {
|
||||
state.product_ids.splice(index, 1);
|
||||
if (state.product_ids.length === 0) {
|
||||
state.product_ids = [0];
|
||||
}
|
||||
} else {
|
||||
state.product_ids.push(product.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:776", product);
|
||||
};
|
||||
const productOptions = common_vendor.computed(() => {
|
||||
var _a, _b;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:780", "====>tabIndex", tabIndex.value);
|
||||
if (tabIndex.value === 0) {
|
||||
return (_a = house_state == null ? void 0 : house_state.o_drop_down_options[house_state.type_id]) == null ? void 0 : _a.children[house_state.brand_id].children;
|
||||
} else {
|
||||
return (_b = state == null ? void 0 : state.o_drop_down_options[state.type_id]) == null ? void 0 : _b.children[state.brand_id].children;
|
||||
}
|
||||
});
|
||||
const selectBrand = (brand) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:790", "====>tabIndex", tabIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:791", "====>brand", brand);
|
||||
if (tabIndex.value === 0) {
|
||||
house_state.brand_id = brand.value;
|
||||
house_state.brand_name = brand.label;
|
||||
house_state.product_ids = [0];
|
||||
house_state.product_name = brand.label;
|
||||
} else {
|
||||
state.brand_id = brand.value;
|
||||
state.brand_name = brand.label;
|
||||
state.product_ids = [0];
|
||||
state.product_name = brand.label;
|
||||
}
|
||||
};
|
||||
const selectType = (type) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:811", "====>tabIndex", tabIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:812", "====>type", type);
|
||||
if (tabIndex.value === 0) {
|
||||
house_state.type_id = type.type_id;
|
||||
house_state.type_name = type.name;
|
||||
house_state.brand_id = 0;
|
||||
house_state.brand_name = "全部";
|
||||
house_state.product_ids = [0];
|
||||
} else {
|
||||
state.type_id = type.type_id;
|
||||
state.type_name = type.name;
|
||||
state.brand_id = 0;
|
||||
state.brand_name = "全部";
|
||||
state.product_ids = [0];
|
||||
}
|
||||
};
|
||||
const selectPriceSort = (item) => {
|
||||
var _a;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:836", "====>tabIndex", tabIndex.value);
|
||||
if (tabIndex.value === 0) {
|
||||
if (house_state.price_sort !== item.value) {
|
||||
house_state.price_sort = item.value;
|
||||
house_state.price_sort_name = item.text;
|
||||
} else {
|
||||
house_state.price_sort_name = "默认排序";
|
||||
house_state.price_sort = "";
|
||||
}
|
||||
} else {
|
||||
if (state.price_sort !== item.value) {
|
||||
state.price_sort = item.value;
|
||||
state.price_sort_name = item.text;
|
||||
} else {
|
||||
state.price_sort_name = "默认排序";
|
||||
state.price_sort = "";
|
||||
}
|
||||
}
|
||||
(_a = selectPriceSortRef.value) == null ? void 0 : _a.toggle(false);
|
||||
paging.value.reload();
|
||||
};
|
||||
const selectDegree = (item) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:861", "====>tabIndex", tabIndex.value);
|
||||
if (tabIndex.value === 0) {
|
||||
const index = house_state.degree_ids.indexOf(item.value);
|
||||
if (index > -1) {
|
||||
house_state.degree_ids.splice(index, 1);
|
||||
} else {
|
||||
house_state.degree_ids.push(item.value);
|
||||
}
|
||||
if (house_state.degree_ids.length > 0) {
|
||||
house_state.degree_name = "已选" + house_state.degree_ids.length.toString() + "项";
|
||||
} else {
|
||||
house_state.degree_name = "成色";
|
||||
}
|
||||
} else {
|
||||
const index = state.degree_ids.indexOf(item.value);
|
||||
if (index > -1) {
|
||||
state.degree_ids.splice(index, 1);
|
||||
} else {
|
||||
state.degree_ids.push(item.value);
|
||||
}
|
||||
if (state.degree_ids.length > 0) {
|
||||
state.degree_name = "已选" + state.degree_ids.length.toString() + "项";
|
||||
} else {
|
||||
state.degree_name = "成色";
|
||||
}
|
||||
}
|
||||
};
|
||||
const onResetDegree = () => {
|
||||
var _a;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:891", "====>tabIndex", tabIndex.value);
|
||||
if (tabIndex.value === 0) {
|
||||
house_state.degree_ids = [];
|
||||
house_state.degree_name = "成色";
|
||||
} else {
|
||||
state.degree_ids = [];
|
||||
state.degree_name = "成色";
|
||||
}
|
||||
(_a = selectDegreeRef.value) == null ? void 0 : _a.toggle(false);
|
||||
paging.value.reload();
|
||||
};
|
||||
const onConfirmDegree = () => {
|
||||
var _a;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:905", "====>tabIndex", tabIndex.value);
|
||||
if (tabIndex.value === 0) {
|
||||
if (house_state.degree_ids.length > 0) {
|
||||
house_state.degree_name = "已选" + house_state.degree_ids.length.toString() + "项";
|
||||
} else {
|
||||
house_state.degree_name = "成色";
|
||||
}
|
||||
} else {
|
||||
if (state.degree_ids.length > 0) {
|
||||
state.degree_name = "已选" + state.degree_ids.length.toString() + "项";
|
||||
} else {
|
||||
state.degree_name = "成色";
|
||||
}
|
||||
}
|
||||
(_a = selectDegreeRef.value) == null ? void 0 : _a.toggle(false);
|
||||
paging.value.reload();
|
||||
};
|
||||
const queryList = (pageNo, pageSize) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:928", "====>tabIndex", tabIndex.value);
|
||||
if (tabIndex.value === 0) {
|
||||
const params = {
|
||||
pageSize,
|
||||
page: pageNo,
|
||||
price_sort: house_state.price_sort,
|
||||
degree_ids: house_state.degree_ids,
|
||||
type_id: house_state.type_id,
|
||||
brand_id: house_state.brand_id,
|
||||
product_ids: house_state.product_ids,
|
||||
search: house_state.search_val
|
||||
};
|
||||
api_house_goods.houseFetchGoodsList(params).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:941", res);
|
||||
paging.value.complete(res.list);
|
||||
user_goods_cart_ids.value = res.user_cart_goods_ids;
|
||||
goods_cart_ids.value = res.cart_goods_ids;
|
||||
}).catch((res) => {
|
||||
paging.value.complete(false);
|
||||
user_goods_cart_ids.value = [];
|
||||
goods_cart_ids.value = [];
|
||||
});
|
||||
} else {
|
||||
const params = {
|
||||
pageSize,
|
||||
page: pageNo,
|
||||
price_sort: state.price_sort,
|
||||
degree_ids: state.degree_ids,
|
||||
type_id: state.type_id,
|
||||
brand_id: state.brand_id,
|
||||
product_ids: state.product_ids,
|
||||
search: state.search_val
|
||||
};
|
||||
api_goods.fetchGoodsList(params).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:965", res);
|
||||
paging.value.complete(res.list);
|
||||
user_goods_cart_ids.value = res.user_cart_goods_ids;
|
||||
goods_cart_ids.value = res.cart_goods_ids;
|
||||
}).catch((res) => {
|
||||
paging.value.complete(false);
|
||||
user_goods_cart_ids.value = [];
|
||||
goods_cart_ids.value = [];
|
||||
});
|
||||
}
|
||||
};
|
||||
common_vendor.onShareAppMessage((obj) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:984", "====>tabIndex", tabIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:985", obj);
|
||||
if (tabIndex.value === 0) {
|
||||
if (obj.from == "button") {
|
||||
let goods = obj.target.dataset.goods;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:989", goods);
|
||||
return {
|
||||
title: goods.goods_house.goods_name,
|
||||
imageUrl: goods.goods_house.image[0].file_path,
|
||||
path: "/pages/mall/houseDetail?id=" + goods.goods_id
|
||||
};
|
||||
}
|
||||
} else {
|
||||
if (obj.from == "button") {
|
||||
let goods = obj.target.dataset.goods;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:999", goods);
|
||||
return {
|
||||
title: goods.goods_name,
|
||||
imageUrl: goods.image[0].file_path,
|
||||
path: "/pages/mall/detail?id=" + goods.goods_id
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
const init = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:1033", "init");
|
||||
getConfig();
|
||||
GetPriceRules();
|
||||
api_house_goods.houseFetchFilterParmas().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:1054", "仓库默认筛选项目====>", res);
|
||||
let degree_params = res.degree_list;
|
||||
house_state.degree_params = degree_params.reduce((it, cit) => {
|
||||
it.push({
|
||||
text: cit.degree_name,
|
||||
value: cit.degree_id
|
||||
});
|
||||
return it;
|
||||
}, house_state.degree_params) || [];
|
||||
house_state.type_params = res.type_list;
|
||||
house_state.drop_down_options = res.drop_down_options;
|
||||
house_state.o_drop_down_options = res.o_drop_down_options;
|
||||
});
|
||||
api_goods.fetchFilterParmas().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:1073", "本地默认筛选项目====>", res);
|
||||
let degree_params = res.degree_list;
|
||||
state.degree_params = degree_params.reduce((it, cit) => {
|
||||
it.push({
|
||||
text: cit.degree_name,
|
||||
value: cit.degree_id
|
||||
});
|
||||
return it;
|
||||
}, state.degree_params) || [];
|
||||
state.type_params = res.type_list;
|
||||
state.drop_down_options = res.drop_down_options;
|
||||
state.o_drop_down_options = res.o_drop_down_options;
|
||||
});
|
||||
};
|
||||
common_vendor.onShow(() => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:1093", "onshow---");
|
||||
getConfig();
|
||||
GetPriceRules();
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:1097", "paging.value", paging.value);
|
||||
if (paging.value) {
|
||||
paging.value.refresh();
|
||||
}
|
||||
});
|
||||
common_vendor.onMounted(() => {
|
||||
init();
|
||||
});
|
||||
];
|
||||
return (_ctx, _cache) => {
|
||||
var _a, _b;
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
statusBarHeight: common_vendor.unref(statusBarHeight),
|
||||
windowWidth: common_vendor.unref(windowWidth),
|
||||
navbarHeight,
|
||||
title: shopName.value,
|
||||
desc: shopDesc.value
|
||||
}),
|
||||
return {
|
||||
a: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/index/orderAdd")),
|
||||
b: common_vendor.p({
|
||||
text: bulletinTxt.value,
|
||||
background: `rgba(251, 248, 220, 1)`,
|
||||
["custom-color"]: `#D9500B`
|
||||
type: "primary",
|
||||
block: true
|
||||
}),
|
||||
c: common_vendor.o(tabsChange),
|
||||
d: common_vendor.p({
|
||||
list: tabList.value,
|
||||
["active-color"]: "rgba(233, 100, 67, 1)"
|
||||
c: common_vendor.s("top:0px"),
|
||||
d: common_vendor.f(rooms, (room, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(room.name),
|
||||
b: "1cf27b2a-3-" + i0 + "," + ("1cf27b2a-2-" + i0),
|
||||
c: "1cf27b2a-4-" + i0 + "," + ("1cf27b2a-2-" + i0),
|
||||
d: index,
|
||||
e: "1cf27b2a-2-" + i0 + ",1cf27b2a-1"
|
||||
};
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
type: "primary"
|
||||
}),
|
||||
f: common_vendor.p({
|
||||
type: "success"
|
||||
}),
|
||||
e: tabIndex.value == 0
|
||||
}, tabIndex.value == 0 ? {
|
||||
f: common_vendor.o(onSearch),
|
||||
g: common_vendor.p({
|
||||
type: "primary"
|
||||
}),
|
||||
h: common_vendor.o(onSearch),
|
||||
i: common_vendor.o(onClear),
|
||||
j: common_vendor.o(($event) => house_state.search_val = $event),
|
||||
k: common_vendor.p({
|
||||
placeholder: "请输入商品名称",
|
||||
clearable: true,
|
||||
["input-background"]: "#eee",
|
||||
modelValue: house_state.search_val
|
||||
}),
|
||||
l: common_vendor.f(house_state.price_sort_params, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.text),
|
||||
b: house_state.price_sort === item.value ? 1 : "",
|
||||
c: idx,
|
||||
d: common_vendor.o(($event) => selectPriceSort(item), idx)
|
||||
};
|
||||
}),
|
||||
m: common_vendor.sr(selectPriceSortRef, "1cf27b2a-7,1cf27b2a-6", {
|
||||
"k": "selectPriceSortRef"
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
title: house_state.price_sort_name
|
||||
}),
|
||||
o: common_vendor.f(house_state.type_params, (type, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(type.name),
|
||||
b: idx,
|
||||
c: common_vendor.o(($event) => selectType(type), idx),
|
||||
d: house_state.type_id == type.type_id ? 1 : ""
|
||||
};
|
||||
}),
|
||||
p: common_vendor.f((_a = house_state == null ? void 0 : house_state.drop_down_options[house_state.type_id]) == null ? void 0 : _a.children, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.label),
|
||||
b: idx,
|
||||
c: common_vendor.o(($event) => selectBrand(item), idx),
|
||||
d: item.value == house_state.brand_id ? 1 : ""
|
||||
};
|
||||
}),
|
||||
q: common_vendor.f(productOptions.value, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.label),
|
||||
b: idx,
|
||||
c: house_state.product_ids.includes(item.value) ? 1 : "",
|
||||
d: common_vendor.o(($event) => selectProduct(item), idx)
|
||||
};
|
||||
}),
|
||||
r: common_vendor.o(($event) => onResetProduct()),
|
||||
s: common_vendor.p({
|
||||
plain: true,
|
||||
type: "default"
|
||||
}),
|
||||
t: common_vendor.o(($event) => onConfirmProduct()),
|
||||
v: common_vendor.p({
|
||||
block: true,
|
||||
type: "primary"
|
||||
}),
|
||||
w: common_vendor.sr(selectProductRef, "1cf27b2a-8,1cf27b2a-6", {
|
||||
"k": "selectProductRef"
|
||||
}),
|
||||
x: common_vendor.p({
|
||||
title: house_state.product_name
|
||||
}),
|
||||
y: common_vendor.f(house_state.degree_params, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.text),
|
||||
b: house_state.degree_ids.includes(item.value) ? 1 : "",
|
||||
c: idx,
|
||||
d: common_vendor.o(($event) => selectDegree(item), idx)
|
||||
};
|
||||
}),
|
||||
z: common_vendor.o(($event) => onResetDegree()),
|
||||
A: common_vendor.p({
|
||||
plain: true,
|
||||
type: "default"
|
||||
}),
|
||||
B: common_vendor.o(($event) => onConfirmDegree()),
|
||||
C: common_vendor.p({
|
||||
block: true,
|
||||
type: "primary"
|
||||
}),
|
||||
D: common_vendor.sr(selectDegreeRef, "1cf27b2a-11,1cf27b2a-6", {
|
||||
"k": "selectDegreeRef"
|
||||
}),
|
||||
E: common_vendor.p({
|
||||
title: house_state.degree_name
|
||||
}),
|
||||
F: common_vendor.p({
|
||||
["title-class"]: "titleClass"
|
||||
["column-num"]: 2,
|
||||
square: true
|
||||
})
|
||||
} : {}, {
|
||||
G: tabIndex.value == 1
|
||||
}, tabIndex.value == 1 ? {
|
||||
H: common_vendor.o(onSearch),
|
||||
I: common_vendor.p({
|
||||
type: "primary"
|
||||
}),
|
||||
J: common_vendor.o(onSearch),
|
||||
K: common_vendor.o(onClear),
|
||||
L: common_vendor.o(($event) => state.search_val = $event),
|
||||
M: common_vendor.p({
|
||||
placeholder: "请输入商品名称",
|
||||
clearable: true,
|
||||
["input-background"]: "#eee",
|
||||
modelValue: state.search_val
|
||||
}),
|
||||
N: common_vendor.f(state.price_sort_params, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.text),
|
||||
b: state.price_sort === item.value ? 1 : "",
|
||||
c: idx,
|
||||
d: common_vendor.o(($event) => selectPriceSort(item), idx)
|
||||
};
|
||||
}),
|
||||
O: common_vendor.sr(selectPriceSortRef, "1cf27b2a-17,1cf27b2a-16", {
|
||||
"k": "selectPriceSortRef"
|
||||
}),
|
||||
P: common_vendor.p({
|
||||
title: state.price_sort_name
|
||||
}),
|
||||
Q: common_vendor.f(state.type_params, (type, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(type.name),
|
||||
b: idx,
|
||||
c: common_vendor.o(($event) => selectType(type), idx),
|
||||
d: state.type_id == type.type_id ? 1 : ""
|
||||
};
|
||||
}),
|
||||
R: common_vendor.f((_b = state == null ? void 0 : state.drop_down_options[state.type_id]) == null ? void 0 : _b.children, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.label),
|
||||
b: idx,
|
||||
c: common_vendor.o(($event) => selectBrand(item), idx),
|
||||
d: item.value == state.brand_id ? 1 : ""
|
||||
};
|
||||
}),
|
||||
S: common_vendor.f(productOptions.value, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.label),
|
||||
b: idx,
|
||||
c: state.product_ids.includes(item.value) ? 1 : "",
|
||||
d: common_vendor.o(($event) => selectProduct(item), idx)
|
||||
};
|
||||
}),
|
||||
T: common_vendor.o(($event) => onResetProduct()),
|
||||
U: common_vendor.p({
|
||||
plain: true,
|
||||
type: "default"
|
||||
}),
|
||||
V: common_vendor.o(($event) => onConfirmProduct()),
|
||||
W: common_vendor.p({
|
||||
block: true,
|
||||
type: "primary"
|
||||
}),
|
||||
X: common_vendor.sr(selectProductRef, "1cf27b2a-18,1cf27b2a-16", {
|
||||
"k": "selectProductRef"
|
||||
}),
|
||||
Y: common_vendor.p({
|
||||
title: state.product_name
|
||||
}),
|
||||
Z: common_vendor.f(state.degree_params, (item, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.text),
|
||||
b: state.degree_ids.includes(item.value) ? 1 : "",
|
||||
c: idx,
|
||||
d: common_vendor.o(($event) => selectDegree(item), idx)
|
||||
};
|
||||
}),
|
||||
aa: common_vendor.o(($event) => onResetDegree()),
|
||||
ab: common_vendor.p({
|
||||
plain: true,
|
||||
type: "default"
|
||||
}),
|
||||
ac: common_vendor.o(($event) => onConfirmDegree()),
|
||||
ad: common_vendor.p({
|
||||
block: true,
|
||||
type: "primary"
|
||||
}),
|
||||
ae: common_vendor.sr(selectDegreeRef, "1cf27b2a-21,1cf27b2a-16", {
|
||||
"k": "selectDegreeRef"
|
||||
}),
|
||||
af: common_vendor.p({
|
||||
title: state.degree_name
|
||||
}),
|
||||
ag: common_vendor.p({
|
||||
["title-class"]: "titleClass"
|
||||
})
|
||||
} : {}, {
|
||||
ah: common_vendor.s("top:" + (common_vendor.unref(statusBarHeight) + navbarHeight) + "px"),
|
||||
ai: tabIndex.value == 0
|
||||
}, tabIndex.value == 0 ? {
|
||||
aj: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
var _a2, _b2, _c, _d;
|
||||
return common_vendor.e({
|
||||
a: getImg(item),
|
||||
b: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/mall/houseDetail?id=" + item.goods_id), index),
|
||||
c: common_vendor.t((_b2 = (_a2 = item == null ? void 0 : item.goods_house) == null ? void 0 : _a2.degree) == null ? void 0 : _b2.degree_name),
|
||||
d: "1cf27b2a-24-" + i0 + ",1cf27b2a-0",
|
||||
e: common_vendor.t((_c = item == null ? void 0 : item.goods_house) == null ? void 0 : _c.goods_name),
|
||||
f: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/mall/houseDetail?id=" + item.goods_id), index),
|
||||
g: common_vendor.t((_d = item == null ? void 0 : item.goods_house) == null ? void 0 : _d.content),
|
||||
h: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/mall/houseDetail?id=" + item.goods_id), index),
|
||||
i: "1cf27b2a-25-" + i0 + ",1cf27b2a-0",
|
||||
j: common_vendor.p({
|
||||
price: getPrice(item)
|
||||
})
|
||||
}, !audit.value ? common_vendor.e({
|
||||
k: goods_cart_ids.value.includes(item.goods_id)
|
||||
}, goods_cart_ids.value.includes(item.goods_id) ? {
|
||||
l: "1cf27b2a-26-" + i0 + ",1cf27b2a-0",
|
||||
m: common_vendor.p({
|
||||
size: "small",
|
||||
plain: true
|
||||
})
|
||||
} : {}, {
|
||||
n: item
|
||||
}) : {}, {
|
||||
o: index
|
||||
});
|
||||
}),
|
||||
ak: common_vendor.p({
|
||||
["custom-color"]: "#1a1a1a"
|
||||
}),
|
||||
al: !audit.value
|
||||
} : {
|
||||
an: common_vendor.f(dataList.value, (item, index, i0) => {
|
||||
var _a2;
|
||||
return common_vendor.e({
|
||||
a: getImg(item),
|
||||
b: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/mall/detail?id=" + item.goods_id), index),
|
||||
c: common_vendor.t((_a2 = item == null ? void 0 : item.degree) == null ? void 0 : _a2.degree_name),
|
||||
d: "1cf27b2a-27-" + i0 + ",1cf27b2a-0",
|
||||
e: common_vendor.t(item.goods_name),
|
||||
f: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/mall/detail?id=" + item.goods_id), index),
|
||||
g: common_vendor.t(item.content),
|
||||
h: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/mall/detail?id=" + item.goods_id), index),
|
||||
i: "1cf27b2a-28-" + i0 + ",1cf27b2a-0",
|
||||
j: common_vendor.p({
|
||||
price: item.goods_price
|
||||
})
|
||||
}, !audit.value ? {
|
||||
k: item
|
||||
} : {}, {
|
||||
l: index
|
||||
});
|
||||
}),
|
||||
ao: common_vendor.p({
|
||||
["custom-color"]: "#1a1a1a"
|
||||
}),
|
||||
ap: !audit.value
|
||||
}, {
|
||||
am: tabIndex.value == 1,
|
||||
aq: common_vendor.sr(paging, "1cf27b2a-0", {
|
||||
"k": "paging"
|
||||
}),
|
||||
ar: common_vendor.o(queryList),
|
||||
as: common_vendor.o(($event) => dataList.value = $event),
|
||||
at: common_vendor.p({
|
||||
["refresher-enabled"]: false,
|
||||
["auto-clean-list-when-reload"]: false,
|
||||
["auto-scroll-to-top-when-reload"]: false,
|
||||
modelValue: dataList.value
|
||||
})
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
|
||||
_sfc_main.__runtimeHooks = 2;
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|
||||
|
||||
@@ -1,17 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "主页",
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "订单管理",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-noticebar": "../../uni_modules/nutui-uni/components/noticebar/noticebar",
|
||||
"z-tabs": "../../uni_modules/z-tabs/components/z-tabs/z-tabs",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
|
||||
"nut-searchbar": "../../uni_modules/nutui-uni/components/searchbar/searchbar",
|
||||
"nut-menu-item": "../../uni_modules/nutui-uni/components/menuitem/menuitem",
|
||||
"nut-menu": "../../uni_modules/nutui-uni/components/menu/menu",
|
||||
"nut-tag": "../../uni_modules/nutui-uni/components/tag/tag",
|
||||
"nut-price": "../../uni_modules/nutui-uni/components/price/price",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
|
||||
"index-custom-navigationbar": "../../components/index-custom-navigationbar/index"
|
||||
"nut-grid-item": "../../uni_modules/nutui-uni/components/griditem/griditem",
|
||||
"nut-grid": "../../uni_modules/nutui-uni/components/grid/grid"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
237
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
vendored
237
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
vendored
@@ -51,233 +51,38 @@
|
||||
.page-content.data-v-1cf27b2a {
|
||||
min-height: 100vh;
|
||||
background-color: #f2f3f5;
|
||||
--nut-menu-bar-box-shadow: none;
|
||||
--nut-menu-item-content-padding: 20rpx;
|
||||
--nut-menu-item-content-max-height: 900rpx;
|
||||
--nut-searchbar-input-height: 40px;
|
||||
}
|
||||
.data-v-1cf27b2a .titleClass .nut-menu__title-text {
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
}
|
||||
.goods-item.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
.top-bar.data-v-1cf27b2a {
|
||||
background: #fff;
|
||||
align-items: center;
|
||||
padding: 20rpx;
|
||||
background-color: #ffffff;
|
||||
margin-bottom: 20rpx;
|
||||
gap: 20rpx;
|
||||
text-align: center;
|
||||
padding: 20rpx 60rpx;
|
||||
}
|
||||
.goods-item .goods-item-image.data-v-1cf27b2a {
|
||||
width: 170rpx;
|
||||
height: 170rpx;
|
||||
}
|
||||
.goods-item .goods-item-image .goods-item-image-img.data-v-1cf27b2a {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.goods-item .goods-item-content.data-v-1cf27b2a {
|
||||
.grid-item-content.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
/* 首尾贴边,中间均分 */
|
||||
}
|
||||
.goods-item .goods-item-content .goods-item-content-header.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10rpx 0;
|
||||
gap: 20rpx;
|
||||
}
|
||||
.goods-item .goods-item-content .goods-item-content-body.data-v-1cf27b2a {
|
||||
padding: 10rpx 0;
|
||||
}
|
||||
.goods-item .goods-item-content .goods-item-content-body .goods-item-content-body-desc.data-v-1cf27b2a {
|
||||
color: #7c7c7c;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.goods-item .goods-item-content .goods-item-content-footer.data-v-1cf27b2a {
|
||||
padding: 10rpx 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.goods-item .goods-item-content .goods-item-content-footer .goods-item-content-footer-btn.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 10rpx;
|
||||
}
|
||||
.goods-item .goods-item-content .goods-item-content-footer .goods-item-content-footer-btn .share-btn.data-v-1cf27b2a {
|
||||
border-radius: 50rpx;
|
||||
border: 2rpx solid red;
|
||||
font-size: 26rpx;
|
||||
align-items: center;
|
||||
height: 54rpx;
|
||||
color: red;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.filter-types.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
overflow: auto;
|
||||
gap: 10rpx;
|
||||
padding: 10rpx;
|
||||
height: 60rpx;
|
||||
background-color: #fff;
|
||||
border-bottom: 2rpx solid gainsboro;
|
||||
border-top: 2rpx solid gainsboro;
|
||||
}
|
||||
.filter-types .filter-type-inner.data-v-1cf27b2a {
|
||||
align-items: center;
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
border-radius: 16rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
font-size: 28rpx;
|
||||
gap: 15rpx;
|
||||
padding: 10rpx 20rpx;
|
||||
}
|
||||
.filter-types .filter-type-inner.active.data-v-1cf27b2a {
|
||||
background-color: rgba(250, 44, 25, 0.1);
|
||||
color: var(--nutui-color-primary);
|
||||
}
|
||||
.tabs-container.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
}
|
||||
.tabs-container .tab-pane-inner.data-v-1cf27b2a {
|
||||
height: 600rpx;
|
||||
}
|
||||
.tabs-container .tabs-inner.data-v-1cf27b2a {
|
||||
overflow-y: scroll;
|
||||
height: 600rpx;
|
||||
width: 160rpx;
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
.tabs-container .tabs-inner .tab-inner.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
height: 60rpx;
|
||||
padding: 10rpx;
|
||||
font-size: 28rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: #F5F5F5;
|
||||
}
|
||||
.tabs-container .tabs-inner .tab-inner text.data-v-1cf27b2a {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
.tabs-container .tabs-inner .tab-inner-active.data-v-1cf27b2a {
|
||||
background-color: rgba(250, 44, 25, 0.1);
|
||||
color: var(--nutui-color-primary);
|
||||
.room-name.data-v-1cf27b2a {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.degree-inner.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-wrap: wrap;
|
||||
gap: 10rpx;
|
||||
width: 100%;
|
||||
margin-bottom: 60rpx;
|
||||
.room-footer.data-v-1cf27b2a {
|
||||
margin: 20rpx 0;
|
||||
color: #666;
|
||||
}
|
||||
.degree-item.data-v-1cf27b2a {
|
||||
align-items: center;
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
border-radius: 10rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
.room-footer .room-id.data-v-1cf27b2a {
|
||||
font-size: 26rpx;
|
||||
gap: 10rpx;
|
||||
justify-content: center;
|
||||
min-height: 80rpx;
|
||||
width: calc(50% - 10rpx);
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.degree-item.active.data-v-1cf27b2a {
|
||||
background-color: rgba(250, 44, 25, 0.1);
|
||||
color: var(--nutui-color-primary);
|
||||
}
|
||||
.product-btns.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
padding: 20rpx 0;
|
||||
}
|
||||
.product-btns .reset.data-v-1cf27b2a {
|
||||
flex: 1;
|
||||
}
|
||||
.product-btns .confirm.data-v-1cf27b2a {
|
||||
flex: 2;
|
||||
}
|
||||
.degree-btns.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
.degree-btns .reset.data-v-1cf27b2a {
|
||||
flex: 1;
|
||||
/* 重置按钮占 1 份 */
|
||||
}
|
||||
.degree-btns .confirm.data-v-1cf27b2a {
|
||||
flex: 2;
|
||||
/* 确认按钮占 2 份 */
|
||||
}
|
||||
.main-nav-container.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background-color: #fff;
|
||||
padding: 20rpx;
|
||||
}
|
||||
.nav-button.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 45%;
|
||||
height: 160rpx;
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
padding: 0 10rpx;
|
||||
}
|
||||
.phone-button.data-v-1cf27b2a {
|
||||
background: linear-gradient(135deg, #6a5ae0, #8d7bfb);
|
||||
color: white;
|
||||
}
|
||||
.parts-button.data-v-1cf27b2a {
|
||||
background: linear-gradient(135deg, #ff6b6b, #ee5253);
|
||||
color: white;
|
||||
}
|
||||
.nav-button-bg.data-v-1cf27b2a {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 50%;
|
||||
opacity: 0.2;
|
||||
object-fit: cover;
|
||||
}
|
||||
.nav-button-icon.data-v-1cf27b2a {
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
margin-right: 20rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.nav-button-content.data-v-1cf27b2a {
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.nav-button-title.data-v-1cf27b2a {
|
||||
font-size: 34rpx;
|
||||
font-weight: bold;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
.nav-button-desc.data-v-1cf27b2a {
|
||||
.room-footer .remark.data-v-1cf27b2a {
|
||||
font-size: 24rpx;
|
||||
opacity: 0.85;
|
||||
padding: 10rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.buttons.data-v-1cf27b2a {
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
}
|
||||
409
unpackage/dist/dev/mp-weixin/pages/index/orderAdd.js
vendored
Normal file
409
unpackage/dist/dev/mp-weixin/pages/index/orderAdd.js
vendored
Normal file
@@ -0,0 +1,409 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_index = require("../../api/index.js");
|
||||
if (!Array) {
|
||||
const _easycom_nut_form_item2 = common_vendor.resolveComponent("nut-form-item");
|
||||
const _easycom_nut_input2 = common_vendor.resolveComponent("nut-input");
|
||||
const _easycom_nut_form2 = common_vendor.resolveComponent("nut-form");
|
||||
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
|
||||
const _easycom_nut_cascader2 = common_vendor.resolveComponent("nut-cascader");
|
||||
const _easycom_nut_picker2 = common_vendor.resolveComponent("nut-picker");
|
||||
const _easycom_nut_popup2 = common_vendor.resolveComponent("nut-popup");
|
||||
(_easycom_nut_form_item2 + _easycom_nut_input2 + _easycom_nut_form2 + _easycom_nut_button2 + _easycom_nut_cascader2 + _easycom_nut_picker2 + _easycom_nut_popup2)();
|
||||
}
|
||||
const _easycom_nut_form_item = () => "../../uni_modules/nutui-uni/components/formitem/formitem.js";
|
||||
const _easycom_nut_input = () => "../../uni_modules/nutui-uni/components/input/input.js";
|
||||
const _easycom_nut_form = () => "../../uni_modules/nutui-uni/components/form/form.js";
|
||||
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
|
||||
const _easycom_nut_cascader = () => "../../uni_modules/nutui-uni/components/cascader/cascader.js";
|
||||
const _easycom_nut_picker = () => "../../uni_modules/nutui-uni/components/picker/picker.js";
|
||||
const _easycom_nut_popup = () => "../../uni_modules/nutui-uni/components/popup/popup.js";
|
||||
if (!Math) {
|
||||
(_easycom_nut_form_item + _easycom_nut_input + _easycom_nut_form + _easycom_nut_button + _easycom_nut_cascader + _easycom_nut_picker + _easycom_nut_popup)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "orderAdd",
|
||||
setup(__props) {
|
||||
const visibleFeeTypePopup = common_vendor.ref(false);
|
||||
const feeTypes = [
|
||||
{
|
||||
value: 1,
|
||||
label: "美团"
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
label: "抖音"
|
||||
},
|
||||
{
|
||||
value: 3,
|
||||
label: "线下"
|
||||
}
|
||||
];
|
||||
const onConfirmFeeType = (selectedValue) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:276", selectedValue);
|
||||
form.fee_type_name = selectedValue.selectedOptions[0].label;
|
||||
form.fee_type = selectedValue.selectedOptions[0].value;
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:279", form);
|
||||
visibleFeeTypePopup.value = false;
|
||||
};
|
||||
const visibleCombosPopup = common_vendor.ref(false);
|
||||
const popupCombosVal = common_vendor.ref([]);
|
||||
const combos = [
|
||||
{
|
||||
value: 1,
|
||||
label: "美团中包套餐"
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
label: "美团小包套餐"
|
||||
},
|
||||
{
|
||||
value: 3,
|
||||
label: "美团小包套餐"
|
||||
}
|
||||
];
|
||||
const onConfirmCombos = (selectedValue) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:305", selectedValue);
|
||||
form.fee_combo_name = selectedValue.selectedOptions[0].label;
|
||||
form.fee_combo_id = selectedValue.selectedOptions[0].value;
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:308", form);
|
||||
visibleCombosPopup.value = false;
|
||||
};
|
||||
const visiblePaymentStatusPopup = common_vendor.ref(false);
|
||||
common_vendor.ref([]);
|
||||
const popupPaymentTypeVal = common_vendor.ref("");
|
||||
const paymentStatuses = [
|
||||
{
|
||||
value: 1,
|
||||
label: "已付"
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
label: "未付"
|
||||
},
|
||||
{
|
||||
value: 3,
|
||||
label: "赠送"
|
||||
}
|
||||
];
|
||||
const openPayStatusPopup = (type, index = -1) => {
|
||||
popupPaymentTypeVal.value = type;
|
||||
goodsPayIndex.value = index;
|
||||
visiblePaymentStatusPopup.value = true;
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:338", type);
|
||||
};
|
||||
const onConfirmPaymentStatus = (selectedValue) => {
|
||||
if (popupPaymentTypeVal.value == "fee") {
|
||||
form.fee_pay_status_txt = selectedValue.selectedOptions[0].label;
|
||||
form.payment_status = selectedValue.selectedOptions[0].value;
|
||||
}
|
||||
if (popupPaymentTypeVal.value == "over") {
|
||||
form.over_pay_status_txt = selectedValue.selectedOptions[0].label;
|
||||
form.over_pay_status = selectedValue.selectedOptions[0].value;
|
||||
}
|
||||
if (popupPaymentTypeVal.value == "goods" && goodsPayIndex.value >= 0) {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:352", "处理商品支付状态", goodsPayIndex.value);
|
||||
orderGoods.value[goodsPayIndex.value].goods_pay_status_txt = selectedValue.selectedOptions[0].label;
|
||||
orderGoods.value[goodsPayIndex.value].goods_pay_status = selectedValue.selectedOptions[0].value;
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:357", form);
|
||||
visiblePaymentStatusPopup.value = false;
|
||||
popupPaymentTypeVal.value = "";
|
||||
goodsPayIndex.value = -1;
|
||||
};
|
||||
const orderGoods = common_vendor.ref([
|
||||
// {
|
||||
// goods_type_name: null,
|
||||
// goods_type_id: null,
|
||||
// goods_name: null,
|
||||
// goods_id: null,
|
||||
// goods_price: null,
|
||||
// goods_pay_status: 0,
|
||||
// goods_pay_status_txt: "请选择",
|
||||
// cascader_val: []
|
||||
// },
|
||||
]);
|
||||
const goodsPayIndex = common_vendor.ref(0);
|
||||
const goodsIndex = common_vendor.ref(0);
|
||||
const addGoods = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:384", orderGoods.value);
|
||||
orderGoods.value.push({
|
||||
goods_type_name: null,
|
||||
goods_type_id: null,
|
||||
goods_name: null,
|
||||
goods_id: null,
|
||||
goods_price: null,
|
||||
goods_pay_status: 0,
|
||||
goods_pay_status_txt: "请选择",
|
||||
cascader_val: []
|
||||
});
|
||||
};
|
||||
const removeGoods = (index) => {
|
||||
orderGoods.value.splice(index, 1);
|
||||
};
|
||||
const visibleGoodsCascader = common_vendor.ref(false);
|
||||
const cascaderGoodsValue = common_vendor.computed(() => {
|
||||
var _a;
|
||||
let cascader_val = [];
|
||||
if (goodsIndex.value >= 0) {
|
||||
return ((_a = orderGoods.value[goodsIndex.value]) == null ? void 0 : _a.cascader_val) ?? [];
|
||||
} else {
|
||||
return cascader_val;
|
||||
}
|
||||
});
|
||||
const onGoodsChange = (...args) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:412", "onGoodsChange", args);
|
||||
};
|
||||
const onGoodsPathChange = (args) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:416", "onGoodsPathChange", args);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:417", "goodsIndex", goodsIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:418", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
|
||||
orderGoods.value[goodsIndex.value].goods_type_name = null;
|
||||
orderGoods.value[goodsIndex.value].goods_type_id = null;
|
||||
orderGoods.value[goodsIndex.value].goods_name = null;
|
||||
orderGoods.value[goodsIndex.value].goods_id = null;
|
||||
orderGoods.value[goodsIndex.value].goods_price = null;
|
||||
if (args.length >= 1 && args[0] !== null) {
|
||||
orderGoods.value[goodsIndex.value].goods_type_name = args[0].text;
|
||||
orderGoods.value[goodsIndex.value].goods_type_id = args[0].value;
|
||||
}
|
||||
if (args.length >= 2 && args[1] !== null) {
|
||||
orderGoods.value[goodsIndex.value].goods_name = args[1].text;
|
||||
orderGoods.value[goodsIndex.value].goods_id = args[1].value;
|
||||
orderGoods.value[goodsIndex.value].goods_price = args[1].goods_price;
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:434", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
|
||||
};
|
||||
const onCloseGoodsCascader = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:437", "onCloseGoodsCascader");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:438", "goodsIndex.value", goodsIndex.value);
|
||||
if (orderGoods.value[goodsIndex.value].goods_type_id && orderGoods.value[goodsIndex.value].goods_id) {
|
||||
orderGoods.value[goodsIndex.value].cascader_val = [
|
||||
orderGoods.value[goodsIndex.value].goods_type_id,
|
||||
orderGoods.value[goodsIndex.value].goods_id
|
||||
];
|
||||
}
|
||||
goodsIndex.value = 0;
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:446", "goodsIndex.value", goodsIndex.value);
|
||||
};
|
||||
const onOpenGoodsCascader = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:449", "onOpenGoodsCascader");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:450", "goodsIndex.value", goodsIndex.value);
|
||||
};
|
||||
const form = common_vendor.reactive({
|
||||
// room_id: 0,
|
||||
// room_name: '选择房间',
|
||||
fee_type: 0,
|
||||
fee_type_name: "选择方式",
|
||||
fee_combo_id: 0,
|
||||
// 套餐费用ID
|
||||
fee_combo_name: "请选择",
|
||||
// 套餐费用名称
|
||||
fee_amount: null,
|
||||
// 线下支付费用
|
||||
fee_pay_status: 0,
|
||||
// 费用支付状态
|
||||
fee_pay_status_txt: "请选择",
|
||||
// 费用支付状态
|
||||
over_often: null,
|
||||
// 超时小时
|
||||
over_amount: null,
|
||||
// 超时金额
|
||||
over_pay_status: 0,
|
||||
// 超时支付状态
|
||||
over_pay_status_txt: "请选择",
|
||||
// 超时支付状态
|
||||
discount_amount: null
|
||||
// 优惠金额
|
||||
});
|
||||
const selectGoods = common_vendor.ref([]);
|
||||
common_vendor.onMounted(() => {
|
||||
api_index.fetchGoods().then((res) => {
|
||||
selectGoods.value = res;
|
||||
});
|
||||
});
|
||||
const submitForm = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:497", "提交的订单数据:", orderGoods.value);
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(form.fee_type_name),
|
||||
b: common_vendor.o(($event) => visibleFeeTypePopup.value = true),
|
||||
c: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
d: form.fee_type === 1 || form.fee_type === 2
|
||||
}, form.fee_type === 1 || form.fee_type === 2 ? {
|
||||
e: common_vendor.t(form.fee_combo_name),
|
||||
f: common_vendor.o(($event) => visibleCombosPopup.value = true),
|
||||
g: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
})
|
||||
} : {
|
||||
h: common_vendor.o(($event) => form.fee_amount = $event),
|
||||
i: common_vendor.p({
|
||||
placeholder: "请输入金额",
|
||||
type: "number",
|
||||
modelValue: form.fee_amount
|
||||
}),
|
||||
j: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
})
|
||||
}, {
|
||||
k: common_vendor.t(form.fee_pay_status_txt),
|
||||
l: common_vendor.o(($event) => openPayStatusPopup("fee")),
|
||||
m: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
n: common_vendor.o(($event) => form.often = $event),
|
||||
o: common_vendor.p({
|
||||
placeholder: "请输入小时",
|
||||
type: "number",
|
||||
modelValue: form.often
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
q: common_vendor.o(($event) => form.over_amount = $event),
|
||||
r: common_vendor.p({
|
||||
placeholder: "请输入金额",
|
||||
type: "number",
|
||||
modelValue: form.over_amount
|
||||
}),
|
||||
s: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
t: common_vendor.t(form.over_pay_status_txt),
|
||||
v: common_vendor.o(($event) => openPayStatusPopup("over")),
|
||||
w: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
x: common_vendor.o(addGoods),
|
||||
y: common_vendor.p({
|
||||
type: "primary",
|
||||
plain: true,
|
||||
size: "small"
|
||||
}),
|
||||
z: common_vendor.f(orderGoods.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.goods_type_name && item.goods_name
|
||||
}, item.goods_type_name && item.goods_name ? {
|
||||
b: common_vendor.t(item.goods_type_name),
|
||||
c: common_vendor.t(item.goods_name)
|
||||
} : {}, {
|
||||
d: common_vendor.o(($event) => {
|
||||
visibleGoodsCascader.value = true;
|
||||
goodsIndex.value = index;
|
||||
}, index),
|
||||
e: "528154d3-14-" + i0 + ",528154d3-13",
|
||||
f: common_vendor.t(item.goods_price),
|
||||
g: "528154d3-15-" + i0 + ",528154d3-13",
|
||||
h: common_vendor.t(item.goods_pay_status_txt),
|
||||
i: common_vendor.o(($event) => openPayStatusPopup("goods", index), index),
|
||||
j: "528154d3-16-" + i0 + ",528154d3-13",
|
||||
k: common_vendor.o(($event) => removeGoods(index), index),
|
||||
l: "528154d3-18-" + i0 + "," + ("528154d3-17-" + i0),
|
||||
m: "528154d3-17-" + i0 + ",528154d3-13",
|
||||
n: index
|
||||
});
|
||||
}),
|
||||
A: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
B: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
C: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
D: common_vendor.p({
|
||||
type: "danger",
|
||||
size: "mini"
|
||||
}),
|
||||
E: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
F: common_vendor.o(($event) => form.discount_amount = $event),
|
||||
G: common_vendor.p({
|
||||
placeholder: "请输入金额",
|
||||
type: "number",
|
||||
modelValue: form.discount_amount
|
||||
}),
|
||||
H: common_vendor.o(submitForm),
|
||||
I: common_vendor.p({
|
||||
type: "primary",
|
||||
block: true
|
||||
}),
|
||||
J: common_vendor.o(onGoodsChange),
|
||||
K: common_vendor.o(onGoodsPathChange),
|
||||
L: common_vendor.o(onOpenGoodsCascader),
|
||||
M: common_vendor.o(onCloseGoodsCascader),
|
||||
N: common_vendor.o(($event) => visibleGoodsCascader.value = $event),
|
||||
O: common_vendor.o(($event) => cascaderGoodsValue.value = $event),
|
||||
P: common_vendor.p({
|
||||
title: "商品选择",
|
||||
["text-key"]: "label",
|
||||
["value-key"]: "value",
|
||||
["children-key"]: "children",
|
||||
options: selectGoods.value,
|
||||
["title-ellipsis"]: false,
|
||||
visible: visibleGoodsCascader.value,
|
||||
modelValue: cascaderGoodsValue.value
|
||||
}),
|
||||
Q: common_vendor.o(onConfirmPaymentStatus),
|
||||
R: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
|
||||
S: common_vendor.p({
|
||||
columns: paymentStatuses,
|
||||
["field-names"]: {
|
||||
text: "label",
|
||||
value: "value"
|
||||
},
|
||||
title: "选择支付状态"
|
||||
}),
|
||||
T: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
|
||||
U: common_vendor.p({
|
||||
position: "bottom",
|
||||
["safe-area-inset-bottom"]: true,
|
||||
visible: visiblePaymentStatusPopup.value
|
||||
}),
|
||||
V: common_vendor.o(onConfirmCombos),
|
||||
W: common_vendor.o(($event) => visibleCombosPopup.value = false),
|
||||
X: common_vendor.o(($event) => popupCombosVal.value = $event),
|
||||
Y: common_vendor.p({
|
||||
columns: combos,
|
||||
["field-names"]: {
|
||||
text: "label",
|
||||
value: "value"
|
||||
},
|
||||
title: "选择团购套餐",
|
||||
modelValue: popupCombosVal.value
|
||||
}),
|
||||
Z: common_vendor.o(($event) => visibleCombosPopup.value = $event),
|
||||
aa: common_vendor.p({
|
||||
position: "bottom",
|
||||
["safe-area-inset-bottom"]: true,
|
||||
visible: visibleCombosPopup.value
|
||||
}),
|
||||
ab: common_vendor.o(onConfirmFeeType),
|
||||
ac: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
|
||||
ad: common_vendor.p({
|
||||
columns: feeTypes,
|
||||
["field-names"]: {
|
||||
text: "label",
|
||||
value: "value"
|
||||
},
|
||||
title: "选择结算方式"
|
||||
}),
|
||||
ae: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
|
||||
af: common_vendor.p({
|
||||
position: "bottom",
|
||||
["safe-area-inset-bottom"]: true,
|
||||
visible: visibleFeeTypePopup.value
|
||||
})
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-528154d3"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/orderAdd.js.map
|
||||
13
unpackage/dist/dev/mp-weixin/pages/index/orderAdd.json
vendored
Normal file
13
unpackage/dist/dev/mp-weixin/pages/index/orderAdd.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"navigationBarTitleText": "新增订单",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"nut-form-item": "../../uni_modules/nutui-uni/components/formitem/formitem",
|
||||
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
|
||||
"nut-form": "../../uni_modules/nutui-uni/components/form/form",
|
||||
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
|
||||
"nut-cascader": "../../uni_modules/nutui-uni/components/cascader/cascader",
|
||||
"nut-picker": "../../uni_modules/nutui-uni/components/picker/picker",
|
||||
"nut-popup": "../../uni_modules/nutui-uni/components/popup/popup"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/index/orderAdd.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/index/orderAdd.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
84
unpackage/dist/dev/mp-weixin/pages/index/orderAdd.wxss
vendored
Normal file
84
unpackage/dist/dev/mp-weixin/pages/index/orderAdd.wxss
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
/**
|
||||
* 这里是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-528154d3 {
|
||||
min-height: 100vh;
|
||||
background-color: #f2f3f5;
|
||||
}
|
||||
.title.data-v-528154d3 {
|
||||
padding: 0 20rpx;
|
||||
margin-top: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
font-size: 28rpx;
|
||||
color: #909ca4;
|
||||
}
|
||||
.inline-form.data-v-528154d3 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 10rpx;
|
||||
/* 在元素之间添加间距 */
|
||||
}
|
||||
.top-bar.data-v-528154d3 {
|
||||
background: #fff;
|
||||
padding: 20rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
/* 每个商品项容器 */
|
||||
/* 行容器 */
|
||||
.form-row.data-v-528154d3 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user