mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
优化商户初始化页面
This commit is contained in:
parent
63139d1dd9
commit
e88b570c3a
@ -8,7 +8,7 @@
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on('initData', 'loadCommunityInfo', function (_param) {
|
||||
vc.component._loadCommunityInfo(_param);
|
||||
vc.component._validateHasStore(_param);
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
@ -35,6 +35,27 @@
|
||||
vc.jumpToPage(_param.url);
|
||||
}
|
||||
);
|
||||
},
|
||||
_validateHasStore: function (_param) {
|
||||
var param = {
|
||||
params:{
|
||||
_uId:'ccdd00opikookjuhyyttvhnnjuuu'
|
||||
}
|
||||
};
|
||||
vc.http.get('hasCompany',
|
||||
'check',
|
||||
param,
|
||||
function (json, res) {
|
||||
if (res.status == 200) {
|
||||
vc.component._loadCommunityInfo(_param);
|
||||
}else{
|
||||
vc.jumpToPage("/initCompany.html#/company");
|
||||
}
|
||||
}, function () {
|
||||
console.log('请求失败处理');
|
||||
vc.jumpToPage(_param.url);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
54
public/initCompany.html
Normal file
54
public/initCompany.html
Normal file
@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:th="http://www.thymeleaf.org"
|
||||
xmlns:vc="http://www.thymeleaf.org">
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
|
||||
<title>完善公司信息 | java110</title>
|
||||
<vc:create name="commonTop" domain="frameComponents" location="head"></vc:create>
|
||||
<link rel="stylesheet" href="/css/bootstrap/bootstrap.min.css" />
|
||||
<link href="/font-awesome/css/font-awesome.css" rel="stylesheet" />
|
||||
<link href="/css/plugins/select2/select2.min.css" rel="stylesheet">
|
||||
<link href="/css/animate.css" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/css/bootstrap/bootstrap-datetimepicker.min.css" />
|
||||
<link rel="stylesheet" href="/css/vc-ui.css" />
|
||||
|
||||
<script src="/js/bootstrap/jquery-3.3.1.min.js"></script>
|
||||
<script src="/js/vue/vue.min.js"></script>
|
||||
<script src="/js/vue/vue-resource.min.js"></script>
|
||||
<script src="/js/popper.min.js"></script>
|
||||
<script src="/js/bootstrap/bootstrap.min.js"></script>
|
||||
<script src="/js/bootstrap/bootstrap-datetimepicker.js"></script>
|
||||
<script src="/js/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>
|
||||
<script src="/js/plugins/select2/select2.full.min.js"></script>
|
||||
<script src="/js/plugins/echart/echarts.min.js"></script>
|
||||
<script src="/js/plugins/echart/china.js"></script>
|
||||
<!-- SUMMERNOTE 富文本组件-->
|
||||
<link href="/css/plugins/summernote/summernote-bs4.min.css" rel="stylesheet">
|
||||
<script src="/js/plugins/summernote/summernote-bs4.min.js"></script>
|
||||
<script src="/js/plugins/summernote/summernote-zh-CN.min.js"></script>
|
||||
<script src="/js/plugins/xss/xss.min.js"></script>
|
||||
<link href="/css/jquery.step.css" rel="stylesheet" />
|
||||
<script src="/js/jquery.step.min.js"></script>
|
||||
<link rel="stylesheet" href="/css/bootstrap/bootstrap-treeview.min.css" />
|
||||
<script src="/js/bootstrap/bootstrap-treeview.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="vc-body">
|
||||
<vc:create name="bodyTop" domain="frameComponents"></vc:create>
|
||||
<!--<vc:create name="loading"></vc:create>-->
|
||||
<div id="component">
|
||||
<vc:create name="company"></vc:create>
|
||||
</div>
|
||||
<script src="/vcCore/vcFramework.js"></script>
|
||||
<vc:create name="commonBottom" domain="frameComponents" location="body"></vc:create>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user