Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
779f1b07
提交
779f1b07
authored
11月 12, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
云仓入驻优化
上级
ee889536
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
52 行增加
和
35 行删除
+52
-35
Navbar.vue
src/layout/components/Navbar.vue
+3
-3
user.js
src/store/modules/user.js
+11
-1
fillBrandInf.vue
src/views/entry/fillBrandInf.vue
+4
-3
fillMainInf.vue
src/views/entry/fillMainInf.vue
+4
-14
fillShopInf.vue
src/views/entry/fillShopInf.vue
+5
-10
reviewFail.vue
src/views/entry/reviewFail.vue
+12
-4
reviewing.vue
src/views/entry/reviewing.vue
+13
-0
没有找到文件。
src/layout/components/Navbar.vue
浏览文件 @
779f1b07
...
@@ -136,14 +136,14 @@ export default {
...
@@ -136,14 +136,14 @@ export default {
})
})
},
},
async
logout
()
{
async
logout
()
{
this
.
$confirm
(
'确定
注销并
退出系统吗?'
,
'提示'
,
{
this
.
$confirm
(
'确定退出系统吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
this
.
$store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
var
ssa
=
window
.
location
.
host
let
ssa
=
window
.
location
.
host
var
ht
=
document
.
location
.
protocol
let
ht
=
document
.
location
.
protocol
if
(
ssa
==
'localhost:1024'
){
if
(
ssa
==
'localhost:1024'
){
window
.
location
.
href
=
ht
+
'//'
+
this
.
ssourl
+
'/logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
window
.
location
.
href
=
ht
+
'//'
+
this
.
ssourl
+
'/logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
}
else
{
}
else
{
...
...
src/store/modules/user.js
浏览文件 @
779f1b07
...
@@ -10,7 +10,13 @@ const user = {
...
@@ -10,7 +10,13 @@ const user = {
sellerid
:
0
,
sellerid
:
0
,
roles
:
[],
roles
:
[],
permissions
:
[],
permissions
:
[],
ssourl
:
''
ssourl
:
''
,
// 客户信息中的,入驻审核状态:0 是默认值
// 0-未提交未审核
// 1-审核成功
// 2-审核中
// 3-审核失败
applyState
:
-
1
,
},
},
mutations
:
{
mutations
:
{
...
@@ -34,6 +40,9 @@ const user = {
...
@@ -34,6 +40,9 @@ const user = {
},
},
SET_PERMISSIONS
:
(
state
,
permissions
)
=>
{
SET_PERMISSIONS
:
(
state
,
permissions
)
=>
{
state
.
permissions
=
permissions
state
.
permissions
=
permissions
},
SET_APPLYSTATE
:
(
state
,
applyState
)
=>
{
state
.
applyState
=
applyState
}
}
},
},
...
@@ -98,6 +107,7 @@ const user = {
...
@@ -98,6 +107,7 @@ const user = {
}
}
commit
(
'SET_NAME'
,
user
.
Username
)
commit
(
'SET_NAME'
,
user
.
Username
)
commit
(
'SET_SELLERID'
,
user
.
SellerId
)
commit
(
'SET_SELLERID'
,
user
.
SellerId
)
commit
(
'SET_APPLYSTATE'
,
user
.
state
)
// 商户入驻后的审核状态
commit
(
'SET_AVATAR'
,
avatar
)
commit
(
'SET_AVATAR'
,
avatar
)
resolve
(
res
)
resolve
(
res
)
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
...
...
src/views/entry/fillBrandInf.vue
浏览文件 @
779f1b07
...
@@ -290,6 +290,7 @@
...
@@ -290,6 +290,7 @@
// }
// }
},
},
created
()
{
created
()
{
// console.log('品牌页面',this.$store.state.user.applyState)
this
.
getBrands
();
this
.
getBrands
();
},
},
mounted
()
{
mounted
()
{
...
@@ -491,7 +492,7 @@
...
@@ -491,7 +492,7 @@
getBrands
()
{
getBrands
()
{
// 初始化
// 初始化
getBrandsInf
().
then
(
res
=>
{
getBrandsInf
().
then
(
res
=>
{
if
(
res
.
code
==
=
1
&&
res
.
data
)
{
if
(
res
.
code
==
1
)
{
this
.
brandForm
=
res
.
data
[
0
];
this
.
brandForm
=
res
.
data
[
0
];
// 商标logo图片处理
// 商标logo图片处理
let
brandList
=
{};
let
brandList
=
{};
...
@@ -634,7 +635,7 @@
...
@@ -634,7 +635,7 @@
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
this
.
$router
.
push
(
"/fillShopInf"
);
this
.
$router
.
push
(
"/fillShopInf"
);
}
else
{
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
?
res
.
message
:
'
操作
失败'
});
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
?
res
.
message
:
'
保存
失败'
});
}
}
});
});
}
else
{
}
else
{
...
@@ -642,7 +643,7 @@
...
@@ -642,7 +643,7 @@
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
this
.
$router
.
push
(
"/fillShopInf"
);
this
.
$router
.
push
(
"/fillShopInf"
);
}
else
{
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
?
res
.
message
:
'
操作
失败'
});
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
?
res
.
message
:
'
保存
失败'
});
}
}
});
});
}
}
...
...
src/views/entry/fillMainInf.vue
浏览文件 @
779f1b07
...
@@ -156,10 +156,7 @@
...
@@ -156,10 +156,7 @@
</el-form>
</el-form>
</div>
</div>
</el-card>
</el-card>
</div>
</div>
</
template
>
</
template
>
...
@@ -278,11 +275,10 @@
...
@@ -278,11 +275,10 @@
}
}
},
},
created
()
{
created
()
{
// console.log('主体页面',this.$store.state.user.applyState)
this
.
getMain
();
this
.
getMain
();
},
},
mounted
()
{
mounted
()
{},
},
methods
:
{
methods
:
{
periodConcrete
()
{
periodConcrete
()
{
if
(
this
.
periodConcreteTime
)
{
if
(
this
.
periodConcreteTime
)
{
...
@@ -381,8 +377,7 @@
...
@@ -381,8 +377,7 @@
// 获取主体信息接口
// 获取主体信息接口
getMain
()
{
getMain
()
{
getMainInf
().
then
(
res
=>
{
getMainInf
().
then
(
res
=>
{
//console.log("获取主体数据:",res);
if
(
res
.
code
==
1
)
{
if
(
res
.
code
===
1
)
{
this
.
resetForm
(
'mainForm'
);
this
.
resetForm
(
'mainForm'
);
this
.
mainForm
=
res
.
data
;
this
.
mainForm
=
res
.
data
;
this
.
mainForm
.
idcardback
=
"jzwsfm"
;
this
.
mainForm
.
idcardback
=
"jzwsfm"
;
...
@@ -404,7 +399,6 @@
...
@@ -404,7 +399,6 @@
this
.
licenseImgFileList
.
push
(
licenseList
);
this
.
licenseImgFileList
.
push
(
licenseList
);
}
}
// 处理法人证件照
// 处理法人证件照
let
idcardList
=
{};
let
idcardList
=
{};
let
idcardArr
=
[];
let
idcardArr
=
[];
...
@@ -421,21 +415,17 @@
...
@@ -421,21 +415,17 @@
this
.
idcardImgFileList
.
push
(
idcardList
);
this
.
idcardImgFileList
.
push
(
idcardList
);
}
}
if
(
this
.
mainForm
.
idcard_expires_time
===
0
)
{
if
(
this
.
mainForm
.
idcard_expires_time
===
0
)
{
this
.
validityLongTermVal
=
true
;
this
.
validityLongTermVal
=
true
;
}
else
{
}
else
{
this
.
validityConcreteTime
=
this
.
toStandTime
(
this
.
mainForm
.
idcard_expires_time
);
this
.
validityConcreteTime
=
this
.
toStandTime
(
this
.
mainForm
.
idcard_expires_time
);
}
}
//
if
(
this
.
mainForm
.
license_expires_time
===
0
)
{
if
(
this
.
mainForm
.
license_expires_time
===
0
)
{
this
.
periodLongTermVal
=
true
;
this
.
periodLongTermVal
=
true
;
}
else
{
}
else
{
this
.
periodConcreteTime
=
this
.
toStandTime
(
this
.
mainForm
.
license_expires_time
);
this
.
periodConcreteTime
=
this
.
toStandTime
(
this
.
mainForm
.
license_expires_time
);
}
}
}
else
{
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
?
res
.
message
:
''
});
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
?
res
.
message
:
''
});
}
}
...
@@ -526,7 +516,7 @@
...
@@ -526,7 +516,7 @@
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
this
.
$router
.
push
(
"/fillBrandInf"
);
this
.
$router
.
push
(
"/fillBrandInf"
);
}
else
{
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
?
res
.
message
:
'
操作
失败'
});
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
?
res
.
message
:
'
保存
失败'
});
}
}
});
});
}
}
...
...
src/views/entry/fillShopInf.vue
浏览文件 @
779f1b07
...
@@ -186,6 +186,7 @@
...
@@ -186,6 +186,7 @@
}
}
},
},
created
()
{
created
()
{
// console.log('店铺页面',this.$store.state.user.applyState)
// 获取经营一级类目
// 获取经营一级类目
getGoodsType
().
then
(
res
=>
{
getGoodsType
().
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
...
@@ -197,9 +198,7 @@
...
@@ -197,9 +198,7 @@
// 获取店铺信息
// 获取店铺信息
this
.
getShop
();
this
.
getShop
();
},
},
mounted
()
{
mounted
()
{},
},
methods
:
{
methods
:
{
showTip1
(
files
,
fileList
){
showTip1
(
files
,
fileList
){
this
.
$message
({
message
:
'最多上传1张图片'
,
type
:
'warning'
});
this
.
$message
({
message
:
'最多上传1张图片'
,
type
:
'warning'
});
...
@@ -246,7 +245,7 @@
...
@@ -246,7 +245,7 @@
// 获取 店铺信息
// 获取 店铺信息
getShop
()
{
getShop
()
{
getShopInf
().
then
(
res
=>
{
getShopInf
().
then
(
res
=>
{
if
(
res
.
code
==
1
&&
res
.
data
){
if
(
res
.
code
==
1
){
// 处理 select 下拉回显数据格式
// 处理 select 下拉回显数据格式
this
.
storeForm
.
scope
=
[];
this
.
storeForm
.
scope
=
[];
if
(
res
.
data
.
scope
===
''
)
{
if
(
res
.
data
.
scope
===
''
)
{
...
@@ -296,10 +295,7 @@
...
@@ -296,10 +295,7 @@
this
.
businessImgFileList
=
[];
this
.
businessImgFileList
=
[];
}
}
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
?
res
.
message
:
''
});
message
:
res
.
message
?
res
.
message
:
'操作失败'
,
type
:
'error'
});
}
}
});
});
},
},
...
@@ -413,7 +409,6 @@
...
@@ -413,7 +409,6 @@
}
}
}
}
//console.log("新增/修改的店铺信息:",this.storeForm);
//formName
//formName
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
@@ -421,7 +416,7 @@
...
@@ -421,7 +416,7 @@
if
(
res
.
code
==
1
){
if
(
res
.
code
==
1
){
this
.
$router
.
push
(
"/reviewing"
);
this
.
$router
.
push
(
"/reviewing"
);
}
else
{
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
?
res
.
message
:
'
操作
失败'
});
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
?
res
.
message
:
'
保存
失败'
});
// 处理 scope数据格式冲突
// 处理 scope数据格式冲突
if
(
this
.
storeForm
.
scope
===
''
)
{
if
(
this
.
storeForm
.
scope
===
''
)
{
this
.
storeForm
.
scope
=
[];
this
.
storeForm
.
scope
=
[];
...
...
src/views/entry/reviewFail.vue
浏览文件 @
779f1b07
...
@@ -24,11 +24,8 @@
...
@@ -24,11 +24,8 @@
<!--
<p>
服务电话:4000-188-199
</p>
-->
<!--
<p>
服务电话:4000-188-199
</p>
-->
<p
style=
"padding-top: 40px;"
><el-button
type=
"primary"
@
click=
"reSubmit"
>
重新提交
</el-button></p>
<p
style=
"padding-top: 40px;"
><el-button
type=
"primary"
@
click=
"reSubmit"
>
重新提交
</el-button></p>
</div>
</div>
</div>
</div>
</el-card>
</el-card>
</div>
</div>
</
template
>
</
template
>
...
@@ -40,10 +37,21 @@
...
@@ -40,10 +37,21 @@
msg
:
'具体原因,请联系售后'
msg
:
'具体原因,请联系售后'
}
}
},
},
mounted
()
{
created
()
{
// console.log(555,this.$store.state.user.applyState)
if
(
this
.
$route
.
params
.
msg
)
{
if
(
this
.
$route
.
params
.
msg
)
{
this
.
msg
=
this
.
$route
.
params
.
msg
;
this
.
msg
=
this
.
$route
.
params
.
msg
;
}
}
// 刷新当前页面,如果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'
});
}
},
},
methods
:
{
methods
:
{
// 重新提交审核
// 重新提交审核
...
...
src/views/entry/reviewing.vue
浏览文件 @
779f1b07
...
@@ -34,6 +34,19 @@
...
@@ -34,6 +34,19 @@
name
:
"ReviewSuccess"
,
name
:
"ReviewSuccess"
,
data
()
{
data
()
{
return
{}
return
{}
},
created
()
{
console
.
log
(
444
,
this
.
$store
.
state
.
user
.
applyState
)
// 刷新当前页面,如果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'
});
}
}
}
}
}
</
script
>
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论