Commit 5194dd73 authored by ly's avatar ly

1

parent b1130960
......@@ -3,7 +3,9 @@
import Permission from '@/js_sdk/wa-permission/permission'
import { SelectLocation } from "./utils/authPerission";
export default {
onLaunch: function() {
onLaunch: function() {
//禁止横屏
plus.screen.lockOrientation("portrait-primary")
const common = uni.getStorageSync("m-header-device")
let versionNumber
......@@ -17,7 +19,6 @@
uni.setStorageSync('version',versionNumber)
})
console.log(plus.os.name,'8')
if (!common && plus.os.name=='iOS') {
console.log(plus.os.name,'9')
this.loadDevice();
......@@ -26,7 +27,7 @@
this.loadUuid()
}
this.checkVersion()
plus.screen.lockOrientation("portrait-primary")
console.log('App Launch')
},
......
......@@ -20,8 +20,9 @@
},
/* 应用发布信息 */
"distribute" : {
"orientation" : [ "portrait-primary" ], //重力感应、横竖屏配置
"distribute" : {
"orientation" : [ "portrait-primary" ] //重力感应、横竖屏配置
},
/* android打包配置 */
"android" : {
"permissions" : [
......
......@@ -44,7 +44,7 @@
<view class='bill-null' v-else>
<view class='n-img'></view>
<view class='n-text'>目前还没有账单哦~</view>
<view class='n-btn' @click="goLoan">去登录</view>
<view class='n-btn' v-show="tokenShow==''" @click="goLoan">去登录</view>
</view>
</view>
</template>
......@@ -57,11 +57,13 @@
return {
moment,
title: 'Hello',
billList:[],
billList:[],
tokenShow:''
}
},
onLoad() {
const token=uni.getStorageSync('token')
this.tokenShow=token
const common = uni.getStorageSync("m-header-device")
if(!common && plus.os.name!='iOS' && token){
loadDevice()
......@@ -118,16 +120,9 @@
},
onShow() {
const token=uni.getStorageSync('token')
// const common = uni.getStorageSync("m-header-device")
// if(!common && plus.os.name!='iOS' && token){
// loadDevice()
// loadNetwork()
// loadUuid()
// loadLocation()
// this.init()
// }else{
this.init()
// }
this.tokenShow=token
this.init()
}
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -9049,6 +9049,14 @@ var render = function () {
_c(
"uni-view",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm._$g(26, "v-show"),
expression: "_$g(26,'v-show')",
},
],
staticClass: _vm._$g(26, "sc"),
attrs: { _i: 26 },
on: {
......@@ -17682,7 +17690,7 @@ if(false) {}
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../Applications/HBuilderX 2.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 10);
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*每个页面公共css */\n", ""]);
exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*每个页面公共css */\n", ""]);
// Exports
module.exports = exports;
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment