Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
partners-applet
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
物业总平台
partners-applet
Commits
ff1b14c3
提交
ff1b14c3
authored
8月 17, 2023
作者:
何忠建
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整优化
上级
3c59529d
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
78 行增加
和
119 行删除
+78
-119
authorization.vue
components/authorization.vue
+2
-2
index.vue
pages/home/index.vue
+21
-21
index.vue
pages/mine/index.vue
+52
-94
index.vue
pages/reconciliationList/index.vue
+3
-2
没有找到文件。
components/authorization.vue
浏览文件 @
ff1b14c3
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<image
style=
"width: 100rpx; height: 100rpx;margin:22rpx;"
mode=
"aspectFill"
src=
"../static/images/logo.png"
></image>
<image
style=
"width: 100rpx; height: 100rpx;margin:22rpx;"
mode=
"aspectFill"
src=
"../static/images/logo.png"
></image>
</view>
</view>
<view
class=
"text"
>
为了更完美的体验,请授权获取电话
</view>
<view
class=
"text"
>
为了更完美的体验,请授权获取电话
</view>
<button
v-if=
"checked"
class=
"login-btn"
type=
"primary"
open-type=
"getPhoneNumber"
@
getphonenumber=
"onGetPhoneNumber"
hover-class=
"none"
>
手机号登录
/注册
</button>
<button
v-if=
"checked"
class=
"login-btn"
type=
"primary"
open-type=
"getPhoneNumber"
@
getphonenumber=
"onGetPhoneNumber"
hover-class=
"none"
>
手机号登录
</button>
<button
v-else
class=
"login-btn"
type=
"primary"
@
click=
"verifyPolicy"
hover-class=
"none"
>
手机号登录
/注册
</button>
<button
v-else
class=
"login-btn"
type=
"primary"
@
click=
"verifyPolicy"
hover-class=
"none"
>
手机号登录
</button>
<view
class=
"refuse"
@
click=
"refuse"
>
取消
</view>
<view
class=
"refuse"
@
click=
"refuse"
>
取消
</view>
<view
class=
"policy-fixed"
>
<view
class=
"policy-fixed"
>
...
...
pages/home/index.vue
浏览文件 @
ff1b14c3
...
@@ -231,27 +231,27 @@
...
@@ -231,27 +231,27 @@
},
},
methods
:
{
methods
:
{
async
getPropertyAdv
()
{
async
getPropertyAdv
()
{
// let {
let
{
// result
result
// } = await getPropertyAdvApi({
}
=
await
getPropertyAdvApi
({
// pageNo: 1,
pageNo
:
1
,
// pageSize: 10,
pageSize
:
10
,
// onshelfStatus: 'onShelf'
onshelfStatus
:
'onShelf'
// })
// let bannerList = result.records.map(item => {
// return {
// ...item,
// imageUrl: serverConfig.baseURL + '/sys/common/static/' + item.advImageUrl
// }
// })
//if (bannerList.length === 0) {
this
.
bannerList
.
push
({
id
:
'123423423'
,
imageUrl
:
'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/banner_1691045883403.png'
})
})
// } else {
let
bannerList
=
result
.
records
.
map
(
item
=>
{
// this.bannerList = bannerList
return
{
// }
...
item
,
imageUrl
:
serverConfig
.
baseURL
+
'/sys/common/static/'
+
item
.
advImageUrl
}
})
if
(
bannerList
.
length
===
0
)
{
this
.
bannerList
.
push
({
id
:
'123423423'
,
imageUrl
:
'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/banner_1692255303719.png'
})
}
else
{
this
.
bannerList
=
bannerList
}
},
},
getServerData
()
{
getServerData
()
{
//模拟从服务器获取数据时的延时
//模拟从服务器获取数据时的延时
...
@@ -348,7 +348,7 @@
...
@@ -348,7 +348,7 @@
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-color
:
#F8F8FA
;
background-color
:
#F8F8FA
;
//background-size: cover;
//background-size: cover;
background-image
:
url('https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_169
0786506694
.png')
;
background-image
:
url('https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_169
2255376498
.png')
;
}
}
.page
{
.page
{
...
...
pages/mine/index.vue
浏览文件 @
ff1b14c3
<
template
>
<
template
>
<view
class=
"container"
style=
"background-image: url('https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_me1_1691046231385.png');"
>
<view
class=
"container"
style=
"background-image: url('https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_me1_1692254734871.png');"
>
<view
class=
"page"
>
<view
class=
"page"
>
<view
class=
"user"
>
<view
class=
"user"
>
<image
<template
v-if=
"userAvatar"
>
:src=
"userAvatar || 'https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/lxLTJxnMqmF4536a26893262a4d66527a51bcab612c9_1687861702460.png'"
<image
:src=
"userAvatar"
class=
"icon"
></image>
class=
"icon"
></image>
</
template
>
<view
class=
"name"
>
林二
</view>
<view
class=
"icon"
v-else
>
<!--
<view
class=
"name"
v-else
@
click=
"quickEntry"
>
请登录
</view>
-->
<uni-icons
type=
"person"
size=
"50px"
color=
"#6A59F2"
></uni-icons>
<view
class=
"phone"
>
15245214563
</view>
</view>
<div
class=
"information"
@
click=
"employeeEntry(1)"
>
修改个人资料 >
</div>
<
template
v-if=
"userPhone"
>
<view
class=
"name"
>
林二
</view>
<view
class=
"phone"
>
15245214563
</view>
<div
class=
"information"
@
click=
"employeeEntry(1)"
>
修改个人资料 >
</div>
</
template
>
<teleport
v-else
>
<view
class=
"name"
@
click=
"toLogin"
style=
"margin-bottom: 36rpx;"
>
请登录
</view>
</teleport>
</view>
</view>
<view
class=
"LogOut"
>
退出登录
</view>
<view
class=
"LogOut"
v-if=
"userPhone"
@
click=
"logout"
>
退出登录
</view>
</view>
</view>
<authorization-modal
ref=
"authorization"
@
loginEnd=
"onLoginEnd"
@
refuse=
"onRefuse"
/>
<authorization-modal
ref=
"authorization"
@
loginEnd=
"onLoginEnd"
@
refuse=
"onRefuse"
/>
</view>
</view>
...
@@ -36,89 +44,32 @@
...
@@ -36,89 +44,32 @@
}
}
},
},
methods
:
{
methods
:
{
toLogin
()
{
uni
.
hideTabBar
()
this
.
$nextTick
(()
=>
{
this
.
$refs
.
authorization
.
onOpenLogin
()
});
},
logout
(){
let
_this
=
this
uni
.
showModal
({
title
:
'警告'
,
content
:
'确定退出登录!'
,
showCancel
:
false
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
wx
.
clearStorage
()
}
}
});
},
quickEntry
(
type
)
{
quickEntry
(
type
)
{
let
isLogin
=
uni
.
getStorageSync
(
'openid'
)
let
isLogin
=
uni
.
getStorageSync
(
'openid'
)
if
(
!!
isLogin
)
{
if
(
!!
isLogin
)
{
if
(
type
==
7
)
{
if
(
type
==
1
)
{
const
that
=
this
uni
.
navigateTo
({
uni
.
showModal
({
url
:
'/pages/myInformation/index'
,
title
:
'提示'
,
content
:
'确认切换到业主吗?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
that
.
onChangeEmployee
(
'1'
)
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
}
});
}
else
if
(
type
==
8
)
{
const
that
=
this
uni
.
showModal
({
title
:
'提示'
,
content
:
'确认切换到维修员吗?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
that
.
onChangeEmployee
(
'2'
)
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
}
});
});
}
else
{
let
currentHouseVerify
=
getApp
().
globalData
.
currentHouseVerify
if
(
type
==
2
)
{
let
code
=
uni
.
getStorageSync
(
'platform_code'
)
if
(
code
)
{
uni
.
navigateTo
({
url
:
'/pages/myHouse/index'
,
});
}
else
{
uni
.
showToast
({
icon
:
"none"
,
title
:
'暂未查到业主信息!'
})
}
return
}
if
(
!
currentHouseVerify
)
{
uni
.
showToast
({
icon
:
"none"
,
title
:
'暂未查到业主信息!'
})
// if(timer) clearTimeout(timer)
// timer = null
// timer = setTimeout(()=> {
// uni.navigateTo({
// url: '/pages/housing/index',
// });
// }, 1500)
// return
}
else
{
if
(
type
==
1
)
{
uni
.
navigateTo
({
url
:
'/pages/myInformation/index'
,
});
}
else
if
(
type
==
3
)
{
uni
.
navigateTo
({
url
:
'/pages/maintenance/index'
,
});
}
else
if
(
type
==
4
)
{
uni
.
navigateTo
({
url
:
'/pages/complaints/index'
,
});
}
else
if
(
type
==
5
)
{
uni
.
navigateTo
({
url
:
'/pages/myPaycost/index'
,
});
}
else
if
(
type
==
6
)
{
uni
.
navigateTo
({
url
:
'/pages/myReceipt/index'
,
});
}
else
{
return
false
}
}
}
}
}
else
{
}
else
{
uni
.
hideTabBar
()
uni
.
hideTabBar
()
...
@@ -180,15 +131,17 @@
...
@@ -180,15 +131,17 @@
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-color
:
#F8F8FA
;
background-color
:
#F8F8FA
;
background-size
:
cover
;
background-size
:
cover
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
.page
{
.page
{
width
:
100%
;
width
:
100%
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
85rpx
;
padding
:
0
85rpx
;
}
}
.LogOut
{
.LogOut
{
background-color
:
#6A59F2
;
background-color
:
#6A59F2
;
width
:
100%
;
width
:
100%
;
height
:
80rpx
;
height
:
80rpx
;
...
@@ -216,7 +169,11 @@
...
@@ -216,7 +169,11 @@
width
:
160rpx
;
width
:
160rpx
;
height
:
160rpx
;
height
:
160rpx
;
border-radius
:
160rpx
;
border-radius
:
160rpx
;
border
:
1px
solid
#6A59F2
;
border
:
1px
solid
#6A59F2
;
text-align
:
center
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
}
.name
{
.name
{
...
@@ -231,7 +188,8 @@
...
@@ -231,7 +188,8 @@
margin-bottom
:
36rpx
;
margin-bottom
:
36rpx
;
opacity
:
0
.55
;
opacity
:
0
.55
;
}
}
.information
{
.information
{
width
:
300rpx
;
width
:
300rpx
;
height
:
60rpx
;
height
:
60rpx
;
line-height
:
60rpx
;
line-height
:
60rpx
;
...
...
pages/reconciliationList/index.vue
浏览文件 @
ff1b14c3
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<view
class=
"name"
@
click=
"toDetail(item.id)"
>
CX312314141241
</view>
<view
class=
"name"
@
click=
"toDetail(item.id)"
>
CX312314141241
</view>
<view
:class=
"active == 1?'tag purple':'tag gray'"
>
待对账
</view>
<view
:class=
"active == 1?'tag purple':'tag gray'"
>
待对账
</view>
</view>
</view>
<checkbox
:value=
"i
ndex
"
color=
"#6A59F2"
:checked=
"item.checked"
v-if=
"active == 1"
/>
<checkbox
:value=
"i
tem.id
"
color=
"#6A59F2"
:checked=
"item.checked"
v-if=
"active == 1"
/>
</view>
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"text"
>
<view
class=
"text"
>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
data
()
{
data
()
{
return
{
return
{
active
:
1
,
active
:
1
,
payList
:
[{
},
{},
{},
{
}],
payList
:
[{
id
:
'1111'
},
{
id
:
'2222'
},
{
id
:
'3333'
},
{
id
:
'44444'
}],
checkboxList
:
[]
checkboxList
:
[]
}
}
},
},
...
@@ -92,6 +92,7 @@
...
@@ -92,6 +92,7 @@
});
});
},
},
checkboxChange
:
function
(
e
)
{
checkboxChange
:
function
(
e
)
{
console
.
log
(
e
)
this
.
checkboxList
=
e
.
detail
.
value
;
this
.
checkboxList
=
e
.
detail
.
value
;
},
},
onSubmit
()
{
onSubmit
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论