Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
partners
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
物业总平台
partners
Commits
877607e1
提交
877607e1
authored
8月 30, 2023
作者:
何忠建
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复bug
上级
0d59a7de
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
158 行增加
和
20 行删除
+158
-20
api.js
src/api/api.js
+3
-0
UserLayout.vue
src/components/layouts/UserLayout.vue
+8
-3
urlErr.vue
src/components/layouts/urlErr.vue
+77
-0
Logo.vue
src/components/tools/Logo.vue
+10
-1
getters.js
src/store/getters.js
+6
-1
index.js
src/store/index.js
+7
-0
loginurl.js
src/store/modules/loginurl.js
+32
-0
ShopsDetails.vue
src/views/shops/ShopsDetails.vue
+11
-14
Login.vue
src/views/user/Login.vue
+4
-1
没有找到文件。
src/api/api.js
浏览文件 @
877607e1
...
...
@@ -2,6 +2,9 @@ import { getAction, deleteAction, putAction, postAction, httpAction } from '@/ap
import
Vue
from
'vue'
import
{
UI_CACHE_DB_DICT_DATA
}
from
"@/store/mutation-types"
// 获取当前账号个人信息
export
const
loginUrlCheck
=
(
params
)
=>
postAction
(
"/sys/loginUrlCheck"
,
params
);
// 统计数据
const
getDataStatisticsApi
=
(
params
)
=>
getAction
(
"/property-central/partners/partnersInfo/statistics"
,
params
);
const
shareBoardApi
=
(
params
)
=>
getAction
(
"/property-community/order/paymentOrder/shareBoard"
,
params
);
...
...
src/components/layouts/UserLayout.vue
浏览文件 @
877607e1
<
template
>
<div
id=
"userLayout"
:class=
"['user-layout-wrapper', device]"
>
<div
class=
"container"
>
<div
class=
"container"
v-if=
"isPageUrlTrue"
>
<div
class=
"top"
>
<div
class=
"header"
>
<a
href=
"/"
>
...
...
@@ -27,20 +27,25 @@
</div>
</div>
-->
</div>
<div
v-else
>
<err-page
/>
</div>
</div>
</
template
>
<
script
>
import
RouteView
from
"@/components/layouts/RouteView"
import
{
mixinDevice
}
from
'@/utils/mixin.js'
import
{
mapGetters
}
from
'vuex'
import
errPage
from
'./urlErr.vue'
export
default
{
name
:
"UserLayout"
,
components
:
{
RouteView
},
components
:
{
RouteView
,
errPage
},
mixins
:
[
mixinDevice
],
data
()
{
return
{}
},
computed
:
mapGetters
([
"isPageUrlTrue"
]),
mounted
()
{
document
.
body
.
classList
.
add
(
'userLayout'
)
},
...
...
src/components/layouts/urlErr.vue
0 → 100644
浏览文件 @
877607e1
<
template
>
<div
class=
"exception"
>
<div
class=
"img"
>
<img
src=
"https://gw.alipayobjects.com/zos/rmsportal/KpnpchXsobRgLElEozzI.svg"
/>
</div>
<div
class=
"content"
>
<h1>
404
</h1>
<div
class=
"desc"
>
抱歉,你访问的页面地址错误
</div>
<!--
<div
class=
"action"
>
<a-button
type=
"primary"
@
click=
"handleToHome"
>
返回首页
</a-button>
</div>
-->
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
"ErrPage"
,
data
()
{
return
{}
},
methods
:
{
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.exception {
min-height: 500px;
height: 80%;
align-items: center;
text-align: center;
margin-top: 150px;
.img {
display: inline-block;
padding-right: 52px;
zoom: 1;
img {
height: 360px;
max-width: 430px;
}
}
.content {
display: inline-block;
flex: auto;
h1 {
color: #434e59;
font-size: 72px;
font-weight: 600;
line-height: 72px;
margin-bottom: 24px;
}
.desc {
color: rgba(0, 0, 0, .45);
font-size: 20px;
line-height: 28px;
margin-bottom: 16px;
}
}
}
.mobile {
.exception {
margin-top: 30px;
.img {
padding-right: unset;
img {
height: 40%;
max-width: 80%;
}
}
}
}
</
style
>
\ No newline at end of file
src/components/tools/Logo.vue
浏览文件 @
877607e1
<!--
* @Author: luofu
* @Date: 2023-07-17 11:41:17
* @Descripttion:
-->
<
template
>
<div
class=
"logo"
>
<router-link
:to=
"routerLinkTo"
>
...
...
@@ -21,7 +26,7 @@
props
:
{
title
:
{
type
:
String
,
default
:
'
汉星科技
'
,
default
:
'
合作伙伴管理后台
'
,
required
:
false
},
showTitle
:
{
...
...
@@ -61,4 +66,7 @@
background-color: @primary-color;
}
}
.light .sider .logo img{
display: none;
}
</
style
>
\ No newline at end of file
src/store/getters.js
浏览文件 @
877607e1
/*
* @Author: luofu
* @Date: 2023-07-17 11:41:17
* @Descripttion:
*/
import
Vue
from
'vue'
import
{
USER_INFO
,
ENHANCE_PRE
}
from
"@/store/mutation-types"
const
getters
=
{
...
...
@@ -18,7 +23,7 @@ const getters = {
return
state
.
enhance
.
enhanceJs
[
code
]
},
sysSafeMode
:
state
=>
state
.
user
.
sysSafeMode
,
isPageUrlTrue
:
state
=>
state
.
loginurl
.
isPageUrlTrue
}
export
default
getters
src/store/index.js
浏览文件 @
877607e1
/*
* @Author: luofu
* @Date: 2023-07-17 11:41:17
* @Descripttion:
*/
import
Vue
from
'vue'
import
Vuex
from
'vuex'
...
...
@@ -5,6 +10,7 @@ import app from './modules/app'
import
user
from
'./modules/user'
import
permission
from
'./modules/permission'
import
enhance
from
'./modules/enhance'
import
loginurl
from
'./modules/loginurl'
import
online
from
'./modules/online'
import
getters
from
'./getters'
...
...
@@ -17,6 +23,7 @@ export default new Vuex.Store({
permission
,
enhance
,
online
,
loginurl
,
},
state
:
{
...
...
src/store/modules/loginurl.js
0 → 100644
浏览文件 @
877607e1
/*
* @Author: luofu
* @Date: 2023-08-30 10:44:15
* @Descripttion:
*/
import
{
loginUrlCheck
}
from
'@/api/api'
import
{
getFileAccessHttpUrl
}
from
'@/api/manage'
const
enhance
=
{
state
:
{
isPageUrlTrue
:
true
,
pageTitle
:
'湖北汉江之星科技有限公司'
,
pageImage
:
''
},
mutations
:
{
SET_PAGE_URL_FLAG
:
(
state
,
flag
)
=>
{
state
.
isPageUrlTrue
=
flag
},
},
actions
:
{
onLoginUrlCheck
({
commit
},
record
)
{
loginUrlCheck
({
platformType
:
'partner'
}).
then
(
res
=>
{
if
(
res
.
result
&&
res
.
result
.
name
)
{
commit
(
'SET_PAGE_URL_FLAG'
,
true
)
}
else
{
commit
(
'SET_PAGE_URL_FLAG'
,
false
)
}
})
}
}
}
export
default
enhance
\ No newline at end of file
src/views/shops/ShopsDetails.vue
浏览文件 @
877607e1
...
...
@@ -110,8 +110,9 @@
<
script
>
const
mapZoom
=
[
5
,
8
,
10
,
12
]
let
timer
=
null
import
{
partnersShopByDepId
,
partnersShopAudit
,
getQrCode
}
from
'@/api/api'
import
{
partnersShopByDepId
,
partnersShopAudit
,
getQrCode
}
from
'@/api/api'
import
{
httpAction
,
getAction
}
from
'@/api/manage'
import
{
axios
}
from
'@/utils/request'
import
SelectCommunityModal
from
'./modules/SelectCommunityModal'
import
SelectShopsModal
from
'./modules/SelectShopsModal'
...
...
@@ -125,7 +126,7 @@ export default {
data
()
{
return
{
title
:
''
,
loading
:
false
,
loading
:
false
,
pageType
:
''
,
model
:
{
communityName
:
''
,
...
...
@@ -134,7 +135,7 @@ export default {
shopCode
:
''
,
},
shopsInfo
:
{},
codeImg
:
''
,
codeImg
:
''
,
labelCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
6
},
...
...
@@ -218,7 +219,7 @@ export default {
this
.
recordList
=
result
.
recordList
this
.
model
=
Object
.
assign
({},
result
.
partnersShop
)
this
.
shopsInfo
=
Object
.
assign
({},
result
.
shopInfo
)
if
(
this
.
shopsInfo
&&
this
.
shopsInfo
.
shopCode
)
{
if
(
this
.
shopsInfo
&&
this
.
shopsInfo
.
shopCode
)
{
this
.
getQrCode
(
this
.
shopsInfo
.
shopCode
)
}
this
.
shopsInfo
.
registAdress
=
result
.
shopInfo
.
provinceName
+
result
.
shopInfo
.
cityName
+
result
.
shopInfo
.
countyName
...
...
@@ -233,16 +234,12 @@ export default {
)
}
},
async
getQrCode
(
shopCode
)
{
let
params
=
{
shopCode
:
shopCode
,
platformType
:
'partner'
}
let
{
res
}
=
await
getQrCode
(
params
)
console
.
log
(
res
)
if
(
res
&&
res
!=
undefined
){
this
.
codeImg
=
window
.
URL
.
createObjectURL
(
new
Blob
([
res
]));
}
getQrCode
(
shopCode
)
{
axios
(
'/property-central/shop/shopInfo/getQrCode?shopCode='
+
shopCode
+
'&platformType=partner'
,
{
responseType
:
'blob'
,
}).
then
((
res
)
=>
{
this
.
codeImg
=
window
.
URL
.
createObjectURL
(
new
Blob
([
res
]))
})
},
toReturn
()
{
this
.
closeCurrent
()
...
...
src/views/user/Login.vue
浏览文件 @
877607e1
...
...
@@ -38,6 +38,7 @@ import { ACCESS_TOKEN, ENCRYPTED_STRING } from '@/store/mutation-types'
import
LoginSelectTenant
from
'./LoginSelectTenant'
import
{
getEncryptedString
}
from
'@/utils/encryption/aesEncrypt'
import
{
timeFix
}
from
'@/utils/util'
import
{
mapActions
}
from
'vuex'
import
LoginAccount
from
'./LoginAccount'
import
LoginPhone
from
'./LoginPhone'
...
...
@@ -63,9 +64,11 @@ export default {
created
()
{
Vue
.
ls
.
remove
(
ACCESS_TOKEN
)
this
.
getRouterData
();
this
.
rememberMe
=
true
this
.
rememberMe
=
true
;
this
.
onLoginUrlCheck
()
},
methods
:{
...
mapActions
([
"onLoginUrlCheck"
]),
handleTabClick
(
key
){
this
.
customActiveKey
=
key
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论