Commit 5194dd73 authored by ly's avatar ly

1

parent b1130960
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
import Permission from '@/js_sdk/wa-permission/permission' import Permission from '@/js_sdk/wa-permission/permission'
import { SelectLocation } from "./utils/authPerission"; import { SelectLocation } from "./utils/authPerission";
export default { export default {
onLaunch: function() { onLaunch: function() {
//禁止横屏
plus.screen.lockOrientation("portrait-primary")
const common = uni.getStorageSync("m-header-device") const common = uni.getStorageSync("m-header-device")
let versionNumber let versionNumber
...@@ -17,7 +19,6 @@ ...@@ -17,7 +19,6 @@
uni.setStorageSync('version',versionNumber) uni.setStorageSync('version',versionNumber)
}) })
console.log(plus.os.name,'8')
if (!common && plus.os.name=='iOS') { if (!common && plus.os.name=='iOS') {
console.log(plus.os.name,'9') console.log(plus.os.name,'9')
this.loadDevice(); this.loadDevice();
...@@ -26,7 +27,7 @@ ...@@ -26,7 +27,7 @@
this.loadUuid() this.loadUuid()
} }
this.checkVersion() this.checkVersion()
plus.screen.lockOrientation("portrait-primary")
console.log('App Launch') console.log('App Launch')
}, },
......
...@@ -20,8 +20,9 @@ ...@@ -20,8 +20,9 @@
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"distribute" : { "distribute" : {
"orientation" : [ "portrait-primary" ], //重力感应、横竖屏配置 "distribute" : {
"orientation" : [ "portrait-primary" ] //重力感应、横竖屏配置
},
/* android打包配置 */ /* android打包配置 */
"android" : { "android" : {
"permissions" : [ "permissions" : [
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<view class='bill-null' v-else> <view class='bill-null' v-else>
<view class='n-img'></view> <view class='n-img'></view>
<view class='n-text'>目前还没有账单哦~</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>
</view> </view>
</template> </template>
...@@ -57,11 +57,13 @@ ...@@ -57,11 +57,13 @@
return { return {
moment, moment,
title: 'Hello', title: 'Hello',
billList:[], billList:[],
tokenShow:''
} }
}, },
onLoad() { onLoad() {
const token=uni.getStorageSync('token') const token=uni.getStorageSync('token')
this.tokenShow=token
const common = uni.getStorageSync("m-header-device") const common = uni.getStorageSync("m-header-device")
if(!common && plus.os.name!='iOS' && token){ if(!common && plus.os.name!='iOS' && token){
loadDevice() loadDevice()
...@@ -118,16 +120,9 @@ ...@@ -118,16 +120,9 @@
}, },
onShow() { onShow() {
const token=uni.getStorageSync('token') const token=uni.getStorageSync('token')
// const common = uni.getStorageSync("m-header-device") this.tokenShow=token
// if(!common && plus.os.name!='iOS' && token){
// loadDevice() this.init()
// loadNetwork()
// loadUuid()
// loadLocation()
// this.init()
// }else{
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 () { ...@@ -9049,6 +9049,14 @@ var render = function () {
_c( _c(
"uni-view", "uni-view",
{ {
directives: [
{
name: "show",
rawName: "v-show",
value: _vm._$g(26, "v-show"),
expression: "_$g(26,'v-show')",
},
],
staticClass: _vm._$g(26, "sc"), staticClass: _vm._$g(26, "sc"),
attrs: { _i: 26 }, attrs: { _i: 26 },
on: { on: {
...@@ -17682,7 +17690,7 @@ if(false) {} ...@@ -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); 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); exports = ___CSS_LOADER_API_IMPORT___(false);
// Module // Module
exports.push([module.i, "\n\n\n\n\n\n\n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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