登录首页,高速列表ui

main
zhangqun 2 years ago
parent b5a3c7c45c
commit 864238a8dd
  1. 5
      App.vue
  2. 999
      pages.json
  3. 193
      pages/highWay/runData/form.vue
  4. 191
      pages/highWay/runData/list.vue
  5. 98
      pages/home/home.vue
  6. 244
      pages/home/index.vue
  7. 62
      pages/login/login.vue
  8. BIN
      static/image/highway01.png
  9. BIN
      static/image/icon_rundata.png
  10. BIN
      static/image/icon_runstatus.png
  11. BIN
      static/image/loginBg.png
  12. 6
      store/index.js
  13. 5
      util/request.js

@ -44,6 +44,11 @@
},
onShow: function() {
console.log('App Show')
if(!uni.getStorageSync('satoken')) {
uni.navigateTo({
url: '/pages/login/login'
})
}
},
onHide: function() {
console.log('App Hide')

File diff suppressed because it is too large Load Diff

@ -1,16 +1,73 @@
<template>
<view class="login_form_warp">
<view class="login_form_item">
<input class="login_form_input" v-model="form.username" placeholder="请输入账号" maxlength="20" />
<view class="form_warp">
<view class="form_intro">
<view>如有填报问题请咨询公共服务中心</view>
<view>中心值班电话<text class="tel">66007587</text></view>
</view>
<view class="login_form_item">
<input class="login_form_input" v-model="form.password" type="password" placeholder="请输入密码" maxlength="20" />
<view class="form_item_box">
<view class="form_item_title">基本信息</view>
<view class="form_item">
<view class="form_item_label">管理单位名称</view>
<view class="form_item_input select">
{{form.organizationName}}
</view>
</view>
<view class="form_item">
<view class="form_item_label">统计日期</view>
<view class="form_item_input select">
{{form.statDate}}
</view>
</view>
<view class="form_item">
<view class="form_item_label">统计时段</view>
<view class="form_item_input select">
{{form.statPeriod}}
</view>
</view>
</view>
<view class="login_form_item">
<input class="login_form_input" v-model="form.verCode" placeholder="请输入图形验证码" maxlength="20" />
<image :src="codeImg" @click="getVerCode" style="width: 100upx; height: 40upx;"></image>
<view class="form_item_box">
<view class="form_item_title">运行数据-1</view>
<view class="form_item">
<view class="form_item_label">高速公路名称</view>
<view class="form_item_input select"></view>
</view>
<view class="form_item">
<view class="form_item_label">收费站入口车辆数</view>
<view class="form_item_input">
<uni-easyinput class="form_input" placeholder="请输入车辆数" type="number" maxlength="30" ></uni-easyinput>
</view>
</view>
<view class="form_item">
<view class="form_item_label">收费站出口车辆数</view>
<view class="form_item_input">
<uni-easyinput class="form_input" placeholder="请输入车辆数" type="number" maxlength="30" ></uni-easyinput>
</view>
</view>
<view class="form_item">
<view class="form_item_label">免收通行费车辆数</view>
<view class="form_item_input">
<uni-easyinput class="form_input" placeholder="请输入车辆数" type="number" maxlength="30" ></uni-easyinput>
</view>
</view>
<view class="form_item">
<view class="form_item_label">免收通行费金额</view>
<view class="form_item_input">
<uni-easyinput class="form_input" placeholder="请输入金额" type="number" maxlength="30" ></uni-easyinput>
</view>
</view>
<view class="form_item">
<view class="form_item_label">报送人员及联系方式</view>
<view class="form_item_input select">
{{}}
</view>
</view>
<view class="divider_line"></view>
</view>
<!-- 底部按钮 -->
<view class="foot_btn">
<view class="act_btn">取消</view>
<view class="act_btn blue">确认</view>
</view>
<button type="primary" class="page-body-button" @click="doLogin">登录</button>
</view>
</template>
<script>
@ -18,10 +75,28 @@
data() {
return {
form: {
username: '',
password: '',
verCode: '',
vercodeType: 5
organizationName: '',
statDate: '',
statPeriod: '',
highwaySubDataList: [{
"entranceVehicleCount": 0,
"entranceVehicleCountMom": 0.0,
"entranceVehicleCountYoy": 0.0,
"exitToll": 0.0,
"exitVehicleCount": 0,
"exitVehicleCountMom": 0.0,
"exitVehicleCountYoy": 0.0,
"highwayId": "string",
"highwayName": "string",
"id": "string",
"parentId": "string",
"submitPersonnelContact": "string",
"tollExemptAmount": 0.0,
"tollExemptVehicleCount": 0,
"tollExemptVehicleCountMom": 0.0,
"tollExemptVehicleCountYoy": 0.0,
"tollStationName": "string"
}]
}, //form
codeImg: '', //
}
@ -32,23 +107,24 @@
methods: {
//
getVerCode() {
this.$request1(getApp().globalData.baseUrl + '/api/common/captchaBase64?type=5&_t=' + new Date(), {}, 'GET').then(res => {
if(res.code == 200) {
this.codeImg = res.data.img;
}
}).catch(() => {
console.log('vercode err')
})
this.$request1(getApp().globalData.baseUrl + '/api/common/captchaBase64?type=5&_t=' + new Date(), {}, 'GET')
.then(res => {
if (res.code == 200) {
this.codeImg = res.data.img;
}
}).catch(() => {
console.log('vercode err')
})
},
//
doLogin() {
if(this.form.username == '' || this.form.password == '') {
if (this.form.username == '' || this.form.password == '') {
uni.showToast({
title: '用户名密码不能为空',
icon: 'none'
})
return;
} else if(this.form.verCode == '') {
} else if (this.form.verCode == '') {
uni.showToast({
title: '验证码不能为空',
icon: 'none'
@ -61,7 +137,7 @@
})
this.$request1(getApp().globalData.baseUrl + '/api/login/auth', this.form, 'POST').then(res => {
uni.hideLoading();
if(res.code == 200) {
if (res.code == 200) {
uni.setStorageSync('satoken', res.data.satoken);
}
}).catch(() => {
@ -73,15 +149,74 @@
</script>
<style lang="scss" scoped>
.login_form_warp{
.login_form_item {
display: flex;
align-items: center;
.login_form_input {
padding: 8upx 10upx;
.form_warp {
padding: 30rpx 30rpx 195rpx;
.form_intro {
color: #666;
font-size: 26rpx;
font-family: PingFang SC-Bold, PingFang SC;
line-height: 48rpx;
text-align: center;
.tel {
color: #2D8CF0;
font-weight: bold;
}
}
.form_item_box {
padding: 30rpx 20rpx 0 30rpx;
background-color: #fff;
border-radius: 30rpx;
.form_item_title {
color: #333;
line-height: 42rpx;
font-size: 30rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
}
.form_item {
display: flex;
align-items: center;
justify-content: space-around;
margin-bottom: 32rpx;
}
}
}
.foot_btn {
position: fixed;
left: 30rpx;
right: 30rpx;
bottom: 0;
display: flex;
justify-content: space-around;
padding: 40rpx 0;
.act_btn {
width: 329rpx;
height: 90rpx;
color: #666666;
font-size: 28rpx;
line-height: 90rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
text-align: center;
background: #F6F6F6;
border-radius: 100rpx;
border: 1rpx solid #C1C1C1;
&.blue {
color: #fff;
background: #2D8CF0;
border-color: #2D8CF0;
}
}
}
button {
background-color: #007aff;
color: #ffffff;

@ -1,12 +1,68 @@
<template>
<view>
<view class="text" v-for="(item,index) in data" :key="index">
<view>
<view>{{item.organizationName}}</view>
<view>{{item.statDate}}{{item.statPeriod}}</view>
<view class="page">
<view class="list_box" v-for="(item,index) in data" :key="index">
<view class="list_top">
<view class="unit_tags">管理单位</view>
<view class="unit_name">{{item.organizationName}}</view>
</view>
<view class="report_time">{{item.statDate}}<text style="margin-left:16rpx;">{{item.statPeriod}}</text></view>
<uni-collapse>
<uni-collapse-item titleBorder="none" show-arrow="false" border="false" :show-animation="true">
<template v-slot:title>
<view class="list_item">
<view class="list_item_label">收费站名称</view>
<view class="list_item_cnt">仁兆收费站</view>
</view>
</template>
<view class="content">
<view class="list_item">
<view class="list_item_label">高速公路名称</view>
<view class="list_item_cnt">仁兆收费站</view>
</view>
<view class="list_item">
<view class="list_item_label">收费站入口车辆数</view>
<view class="list_item_cnt">仁兆收费站</view>
</view>
<view class="list_item">
<view class="list_item_label">收费站出口车辆数</view>
<view class="list_item_cnt">仁兆收费站</view>
</view>
<view class="list_item">
<view class="list_item_label">免收通行费车辆数</view>
<view class="list_item_cnt">仁兆收费站</view>
</view>
<view class="list_item">
<view class="list_item_label">免收通行费金额</view>
<view class="list_item_cnt">仁兆收费站</view>
</view>
<view class="list_item">
<view class="list_item_label">出口通行费</view>
<view class="list_item_cnt">仁兆收费站</view>
</view>
<view class="list_item">
<view class="list_item_label">报送人员及联系方式</view>
<view class="list_item_cnt">仁兆收费站</view>
</view>
</view>
</uni-collapse-item>
</uni-collapse>
<!-- 按钮 -->
<view class="act_btn_box">
<view class="act_btn blue">编辑</view>
<view class="act_btn" style="margin-left: 30rpx;">查看详情</view>
</view>
</view>
<uni-load-more iconType="circle" :status="status" @clickLoadMore="loadMore"
:contentText="contentText"></uni-load-more>
<!-- 筛选 -->
<view class="foot_btn_box">
<view @click="goPage('/pages/highway/runData/form')" class="act_btn"><uni-icons type="plusempty" size="30" color="#fff"></uni-icons></view>
<view @click="showSearch" class="act_btn btn1"><uni-icons type="search" size="30" color="#2D8CF0"></uni-icons></view>
</view>
<uni-load-more iconType="circle" :status="status" @clickLoadMore="loadMore" :contentText="contentText"></uni-load-more>
<!-- 筛选 -->
<uni-popup ref="search" type="bottom">
</uni-popup>
</view>
</template>
<script>
@ -45,6 +101,10 @@
this.loadMore();
},
methods: {
//
showSearch() {
this.showSearch = true;
},
loadMore() {
if (this.hasMore) {
this.current = this.current + 1;
@ -79,14 +139,119 @@
</script>
<style lang="scss" scoped>
.text {
margin: 16rpx 0;
.page{
min-height: 100vh;
padding: 30rpx 30rpx 0;
}
.list_box {
width: 100%;
background-color: #fff;
height: 120rpx;
line-height: 120rpx;
text-align: center;
color: #555;
border-radius: 8rpx;
border-radius: 30rpx;
margin-bottom: 30rpx;
padding: 30rpx;
.list_top{
display: flex;
.unit_tags{
color: #E37616;
font-size: 20rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
background: #FFF7E4;
border-radius: 10rpx;
border: 1rpx solid #EF9A4F;
padding: 5rpx 11rpx;
}
.unit_name{
color: #333333;
font-size: 30rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
line-height: 48rpx;
margin-left: 20rpx;
word-break: break-all;
}
.report_time{
color: #999999;
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 48rpx;
text-align: center;
margin: 30rpx auto;
}
}
.list_item{
display: flex;
align-items: center;
justify-content: space-around;
.list_item_label{
color: #666666;
font-size: 26rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 48rpx;
}
.list_item_cnt{
color: #333333;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 48rpx;
text-align: right;
margin-left: 20rpx;
word-break: break-all;
}
}
.act_btn_box{
display: flex;
flex-direction: row-reverse;
margin: 10rpx 0;
.act_btn{
width: 180rpx;
color: #666666;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 70rpx;
background: #FFFFFF;
border-radius: 100rpx;
border: 1rpx solid #C1C1C1;
text-align: center;
&.blue{
color:#fff;
background: #2D8CF0;
border-color: #2D8CF0;
}
}
}
.foot_btn_box{
position: fixed;
left: 0;
right: 0;
bottom: 20rpx;
display: flex;
justify-content: space-around;
.act_btn{
width: 329rpx;
line-height: 90rpx;
display: flex;
justify-content: center;
color: #FFFFFF;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
background: #2D8CF0;
border-radius: 100rpx;
border: 1px solid #2D8CF0;
.txt{
margin-left: 9rpx;
}
&.btn1{
color: #2D8CF0;
background: #F6F6F6;
}
}
}
}
</style>

@ -0,0 +1,98 @@
<template>
<view class="home_warp">
<view class="home_box">
<view @click="goPage(item)" class="home_item" v-for="(item, index) in routeData" :index="index" :key="index">
<image :src="imgFix + item.name + '.png'" class="img"></image>
<view class="txt">{{item.meta.title}}</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
imgFix: '/static/image/',
routeData: [], //
}
},
onShow() {
if (uni.getStorageSync('satoken') && this.routeData.length == 0) {
this.getRouters();
}
},
methods: {
//
getRouters() {
this.$request(getApp().globalData.baseUrl + '/api/login/getRouters', {}, 'GET').then(res => {
if(res.code == 200) {
console.log('权限路由');
this.routeData = res.data;
}
}).catch(() => {
})
},
goPage(item) {
uni.navigateTo({
url: '/pages/home/index?routers=' + JSON.stringify(item)
})
},
//
getVerCode() {
this.$request1(getApp().globalData.baseUrl + '/api/common/captchaBase64?type=5&_t=' + Date.parse(new Date()), {},
'GET').then(res => {
if (res.code == 200) {
this.codeImg = res.data.img;
}
}).catch(() => {
console.log('vercode err')
})
},
}
}
</script>
<style lang="scss" scoped>
.home_warp {
height: calc(100vh - 60rpx);
padding: 30rpx 50rpx;
background-color: #fff;
overflow: auto;
.home_box {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}
.home_item {
width: 300rpx;
height: 300rpx;
text-align: center;
background: #FFFFFF;
box-shadow: 4rpx 10rpx 30rpx 1rpx rgba(0, 0, 0, 0.06);
border-radius: 20rpx;
margin-bottom: 30rpx;
.img {
width: 128rpx;
height: 128rpx;
margin: 50rpx auto 12rpx;
}
.txt {
color: #333;
line-height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
}
}
}
button {
background-color: #007aff;
color: #ffffff;
}
</style>

@ -1,132 +1,58 @@
<template>
<view class="home_warp">
<view class="home_box">
<view class="home_item" v-for="(item, index) in routeData" :index="index" :key="index">
<image :src="item.img" class="img"></image>
<view class="txt">{{item.title}}</view>
<view class="highway_home">
<view style="text-align: center;">
<image :src="'../../static/image/' + routersData.name + '01.png'" class="highway_logo"></image>
<view class="home_title">{{routersData.meta.title}}</view>
</view>
<view class="act_wrap" v-for="(item,index) in routersData.children" :key="index">
<view class="act_box" @click="changeShowStatus(index)">
<image v-if="index == 0" src="../../static/image/icon_rundata.png" class="act_logo"></image>
<image v-else src="../../static/image/icon_runstatus.png" class="act_logo"></image>
<text class="act_txt">{{item.meta.title}}</text>
</view>
<!-- 子路由 -->
<view v-show="item.show">
<view @click="goPage('/pages'+ routersData.path + item.path+'/form')" class="act_sub_box" style="margin-bottom: 30rpx;">
报送
</view>
<view @click="goPage('/pages'+ routersData.path + item.path+'/list')" class="act_sub_box">
报送记录
</view>
</view>
</view>
<!-- 底部备注 -->
<view class="foot_intro">
<view>如有填报问题请咨询公共服务中心</view>
<view>中心值班电话<text class="tel">66007587</text></view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
routeData: [{
name: "highway",
title: "高速",
img: '/static/image/highway.png',
children: [{
name: 'runData',
title: '高速运行数据'
}, {
name: 'runStatusData',
title: '高速运行情况'
}]
},
{
name: "roadTransport",
title: "道路运输",
img: '/static/image/roadTransport.png',
children: [{
name: 'transportData',
title: '道路运输数据'
}, {
name: 'dataSubmission',
title: '综合运输数据报送'
}, {
name: 'quantitySent',
title: '道路运输发送量'
}]
},
{
name: "railway",
title: "铁路",
img: '/static/image/railway.png',
children: [{
name: 'railwayRunData',
title: '铁路运行数据'
}, {
name: 'runStatus',
title: '铁路运行情况'
}]
},
{
name: "bus",
title: "公交",
img: '/static/image/bus.png',
children: [{
name: 'busDataInfo',
title: '公交投入数据'
}]
},
{
name: "water",
title: "水运",
img: '/static/image/water.png',
children: [{
name: 'TransportData',
title: '水运运输数据'
}, {
name: 'transportation',
title: '水运运输情况'
}, {
name: 'waterWay',
title: '水路(陆岛)'
}]
},
{
name: "portShipping",
title: "港口",
img: '/static/image/portShipping.png',
children: [{
name: 'pilotStation',
title: '引航站'
}]
},
{
name: "airport",
title: "机场",
img: '/static/image/airport.png',
children: [{
name: 'runData',
title: '机场运行数据'
}, {
name: 'runStatus',
title: '机场运行情况'
}]
},
{
name: "metro",
title: "地铁",
img: '/static/image/metro.png',
children: [{
name: 'pilotStation',
title: '引航站'
}]
},
], //
routersData: []
}
},
onLoad() {
if (uni.getStorageSync('satoken')) {
} else {
// uni.navigateTo({
// url: '/pages/login/login'
// })
onLoad(options) {
if(this.routersData.length == 0 && options.routers) {
this.routersData = JSON.parse(options.routers);
this.routersData.children.map((item,index) => {
item.show = index == 0 ? true : false;
})
console.log(this.routersData)
}
},
methods: {
//
getVerCode() {
this.$request1(getApp().globalData.baseUrl + '/api/common/captchaBase64?type=5&_t=' + Date.parse(new Date()), {},
'GET').then(res => {
if (res.code == 200) {
this.codeImg = res.data.img;
}
}).catch(() => {
console.log('vercode err')
//
changeShowStatus(index) {
console.log('changeShow')
this.routersData.children[index].show = !this.routersData.children[index].show;
},
goPage(url) {
console.log('gopage', url)
uni.navigateTo({
url: url
})
},
}
@ -134,43 +60,77 @@
</script>
<style lang="scss" scoped>
.home_warp {
height: calc(100vh - 60rpx);
padding: 30rpx 50rpx;
.highway_home {
position: relative;
height: calc(100vh - 50rpx);
padding: 0 50rpx 50rpx;
background-color: #fff;
overflow: auto;
.home_box {
display: flex;
flex-direction: row;
flex-wrap: wrap;
.highway_logo {
width: 128rpx;
height: 128rpx;
margin: 78rpx auto 0;
}
.home_item {
width: 300rpx;
height: 300rpx;
.home_title {
color: #333;
line-height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
text-align: center;
background: #FFFFFF;
box-shadow: 4rpx 10rpx 30rpx 1rpx rgba(0, 0, 0, 0.06);
border-radius: 20rpx;
margin-bottom: 75rpx;
}
.img {
width: 128rpx;
height: 128rpx;
margin: 50rpx auto 12rpx;
}
.act_wrap{
margin-bottom: 40rpx;
.act_box {
display: flex;
align-items: center;
justify-content: center;
height: 100rpx;
background: #EFF7FF;
border-radius: 20rpx;
margin-bottom: 30rpx;
.txt {
color: #333;
line-height: 40rpx;
.act_logo {
width: 44rpx;
height: 44rpx;
}
.act_txt {
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #2D8CF0;
}
}
.act_sub_box{
color: #333333;
font-size: 28rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 100rpx;
text-align: center;
border: 1rpx solid #C1C1C1;
border-radius: 20rpx;
}
}
.foot_intro{
position: fixed;
left: 0;
right: 0;
bottom: 44rpx;
color: #666;
font-size: 26rpx;
font-family: PingFang SC-Bold, PingFang SC;
line-height: 48rpx;
text-align: center;
.tel{
color: #2D8CF0;
font-weight: bold;
}
}
}
button {
background-color: #007aff;
color: #ffffff;
}
</style>

@ -1,18 +1,17 @@
<template>
<view class="page">
<view class="page" style="background: #2D8CF0 url(../../static/image/loginBg.png) center top no-repeat;background-size: 750rpx 482rpx;">
<view class="login_form_warp">
<view class="login_title">登录</view>
<view class="login_form_item">
<uni-icons type="person" size="30" color="#979797"></uni-icons>
<input class="login_form_input" v-model="form.username" placeholder="请输入账号" maxlength="20" />
<uni-easyinput placeholderStyle="color:#c8c8c8;font-size:24rpx;" prefixIcon="person" v-model="form.username" placeholder="请输入账号" maxlength="20"></uni-easyinput>
</view>
<view class="login_form_item">
<uni-icons type="locked" size="30" color="#979797"></uni-icons>
<input class="login_form_input" v-model="form.password" type="password" placeholder="请输入密码" maxlength="20" />
<uni-easyinput placeholderStyle="color:#c8c8c8;font-size:24rpx;" prefixIcon="locked" type="password" v-model="form.form.password" placeholder="请输入密码" maxlength="20"></uni-easyinput>
</view>
<view class="login_form_item">
<text class="vercode_label">验证码</text>
<input class="login_form_input" v-model="form.verCode" placeholder="请输入图形验证码" maxlength="20" />
<image :src="codeImg" @click="getVerCode" style="width: 244rpx; height:59rupx;"></image>
<view class="login_form_item" style="background-color: #f6f6f6;border-radius: 10rpx;padding:0 10rpx;">
<view class="vercode_label">验证码:</view>
<uni-easyinput placeholderStyle="color:#c8c8c8;font-size:24rpx;" v-model="form.verCode" placeholder="请输入图形验证码" maxlength="20"></uni-easyinput>
<image :src="codeImg" @click="getVerCode" style="width: 180rpx; height:59rpx;"></image>
</view>
<button type="primary" class="page-body-button" @click="doLogin">登录</button>
</view>
@ -32,7 +31,7 @@
}
},
onLoad() {
// this.getVerCode();
this.getVerCode();
},
methods: {
//
@ -68,11 +67,23 @@
uni.hideLoading();
if(res.code == 200) {
uni.setStorageSync('satoken', res.data.satoken);
this.getRouters();
}
}).catch(() => {
uni.hideLoading();
})
},
//
getRouters() {
this.$request(getApp().globalData.baseUrl + '/api/login/getRouters', {}, 'GET').then(res => {
if(res.code == 200 && res.data.length == 1) {
uni.navigateTo({
url: '/pages/home/index?routers=' + JSON.stringify(res.data[0])
})
}
}).catch(() => {
})
},
}
}
</script>
@ -80,8 +91,8 @@
<style lang="scss" scoped>
.page{
position: relative;
height: vh;
background: #2D8CF0;
height: 100vh;
overflow: hidden;
}
.login_form_warp{
position: absolute;
@ -98,6 +109,7 @@
font-size: 42rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
margin-bottom: 60rpx;
}
.sub_title{
color: #666;
@ -111,25 +123,37 @@
display: flex;
align-items: center;
background: #F6F6F6;
border-radius: 10rpx;
padding: 16rpx 20rpx 15rpx;
margin-bottom: 50rpx;
.vercode_label{
width: 96rpx;
color: #333;
line-height: 59rpx;
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
}
.login_form_input {
padding: 0 10rpx;
line-height: 59rpx;
::v-deep .content-clear-icon{
padding:0 10rpx;
}
::v-deep .is-input-border{
border: 0 !important;
background-color: #f6f6f6 !important;
border-radius: 10rpx !important;
}
::v-deep .uni-easyinput__content-input{
height: 90rpx !important;
border: 0;
background-color: #f6f6f6 !important;
}
}
}
button {
background-color: #007aff;
background-color: #2D8CF0;
color: #ffffff;
margin: 48rpx 50rpx 10rpx;
font-size: 28rpx;
line-height: 90rpx;
font-family: PingFang SC-Regular, PingFang SC;
border-radius: 100rpx;
margin: 70rpx auto 107rpx;
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

@ -22,9 +22,13 @@ const store = createStore({
leftWinActive: '/pages/component/view/view',
activeOpen: '',
menu: [],
univerifyErrorMsg: ''
univerifyErrorMsg: '',
routers: [],//权限路由
},
mutations: {
setRouters(state, routers) {
state.routers = routers;
},
login(state, provider) {
state.hasLogin = true;
state.loginProvider = provider;

@ -14,10 +14,11 @@ const request = (url, data, method = 'GET') => {
method: method,
header: header,
success: res => {
console.log('request res', res)
if (res.statusCode == 200) {
if (res.data.code === "200" || res.data.code === "" || res.data.status == "200") {
if (res.data.code == 200 || res.data.code == "" || res.data.status == 200) {
resolve(res.data)
} else if (res.data.code === "401") {
} else if (res.data.code == 401) {
uni.removeStorageSync("satoken")
uni.navigateTo({
url: '/pages/login/login'

Loading…
Cancel
Save