From 006041fca6ed00af59783b05f0f2cddc1fbef55f Mon Sep 17 00:00:00 2001
From: zmj <1493694146@qq.com>
Date: Wed, 17 Apr 2024 18:02:49 +0800
Subject: [PATCH] add
---
pages.json | 25 +-
pages/product/addGood/addGood.vue | 845 +++-------------
pages/product/addGood/addGoodOld.vue | 762 ++++++++++++++
.../product/addGood/components/commodity.vue | 957 +++++++++---------
.../addGood/components/uploadImgVideo.vue | 77 ++
pages/product/addGoodDetail/addGoodDetail.vue | 99 ++
static/images/addGodd/addGoodBg.png | Bin 0 -> 8304 bytes
uni.scss | 1 +
.../uni-data-select/uni-data-select.vue | 40 +-
9 files changed, 1583 insertions(+), 1223 deletions(-)
create mode 100644 pages/product/addGood/addGoodOld.vue
create mode 100644 pages/product/addGood/components/uploadImgVideo.vue
create mode 100644 pages/product/addGoodDetail/addGoodDetail.vue
create mode 100644 static/images/addGodd/addGoodBg.png
diff --git a/pages.json b/pages.json
index fd9a0b1..3facdbf 100644
--- a/pages.json
+++ b/pages.json
@@ -308,12 +308,11 @@
}
},
{
- "path" : "pages/cashier/cashier",
- "style" :
- {
- "navigationBarTitleText" : "收银",
- "enablePullDownRefresh" : true
- }
+ "path": "pages/cashier/cashier",
+ "style": {
+ "navigationBarTitleText": "收银",
+ "enablePullDownRefresh": true
+ }
}
],
"subPackages": [{
@@ -1509,6 +1508,13 @@
"enablePullDownRefresh": false
}
},
+ {
+ "path": "addGood/addGoodOld",
+ "style": {
+ "navigationBarTitleText": "发布商品",
+ "enablePullDownRefresh": false
+ }
+ },
{
"path": "addGood/addGood_one",
"style": {
@@ -1536,6 +1542,13 @@
"navigationBarTitleText": "更新库存",
"enablePullDownRefresh": false
}
+ },
+ {
+ "path": "addGoodDetail/addGoodDetail",
+ "style": {
+ "navigationBarTitleText": "发布商品",
+ "enablePullDownRefresh": false
+ }
}
]
},
diff --git a/pages/product/addGood/addGood.vue b/pages/product/addGood/addGood.vue
index 33e97b4..6cb989b 100644
--- a/pages/product/addGood/addGood.vue
+++ b/pages/product/addGood/addGood.vue
@@ -1,762 +1,157 @@
-
-
-
-
- 商品条码
-
+
+
+
+
+
-
-
-
- (品牌,名称,规格,口味)
-
- {{ setFormData.store_name.length }}
- 0/60
-
-
+
+
+
+
+
+
+
+
-
- 建议:图片尺寸为750*750px, 上传2张以上
-
-
-
-
-
-
-
-
-
-
-
- 添加图片
-
-
+ 元
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/product/addGood/addGoodOld.vue b/pages/product/addGood/addGoodOld.vue
new file mode 100644
index 0000000..33e97b4
--- /dev/null
+++ b/pages/product/addGood/addGoodOld.vue
@@ -0,0 +1,762 @@
+
+
+
+
+
+ 商品条码
+
+
+
+
+
+ (品牌,名称,规格,口味)
+
+ {{ setFormData.store_name.length }}
+ 0/60
+
+
+
+
+ 建议:图片尺寸为750*750px, 上传2张以上
+
+
+
+
+
+
+
+
+
+
+
+ 添加图片
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/product/addGood/components/commodity.vue b/pages/product/addGood/components/commodity.vue
index a17c77e..fb13e57 100644
--- a/pages/product/addGood/components/commodity.vue
+++ b/pages/product/addGood/components/commodity.vue
@@ -1,539 +1,550 @@
-
-
-
-
- 商品详情
-
-
-
-
- 商品视频
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 点击可预览视频
-
-
-
-
-
-
-
- 点击可预览视频
-
-
-
-
-
-
-
- 添加视频
-
-
-
-
-
- 是否推荐
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 点击可预览视频
+
+
+
+
+
+
+
+ 点击可预览视频
+
+
+
+
+
+
+
+ 添加视频
+
+
+
+
+
+ 是否推荐
+
+
+
+
+
-
-
-
-
-
- 商品排序
-
-
-
-
-
-
-
- 更多
- 收起
-
-
-
-
-
-
-
+
+ 商品排序
+
+
+
+
+
+
+
+ 更多
+ 收起
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/product/addGood/components/uploadImgVideo.vue b/pages/product/addGood/components/uploadImgVideo.vue
new file mode 100644
index 0000000..12f2f72
--- /dev/null
+++ b/pages/product/addGood/components/uploadImgVideo.vue
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/product/addGoodDetail/addGoodDetail.vue b/pages/product/addGoodDetail/addGoodDetail.vue
new file mode 100644
index 0000000..45e8dda
--- /dev/null
+++ b/pages/product/addGoodDetail/addGoodDetail.vue
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/static/images/addGodd/addGoodBg.png b/static/images/addGodd/addGoodBg.png
new file mode 100644
index 0000000000000000000000000000000000000000..a299877107cb89a922d39c476f430e84fa78be91
GIT binary patch
literal 8304
zcmd^F)k71G_ZwPRDM&;>ec$c)_ERL6+=9v4cL_+
zs(H?gwnQh&2;36eGb6Md`F=v{Jo7M
z0PMECMw&-uMXL^g7&ev~x?Lw)*f>;R{9YKeBTswP{@R!un3$Xm7>U1DGW#8HCJ
za{Xgz?Eo!&-LJ!XJw!lFKPbvj&m&R3-rnwJC{Xtd+UC>^;Et5je20aWk*nRmo3u#%
ztEs?uaY!iS+fw6lg#jwc}{pAityRXWX*=~yLwO5M}liH;fo>wNJrAKIEE|KoA$
zTV-)#pfxVWxCRAfK$Azb1i!I#PKTa#F+w2?w<3fm;V$At&9hW)+CF_RCJmUV-ss?EbavF~G+_A^bba)To;O}T<6xtf
zRt)de8(IA?td1HW&faS{q6l-0+Nk{0w~z7AyLsVp~gt7uS0!rZ6xK#z+0_Y{K
zZKTs5>?Z!=2;Mo%l}
zOkO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y|1E;&Q61A@asBf*v;+0IE?PGqjbFV)v7n$?>Q_eBPLV*ft8z_>EnjZ@H*yv
zsFuc9`bv_Wp=f;3S_I|?vy*+b6>VS(QqLDFC{Z#i>oD)Sr%pY+@PN|1+&g^Z@9tiP9hgJdPNCa-joAPOt|iew?n2leV^(oxBA>vTnX(HM$m_icw=)5*Wk1X->-j_k+
z+28jfpyeRT%qk^ToH$3Wvqr6iGb=S{K!}k<0e{XH
z5+1#e^wImhLXC
zWT&N3`fH*~A*mRewG#@{(Nalg7P#V=zrKfi2I+XrwRO6JAWKQaEpvz$KPr`~u+8h$?ij8<1K2;uk0dnKb@WJ;7fyaQ$4WjG$?GcJoxxv9i`)
z@)6qJapkGI&8_x^q>5G1C|6Zp!`+VWV<6Gbzc7a6GtN_e!DA9Bm@Wz|i%m-y_^qDoHjP@?1FwzX4-QZ8TiZ>^ySu`BwcA_j
zaF&4Qoyr;-=&Z?8Ht#eS5@QOKjbw5yk-TBl!Q}Qu+}j=Q>24JR(8qu*KKZY~lj@Ya
z26VomnD+Oi;rP&+5JaO;atP!t_b*KM9vW8a%{S`wqpbi%ne>O&&I^h)(V2H4EJHaK
zNrj>+ccU%eVXQs@-B)56+ekt=11SgLUXpL^WS6)c9OpW>p2{}215;Rs=L#YQplq4?lbuG&u51-FU~%<=9{
zbNqiQ3$2v5bT;rhE&Rh%-#4>!pK=oDBRet2&8Mp(|51SdUnt^UkB&=7$)C&Jiyp#%BbPwt!dm|7`*k
MWsHLU2RGsPqW}N^
literal 0
HcmV?d00001
diff --git a/uni.scss b/uni.scss
index 45776b4..f66c6a0 100644
--- a/uni.scss
+++ b/uni.scss
@@ -14,6 +14,7 @@
@import '@/uni_modules/uview-ui/theme.scss';
/* 颜色变量 */
$uni-theme-color: #f45846;
+$uni-newTheme-color: #38BE41;
$uni-theme-bg-color: linear-gradient(180deg, #f98649 0%, #f34e45 100%);
/* 行为相关颜色 */
diff --git a/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue b/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue
index 9b32348..0b7fa55 100644
--- a/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue
+++ b/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue
@@ -6,8 +6,8 @@
{{current}}
{{typePlaceholder}}
-
-
+
+
@@ -20,9 +20,10 @@
{{emptyTips}}
-
- {{formatItemName(item)}}
+
+ {{formatItemName(item)}}
@@ -125,7 +126,7 @@
common + placeholder :
common
},
- valueCom(){
+ valueCom() {
// #ifdef VUE3
return this.modelValue;
// #endif
@@ -156,7 +157,7 @@
}
},
methods: {
- debounce(fn, time = 100){
+ debounce(fn, time = 100) {
let timer = null
return function(...args) {
if (timer) clearTimeout(timer)
@@ -166,11 +167,11 @@
}
},
// 执行数据库查询
- query(){
+ query() {
this.mixinDatacomEasyGet();
},
// 监听查询条件变更事件
- onMixinDatacomPropsChange(){
+ onMixinDatacomPropsChange() {
if (this.collection) {
this.debounceGet();
}
@@ -193,9 +194,9 @@
}
defValue = defItem
}
- if (defValue || defValue === 0) {
- this.emit(defValue)
- }
+ if (defValue || defValue === 0) {
+ this.emit(defValue)
+ }
}
const def = this.mixinDatacomResData.find(item => item.value === defValue)
this.current = def ? this.formatItemName(def) : ''
@@ -258,7 +259,7 @@
let str = "";
str = this.format;
for (let key in item) {
- str = str.replace(new RegExp(`{${key}}`,"g"),item[key]);
+ str = str.replace(new RegExp(`{${key}}`, "g"), item[key]);
}
return str;
} else {
@@ -272,26 +273,26 @@
}
},
// 获取当前加载的数据
- getLoadData(){
+ getLoadData() {
return this.mixinDatacomResData;
},
// 获取当前缓存key
- getCurrentCacheKey(){
+ getCurrentCacheKey() {
return this.collection;
},
// 获取缓存
- getCache(name=this.getCurrentCacheKey()){
+ getCache(name = this.getCurrentCacheKey()) {
let cacheData = uni.getStorageSync(this.cacheKey) || {};
return cacheData[name];
},
// 设置缓存
- setCache(value, name=this.getCurrentCacheKey()){
+ setCache(value, name = this.getCurrentCacheKey()) {
let cacheData = uni.getStorageSync(this.cacheKey) || {};
cacheData[name] = value;
uni.setStorageSync(this.cacheKey, cacheData);
},
// 删除缓存
- removeCache(name=this.getCurrentCacheKey()){
+ removeCache(name = this.getCurrentCacheKey()) {
let cacheData = uni.getStorageSync(this.cacheKey) || {};
delete cacheData[name];
uni.setStorageSync(this.cacheKey, cacheData);
@@ -431,6 +432,7 @@
max-height: 600px;
}
}
+
/* #endif */
.uni-select__selector-empty,
@@ -514,4 +516,4 @@
left: 0;
z-index: 2;
}
-
+
\ No newline at end of file