更新小程序页面

This commit is contained in:
weipengfei 2023-09-04 09:12:04 +08:00
parent 7d2a2850a5
commit 1b41c0bc22
3 changed files with 18 additions and 10 deletions

View File

@ -1,9 +1,9 @@
<template>
<view class="oa_home" style="oaColor">
<!-- <image class="header_bg" src="../../static/img/home/head-bg.png"></image> -->
<u-navbar v-if="uniMP" @leftClick="leftClick" bgColor="rgba(0,0,0,0)"
<!-- <u-navbar @leftClick="leftClick" bgColor="rgba(0,0,0,0)"
leftIconColor=" #fff" :autoBack="false">
</u-navbar>
</u-navbar> -->
<view class="home_header" :class="!ApproveList.length > 0 ? 'home_header_no_data' : ''">
<view style="
position: absolute;
@ -20,9 +20,12 @@
" />
</view>
<!-- #ifdef APP-PLUS||H5 -->
<view v-if="!uniMP" style="height: var(--status-bar-height)"></view>
<view style="height: 30rpx"></view>
<view v-if="uniMP" style="height: 44px"></view>
<view style="height: var(--status-bar-height)"></view>
<view v-if="uniMP" style="height: 44px;">
<u-icon name="arrow-left" color="#fff" size="20" @click="leftClick"></u-icon>
</view>
<!-- <view style="height: 30rpx"></view> -->
<!-- <view v-if="uniMP" style="height: 44px;"></view> -->
<!-- #endif -->
<view class="my_info">
<view v-if="!$store.state.app.token" @click="login" class="mesg_box">

View File

@ -5,14 +5,17 @@
<view style="position: absolute;bottom: 0;left: 0;overflow: hidden;border-radius: 0;">
<hx-lottie :options="options" ref="lottie" style="width: 100vw;height: 460rpx;transform: scale(1.2);background-color: #0122c7;"/>
</view>
<u-navbar v-if="uniMP" @leftClick="leftClick" bgColor="rgba(0,0,0,0)"
<!-- <u-navbar v-if="uniMP" @leftClick="leftClick" bgColor="rgba(0,0,0,0)"
leftIconColor=" #fff" :autoBack="false">
</u-navbar>
</u-navbar> -->
<!-- #ifdef APP-PLUS||H5 -->
<view v-if="!uniMP" style="height: var(--status-bar-height)"></view>
<view style="height: 30rpx"></view>
<view style="height: var(--status-bar-height)"></view>
<view v-if="uniMP" style="height: 44px;">
<u-icon name="arrow-left" color="#fff" size="20" @click="leftClick"></u-icon>
</view>
<!-- <view style="height: 30rpx"></view> -->
<!-- <view style="height: 100rpx"></view> -->
<view v-if="uniMP" style="height: 44px"></view>
<!-- <view v-if="uniMP" style="height: 44px"></view> -->
<!-- #endif -->
<view class="personage">
<view class="my_msg flex_a_c_j_sb">

View File

@ -1,6 +1,7 @@
import { HTTP_REQUEST_URL, HEADER, TOKENNAME, } from '@/config/app';
// import { checkLogin } from '../libs/login';
import store from '../store';
import props from '../uni_modules/uview-ui/libs/config/props';
function toLogin() {
@ -19,6 +20,7 @@ function baseRequest(url, method, data, {
noAuth = false,
noVerify = false
}) {
console.log('当前环境', process.env.NODE_ENV);
let Url = HTTP_REQUEST_URL,
header = HEADER;