Commit cd956f98 authored by ly's avatar ly

活体新增授权信息

parent 5acc2c5c
No preview for this file type
...@@ -215,6 +215,7 @@ ...@@ -215,6 +215,7 @@
}); });
}).catch(err => { }).catch(err => {
console.log(err, '错误了') console.log(err, '错误了')
// that.toast('获取位置信息失败') // that.toast('获取位置信息失败')
}) })
}) })
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"appid" : "__UNI__DE04B13", "appid" : "__UNI__DE04B13",
"description" : "", "description" : "",
"versionName" : "1.0.1", "versionName" : "1.0.1",
"versionCode" : 126, "versionCode" : 127,
"transformPx" : false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus" : { "app-plus" : {
...@@ -20,9 +20,8 @@ ...@@ -20,9 +20,8 @@
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"distribute" : { "distribute" : {
"distribute" : { "orientation" : [ "portrait-primary" ], //重力感应、横竖屏配置
"orientation" : [ "portrait-primary" ] //重力感应、横竖屏配置
},
/* android打包配置 */ /* android打包配置 */
"android" : { "android" : {
"permissions" : [ "permissions" : [
...@@ -41,6 +40,7 @@ ...@@ -41,6 +40,7 @@
"<uses-permission android:name=\"android.permission.INTERNET\"/>", "<uses-permission android:name=\"android.permission.INTERNET\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<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_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
...@@ -60,7 +60,8 @@ ...@@ -60,7 +60,8 @@
"permissionPhoneState" : { "permissionPhoneState" : {
"request" : "none", "request" : "none",
"prompt" : "为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许" "prompt" : "为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许"
} },
"autoSdkPermissions" : false
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios" : { "ios" : {
...@@ -137,7 +138,8 @@ ...@@ -137,7 +138,8 @@
"modules" : { "modules" : {
"Camera" : {}, "Camera" : {},
"Contacts" : {}, "Contacts" : {},
"Geolocation" : {} "Geolocation" : {},
"Record" : {}
}, },
"nativePlugins" : { "nativePlugins" : {
"AThree-LFv2" : { "AThree-LFv2" : {
......
...@@ -454,11 +454,17 @@ ...@@ -454,11 +454,17 @@
console.log(res,'checkProductList') console.log(res,'checkProductList')
const {jumpUrl}=res.result const {jumpUrl}=res.result
console.log(jumpUrl,'jumpUrl') console.log(jumpUrl,'jumpUrl')
const indexs=jumpUrl.indexOf(":")
if(indexs!==-1){
const schema = jumpUrl.substring(0, indexs)
if(schema=='uni'){
this.Go(jumpUrl)
}else{
uni.navigateTo({ uni.navigateTo({
url:`/pages/websrc/websrc?url=${jumpUrl}` url:`/pages/websrc/websrc?url=${jumpUrl}`
}) })
// self.Go(jumpUrl) }
}
}).catch(err=>{ }).catch(err=>{
console.log(err,'请求出错') console.log(err,'请求出错')
}) })
...@@ -600,6 +606,7 @@ ...@@ -600,6 +606,7 @@
// }) // })
// }, // },
educationClick(){ educationClick(){
console.log(222,'999')
this.showeducation=true this.showeducation=true
}, },
columnClick(){ columnClick(){
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
onLoad() { onLoad() {
this.faceToken() this.faceToken()
this.initUser() this.initUser()
this.checkPermission()
}, },
methods: { methods: {
//获取个人信息 //获取个人信息
...@@ -88,6 +89,32 @@ ...@@ -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(){ goFace(){
const self = this const self = this
const {bizToken, requestId} = self const {bizToken, requestId} = self
......
...@@ -284,12 +284,25 @@ ...@@ -284,12 +284,25 @@
const common = uni.getStorageSync("m-header-device") const common = uni.getStorageSync("m-header-device")
this.token=token this.token=token
if(!common && plus.os.name!='iOS' && token){ if(!common && plus.os.name!='iOS' && token){
// const authLocation=uni.getStorageSync('authLocation')
// if(authLocation){
// console.log('888')
// uni.showToast({
// title: '请允许地理位置信息',
// icon: "none",
// duration: 2000
// })
// return false
// }else{
loadDevice() loadDevice()
loadNetwork() loadNetwork()
loadUuid() loadUuid()
loadLocation() loadLocation()
this.init() this.init()
this.searchGood() this.searchGood()
// }
}else{ }else{
this.init() this.init()
......
...@@ -121,12 +121,12 @@ ...@@ -121,12 +121,12 @@
}, },
goPage(item){ goPage(item){
// const mobileCall=uni.getStorageSync('mobileCall') // 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') // this.Go('http://192.168.0.23:8080/#/loanMulti')
// uni.navigateTo({ uni.navigateTo({
// url:`/pages/websrc/websrc?url=${newurl}` url:`/pages/websrc/websrc?url=${newurl}`
// }) })
this.Go(item.linkUrl) // this.Go(item.linkUrl)
}, },
goLogin(){ goLogin(){
this.Go('uni:/pages/login/login') this.Go('uni:/pages/login/login')
......
var isReady=false;var onReadyCallbacks=[]; var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[]; 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"}}]; 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.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()})}}); __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 isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[]; 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"}}]; 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.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()})}}); __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) {} ...@@ -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); 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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 // Exports
module.exports = exports; module.exports = exports;
This diff is collapsed.
...@@ -113,12 +113,16 @@ export const SelectLocation = async function (callback) { ...@@ -113,12 +113,16 @@ export const SelectLocation = async function (callback) {
CheckLocationPermission(callback) CheckLocationPermission(callback)
} }
} else { } else {
try { try {
const rContacts = await Permission.requestAndroidPermission('android.permission.ACCESS_FINE_LOCATION'); const rContacts = await Permission.requestAndroidPermission('android.permission.ACCESS_FINE_LOCATION');
if (rContacts === 1) { if (rContacts === 1) {
callback && callback() callback && callback()
} else if (rContacts === 0) { } else if (rContacts === 0) {
uni.setStorageSync('authLocation','1')
console.log("未获得授权") console.log("未获得授权")
} else if (rContacts === -1) { } else if (rContacts === -1) {
uni.showModal({ uni.showModal({
title: '"多典花"想要访问您的位置信息', title: '"多典花"想要访问您的位置信息',
...@@ -131,6 +135,7 @@ export const SelectLocation = async function (callback) { ...@@ -131,6 +135,7 @@ export const SelectLocation = async function (callback) {
} }
} }
}); });
} }
} catch (err) { } catch (err) {
console.log('校验手机位置权限异常') 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