Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
b4676ca5
提交
b4676ca5
authored
11月 24, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
云仓2.5-暂存
上级
0a0b7195
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
1642 行增加
和
673 行删除
+1642
-673
entry.js
src/api/module/entry.js
+35
-8
Navbar.vue
src/layout/components/Navbar.vue
+3
-3
user.js
src/store/modules/user.js
+11
-1
fillMainInf.vue
src/views/entry/fillMainInf.vue
+397
-188
fillShopInf.vue
src/views/entry/fillShopInf.vue
+347
-109
reviewFail.vue
src/views/entry/reviewFail.vue
+24
-2
reviewing.vue
src/views/entry/reviewing.vue
+21
-3
goodsimg.vue
src/views/system/goods/add/components/goodsimg.vue
+1
-0
brand.vue
src/views/system/shop/brand.vue
+21
-10
index.vue
src/views/system/shop/index.vue
+782
-349
没有找到文件。
src/api/module/entry.js
浏览文件 @
b4676ca5
import
request
from
'@/utils/request'
;
// 获取用户详细信息
export
function
getInfo
(
param
)
{
return
request
({
url
:
'/system/index/getInfo'
,
method
:
'get'
,
params
:
param
})
}
// 获取主体信息
export
function
getMainInf
(
query
)
{
...
...
@@ -69,14 +77,6 @@ export function upLoadImg (data) {
});
}
// old
// export function upLoadImg (data) {
// return request({
// url: '/system/goods/uploadImg',
// method: 'post',
// data: data
// });
// }
// 获取商品类目
export
function
getGoodsType
(
query
)
{
return
request
({
...
...
@@ -85,3 +85,30 @@ export function getGoodsType(query) {
params
:
query
});
}
// 营业执照 图片识别信息
export
function
getLicenseImgInfoData
(
query
)
{
return
request
({
url
:
'/local/check/businessLicense'
,
method
:
'get'
,
params
:
query
});
}
// 身份证 正/反 图片识别信息
export
function
getIdcardImgInfoData
(
query
)
{
return
request
({
url
:
'/local/check/idCard'
,
method
:
'get'
,
params
:
query
});
}
// 查询 入驻类目资质
export
function
getUploadQualificationListData
(
query
)
{
return
request
({
url
:
'/local/qualification/list'
,
method
:
'get'
,
params
:
query
});
}
src/layout/components/Navbar.vue
浏览文件 @
b4676ca5
...
...
@@ -136,14 +136,14 @@ export default {
})
},
async
logout
()
{
this
.
$confirm
(
'确定
注销并
退出系统吗?'
,
'提示'
,
{
this
.
$confirm
(
'确定退出系统吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
var
ssa
=
window
.
location
.
host
var
ht
=
document
.
location
.
protocol
let
ssa
=
window
.
location
.
host
let
ht
=
document
.
location
.
protocol
if
(
ssa
==
'localhost:1024'
){
window
.
location
.
href
=
ht
+
'//'
+
this
.
ssourl
+
'/logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
}
else
{
...
...
src/store/modules/user.js
浏览文件 @
b4676ca5
...
...
@@ -10,7 +10,13 @@ const user = {
sellerid
:
0
,
roles
:
[],
permissions
:
[],
ssourl
:
''
ssourl
:
''
,
// 客户信息中,入驻审核状态
// 0-未提交信息;
// 1-审核成;
// 2-审核中;
// 3-审核拒绝;
applyState
:
-
1
,
},
mutations
:
{
...
...
@@ -34,6 +40,9 @@ const user = {
},
SET_PERMISSIONS
:
(
state
,
permissions
)
=>
{
state
.
permissions
=
permissions
},
SET_APPLYSTATE
:
(
state
,
applyState
)
=>
{
state
.
applyState
=
applyState
}
},
...
...
@@ -98,6 +107,7 @@ const user = {
}
commit
(
'SET_NAME'
,
user
.
Username
)
commit
(
'SET_SELLERID'
,
user
.
SellerId
)
commit
(
'SET_APPLYSTATE'
,
user
.
state
)
// 记录 商户入驻后的审核状态
commit
(
'SET_AVATAR'
,
avatar
)
resolve
(
res
)
}).
catch
(
error
=>
{
...
...
src/views/entry/fillMainInf.vue
浏览文件 @
b4676ca5
差异被折叠。
点击展开。
src/views/entry/fillShopInf.vue
浏览文件 @
b4676ca5
差异被折叠。
点击展开。
src/views/entry/reviewFail.vue
浏览文件 @
b4676ca5
...
...
@@ -6,9 +6,8 @@
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"clearfix steps"
>
<el-steps
:active=
"3"
align-center
finish-status=
"success"
process-status=
"error"
>
<!--
<el-step
title=
"签署入驻协议"
></el-step>
--
>
<el-step
title=
"注册账号"
></el-step
>
<el-step
title=
"填写主体信息"
></el-step>
<el-step
title=
"填写品牌信息"
></el-step>
<el-step
title=
"填写店铺信息"
></el-step>
<el-step
title=
"提交入驻审核"
></el-step>
</el-steps>
...
...
@@ -33,6 +32,7 @@
</
template
>
<
script
>
import
{
getInfo
}
from
'@/api/module/entry'
;
export
default
{
name
:
"ReviewFail"
,
data
()
{
...
...
@@ -40,10 +40,32 @@
msg
:
'具体原因,请联系售后'
}
},
created
()
{
getInfo
().
then
(
res
=>
{
if
(
res
.
code
==
1
&&
res
.
data
.
user
)
{
if
(
res
.
data
.
user
.
state
==
1
)
{
this
.
$router
.
push
({
path
:
'/home/index'
});
}
if
(
res
.
data
.
user
.
state
==
2
)
{
this
.
$router
.
push
({
path
:
'/reviewing'
})
}
if
(
res
.
data
.
user
.
state
==
3
)
{
this
.
$router
.
push
({
path
:
'/reviewFail'
});
}
}
else
{
this
.
$router
.
push
({
path
:
'/reviewFail'
});
}
});
},
mounted
()
{
if
(
this
.
$route
.
params
.
msg
)
{
this
.
msg
=
this
.
$route
.
params
.
msg
;
}
/** 禁止 浏览器 后退 */
history
.
pushState
(
null
,
null
,
document
.
URL
);
window
.
addEventListener
(
'popstate'
,
function
()
{
history
.
pushState
(
null
,
null
,
document
.
URL
);
})
},
methods
:
{
// 重新提交审核
...
...
src/views/entry/reviewing.vue
浏览文件 @
b4676ca5
...
...
@@ -6,9 +6,8 @@
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"clearfix steps"
>
<el-steps
:active=
"3"
align-center
finish-status=
"success"
>
<!--
<el-step
title=
"签署入驻协议"
></el-step>
--
>
<el-step
title=
"注册账号"
></el-step
>
<el-step
title=
"填写主体信息"
></el-step>
<el-step
title=
"填写品牌信息"
></el-step>
<el-step
title=
"填写店铺信息"
></el-step>
<el-step
title=
"提交入驻审核"
></el-step>
</el-steps>
...
...
@@ -19,7 +18,7 @@
<img
src=
"../../../public/images/entry/reviewSuccess.png"
alt=
""
>
</p>
<p>
资料已提交,工作人员审核中。。。
</p>
<!--
<p>
感谢您使用云仓!
</p>
--
>
<p
style=
"margin-top: 10px;"
>
感谢您使用云仓!
</p
>
<p>
您的资料已经提交审核,审核周期为1-3个工作日,请您耐心等待审核结果。
</p>
<p>
如果您有其它的问题,可以拔打我们的服务电话与我们联系!
</p>
<!--
<p>
服务电话:4000-188-199
</p>
-->
...
...
@@ -34,6 +33,25 @@
name
:
"ReviewSuccess"
,
data
()
{
return
{}
},
created
()
{
// 刷新当前页面,如果sys操作,审核通过,那么这个applyState状态值会变为 1,代表审核通过,可以直接跳转登录页面,审核拒绝,则 为3,跳转到失败页面
if
(
this
.
$store
.
state
.
user
.
applyState
==
1
)
{
this
.
$router
.
push
({
path
:
'/home/index'
});
}
if
(
this
.
$store
.
state
.
user
.
applyState
==
2
)
{
this
.
$router
.
push
({
path
:
'/reviewing'
});
}
if
(
this
.
$store
.
state
.
user
.
applyState
==
3
)
{
this
.
$router
.
push
({
path
:
'/reviewFail'
});
}
},
mounted
()
{
/** 禁止 浏览器 后退 */
history
.
pushState
(
null
,
null
,
document
.
URL
);
window
.
addEventListener
(
'popstate'
,
function
()
{
history
.
pushState
(
null
,
null
,
document
.
URL
);
})
}
}
</
script
>
...
...
src/views/system/goods/add/components/goodsimg.vue
浏览文件 @
b4676ca5
...
...
@@ -61,6 +61,7 @@
'image'
:
function
(
value
)
{
if
(
value
)
{
// 触发input框选择图片文件
document
.
querySelector
(
'#file'
).
value
=
''
;
// 清空是为了解决,连续上传同一张图片时,后续图片上传失效问题
document
.
querySelector
(
'#file'
).
click
()
}
else
{
this
.
quill
.
format
(
'image'
,
false
);
...
...
src/views/system/shop/brand.vue
浏览文件 @
b4676ca5
...
...
@@ -46,28 +46,31 @@
</el-form>
</div>
<el-table
v-loading=
"loading"
:data=
"brandList"
:height=
"tableHeight"
>
<!--
<el-table-column
type=
"selection"
width=
"45"
align=
"center"
/>
-->
<el-table-column
label=
"序号"
prop=
"id"
align=
"center"
></el-table-column>
<el-table-column
label=
"品牌名称"
prop=
"brand_cn"
align=
"center"
></el-table-column>
<el-table-column
label=
"品牌经营类型"
prop=
"brand_type"
align=
"center"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
brand_type
===
1
?
'自有品牌'
:
'品牌厂商授权'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"品牌类型"
prop=
"brand_range"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
brand_range
===
1
?
'国内'
:
'国外'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"品牌商标注册号"
prop=
"brand_number"
align=
"center"
></el-table-column>
<el-table-column
label=
"品牌状态"
prop=
"status"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
status
===
0
?
'未审核'
:
scope
.
row
.
status
===
1
?
'已通过'
:
'已拒绝'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"授权期限"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<!--
<span>
{{
timeFormatter
(
scope
.
row
.
send_time
)
}}
</span>
-->
<span>
--
</span>
<!--
<span>
{{
timeFormatter
(
scope
.
row
.
send_time
)
}}
</span>
-->
</
template
>
</el-table-column>
<el-table-column
label=
"审核说明"
prop=
"sm"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDetails(scope.row)"
:disabled=
"(scope.row.id === 1)"
>
详情
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"handleDetails(scope.row)"
:disabled=
"(scope.row.id === 1)"
>
编辑
</el-button>
<el-divider
direction=
"vertical"
></el-divider>
<el-button
type=
"text"
size=
"small"
@
click=
"deleteBrand(scope.row)"
:disabled=
"(scope.row.id === 1)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -312,7 +315,7 @@
<
script
>
import
{
getBrandsInf
,
getDetails
,
addBrand
,
upBrand
,
upLoadImg
}
from
'@/api/module/brand/brand'
import
{
dateFormat
}
from
'@/utils'
export
default
{
name
:
"Brand"
,
data
()
{
...
...
@@ -667,7 +670,7 @@
this
.
$message
({
type
:
'warning'
,
message
:
'目前暂时只支持维护20个品牌数据!'
});
}
},
/
/ 详情
/
** 详情 */
handleDetails
(
row
)
{
this
.
isOpen
=
true
;
this
.
brandTitle
=
'品牌信息详情'
;
...
...
@@ -851,6 +854,10 @@
})
},
/** 删除 品牌 */
deleteBrand
(
row
)
{
},
// 修改
edit
(
param
)
{
upBrand
(
param
).
then
(
res
=>
{
...
...
@@ -930,6 +937,10 @@
};
});
},
/** 时间格式化 */
timeFormatter
(
timeVal
)
{
return
dateFormat
(
timeVal
*
1000
,
'Y-m-d'
)
},
// 时间戳转换为 标准时间格式
toStandTime
(
val
)
{
let
date
=
new
Date
(
val
*
1000
)
...
...
src/views/system/shop/index.vue
浏览文件 @
b4676ca5
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论