|
@@ -15,12 +15,15 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
</view> -->
|
|
- <view class="indexUp flex">
|
|
|
|
- <image v-bind:src="headUrl" class="headPortrait"></image>
|
|
|
|
- <view class="personal">
|
|
|
|
- <view @click="toLogin" class="information">{{hasLogin? username : '立即登录' }}</view>
|
|
|
|
- <view class="information">{{starUserphone}}</view>
|
|
|
|
|
|
+ <view class="indexUp flex justify-between">
|
|
|
|
+ <view class='flex'>
|
|
|
|
+ <image v-bind:src="headUrl" class="headPortrait"></image>
|
|
|
|
+ <view class="personal">
|
|
|
|
+ <view @click="toLogin" class="information">{{hasLogin? username : '立即登录' }}</view>
|
|
|
|
+ <view class="information">{{starUserphone}}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view><image @click='setting' style='width:21px;height:21px;' src="../../static/img/sign/shezhi@3x.png" ></image></view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view class="cover-container">
|
|
<view class="cover-container">
|
|
@@ -32,7 +35,7 @@
|
|
<view>
|
|
<view>
|
|
<!-- <text :class="item.icon" class="grid_icon icon text-grey"></text> -->
|
|
<!-- <text :class="item.icon" class="grid_icon icon text-grey"></text> -->
|
|
<image :src="item.src" class="sign"></image>
|
|
<image :src="item.src" class="sign"></image>
|
|
- <text class="text-grey">{{item.name}}</text>
|
|
|
|
|
|
+ <text >{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
<text v-if='item.num==2&&taskTip' class='badge_user'>{{taskTip}}</text>
|
|
<text v-if='item.num==2&&taskTip' class='badge_user'>{{taskTip}}</text>
|
|
@@ -41,13 +44,6 @@
|
|
</view>
|
|
</view>
|
|
<!-- <image src="../../static/img/sign/authentication@3x.png" mode=""></image> -->
|
|
<!-- <image src="../../static/img/sign/authentication@3x.png" mode=""></image> -->
|
|
</view>
|
|
</view>
|
|
- <view class='cu-item' @click='fankui'>
|
|
|
|
- <view>
|
|
|
|
- <image src="../../static/img/sign/authentication@2x.png" class="sign"></image>
|
|
|
|
- <text class="text-grey">意见反馈</text>
|
|
|
|
- </view>
|
|
|
|
- <view class = 'tip_text cuIcon-right' ></view>
|
|
|
|
- </view>
|
|
|
|
<!-- <view class='cu-item' @click='scanCode'>
|
|
<!-- <view class='cu-item' @click='scanCode'>
|
|
<view>
|
|
<view>
|
|
<text class="cuIcon-scan icon text-grey"></text>
|
|
<text class="cuIcon-scan icon text-grey"></text>
|
|
@@ -142,24 +138,15 @@
|
|
url: `/pageA/freightTransport/index`,
|
|
url: `/pageA/freightTransport/index`,
|
|
show: true
|
|
show: true
|
|
},
|
|
},
|
|
- {
|
|
|
|
- num: 5,
|
|
|
|
- name: '设置',
|
|
|
|
- // icon: 'cuIcon-edit',
|
|
|
|
- src:'../../static/img/sign/shezhi@2x.png',
|
|
|
|
- tips: 0,
|
|
|
|
- url: `/pages/user/setUp`,
|
|
|
|
- show: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- num:6,
|
|
|
|
- name: '退出登录',
|
|
|
|
- // icon:'cuIcon-exit',
|
|
|
|
- src:'../../static/img/sign/return@3x.png',
|
|
|
|
- tips: 0,
|
|
|
|
- url:'',
|
|
|
|
- show:true
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // num: 5,
|
|
|
|
+ // name: '设置',
|
|
|
|
+ // // icon: 'cuIcon-edit',
|
|
|
|
+ // src:'../../static/img/sign/shezhi@2x.png',
|
|
|
|
+ // tips: 0,
|
|
|
|
+ // url: `/pages/user/setUp`,
|
|
|
|
+ // show: true
|
|
|
|
+ // }
|
|
],
|
|
],
|
|
showTran: true,
|
|
showTran: true,
|
|
companyId: 1,
|
|
companyId: 1,
|
|
@@ -364,6 +351,29 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ setting(){
|
|
|
|
+ if (!this.hasLogin) {
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '登录提示',
|
|
|
|
+ content: '您尚未登录,是否立即登录?',
|
|
|
|
+ showCancel: true,
|
|
|
|
+ confirmText: '登录',
|
|
|
|
+ success: (e) => {
|
|
|
|
+ if (e.confirm) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/public/login'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ fail: () => {},
|
|
|
|
+ complete: () => {}
|
|
|
|
+ })
|
|
|
|
+ }else {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'/pages/user/setUp'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
toLogin() {
|
|
toLogin() {
|
|
console.log("userInfo",this.userInfo)
|
|
console.log("userInfo",this.userInfo)
|
|
if (!this.hasLogin || !this.userInfo || this.username == "立即登录") {
|
|
if (!this.hasLogin || !this.userInfo || this.username == "立即登录") {
|
|
@@ -469,14 +479,16 @@
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang='scss' scoped>
|
|
<style lang='scss' scoped>
|
|
|
|
+ page{
|
|
|
|
+ background:#F5F6FA;
|
|
|
|
+ }
|
|
.container {
|
|
.container {
|
|
padding-top: 85px;
|
|
padding-top: 85px;
|
|
- background-color: #F5F6FA;
|
|
|
|
position: relative;
|
|
position: relative;
|
|
width: 100vw;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- background: url('~@/static/img/login/bg.png');
|
|
|
|
|
|
+ background: url('~@/static/img/login/bg_slices/bg@3x.png');
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
@@ -508,10 +520,10 @@
|
|
.cu-list {
|
|
.cu-list {
|
|
/* height: 483rpx;
|
|
/* height: 483rpx;
|
|
overflow-y: scroll; */
|
|
overflow-y: scroll; */
|
|
- margin-top: 42rpx;
|
|
|
|
|
|
+ margin-top: 16rpx;
|
|
|
|
+ background:#fff;
|
|
margin-bottom: 80rpx;
|
|
margin-bottom: 80rpx;
|
|
}
|
|
}
|
|
-
|
|
|
|
.badge_user {
|
|
.badge_user {
|
|
color: #fff;
|
|
color: #fff;
|
|
background-color: #dc3545;
|
|
background-color: #dc3545;
|
|
@@ -693,7 +705,7 @@
|
|
padding: 1px 10px ;
|
|
padding: 1px 10px ;
|
|
padding-bottom: 200upx;
|
|
padding-bottom: 200upx;
|
|
|
|
|
|
- background-color: #F5F6FA;
|
|
|
|
|
|
+ /* background-color: #F5F6FA; */
|
|
/* border-radius: 20px; */
|
|
/* border-radius: 20px; */
|
|
margin-top: 60upx;
|
|
margin-top: 60upx;
|
|
|
|
|
|
@@ -835,7 +847,6 @@
|
|
width: 75px;
|
|
width: 75px;
|
|
height: 75px;
|
|
height: 75px;
|
|
border-radius: 40px;
|
|
border-radius: 40px;
|
|
- margin-left: 20px;
|
|
|
|
border: 2px solid #ffffff;
|
|
border: 2px solid #ffffff;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -851,7 +862,10 @@
|
|
}
|
|
}
|
|
.indexlow{
|
|
.indexlow{
|
|
/* margin-top: 30px; */
|
|
/* margin-top: 30px; */
|
|
- border-radius: 20px;
|
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
+ }
|
|
|
|
+ .cu-list>.cu-item:after{
|
|
|
|
+ border:none;
|
|
}
|
|
}
|
|
.sign{
|
|
.sign{
|
|
width: 18px;
|
|
width: 18px;
|
|
@@ -859,4 +873,8 @@
|
|
top: 4px;
|
|
top: 4px;
|
|
margin-right: 6px;
|
|
margin-right: 6px;
|
|
}
|
|
}
|
|
|
|
+ .indexUp{
|
|
|
|
+ padding:0 20px;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|