更新了小程序关闭
This commit is contained in:
parent
caa6828681
commit
709eb09bdc
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="oa_home" style="oaColor">
|
<view class="oa_home" style="oaColor">
|
||||||
<!-- <image class="header_bg" src="../../static/img/home/head-bg.png"></image> -->
|
<!-- <image class="header_bg" src="../../static/img/home/head-bg.png"></image> -->
|
||||||
<u-navbar v-if="uniMP" @leftClick="leftClick" :autoBack="true" bgColor="rgba(0,0,0,0)"
|
<u-navbar v-if="uniMP" @leftClick="leftClick" bgColor="rgba(0,0,0,0)"
|
||||||
leftIconColor=" #fff">
|
leftIconColor=" #fff" :autoBack="false">
|
||||||
</u-navbar>
|
</u-navbar>
|
||||||
<view class="home_header" :class="!ApproveList.length > 0 ? 'home_header_no_data' : ''">
|
<view class="home_header" :class="!ApproveList.length > 0 ? 'home_header_no_data' : ''">
|
||||||
<view style="
|
<view style="
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
<view class="login">
|
<view class="login">
|
||||||
<!-- <image class="bg-iamge" src="../../static/img/login/login_back_img.png"></image> -->
|
<!-- <image class="bg-iamge" src="../../static/img/login/login_back_img.png"></image> -->
|
||||||
<hx-lottie :options="options" ref="lottie" style="width: 100vw;height: 100vh;transform: scale(1.3);background-color: #0122c7;"/>
|
<hx-lottie :options="options" ref="lottie" style="width: 100vw;height: 100vh;transform: scale(1.3);background-color: #0122c7;"/>
|
||||||
|
<u-navbar v-if="uniMP" @leftClick="leftClick" bgColor="rgba(0,0,0,0)"
|
||||||
|
leftIconColor=" #fff" :autoBack="false">
|
||||||
|
</u-navbar>
|
||||||
<!-- #ifdef APP-PLUS||H5 -->
|
<!-- #ifdef APP-PLUS||H5 -->
|
||||||
<!-- <view style="height: var(--status-bar-height)"></view> -->
|
<!-- <view style="height: var(--status-bar-height)"></view> -->
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
@ -56,6 +59,7 @@
|
|||||||
options: {
|
options: {
|
||||||
data: '',
|
data: '',
|
||||||
},
|
},
|
||||||
|
uniMP: false,
|
||||||
tabList: [{
|
tabList: [{
|
||||||
name: '账号登录'
|
name: '账号登录'
|
||||||
},
|
},
|
||||||
@ -79,12 +83,21 @@
|
|||||||
this.options.data = bj;
|
this.options.data = bj;
|
||||||
// this.$refs.lottie.call('play');
|
// this.$refs.lottie.call('play');
|
||||||
this.initTerminal();
|
this.initTerminal();
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
if(uni.getStorageSync('uniMP'))this.uniMP = true;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeTabs(e) {
|
changeTabs(e) {
|
||||||
this.current = e.index;
|
this.current = e.index;
|
||||||
this.formData.scene = e.index + 1;
|
this.formData.scene = e.index + 1;
|
||||||
},
|
},
|
||||||
|
leftClick(e) {
|
||||||
|
uni.sendHostEvent('closeApp', e, (ret) => {
|
||||||
|
//发送消息成功回调
|
||||||
|
console.log('关闭应用'+JSON.stringify(ret));
|
||||||
|
});
|
||||||
|
},
|
||||||
// 获取设备id
|
// 获取设备id
|
||||||
getId() {
|
getId() {
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
|
@ -5,10 +5,14 @@
|
|||||||
<view style="position: absolute;bottom: 0;left: 0;overflow: hidden;border-radius: 0;">
|
<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;"/>
|
<hx-lottie :options="options" ref="lottie" style="width: 100vw;height: 460rpx;transform: scale(1.2);background-color: #0122c7;"/>
|
||||||
</view>
|
</view>
|
||||||
|
<u-navbar v-if="uniMP" @leftClick="leftClick" bgColor="rgba(0,0,0,0)"
|
||||||
|
leftIconColor=" #fff" :autoBack="false">
|
||||||
|
</u-navbar>
|
||||||
<!-- #ifdef APP-PLUS||H5 -->
|
<!-- #ifdef APP-PLUS||H5 -->
|
||||||
<view style="height: var(--status-bar-height);"></view>
|
<view v-if="!uniMP" style="height: var(--status-bar-height)"></view>
|
||||||
<!-- <view style="height: 30rpx"></view> -->
|
<view style="height: 30rpx"></view>
|
||||||
<view style="height: 100rpx"></view>
|
<!-- <view style="height: 100rpx"></view> -->
|
||||||
|
<view v-if="uniMP" style="height: 44px"></view>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<view class="personage">
|
<view class="personage">
|
||||||
<view class="my_msg flex_a_c_j_sb">
|
<view class="my_msg flex_a_c_j_sb">
|
||||||
@ -96,6 +100,7 @@
|
|||||||
options: {
|
options: {
|
||||||
data: '',
|
data: '',
|
||||||
},
|
},
|
||||||
|
uniMP: false,
|
||||||
// myOaData: [],
|
// myOaData: [],
|
||||||
src: 'https://cdn.uviewui.com/uview/album/1.jpg',
|
src: 'https://cdn.uviewui.com/uview/album/1.jpg',
|
||||||
modelShow: false
|
modelShow: false
|
||||||
@ -105,6 +110,7 @@
|
|||||||
this.options.data = bj;
|
this.options.data = bj;
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
if(uni.getStorageSync('uniMP'))this.uniMP = true;
|
||||||
this.getOaUserInfo();
|
this.getOaUserInfo();
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
@ -142,6 +148,12 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['getWxLogin']),
|
...mapActions(['getWxLogin']),
|
||||||
|
leftClick(e) {
|
||||||
|
uni.sendHostEvent('closeApp', e, (ret) => {
|
||||||
|
//发送消息成功回调
|
||||||
|
console.log('关闭应用'+JSON.stringify(ret));
|
||||||
|
});
|
||||||
|
},
|
||||||
login() {
|
login() {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/oaLogin/oaLogin'
|
url: '/pages/oaLogin/oaLogin'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user