Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
5b6ca0ad
提交
5b6ca0ad
authored
11月 25, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
云仓2.5-提测
上级
b4676ca5
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
750 行增加
和
918 行删除
+750
-918
brand.js
src/api/module/brand/brand.js
+22
-5
fillShopInf.vue
src/views/entry/fillShopInf.vue
+3
-19
newyuncang.vue
src/views/entry/newyuncang.vue
+0
-53
goodsinfomation.vue
src/views/system/goods/add/components/goodsinfomation.vue
+10
-18
index.vue
src/views/system/goods/add/index.vue
+10
-6
brand.vue
src/views/system/shop/brand.vue
+488
-376
index.vue
src/views/system/shop/index.vue
+217
-441
没有找到文件。
src/api/module/brand/brand.js
浏览文件 @
5b6ca0ad
...
...
@@ -9,7 +9,7 @@ export function getBrandsInf(query) {
}
// 新增品牌
export
function
addBrand
(
data
)
{
export
function
addBrand
Data
(
data
)
{
return
request
({
url
:
'/local/brands'
,
method
:
'post'
,
...
...
@@ -17,12 +17,29 @@ export function addBrand(data) {
});
}
// 删除 品牌
export
function
delBrandData
(
data
)
{
return
request
({
url
:
'/local/brand/deleteBrand'
,
method
:
'post'
,
data
:
data
});
}
// 获取品牌详情
export
function
getDetails
(
id
)
{
// export function (id) {
// return request({
// url: '?id='+id,
// method: 'get'
// })
// }
export
function
getDetails
(
query
)
{
return
request
({
url
:
'/local/brandsInfo?id='
+
id
,
method
:
'get'
})
url
:
'/local/brandsInfo'
,
method
:
'get'
,
params
:
query
});
}
// 修改品牌信息
...
...
src/views/entry/fillShopInf.vue
浏览文件 @
5b6ca0ad
...
...
@@ -85,25 +85,9 @@
<el-form-item
label=
"其他资质:"
>
<div
class=
"auth-con"
>
<!--*** 方法一 start ***-->
<!-- :class="['uploadData',
{ 'hiden-dom': businessImgFileList.length >= 1 }]"-->
<!-- :class="uploadDataClass(item)"-->
<!--
<div
v-for=
"(item,index) in qualificationList"
:key=
"item.id"
class=
"single-upload-con"
>
-->
<!--
<el-upload-->
<!-- :class="uploadDataClass(item,index)"-->
<!-- action="#"-->
<!-- list-type="picture-card"-->
<!-- :limit="1"-->
<!-- :on-exceed="showTip1"-->
<!-- :http-request="(item)=>
{return uploadBusinessImgs(item)}"-->
<!-- :file-list="showIndexAuthImg(item,index)"-->
<!-- >
</el-upload>
-->
<!--
<div
class=
"single-title"
>
{{
authTitleFormatter
(
item
.
content
)
}}
</div>
-->
<!--
</div>
-->
<!--*** 方法一 end ***-->
<!--*** 方法二 start ***-->
<div
v-for=
"(item,index) in qualificationList"
:key=
"item.id"
class=
"single-upload-con"
>
<div
v-show=
"!item.url"
class=
"single-auth-img"
@
click=
"upPre
Spe
Img(index)"
></div>
<div
v-show=
"!item.url"
class=
"single-auth-img"
@
click=
"upPre
Auth
Img(index)"
></div>
<div
v-show=
"item.url"
class=
"single-auth-img-con"
>
<img
class=
"auth-spec-img"
:src=
"item.url"
alt=
""
/>
...
...
@@ -510,7 +494,7 @@
}
},
/** 上传 对应资质图片 */
upPre
Spe
Img
(
index
)
{
upPre
Auth
Img
(
index
)
{
let
domRef
=
"hxz"
+
index
;
this
.
$refs
[
domRef
][
0
].
value
=
''
;
this
.
$refs
[
domRef
][
0
].
click
();
...
...
@@ -544,7 +528,7 @@
},
/** 更换图片 */
// changeSpeImg(index,item) {
// this.upPre
Spe
Img(index,item);
// this.upPre
Auth
Img(index,item);
// },
/** 删除 当前图片 */
delSingleSpecImg
(
index
,
item
)
{
...
...
src/views/entry/newyuncang.vue
浏览文件 @
5b6ca0ad
...
...
@@ -801,59 +801,6 @@
</
script
>
<
style
lang=
"scss"
type=
"text/stylus"
scoped
>
/* 手机竖屏时,可视区域的最大宽度为 480 */
//@media screen and (max-width: 480px) and (orientation: portrait) {
// .pc-content {
// display: none!important;
// }
// .mobile-show {
// display: none!important;
// }
//}
/* 手机横屏和pc最小宽度为 812px */
/* 手机横屏 812px 为iphoneX 横屏的设备独立像素*/
//@media screen and (max-width: 961px) and (orientation: landscape) {
// .pc-content {
// display: none !important;
// }
//
// .mobile-content {
// display: block!important;
// font-size: 0.16rem;
// }
//}
@media
screen
and
(
min-width
:
750px
)
{
html
{
font-size
:
100px
;
}
}
@media
screen
and
(
min-width
:
640px
)
and
(
max-width
:
749
)
{
html
{
font-size
:
85
.333px
;
}
}
@media
screen
and
(
min-width
:
414px
)
and
(
max-width
:
639
)
{
html
{
font-size
:
61
.333px
;
}
}
@media
screen
and
(
min-width
:
375px
)
and
(
max-width
:
413
)
{
html
{
font-size
:
50px
;
}
}
@media
screen
and
(
min-width
:
320px
)
and
(
max-width
:
374
)
{
html
{
font-size
:
42
.6667px
;
}
}
@media
screen
and
(
max-width
:
961px
)
{
.pc-content
{
display
:
none
!
important
;
...
...
src/views/system/goods/add/components/goodsinfomation.vue
浏览文件 @
5b6ca0ad
...
...
@@ -44,8 +44,8 @@
<!--
<span
class=
"tip-span ml20"
>
关键词之间用逗号分开,最多可以添加5个
</span>
-->
</el-form-item>
<el-form-item
label=
"所属品牌:"
prop=
"
goods_bran
d"
>
<el-select
v-model=
"goodsInfoForm.
goods_bran
d"
placeholder=
"请选择商品品牌"
style=
"width: 420px;"
>
<el-form-item
label=
"所属品牌:"
prop=
"
brand_i
d"
>
<el-select
v-model=
"goodsInfoForm.
brand_i
d"
placeholder=
"请选择商品品牌"
style=
"width: 420px;"
>
<el-option
v-for=
"item in brandOptions"
:key=
"item.id"
...
...
@@ -169,6 +169,7 @@
deliver_area
:
''
,
// 发货地
unit
:
''
,
// 单位
goods_brand
:
''
,
// 品牌
brand_id
:
0
,
// 品牌id
web_url
:
''
,
// 外部链接
out_goods_id
:
''
,
// 商品编码
imgs
:
[]
// 商品图片
...
...
@@ -262,25 +263,16 @@
},
// 获取 商品品牌
getBrands
()
{
getBrandsInf
().
then
(
res
=>
{
if
(
res
.
data
)
{
this
.
brandOptions
=
res
.
data
.
data
;
// 增加入参
let
data
=
{
status
:
1
}
getBrandsInf
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
brandOptions
=
res
.
data
.
data
?
res
.
data
.
data
:
[];
}
else
{
this
.
brandOptions
=
[];
}
// let num_goods_brand = Number(this.goodsInfoForm.goods_brand);
//
// if( this.goodsInfoForm.goods_brand !== '') {
// let result = this.brandOptions.find( item => {
// return item.id === num_goods_brand;
// });
// //console.log(315,result)
// if( result == undefined) {
// this.goodsInfoForm.goods_brand = '';
// }
// }
});
},
/* 修改 商品分类 类目 */
...
...
src/views/system/goods/add/index.vue
浏览文件 @
5b6ca0ad
...
...
@@ -178,13 +178,12 @@
deliver_area
:
res
.
data
.
deliver_area
,
// 发货地
unit
:
res
.
data
.
unit
,
// 单位
goods_brand
:
res
.
data
.
goods_brand
,
// 品牌
brand_id
:
res
.
data
.
brand_id
,
// 品牌
web_url
:
res
.
data
.
web_url
,
// 外部链接
out_goods_id
:
(
res
.
data
.
out_goods_id
==
0
)
?
''
:
res
.
data
.
out_goods_id
,
// 商品编码
imgs
:
res
.
data
.
imgs
// 商品图片
}
this
.
goodsinfodata
.
categoryStr
=
res
.
data
.
category_first_name
+
'/'
+
res
.
data
.
category_first_name
+
'/'
+
res
.
data
.
category_three_name
;
// 发货地 需要 处理
// this.goodsinfodata.deliver_area = this.goodsinfodata.deliver_area === 0 ? '' : this.goodsinfodata.deliver_area;
let
arr
=
[];
arr
[
0
]
=
res
.
data
.
category_first_id
;
...
...
@@ -505,13 +504,18 @@
let
spxxData
=
this
.
$refs
.
goodsInfo
.
goodsInfoForm
;
// 品牌处理 goods_brand
let
brandOptions
=
this
.
$refs
.
goodsInfo
.
brandOptions
;
for
(
let
bi
=
0
;
bi
<
brandOptions
.
length
;
bi
++
)
{
if
(
Number
(
spxxData
.
goods_brand
)
===
Number
(
brandOptions
[
bi
].
id
)
)
{
spxxData
.
goods_brand
=
brandOptions
[
bi
].
brand_cn
;
break
;
debugger
// goods_brand
if
(
Array
.
isArray
(
brandOptions
)
&&
brandOptions
.
length
>
0
)
{
for
(
let
bi
=
0
;
bi
<
brandOptions
.
length
;
bi
++
)
{
if
(
Number
(
spxxData
.
goods_id
)
===
Number
(
brandOptions
[
bi
].
id
)
)
{
spxxData
.
goods_brand
=
brandOptions
[
bi
].
brand_cn
;
break
;
}
}
}
// 产地数据处理
let
areaOptions
=
this
.
$refs
.
goodsInfo
.
areaOptions
;
for
(
let
ai
=
0
;
ai
<
areaOptions
.
length
;
ai
++
)
{
...
...
src/views/system/shop/brand.vue
浏览文件 @
5b6ca0ad
差异被折叠。
点击展开。
src/views/system/shop/index.vue
浏览文件 @
5b6ca0ad
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论