提交 ff1b14c3 authored 作者: 何忠建's avatar 何忠建

调整优化

上级 3c59529d
...@@ -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">
......
...@@ -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_1690786506694.png'); background-image: url('https://life.cloud.hjxbc.cn/sys/common/static/scott/pic/bg_1692255376498.png');
} }
.page { .page {
......
<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;
......
...@@ -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="index" color="#6A59F2" :checked="item.checked" v-if="active == 1" /> <checkbox :value="item.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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论