1212
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<view class="bg-white radius margin-left margin-right to-top">
|
||||
<view class=" flex ">
|
||||
<view class="padding text-center flex-sub"
|
||||
@tap="routerTo('/packageOrders/pages/orderList/dailyOrder/dailyOrder')">
|
||||
@tap="routerTo('/packageOrders/pages/orderList/orderList?type=today')">
|
||||
<text>今日收款笔数</text>
|
||||
<view class="padding-sm">
|
||||
<text class="oil-main-color">{{userAccount.totalCount}}</text>
|
||||
@@ -75,6 +75,15 @@
|
||||
</view>
|
||||
<text>{{ cuIconList[0].name }}</text>
|
||||
</view>
|
||||
<view class="cu-item" @tap="routerTo('/packageOrders/pages/orderList/orderList')">
|
||||
<view :class="['cuIcon-' + cuIconList[4].cuIcon, 'text-' + cuIconList[4].color]" class="text-sl">
|
||||
<view class="cu-tag badge" v-if="cuIconList[4].badge != 0">
|
||||
<block v-if="cuIconList[4].badge != 1">
|
||||
{{ cuIconList[4].badge > 99 ? '99+' : cuIconList[4].badge }}</block>
|
||||
</view>
|
||||
</view>
|
||||
<text>{{ cuIconList[4].name }}</text>
|
||||
</view>
|
||||
<view class="cu-item" v-for="(item,index) in menusList" :key="index" @tap="routerTo(item.path)" v-if=' item.name != "星油云站超级管理员"' >
|
||||
<view :class="['cuIcon-' + item.cuIcon, 'text-' + cuIconList[index+1].color]" class="text-sl">
|
||||
<view class="cu-tag badge" v-if="item.badge != 0">
|
||||
@@ -92,18 +101,12 @@
|
||||
</view>
|
||||
<text>{{ cuIconList[1].name }}</text>
|
||||
</view>
|
||||
<view style="height: 180rpx;display: flex;justify-content: flex-end;" class="cu-item" @tap="routerTo('/pages/escalation/escalation')">
|
||||
<!-- <view :class="['cuIcon-' + cuIconList[2].cuIcon, 'text-' + cuIconList[2].color]" class="text-sl">
|
||||
<view class="cu-tag badge" v-if="cuIconList[2].badge != 0">
|
||||
<block v-if="cuIconList[2].badge != 1">
|
||||
{{ cuIconList[2].badge > 99 ? '99+' : cuIconList[2].badge }}</block>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view style="height: 180rpx;display: flex;justify-content: flex-end;" class="cu-item" @tap="routerTo('/pages/escalation/escalation')">
|
||||
<view>
|
||||
<image style="width: 50rpx;height: 50rpx;" src="/static/img/dzsb.png"></image>
|
||||
</view>
|
||||
<text>{{ cuIconList[2].name }}</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="cu-item" @tap="routerTo('/pages/TransactionStatistics/TransactionStatistics')">
|
||||
<view :class="['cuIcon-' + 'new', 'text-' + cuIconList[0].color]" class="text-sl">
|
||||
<view class="cu-tag badge" v-if="cuIconList[0].badge != 0">
|
||||
@@ -142,7 +145,7 @@
|
||||
</view>
|
||||
<view class="text-left padding-xl padding-bottom padding-top bg-white">
|
||||
<view class="flex align-center justify-between margin-bottom-sm " v-for="(list,i) in oliList" :key='list'>
|
||||
<view class=""> {{list.otherSiteName}}</view>
|
||||
<view class=""> {{list.siteName}}</view>
|
||||
<view class="">
|
||||
<view class=" bg-red cu-btn text-white text-center btn-radius-10 text-sm" @tap="checkLists(list)">
|
||||
进入
|
||||
@@ -164,7 +167,7 @@
|
||||
</view>
|
||||
<view class="text-left padding-xl padding-bottom padding-top bg-white">
|
||||
<view class="flex align-center justify-between margin-bottom-sm " v-for="(list,i) in oliList" :key='list'>
|
||||
<view class=""> {{list.otherSiteName}}</view>
|
||||
<view class=""> {{list.siteName}}</view>
|
||||
<view class="">
|
||||
<view class=" bg-red cu-btn text-white text-center btn-radius-10 text-sm" @tap="checkLists(list)">
|
||||
进入
|
||||
@@ -439,16 +442,16 @@
|
||||
},
|
||||
checkLists(items){
|
||||
// //console.log(items)
|
||||
let id = items.channelId
|
||||
this.changeChannel.channelId = items.channelId
|
||||
let id = items.id
|
||||
this.changeChannel.siteId = items.id
|
||||
this.changeChannel.unionId = uni.getStorageSync('unionId')
|
||||
this.changeChannel.username = this.loginUser.userPhone
|
||||
uni.setStorageSync('channelId',items.channelId)
|
||||
uni.setStorageSync('channelId',items.id)
|
||||
oilIdentityApi.changeChannelLogin(this.changeChannel).then((res)=>{
|
||||
// //console.log(res)
|
||||
if(res.code == 20000){
|
||||
uni.setStorageSync('siteOli',items.otherSiteName)
|
||||
this.accountName = items.otherSiteName
|
||||
uni.setStorageSync('siteOli',items.siteName)
|
||||
this.accountName = items.siteName
|
||||
this.checkList = ''
|
||||
this.checkFirst = false
|
||||
uni.setStorageSync('checkFirst',false)
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
<text :class="PageCur=='home'?'text-red':'text-gray'">
|
||||
加油站
|
||||
</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="action text-gray add-action" @tap="NavChange" data-cur="scan">
|
||||
<button class="cu-btn cuIcon-scan sl shadow" :class="PageCur=='scan'?'bg-main-oil':'bg-gradual-orange'"></button>
|
||||
<text :class="PageCur=='scan'?'text-red':'text-gray'">
|
||||
@@ -63,22 +62,10 @@
|
||||
url: '../../packageOrders/pages/printTicket/printTicket'
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
// uni.showToast({
|
||||
// title:'这里是show'
|
||||
// })
|
||||
//console.log('这里是indexonshow')
|
||||
uni.setStorageSync('orderType',null)
|
||||
// uni.preloadPage({url: "/pages/station-info/scan-camera/scan-camera"});
|
||||
onShow() {
|
||||
const token = uni.getStorageSync('Authorization')
|
||||
const openid = uni.getStorageSync('device')
|
||||
// //console.log('++++++++++++')
|
||||
// //console.log(token)
|
||||
// //console.log(openid)
|
||||
// //console.log('++++++++++++')
|
||||
if (token && openid) {
|
||||
// this.getUserInfo()
|
||||
// this.getSiteInfo()
|
||||
const openid = uni.getStorageSync('device')
|
||||
if (token && openid) {
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '您还没有登录哦',
|
||||
@@ -87,11 +74,9 @@
|
||||
setTimeout(function() {
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/boforeLogin/boforeLogin',
|
||||
success: () => {
|
||||
//console.log('跳转成功')
|
||||
success: () => {
|
||||
},
|
||||
fail: (err) => {
|
||||
//console.log(err)
|
||||
fail: (err) => {
|
||||
}
|
||||
})
|
||||
}, 1500);
|
||||
@@ -253,6 +238,11 @@
|
||||
NavChange: function(e) {
|
||||
this.PageCur = e.currentTarget.dataset.cur
|
||||
if (this.PageCur == "scan") {
|
||||
uni.showToast({
|
||||
title:'功能开发中',
|
||||
icon:'none'
|
||||
});
|
||||
return
|
||||
this.scanQr()
|
||||
}
|
||||
},
|
||||
|
||||
@@ -3,18 +3,21 @@
|
||||
<cu-custom class="main-totextbar bg-main-oil" bgColor="bg-main-oil">
|
||||
<block slot="content">个人中心</block>
|
||||
</cu-custom>
|
||||
<view class="bg-img flex align-center" :style="'background-image: url('+mainURL+'user-info-bg.png);height:250upx;width:750upx'">
|
||||
<view class="bg-img flex align-center"
|
||||
:style="'background-image: url('+mainURL+'user-info-bg.png);height:250upx;width:750upx'">
|
||||
<view class="position-re card-view">
|
||||
<view class="position-ab">
|
||||
<view class="cu-list text-white menu-avatar padding bg-transparent no-border">
|
||||
<view class="cu-item bg-transparent no-border">
|
||||
<view class="cu-avatar round xl " :style="'background-image: url('+mainURL+'default-avator.png)'">
|
||||
<view class="cu-avatar round xl "
|
||||
:style="'background-image: url('+mainURL+'default-avator.png)'">
|
||||
|
||||
</view>
|
||||
<view class="content userInfoList padding-left">
|
||||
<view class="margin-left-xs">{{userInfo.name}}</view>
|
||||
<view class=" showIds " > <text class="text-sm"> {{userInfo.id}}</text></view>
|
||||
<view class="cu-tag round bg-dark-main-color sm "> <text class="text-sm"> {{userInfo.userPhone}}</text></view>
|
||||
<view class=" showIds "> <text class="text-sm"> {{userInfo.id}}</text></view>
|
||||
<view class="cu-tag round bg-dark-main-color sm "> <text class="text-sm">
|
||||
{{userInfo.userPhone}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -78,9 +81,9 @@
|
||||
return {
|
||||
mainURL: this.global.mainURL,
|
||||
userInfo: {},
|
||||
channel:{},
|
||||
accountName:''
|
||||
|
||||
channel: {},
|
||||
accountName: ''
|
||||
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -95,16 +98,18 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
loginOut() {
|
||||
async loginOut() {
|
||||
// await cloudSiteApi.logout();
|
||||
uni.clearStorage()
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/boforeLogin/boforeLogin?type=1' //
|
||||
})
|
||||
|
||||
},
|
||||
getInfo() {
|
||||
this.userInfo = uni.getStorageSync('loginUser')
|
||||
this.accountName=uni.getStorageSync('siteOli'),
|
||||
console.log(this.userInfo)
|
||||
this.accountName = uni.getStorageSync('siteOli'),
|
||||
console.log(this.userInfo)
|
||||
// cloudSiteApi.personCenter().then(res => {
|
||||
// if (res.code == 20000) {
|
||||
// this.userInfo = res.data
|
||||
@@ -131,20 +136,22 @@
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.userInfoList{
|
||||
.userInfoList {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
flex-direction: column;
|
||||
}
|
||||
.showIds{
|
||||
border-radius: 27rpx;
|
||||
padding: 0rpx 14rpx;
|
||||
font-size: 15rpx;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 3px;
|
||||
|
||||
.showIds {
|
||||
border-radius: 27rpx;
|
||||
padding: 0rpx 14rpx;
|
||||
font-size: 15rpx;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 3px;
|
||||
margin-bottom: 10upx;
|
||||
}
|
||||
|
||||
.cu-list+.cu-list {
|
||||
margin-top: 0;
|
||||
}
|
||||
@@ -172,4 +179,4 @@
|
||||
.bg-img .cu-list.menu>.cu-item::after {
|
||||
border-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user