Commit cd956f98 authored by ly's avatar ly

活体新增授权信息

parent 5acc2c5c
No preview for this file type
......@@ -4,21 +4,21 @@
import { SelectLocation } from "./utils/authPerission";
export default {
onLaunch: function() {
const common = uni.getStorageSync("m-header-device")
let versionNumber
plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo){
if(wgtinfo.version){
versionNumber = wgtinfo.version;
}else{
versionNumber = plus.runtime.version;
}
uni.setStorageSync('version',versionNumber)
})
const common = uni.getStorageSync("m-header-device")
let versionNumber
plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo){
if(wgtinfo.version){
versionNumber = wgtinfo.version;
}else{
versionNumber = plus.runtime.version;
}
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')
this.loadDevice();
this.loadNetwork();
......@@ -30,14 +30,14 @@
console.log('App Launch')
},
methods:{
methods:{
//版本检查
checkVersion(){
const self=this
// let realVersion = '109';//这里是热更新的版本号,依次累加,(后端要比这里的版本号大)
plus.runtime.getProperty(plus.runtime.appid,function(widgetInfo){
let currentVersion = widgetInfo.version.replace(/\./g, ""); //获取当前版本号
self.$request('/app/v1/checkVersions','GET').then(res=>{
self.$request('/app/v1/checkVersions','GET').then(res=>{
console.log(res,'appvue')
const { versionInfo }=res.result
const { version,updateUrl,updateMsg,update,forceUpdate}=versionInfo
......@@ -126,7 +126,7 @@
mobileType: result.model,
screenHeight: result.screenHeight,
screenWidth: result.screenWidth,
resolution: result.windowWidth + '*' + result.screenHeight,
resolution: result.windowWidth + '*' + result.screenHeight,
appSourceId: "1"
};
// 本地存储
......@@ -215,21 +215,22 @@
});
}).catch(err => {
console.log(err, '错误了')
// that.toast('获取位置信息失败')
})
})
}
},
onShow: function() {
const common = uni.getStorageSync("m-header-device")
if (!common && plus.os.name=='iOS') {
console.log(plus.os.name,'9')
this.loadDevice();
this.loadNetwork();
this.loadLocation();
this.loadUuid()
}
const common = uni.getStorageSync("m-header-device")
if (!common && plus.os.name=='iOS') {
console.log(plus.os.name,'9')
this.loadDevice();
this.loadNetwork();
this.loadLocation();
this.loadUuid()
}
this.checkVersion()
},
......
......@@ -3,7 +3,7 @@
"appid" : "__UNI__DE04B13",
"description" : "",
"versionName" : "1.0.1",
"versionCode" : 126,
"versionCode" : 127,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
......@@ -20,9 +20,8 @@
},
/* 应用发布信息 */
"distribute" : {
"distribute" : {
"orientation" : [ "portrait-primary" ] //重力感应、横竖屏配置
},
"orientation" : [ "portrait-primary" ], //重力感应、横竖屏配置
/* android打包配置 */
"android" : {
"permissions" : [
......@@ -41,6 +40,7 @@
"<uses-permission android:name=\"android.permission.INTERNET\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" />",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
......@@ -60,7 +60,8 @@
"permissionPhoneState" : {
"request" : "none",
"prompt" : "为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许"
}
},
"autoSdkPermissions" : false
},
/* ios打包配置 */
"ios" : {
......@@ -137,7 +138,8 @@
"modules" : {
"Camera" : {},
"Contacts" : {},
"Geolocation" : {}
"Geolocation" : {},
"Record" : {}
},
"nativePlugins" : {
"AThree-LFv2" : {
......
......@@ -454,11 +454,17 @@
console.log(res,'checkProductList')
const {jumpUrl}=res.result
console.log(jumpUrl,'jumpUrl')
uni.navigateTo({
url:`/pages/websrc/websrc?url=${jumpUrl}`
})
// self.Go(jumpUrl)
const indexs=jumpUrl.indexOf(":")
if(indexs!==-1){
const schema = jumpUrl.substring(0, indexs)
if(schema=='uni'){
this.Go(jumpUrl)
}else{
uni.navigateTo({
url:`/pages/websrc/websrc?url=${jumpUrl}`
})
}
}
}).catch(err=>{
console.log(err,'请求出错')
})
......@@ -600,6 +606,7 @@
// })
// },
educationClick(){
console.log(222,'999')
this.showeducation=true
},
columnClick(){
......
......@@ -42,6 +42,7 @@
onLoad() {
this.faceToken()
this.initUser()
this.checkPermission()
},
methods: {
//获取个人信息
......@@ -88,6 +89,32 @@
})
},
checkPermission(){
// 判断是否是Android设备
if (plus.os.name.toLowerCase() === 'android') {
// 获取Context对象
var Context = plus.android.importClass('android.content.Context');
// 获取Activity对象
var Activity = plus.android.runtimeMainActivity();
// 获取PackageManager对象
var PackageManager = plus.android.importClass('android.content.pm.PackageManager');
// 获取Manifest.permission对象
var Manifest = plus.android.importClass('android.Manifest');
// 获取permission对象
var permission = Manifest.permission;
// 判断是否已有权限
if (Activity.checkSelfPermission(permission.READ_EXTERNAL_STORAGE) !== PackageManager.PERMISSION_GRANTED ||
Activity.checkSelfPermission(permission.WRITE_EXTERNAL_STORAGE) !== PackageManager.PERMISSION_GRANTED) {
// 没有权限,请求权限
Activity.requestPermissions(
[permission.READ_EXTERNAL_STORAGE, permission.WRITE_EXTERNAL_STORAGE],
1 // 请求码
);
}
}
},
goFace(){
const self = this
const {bizToken, requestId} = self
......
......@@ -284,12 +284,25 @@
const common = uni.getStorageSync("m-header-device")
this.token=token
if(!common && plus.os.name!='iOS' && token){
loadDevice()
loadNetwork()
loadUuid()
loadLocation()
this.init()
this.searchGood()
// const authLocation=uni.getStorageSync('authLocation')
// if(authLocation){
// console.log('888')
// uni.showToast({
// title: '请允许地理位置信息',
// icon: "none",
// duration: 2000
// })
// return false
// }else{
loadDevice()
loadNetwork()
loadUuid()
loadLocation()
this.init()
this.searchGood()
// }
}else{
this.init()
......
......@@ -121,12 +121,12 @@
},
goPage(item){
// const mobileCall=uni.getStorageSync('mobileCall')
// const newurl='http://ddhdctest.yyhock.com/#/loan?cellPhone=19957461501'
const newurl='http://192.168.0.23:8080/#/loan'
// this.Go('http://192.168.0.23:8080/#/loanMulti')
// uni.navigateTo({
// url:`/pages/websrc/websrc?url=${newurl}`
// })
this.Go(item.linkUrl)
uni.navigateTo({
url:`/pages/websrc/websrc?url=${newurl}`
})
// this.Go(item.linkUrl)
},
goLogin(){
this.Go('uni:/pages/login/login')
......
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/index/index","pages/sort/index","pages/my/index","pages/recruit/index","pages/recruitResult/index","pages/category/category","pages/application/application","pages/myneed/myneed","pages/Ineed/Ineed","pages/productDetails/productDetails","pages/detailResult/detailResult","pages/useFeed/useFeed","pages/lookGoods/lookGoods","pages/login/login","pages/prolist/prolist","pages/setting/setting","pages/webview/webview","pages/indexfinance/index","pages/contact/contact","pages/myfinance/index","pages/bill/index","pages/application/application","pages/financeApp/application","pages/auth/auth","pages/face/face","pages/baseInfo/baseInfo","pages/creditResult/creditResult","pages/loanlication/application","pages/feedback/feedback","pages/addBank/addBank","pages/loan/loan","pages/loanResult/loanResult","pages/billDetail/billDetail","pages/repayment/repayment","pages/pay/pay","pages/payResult/payResult","pages/lookBank/lookBank","pages/web/web","pages/websrc/websrc","pages/agreement/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#FFFFFF","backgroundColor":"#F8F8F8","bounce":"none"},"tabBar":{"borderStyle":"white","color":"#BBBBBB","selectedColor":"#2263E6","iconWidth":"24px","height":"52px","fontSize":"12px","list":[{"pagePath":"pages/index/index","iconPath":"static/tab/index-h.png","selectedIconPath":"static/tab/index.png","text":"首页"},{"pagePath":"pages/indexfinance/index","iconPath":"static/tab/index-h.png","selectedIconPath":"static/tab/index.png","text":"借钱"},{"pagePath":"pages/bill/index","iconPath":"static/tab/billh.png","selectedIconPath":"static/tab/bill.png","text":"账单"},{"pagePath":"pages/my/index","iconPath":"static/tab/my-h.png","selectedIconPath":"static/tab/my.png","text":"我的"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"多典花","compilerVersion":"4.24","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniConfig = {"pages":["pages/index/index","pages/sort/index","pages/my/index","pages/recruit/index","pages/recruitResult/index","pages/category/category","pages/application/application","pages/myneed/myneed","pages/Ineed/Ineed","pages/productDetails/productDetails","pages/detailResult/detailResult","pages/useFeed/useFeed","pages/lookGoods/lookGoods","pages/login/login","pages/prolist/prolist","pages/setting/setting","pages/webview/webview","pages/indexfinance/index","pages/contact/contact","pages/myfinance/index","pages/bill/index","pages/application/application","pages/financeApp/application","pages/auth/auth","pages/face/face","pages/baseInfo/baseInfo","pages/creditResult/creditResult","pages/loanlication/application","pages/feedback/feedback","pages/addBank/addBank","pages/loan/loan","pages/loanResult/loanResult","pages/billDetail/billDetail","pages/repayment/repayment","pages/pay/pay","pages/payResult/payResult","pages/lookBank/lookBank","pages/web/web","pages/websrc/websrc","pages/agreement/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#FFFFFF","backgroundColor":"#F8F8F8","bounce":"none"},"tabBar":{"borderStyle":"white","color":"#BBBBBB","selectedColor":"#2263E6","iconWidth":"24px","height":"52px","fontSize":"12px","list":[{"pagePath":"pages/index/index","iconPath":"static/tab/indexfh.png","selectedIconPath":"static/tab/indexf.png","text":"首页"},{"pagePath":"pages/indexfinance/index","iconPath":"static/tab/index-h.png","selectedIconPath":"static/tab/index.png","text":"贷款"},{"pagePath":"pages/bill/index","iconPath":"static/tab/billh.png","selectedIconPath":"static/tab/bill.png","text":"账单"},{"pagePath":"pages/my/index","iconPath":"static/tab/my-h.png","selectedIconPath":"static/tab/my.png","text":"我的"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"多典花","compilerVersion":"4.24","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom","bounce":"none"}},{"path":"/pages/sort/index","meta":{},"window":{"navigationBarTitleText":"款式"}},{"path":"/pages/my/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/recruit/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"鉴定师招聘"}},{"path":"/pages/recruitResult/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/category/category","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"选择鉴定品类"}},{"path":"/pages/application/application","meta":{},"window":{"navigationBarTitleText":"申请记录"}},{"path":"/pages/myneed/myneed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要的"}},{"path":"/pages/Ineed/Ineed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要"}},{"path":"/pages/productDetails/productDetails","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"商品详情"}},{"path":"/pages/detailResult/detailResult","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/useFeed/useFeed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"用户反馈"}},{"path":"/pages/lookGoods/lookGoods","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/login/login","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"登录"}},{"path":"/pages/prolist/prolist","meta":{},"window":{"navigationBarTitleText":"相关协议"}},{"path":"/pages/setting/setting","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"设置"}},{"path":"/pages/webview/webview","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/indexfinance/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/contact/contact","meta":{},"window":{"navigationBarTitleText":"通讯录","enablePullDownRefresh":false}},{"path":"/pages/myfinance/index","meta":{},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/bill/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"账单"}},{"path":"/pages/financeApp/application","meta":{},"window":{"navigationBarTitleText":"申请记录"}},{"path":"/pages/auth/auth","meta":{},"window":{"navigationBarTitleText":"实名认证"}},{"path":"/pages/face/face","meta":{},"window":{"navigationBarTitleText":"人脸认证"}},{"path":"/pages/baseInfo/baseInfo","meta":{},"window":{"navigationBarTitleText":"基础信息"}},{"path":"/pages/creditResult/creditResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/loanlication/application","meta":{},"window":{"navigationBarTitleText":"申请记录"}},{"path":"/pages/feedback/feedback","meta":{},"window":{"navigationBarTitleText":"意见反馈"}},{"path":"/pages/addBank/addBank","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"添加银行卡"}},{"path":"/pages/loan/loan","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"借款申请"}},{"path":"/pages/loanResult/loanResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/billDetail/billDetail","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"账单详情"}},{"path":"/pages/repayment/repayment","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"还款金额确认"}},{"path":"/pages/pay/pay","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"支付"}},{"path":"/pages/payResult/payResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/lookBank/lookBank","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"支持的银行卡"}},{"path":"/pages/web/web","meta":{},"window":{"navigationBarTitleText":"","enablePullDownRefresh":false}},{"path":"/pages/websrc/websrc","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/agreement/index","meta":{},"window":{"navigationStyle":"custom","navigationBarTitleText":"","enablePullDownRefresh":false,"bounce":"none","animationType":"fade-in","background":"transparent","backgroundColor":"rgba(0,0,0,0)","webviewBGTransparent":true,"mask":"none"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
......
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/index/index","pages/sort/index","pages/my/index","pages/recruit/index","pages/recruitResult/index","pages/category/category","pages/application/application","pages/myneed/myneed","pages/Ineed/Ineed","pages/productDetails/productDetails","pages/detailResult/detailResult","pages/useFeed/useFeed","pages/lookGoods/lookGoods","pages/login/login","pages/prolist/prolist","pages/setting/setting","pages/webview/webview","pages/indexfinance/index","pages/contact/contact","pages/myfinance/index","pages/bill/index","pages/application/application","pages/financeApp/application","pages/auth/auth","pages/face/face","pages/baseInfo/baseInfo","pages/creditResult/creditResult","pages/loanlication/application","pages/feedback/feedback","pages/addBank/addBank","pages/loan/loan","pages/loanResult/loanResult","pages/billDetail/billDetail","pages/repayment/repayment","pages/pay/pay","pages/payResult/payResult","pages/lookBank/lookBank","pages/web/web","pages/websrc/websrc","pages/agreement/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#FFFFFF","backgroundColor":"#F8F8F8","bounce":"none"},"tabBar":{"borderStyle":"white","color":"#BBBBBB","selectedColor":"#2263E6","iconWidth":"24px","height":"52px","fontSize":"12px","list":[{"pagePath":"pages/index/index","iconPath":"static/tab/index-h.png","selectedIconPath":"static/tab/index.png","text":"首页"},{"pagePath":"pages/indexfinance/index","iconPath":"static/tab/index-h.png","selectedIconPath":"static/tab/index.png","text":"借钱"},{"pagePath":"pages/bill/index","iconPath":"static/tab/billh.png","selectedIconPath":"static/tab/bill.png","text":"账单"},{"pagePath":"pages/my/index","iconPath":"static/tab/my-h.png","selectedIconPath":"static/tab/my.png","text":"我的"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"多典花","compilerVersion":"4.24","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniConfig = {"pages":["pages/index/index","pages/sort/index","pages/my/index","pages/recruit/index","pages/recruitResult/index","pages/category/category","pages/application/application","pages/myneed/myneed","pages/Ineed/Ineed","pages/productDetails/productDetails","pages/detailResult/detailResult","pages/useFeed/useFeed","pages/lookGoods/lookGoods","pages/login/login","pages/prolist/prolist","pages/setting/setting","pages/webview/webview","pages/indexfinance/index","pages/contact/contact","pages/myfinance/index","pages/bill/index","pages/application/application","pages/financeApp/application","pages/auth/auth","pages/face/face","pages/baseInfo/baseInfo","pages/creditResult/creditResult","pages/loanlication/application","pages/feedback/feedback","pages/addBank/addBank","pages/loan/loan","pages/loanResult/loanResult","pages/billDetail/billDetail","pages/repayment/repayment","pages/pay/pay","pages/payResult/payResult","pages/lookBank/lookBank","pages/web/web","pages/websrc/websrc","pages/agreement/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#FFFFFF","backgroundColor":"#F8F8F8","bounce":"none"},"tabBar":{"borderStyle":"white","color":"#BBBBBB","selectedColor":"#2263E6","iconWidth":"24px","height":"52px","fontSize":"12px","list":[{"pagePath":"pages/index/index","iconPath":"static/tab/indexfh.png","selectedIconPath":"static/tab/indexf.png","text":"首页"},{"pagePath":"pages/indexfinance/index","iconPath":"static/tab/index-h.png","selectedIconPath":"static/tab/index.png","text":"贷款"},{"pagePath":"pages/bill/index","iconPath":"static/tab/billh.png","selectedIconPath":"static/tab/bill.png","text":"账单"},{"pagePath":"pages/my/index","iconPath":"static/tab/my-h.png","selectedIconPath":"static/tab/my.png","text":"我的"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"多典花","compilerVersion":"4.24","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom","bounce":"none"}},{"path":"/pages/sort/index","meta":{},"window":{"navigationBarTitleText":"款式"}},{"path":"/pages/my/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/recruit/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"鉴定师招聘"}},{"path":"/pages/recruitResult/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/category/category","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"选择鉴定品类"}},{"path":"/pages/application/application","meta":{},"window":{"navigationBarTitleText":"申请记录"}},{"path":"/pages/myneed/myneed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要的"}},{"path":"/pages/Ineed/Ineed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要"}},{"path":"/pages/productDetails/productDetails","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"商品详情"}},{"path":"/pages/detailResult/detailResult","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/useFeed/useFeed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"用户反馈"}},{"path":"/pages/lookGoods/lookGoods","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/login/login","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"登录"}},{"path":"/pages/prolist/prolist","meta":{},"window":{"navigationBarTitleText":"相关协议"}},{"path":"/pages/setting/setting","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"设置"}},{"path":"/pages/webview/webview","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/indexfinance/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/contact/contact","meta":{},"window":{"navigationBarTitleText":"通讯录","enablePullDownRefresh":false}},{"path":"/pages/myfinance/index","meta":{},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/bill/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"账单"}},{"path":"/pages/financeApp/application","meta":{},"window":{"navigationBarTitleText":"申请记录"}},{"path":"/pages/auth/auth","meta":{},"window":{"navigationBarTitleText":"实名认证"}},{"path":"/pages/face/face","meta":{},"window":{"navigationBarTitleText":"人脸认证"}},{"path":"/pages/baseInfo/baseInfo","meta":{},"window":{"navigationBarTitleText":"基础信息"}},{"path":"/pages/creditResult/creditResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/loanlication/application","meta":{},"window":{"navigationBarTitleText":"申请记录"}},{"path":"/pages/feedback/feedback","meta":{},"window":{"navigationBarTitleText":"意见反馈"}},{"path":"/pages/addBank/addBank","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"添加银行卡"}},{"path":"/pages/loan/loan","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"借款申请"}},{"path":"/pages/loanResult/loanResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/billDetail/billDetail","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"账单详情"}},{"path":"/pages/repayment/repayment","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"还款金额确认"}},{"path":"/pages/pay/pay","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"支付"}},{"path":"/pages/payResult/payResult","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/lookBank/lookBank","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"支持的银行卡"}},{"path":"/pages/web/web","meta":{},"window":{"navigationBarTitleText":"","enablePullDownRefresh":false}},{"path":"/pages/websrc/websrc","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/agreement/index","meta":{},"window":{"navigationStyle":"custom","navigationBarTitleText":"","enablePullDownRefresh":false,"bounce":"none","animationType":"fade-in","background":"transparent","backgroundColor":"rgba(0,0,0,0)","webviewBGTransparent":true,"mask":"none"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
......
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.
......@@ -17659,7 +17659,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/*每个页面公共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/*每个页面公共css */\n", ""]);
// Exports
module.exports = exports;
This diff is collapsed.
......@@ -113,24 +113,29 @@ export const SelectLocation = async function (callback) {
CheckLocationPermission(callback)
}
} else {
try {
const rContacts = await Permission.requestAndroidPermission('android.permission.ACCESS_FINE_LOCATION');
if (rContacts === 1) {
callback && callback()
} else if (rContacts === 0) {
uni.setStorageSync('authLocation','1')
console.log("未获得授权")
} else if (rContacts === -1) {
uni.showModal({
title: '"多典花"想要访问您的位置信息',
content: '应用为您提供的服务,要访问您的位置信息,需要您提供权限,请允许。',
success: function (res) {
if (res.confirm) {
Permission.gotoAppPermissionSetting()
Permission.gotoAppPermissionSetting()
} else if (res.cancel) {
console.log('用户点击取消');
console.log('用户点击取消');
}
}
});
}
} catch (err) {
console.log('校验手机位置权限异常')
......
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