1.3.3.8扫本地图片二维码

This commit is contained in:
xk_yangdeshi
2021-07-07 14:30:32 +08:00
parent 1335809f58
commit 1d7add295e
9 changed files with 561 additions and 122 deletions

27
App.vue
View File

@@ -1,6 +1,6 @@
<script>
import Vue from 'vue'
import utils from '@/utils/encode'
import utils from '@/utils/encode'
export default {
onLaunch: function() {
uni.getSystemInfo({
@@ -13,14 +13,14 @@ import utils from '@/utils/encode'
Vue.prototype.CustomBar = e.statusBarHeight + 45;
};
// #endif
// #ifdef MP-WEIXIN
Vue.prototype.StatusBar = e.statusBarHeight;
let custom = wx.getMenuButtonBoundingClientRect();
Vue.prototype.Custom = custom;
Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
// #endif
// #ifdef MP-ALIPAY
Vue.prototype.StatusBar = e.statusBarHeight;
Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
@@ -29,23 +29,24 @@ import utils from '@/utils/encode'
})
},
onShow: function() {
console.log('App Show')
const JSESSIONID = utils.uuid()
console.log(JSESSIONID)
// console.log(utils.bcrypt(JSESSIONID))
uni.getLocation({
type: 'wgs84',
success: function (res) {
console.log('当前位置的经度:' + res.longitude);
console.log('当前位置的纬度:' + res.latitude);
type: 'wgs84',
success: function(res) {
console.log('当前位置的经度:' + res.longitude);
console.log('当前位置的纬度:' + res.latitude);
uni.setStorage({
key: 'service_baseUrl',
data: 'https://www.51xingka.net/LSMOIL/',
success: function () {
console.log('缓存baseUrl成功');
}
key: 'service_baseUrl',
data: 'https://www.51xingka.net/LSMOIL/',
success: function() {
console.log('缓存baseUrl成功');
}
})
}
}
});
},
onHide: function() {