(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pageA-pages-common-setting-auth_list"],{"021a":function(i,e,t){"use strict";t.r(e);var s=t("4d40"),n=t("8626");for(var a in n)"default"!==a&&function(i){t.d(e,i,(function(){return n[i]}))}(a);var r,o=t("f0c5"),u=Object(o["a"])(n["default"],s["b"],s["c"],!1,null,"5a7380a2",null,!1,s["a"],r);e["default"]=u.exports},"4d40":function(i,e,t){"use strict";var s;t.d(e,"b",(function(){return n})),t.d(e,"c",(function(){return a})),t.d(e,"a",(function(){return s}));var n=function(){var i=this,e=i.$createElement,t=i._self._c||e;return t("v-uni-view",{staticClass:"bottom-safe-area"},[t("v-uni-view",{staticClass:"bg"},i._l(i.permision,(function(e,s){return t("v-uni-view",{staticClass:"bg-white px-3",class:{"mt-1":s>0},attrs:{"hover-class":"bg-hover"},on:{click:function(t){arguments[0]=t=i.$handleEvent(t),i.XYBase.openPage({common:!0,url:e.url})}}},[t("v-uni-view",{staticClass:"uni-flex flex-center py-1"},[t("v-uni-view",{staticClass:"uni-flex-item py-1 text-auxiliary"},[t("v-uni-view",{staticClass:"uni-h5"},[i._v(i._s(e.title))]),t("v-uni-view",{staticClass:"text-small text-grey"},[i._v(i._s(e.tips))])],1),t("v-uni-view",{staticClass:"pl-3",on:{click:function(t){t.stopPropagation(),arguments[0]=t=i.$handleEvent(t),i.gotoAppPermissionSetting(e)}}},[e.permision?t("v-uni-text",{staticClass:"text-small text-primary"},[i._v("已开启")]):t("v-uni-text",{staticClass:"text-small text-grey"},[i._v("去设置")]),t("v-uni-text",{staticClass:"uni-icon uni-icon-arrowright text-grey ml-1"})],1)],1)],1)})),1)],1)},a=[]},"544b8":function(i,e,t){"use strict";var s=t("4ea4");t("caad"),t("2532"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(t("b660")),a={data:function(){return{permision:[{ios:"location",android:"android.permission.ACCESS_FINE_LOCATION",title:"允许"+this.XYBase.config.appName+"访问您的精确位置信息",tips:"查看详细位置信息使用规则",url:"article/agreement?type=user_use_location",permision:!1},{ios:"camera",android:"android.permission.CAMERA",title:"允许"+this.XYBase.config.appName+"访问您的相机功能",tips:"查看详细相机功能使用规则",url:"article/agreement?type=user_use_camera",permision:!1},{ios:"photoLibrary",android:"android.permission.READ_EXTERNAL_STORAGE",title:"允许"+this.XYBase.config.appName+"访问您的相册功能",tips:"查看详细相册功能使用规则",url:"article/agreement?type=user_use_album",permision:!1}]}},onLoad:function(){},onShow:function(){for(var i=0;i<this.permision.length;i++)this.hasPushPermision(this.permision[i])},methods:{resumeStatus:function(i){this.resume.is=i.detail.value?1:0},hasPushPermision:function(i){this.XYBase.isAndroid()?i.permision=1===n.default.requestAndroidPermission(i.android):this.XYBase.isIos()&&(i.permision=n.default.judgeIosPermission(i.ios))},gotoAppPermissionSetting:function(i){if(!i.permision)if(this.XYBase.isAndroid())plus.android.requestPermissions([i.android],(function(e){e.granted.includes(i.android)||n.default.gotoAppPermissionSetting()}));else if(this.XYBase.isIos()){switch(i.ios){case"location":plus.geolocation;break;case"calendar":plus.camera.getCamera();break;case"camera":plus.camera;break;case"photoLibrary":plus.gallery;break}n.default.gotoAppPermissionSetting()}}}};e.default=a},8626:function(i,e,t){"use strict";t.r(e);var s=t("544b8"),n=t.n(s);for(var a in s)"default"!==a&&function(i){t.d(e,i,(function(){return s[i]}))}(a);e["default"]=n.a}}]);