实名制-我的
This commit is contained in:
parent
ce59c6e2df
commit
a81a8cf446
10
pages.json
10
pages.json
|
|
@ -558,6 +558,16 @@
|
|||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},{//我的-上传情况
|
||||
"path": "pages/realName/my/myUpload",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},{//我的-下载情况
|
||||
"path": "pages/realName/my/myDownload",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@
|
|||
<image class="imgBox" src="../../../static/realName/news.png" mode=""></image>
|
||||
<text class="textBox">我的消息</text>
|
||||
</view>
|
||||
<view class="view-item">
|
||||
<!-- <view class="view-item">
|
||||
<image class="imgBox" src="../../../static/realName/reset_pass.png" mode=""></image>
|
||||
<text class="textBox">修改密码</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="view-item">
|
||||
<image class="imgBox" src="../../../static/realName/my_upload.png" mode=""></image>
|
||||
<text class="textBox">上传情况</text>
|
||||
|
|
@ -38,20 +38,42 @@
|
|||
<image class="imgBox" src="../../../static/realName/my_update.png" mode=""></image>
|
||||
<text class="textBox">更新系统</text>
|
||||
</view> -->
|
||||
<view class="view-item">
|
||||
<view class="view-item" @click=openAbout>
|
||||
<image class="imgBox" src="../../../static/realName/my_about.png" mode=""></image>
|
||||
<text class="textBox">关于我们</text>
|
||||
</view>
|
||||
<view class="view-item">
|
||||
<view class="view-item" @click=outLogin>
|
||||
<image class="imgBox" src="../../../static/realName/icon_logout.png" mode=""></image>
|
||||
<text class="textBox">退出</text>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</scroll-view>
|
||||
|
||||
<u-popup :show="showPopup" mode="center" @close="closePopup">
|
||||
<view style="width:600rpx;height: auto;position: relative;background-color: #fff;">
|
||||
<view style="width: 100%;height: auto;background-color: #fff;">
|
||||
<view style="width: 96%;margin: 20rpx auto;padding:10rpx 0;font-weight: bold;">
|
||||
版权
|
||||
</view>
|
||||
<view style="width: 96%;margin: 20rpx auto;padding:10rpx 0;">
|
||||
Facial Technology by ArcSoft?
|
||||
</view>
|
||||
<view style="width: 96%;margin: 20rpx auto;padding:10rpx 0;">
|
||||
Copyright by Bonus@
|
||||
</view>
|
||||
<view style="width: 96%;margin: 20rpx auto;padding:10rpx 0;">
|
||||
Website http://www.ahbonus.cn/
|
||||
</view>
|
||||
</view>
|
||||
<view style="width: 90%;margin: 40rpx auto;display: flex;justify-content: flex-end;">
|
||||
<!-- <view style="width:40%;height:80rpx;line-height: 80rpx;text-align: center;background: #00337A;color: #FFF;border-radius: 10rpx;" @click="closePopup">取消</view> -->
|
||||
<view style="width:30%;height:60rpx;line-height: 60rpx;text-align: center;background: #00337A;color: #FFF;border-radius: 10rpx;" @click="closePopup">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
|
||||
|
||||
|
||||
|
||||
<m-tabbar fixed fill :current="3" :tabbar="tabbar"></m-tabbar>
|
||||
</view>
|
||||
</template>
|
||||
|
|
@ -66,7 +88,8 @@ export default {
|
|||
tabbar: TabbarConfig,
|
||||
userData:uni.getStorageSync('realNameUser'),
|
||||
proId:uni.getStorageSync('realNameUser').proId,
|
||||
proName:""
|
||||
proName:"",
|
||||
showPopup:false
|
||||
// userName: uni.getStorageSync('userName'),
|
||||
// className: uni.getStorageSync('className'),
|
||||
// facePath: config.fileUrl + uni.getStorageSync('facePath'),
|
||||
|
|
@ -104,11 +127,24 @@ export default {
|
|||
}
|
||||
})
|
||||
},
|
||||
//消息列表
|
||||
goNews(){
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/my/news`
|
||||
})
|
||||
},
|
||||
//关于我们
|
||||
openAbout(){
|
||||
this.showPopup=true
|
||||
},
|
||||
closePopup(){
|
||||
this.showPopup=false;
|
||||
},
|
||||
outLogin(){
|
||||
uni.navigateTo({
|
||||
url: `/pages/gzt/index`
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,130 @@
|
|||
<template>
|
||||
<view class="page">
|
||||
<u-navbar class="u-navbar" title="下载情况" placeholder @leftClick="leftClick" leftIconColor="#fff" bgColor="#00337A" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }"/>
|
||||
<scroll-view class="content" scroll-y="true">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import config from '@/config';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
proId:uni.getStorageSync('realNameUser').proId,
|
||||
type:uni.getStorageSync('realNameUser').type ,
|
||||
newsList:[],
|
||||
active: -1,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.type)
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
getData(){
|
||||
let param={
|
||||
id:this.proId
|
||||
}
|
||||
if(this.type.indexOf('3')>-1){//施工端
|
||||
param.type="3"
|
||||
}
|
||||
if(this.type.indexOf('4')>-1){//施工端
|
||||
param.type="4"
|
||||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getNews',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
console.log(res)
|
||||
this.newsList = res.data.map(item=>{
|
||||
let obj={
|
||||
title:item.acceptStation,
|
||||
desc:item.acceptTime,
|
||||
}
|
||||
return obj
|
||||
});
|
||||
console.log(this.newsList)
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
// 返回
|
||||
leftClick() {
|
||||
console.log('返回')
|
||||
uni.navigateBack({
|
||||
delta: 1 // 返回
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.page {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #f8f8f8;
|
||||
// box-sizing: border-box;
|
||||
// padding: 15vh 8vw;
|
||||
.content{
|
||||
width: 100%;
|
||||
height: 84vh;
|
||||
margin-top: 20rpx;
|
||||
background-color: #f8f8f8;
|
||||
padding-bottom: 40rpx;
|
||||
}
|
||||
|
||||
.view-box{
|
||||
width: 100%;
|
||||
padding: 20rpx 0;
|
||||
margin-bottom: 30rpx;
|
||||
height: auto;
|
||||
background-color: #F2F6F9;
|
||||
}
|
||||
.view-item{
|
||||
width: 100%;
|
||||
padding: 20rpx 0;
|
||||
margin-bottom: 30rpx;
|
||||
height: auto;
|
||||
background-color: #F2F6F9;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.imgBox{
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
margin: 0 40rpx;
|
||||
}
|
||||
.textBox{
|
||||
width: 200rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
|
|
@ -0,0 +1,130 @@
|
|||
<template>
|
||||
<view class="page">
|
||||
<u-navbar class="u-navbar" title="上传情况" placeholder @leftClick="leftClick" leftIconColor="#fff" bgColor="#00337A" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }"/>
|
||||
<scroll-view class="content" scroll-y="true">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import config from '@/config';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
proId:uni.getStorageSync('realNameUser').proId,
|
||||
type:uni.getStorageSync('realNameUser').type ,
|
||||
newsList:[],
|
||||
active: -1,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.type)
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
getData(){
|
||||
let param={
|
||||
id:this.proId
|
||||
}
|
||||
if(this.type.indexOf('3')>-1){//施工端
|
||||
param.type="3"
|
||||
}
|
||||
if(this.type.indexOf('4')>-1){//施工端
|
||||
param.type="4"
|
||||
}
|
||||
console.log(param)
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getNews',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
console.log(res)
|
||||
this.newsList = res.data.map(item=>{
|
||||
let obj={
|
||||
title:item.acceptStation,
|
||||
desc:item.acceptTime,
|
||||
}
|
||||
return obj
|
||||
});
|
||||
console.log(this.newsList)
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
// 返回
|
||||
leftClick() {
|
||||
console.log('返回')
|
||||
uni.navigateBack({
|
||||
delta: 1 // 返回
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.page {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #f8f8f8;
|
||||
// box-sizing: border-box;
|
||||
// padding: 15vh 8vw;
|
||||
.content{
|
||||
width: 100%;
|
||||
height: 84vh;
|
||||
margin-top: 20rpx;
|
||||
background-color: #f8f8f8;
|
||||
padding-bottom: 40rpx;
|
||||
}
|
||||
|
||||
.view-box{
|
||||
width: 100%;
|
||||
padding: 20rpx 0;
|
||||
margin-bottom: 30rpx;
|
||||
height: auto;
|
||||
background-color: #F2F6F9;
|
||||
}
|
||||
.view-item{
|
||||
width: 100%;
|
||||
padding: 20rpx 0;
|
||||
margin-bottom: 30rpx;
|
||||
height: auto;
|
||||
background-color: #F2F6F9;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.imgBox{
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
margin: 0 40rpx;
|
||||
}
|
||||
.textBox{
|
||||
width: 200rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue