You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
29 KiB

{"version":3,"sources":["webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/auth.vue?5640","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/auth.vue?ca14","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/auth.vue?5e92","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/auth.vue?ab98","uni-app:///components/auth.vue","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/auth.vue?80ed","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/components/auth.vue?2248"],"names":["components","name","props","needAuth","type","default","must","userMust","showAuth","btn_text","haveGo","computed","primaryColor","subColor","configInfo","commonOptions","userInfo","created","data","contentList","phone","setting","pType","pMust","authTime","timer","subForm","short_code","subRule","checkType","errorMsg","regText","infoForm","nickName","avatarUrl","infoRule","regType","lockTap","methods","init","toShowAuth","id","uid","key","val","url","refs_key","authPhone","e","go","toResetItem","validate","item","toSend","msg","title","time","clearInterval","setTimeout","onChooseAvatar","toChooseImg","param","count","sizeType","sourceType","uni","res_upload","res_info","size","tempFiles","tempFilePath","filePath","formData","path","submit","formType","methodModel"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACc;;;AAGjE;AACuM;AACvM,gBAAgB,iNAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACdA;AAAA;AAAA;AAAA;AAAqxB,CAAgB,kyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;AC+HzyB;AAIA;AAAA;AAAA,gBACA;EACAA;EACAC;EACAC;IACAC;MACAC;MACAC;QACA;MACA;IACA;IACAC;MACAF;MACAC;QACA;MACA;IACA;IACAE;MACAH;MACAC;QACA;MACA;IACA;IACAG;MACAJ;MACAC;QACA;MACA;IACA;IACAD;MACAA;MACAC;QACA;MACA;IACA;IACAI;MACAL;MACAC;QACA;MACA;IACA;IACAK;MACAN;MACAC;QACA;MACA;IACA;EACA;EACAM;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;EACA;EACAC;IACA;EACA;EACAC;IACA;MACAC;QACAH;QACAI;QACAC;MACA;MACAC;MACAC;MACAC;MACAC;MACAC;QACAN;QACAO;MACA;MACAC;QACA3B;QACA4B;QACAC;QACAC;MACA;QACA9B;QACA4B;QACAC;MACA;MACAE;QACAC;QACAC;MACA;MACAC;QACAlC;QACA4B;QACAC;QACAM;MACA;QACAnC;QACA4B;QACAC;MACA;MACAO;IACA;EACA;EACAC,uDACA,8FACA;IACAC;MACA,IACAnC,OAGA,KAHAA;QACAE,OAEA,KAFAA;QACAE,WACA,KADAA;MAEA;MA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","file":"components/auth.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./auth.vue?vue&type=template&id=547ff13a&\"\nvar renderjs\nimport script from \"./auth.vue?vue&type=script&lang=js&\"\nexport * from \"./auth.vue?vue&type=script&lang=js&\"\nimport style0 from \"./auth.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/auth.vue\"\nexport default component.exports","export * from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./auth.vue?vue&type=template&id=547ff13a&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n $event.stopPropagation()\n return _vm.$refs.show_info_item.close()\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./auth.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./auth.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view style=\"width:100%\">\r\n\t\t<block v-if=\"needAuth\">\r\n\t\t\t<view @tap.stop=\"toShowAuth\">\r\n\t\t\t\t<slot></slot>\r\n\t\t\t</view>\r\n\t\t</block>\r\n\t\t<block v-else>\r\n\t\t\t<view @tap.stop=\"go(1)\">\r\n\t\t\t\t<slot></slot>\r\n\t\t\t</view>\r\n\t\t</block>\r\n\r\n\t\t<uni-popup ref=\"show_auth_item\" :maskClick=\"false\">\r\n\t\t\t<view @tap.stop.prevent class=\"auth-box fill-base flex-column flex-center text-center radius-26\">\r\n\t\t\t\t<view class=\"space-md\"></view>\r\n\t\t\t\t<block v-if=\"pType == 'phone'\">\r\n\t\t\t\t\t<image mode=\"aspectFill\" class=\"auth-img\" :src=\"`https://lbqny.migugu.com/admin/public/auth.png`\">\r\n\t\t\t\t\t</image>\r\n\t\t\t\t</block>\r\n\t\t\t\t<view class=\"space-sm\"></view>\r\n\t\t\t\t<view class=\"f-caption\" :style=\"{color:primaryColor}\">{{contentList[pType][0]}}</view>\r\n\t\t\t\t<view class=\"space-lg\"></view>\r\n\t\t\t\t<view class=\"space-lg\"></view>\r\n\t\t\t\t<block v-if=\"pType === 'phone'\">\r\n\t\t\t\t\t<button open-type=\"getPhoneNumber\" hover-class=\"btn-hover\" @getphonenumber=\"authPhone\"\r\n\t\t\t\t\t\tclass=\"clear-btn flex-center auth-btn\" :style=\"{background: `linear-gradient(68deg, ${primaryColor}, ${subColor})`,color:'white'}\">\r\n\t\t\t\t\t\t{{btn_text||contentList[pType][1]}}\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</block>\r\n\t\t\t\t<block v-if=\"pType === 'setting'\">\r\n\t\t\t\t\t<button open-type=\"openSetting\" hover-class=\"btn-hover\" @opensetting=\"openSetting\"\r\n\t\t\t\t\t\tclass=\"clear-btn flex-center auth-btn\" :style=\"{background: `linear-gradient(68deg, ${primaryColor}, ${subColor})`,color:'white'}\">\r\n\t\t\t\t\t\t{{btn_text||contentList[pType][1]}}\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</block>\r\n\t\t\t\t<view @tap.stop=\"go(pType == 'phone' && !userInfo.phone ? 2 : 1)\" class=\"f-caption c-caption mt-md\"\r\n\t\t\t\t\tv-if=\"!pMust\">{{pType=='userInfo'?'暂不授权':'暂不登录'}}</view>\r\n\t\t\t\t<view class=\"space-md\"></view>\r\n\t\t\t</view>\r\n\t\t</uni-popup>\r\n\r\n\r\n\t\t<uni-popup ref=\"show_info_item\" :maskClick=\"false\">\r\n\t\t\t<view @tap.stop.prevent class=\"common-popup-content popup-phone pd-lg flex-center flex-column fill-base\">\r\n\t\t\t\t<view class=\"f-md-title c-black\">请填写用户信息</view>\r\n\t\t\t\t<view class=\"space-lg pb-lg\"></view>\r\n\t\t\t\t<view class=\"space-lg pb-lg\"></view>\r\n\t\t\t\t<view class=\"flex-between\" style=\"width:100%\">\r\n\t\t\t\t\t<view class=\"flex-y-center c-title\">\r\n\t\t\t\t\t\t<view class=\"c-warning\">*</view>昵称\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<!-- #ifdef MP-WEIXIN -->\r\n\t\t\t\t\t<input v-model=\"infoForm.nickName\" type=\"nickname\" maxlength=\"15\"\r\n\t\t\t\t\t\tclass=\"f-mini-title c-title text-right\" style=\"width:80%\" placeholder-class=\"c-placeholder\"\r\n\t\t\t\t\t\t:placeholder=\"infoRule[0].errorMsg\" />\r\n\t\t\t\t\t<!-- #endif -->\r\n\t\t\t\t\t<!-- #ifndef MP-WEIXIN -->\r\n\t\t\t\t\t<input v-model=\"infoForm.nickName\" type=\"text\" maxlength=\"15\"\r\n\t\t\t\t\t\tclass=\"f-mini-title c-title text-right\" style=\"width:80%\" placeholder-class=\"c-placeholder\"\r\n\t\t\t\t\t\t:placeholder=\"infoRule[0].errorMsg\" />\r\n\t\t\t\t\t<!-- #endif -->\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between mt-md pt-md b-1px-t\" style=\"width:100%\">\r\n\t\t\t\t\t<view class=\"flex-y-center c-title\">\r\n\t\t\t\t\t\t<view class=\"c-warning\">*</view>头像\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<!-- #ifdef MP-WEIXIN -->\r\n\t\t\t\t\t<button open-type=\"chooseAvatar\" @chooseavatar=\"onChooseAvatar\">\r\n\t\t\t\t\t\t<image mode=\"aspectFill\" class=\"avatar radius\" :src=\"infoForm.avatarUrl || '/static/mine/default_user.png'\"></image>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t<!-- #endif -->\r\n\t\t\t\t\t<!-- #ifndef MP-WEIXIN -->\r\n\t\t\t\t\t<image @tap.stop=\"toChooseImg\" mode=\"aspectFill\" class=\"avatar radius\" :src=\"infoForm.avatarUrl\">\r\n\t\t\t\t\t</image>\r\n\t\t\t\t\t<!-- #endif -->\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"button\">\r\n\t\t\t\t\t<view @tap.stop=\"$refs.show_info_item.close()\" class=\"item-child\">\r\n\t\t\t\t\t\t取消\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view @tap.stop=\"submit('info')\" class=\"item-child\"\r\n\t\t\t\t\t\t:style=\"{background: primaryColor,color:'#fff'}\">\r\n\t\t\t\t\t\t确定\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</uni-popup>\r\n\r\n\t\t<uni-popup ref=\"show_phone_item\" :maskClick=\"false\">\r\n\t\t\t<view @tap.stop.prevent class=\"common-popup-content popup-phone pd-lg flex-center flex-column fill-base\">\r\n\t\t\t\t<view class=\"f-md-title c-black\">请输入手机号</view>\r\n\t\t\t\t<view class=\"space-lg pb-lg\"></view>\r\n\t\t\t\t<view class=\"space-lg pb-lg\"></view>\r\n\t\t\t\t<view class=\"flex-center mb-lg\">\r\n\t\t\t\t\t<view class=\"input-info sm mr-md radius-16\">\r\n\t\t\t\t\t\t<input v-model=\"subForm.phone\" type=\"number\"\r\n\t\t\t\t\t\t\tclass=\"item-input flex-y-center pl-lg pr-lg f-sm-title c-title\"\r\n\t\t\t\t\t\t\tplaceholder-class=\"c-placeholder\" :placeholder=\"subRule[0].errorMsg\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view @tap=\"toSend\" class=\"send-btn flex-center c-base radius-16\"\r\n\t\t\t\t\t\t:style=\"{background:primaryColor}\">\r\n\t\t\t\t\t\t{{authTime>0?`(${authTime}s)`:'发送'}}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"input-info radius-16\">\r\n\t\t\t\t\t<input v-model=\"subForm.short_code\" type=\"number\"\r\n\t\t\t\t\t\tclass=\"item-input flex-y-center pl-lg pr-lg f-sm-title c-title\" maxlength=\"6\"\r\n\t\t\t\t\t\tplaceholder-class=\"c-placeholder\" :placeholder=\"subRule[1].errorMsg\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"button\">\r\n\t\t\t\t\t<view @tap.stop=\"go(3)\" class=\"item-child\">\r\n\t\t\t\t\t\t取消\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view @tap.stop=\"submit('sub')\" class=\"item-child\" :style=\"{background: primaryColor,color:'#fff'}\">\r\n\t\t\t\t\t\t确定\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</uni-popup>\r\n\r\n\r\n\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tmapState,\r\n\t\tmapActions,\r\n\t\tmapMutations,\r\n\t} from \"vuex\"\r\n\texport default {\r\n\t\tcomponents: {},\r\n\t\tname: 'auth',\r\n\t\tprops: {\r\n\t\t\tneedAuth: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tmust: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tuserMust: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn true\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tshowAuth: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttype: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn 'phone'\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tbtn_text: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn ''\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\thaveGo: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn true\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\tcomputed: mapState({\r\n\t\t\tprimaryColor: state => state.config.configInfo.primaryColor,\r\n\t\t\tsubColor: state => state.config.configInfo.subColor,\r\n\t\t\tconfigInfo: state => state.config.configInfo,\r\n\t\t\tcommonOptions: state => state.user.commonOptions,\r\n\t\t\tuserInfo: state => state.user.userInfo,\r\n\t\t}),\r\n\t\tcreated() {\r\n\t\t\tthis.init();\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tcontentList: {\r\n\t\t\t\t\tuserInfo: ['尊贵的用户,获取授权是为了能更好的为你服务', '立即授权'],\r\n\t\t\t\t\tphone: ['尊贵的用户,登录后我们才能更好的为你服务', '立即登录'],\r\n\t\t\t\t\tsetting: ['为了功能正常使用,你需要打开设置并开启获取相应权限', '打开设置'],\r\n\t\t\t\t},\r\n\t\t\t\tpType: '',\r\n\t\t\t\tpMust: '',\r\n\t\t\t\tauthTime: 0,\r\n\t\t\t\ttimer: null,\r\n\t\t\t\tsubForm: {\r\n\t\t\t\t\tphone: '',\r\n\t\t\t\t\tshort_code: ''\r\n\t\t\t\t},\r\n\t\t\t\tsubRule: [{\r\n\t\t\t\t\tname: \"phone\",\r\n\t\t\t\t\tcheckType: \"isMobile\",\r\n\t\t\t\t\terrorMsg: \"请输入手机号\",\r\n\t\t\t\t\tregText: \"手机号\"\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname: \"short_code\",\r\n\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\terrorMsg: \"请输入短信验证码\"\r\n\t\t\t\t}],\r\n\t\t\t\tinfoForm: {\r\n\t\t\t\t\tnickName: '',\r\n\t\t\t\t\tavatarUrl: ''\r\n\t\t\t\t},\r\n\t\t\t\tinfoRule: [{\r\n\t\t\t\t\tname: \"nickName\",\r\n\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\terrorMsg: \"请输入用户昵称\",\r\n\t\t\t\t\tregType: 2\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname: \"avatarUrl\",\r\n\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\terrorMsg: \"请上传用户头像\"\r\n\t\t\t\t}],\r\n\t\t\t\tlockTap: false\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t...mapActions(['getUserInfo', 'getMineInfo', 'getAuthUserProfile', 'getAuthPhone', ]),\r\n\t\t\t...mapMutations(['updateConfigItem', 'updateUserItem']),\r\n\t\t\tinit() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\ttype,\r\n\t\t\t\t\tmust,\r\n\t\t\t\t\tshowAuth\r\n\t\t\t\t} = this\r\n\t\t\t\tthis.$set(this, 'pType', type)\r\n\t\t\t\tthis.$set(this, 'pMust', must)\r\n\t\t\t\tif (!showAuth) return\r\n\t\t\t\tlet refs_key = type === 'userInfo' ? 'show_info_item' : 'show_auth_item'\r\n\t\t\t\tthis.$refs[refs_key].open()\r\n\t\t\t},\r\n\t\t\ttoShowAuth() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid: uid = 0,\r\n\t\t\t\t\tphone = '',\r\n\t\t\t\t} = this.userInfo\r\n\t\t\t\tif (!uid) {\r\n\t\t\t\t\tthis.updateUserItem({\r\n\t\t\t\t\t\tkey: 'loginPage',\r\n\t\t\t\t\t\tval: `/pages/mine?type=1`\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\t\turl: `/pages/login`\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tthis.infoForm = this.$util.pick(this.userInfo, ['nickName',\r\n\t\t\t\t\t'avatarUrl'\r\n\t\t\t\t])\r\n\t\t\t\tlet type = !phone ? 'phone' : 'userInfo'\r\n\t\t\t\tthis.$set(this, 'pType', type)\r\n\t\t\t\tlet refs_key = 'show_info_item'\r\n\t\t\t\tif (!phone) {\r\n\t\t\t\t\t// #ifdef MP-WEIXIN\r\n\t\t\t\t\trefs_key = 'show_auth_item'\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t\t// #ifndef MP-WEIXIN\r\n\t\t\t\t\tif (this.haveGo) {\r\n\t\t\t\t\t\trefs_key = 'show_phone_item'\r\n\t\t\t\t\t\tlet {\r\n\t\t\t\t\t\t\tshort_code_status = 0\r\n\t\t\t\t\t\t} = this.configInfo\r\n\t\t\t\t\t\tif (!short_code_status) {\r\n\t\t\t\t\t\t\tthis.go(1)\r\n\t\t\t\t\t\t\treturn\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t}\r\n\t\t\t\tthis.$refs[refs_key].open()\r\n\t\t\t},\r\n\t\t\t// 授权手机号\r\n\t\t\tasync authPhone(e) {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tpMust\r\n\t\t\t\t} = this\r\n\t\t\t\tlet phone = await this.getAuthPhone({\r\n\t\t\t\t\te,\r\n\t\t\t\t})\r\n\t\t\t\tif (!phone) {\r\n\t\t\t\t\tthis.go(pMust ? 2 : 1)\r\n\t\t\t\t\treturn false\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tnickName = '',\r\n\t\t\t\t\t} = this.userInfo\r\n\t\t\t\t\tif (nickName) {\r\n\t\t\t\t\t\tthis.go(1)\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$set(this, 'pType', 'userInfo')\r\n\t\t\t\t\tthis.$set(this, 'pMust', this.userMust)\r\n\t\t\t\t\tif (!this.pMust) return\r\n\t\t\t\t\tthis.$refs.show_info_item.open()\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tgo(type = 1) {\r\n\t\t\t\tthis.lockTap = false\r\n\t\t\t\tthis.$emit(type == 1 ? 'go' : 'hide')\r\n\t\t\t\tlet refs_key = type == 3 ? 'show_phone_item' : type == 4 ? 'show_info_item' : 'show_auth_item'\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid: uid = 0\r\n\t\t\t\t} = this.userInfo\r\n\t\t\t\tif (uid) {\r\n\t\t\t\t\tthis.$refs[refs_key].close();\r\n\t\t\t\t}\r\n\t\t\t\tif (type != 3) return\r\n\t\t\t\tthis.toResetItem('sub')\r\n\t\t\t},\r\n\t\t\t// 重置数据\r\n\t\t\ttoResetItem(type) {\r\n\t\t\t\tif (type == 'sub') {\r\n\t\t\t\t\tthis.timer && clearTimeout(this.timer)\r\n\t\t\t\t\tthis.authTime = 0\r\n\t\t\t\t\tthis.subForm = {\r\n\t\t\t\t\t\tphone: '',\r\n\t\t\t\t\t\tshort_code: ''\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tthis.infoForm = this.$util.pick(this.userInfo, ['nickName',\r\n\t\t\t\t\t'avatarUrl'\r\n\t\t\t\t])\r\n\t\t\t},\r\n\t\t\t//表单验证\r\n\t\t\tvalidate(param, ruleType, is_send = false) {\r\n\t\t\t\tlet validate = new this.$util.Validate();\r\n\t\t\t\tthis[`${ruleType}Rule`].map(item => {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tname,\r\n\t\t\t\t\t} = item\r\n\t\t\t\t\tif (ruleType == 'sub' && name == 'short_code' && is_send) return\r\n\t\t\t\t\tvalidate.add(param[name], item);\r\n\t\t\t\t})\r\n\t\t\t\tlet message = validate.start();\r\n\t\t\t\treturn message;\r\n\t\t\t},\r\n\t\t\t// 发送验证码\r\n\t\t\tasync toSend() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tauthTime\r\n\t\t\t\t} = this\r\n\t\t\t\tif (authTime) return\r\n\t\t\t\tlet {\r\n\t\t\t\t\tphone = ''\r\n\t\t\t\t} = this.subForm\r\n\t\t\t\tlet msg = this.validate({\r\n\t\t\t\t\tphone\r\n\t\t\t\t}, 'sub', true);\r\n\t\t\t\tif (msg) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: msg\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.lockTap) return\r\n\t\t\t\tthis.lockTap = true\r\n\t\t\t\tthis.$util.showLoading()\r\n\t\t\t\ttry {\r\n\t\t\t\t\tawait this.$api.user.sendShortMsg({\r\n\t\t\t\t\t\tphone\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t\tlet time = 60\r\n\t\t\t\t\tthis.timer = setInterval(() => {\r\n\t\t\t\t\t\tif (time === 0) {\r\n\t\t\t\t\t\t\tclearInterval(this.timer)\r\n\t\t\t\t\t\t\treturn\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttime--\r\n\t\t\t\t\t\tthis.authTime = time\r\n\t\t\t\t\t}, 1000)\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\t}, 2000)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 获取头像\r\n\t\t\tonChooseAvatar(e) {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tavatarUrl\r\n\t\t\t\t} = e.detail\r\n\t\t\t\tthis.infoForm.avatarUrl = avatarUrl\r\n\t\t\t},\r\n\t\t\tasync toChooseImg() {\r\n\t\t\t\tlet param = {\r\n\t\t\t\t\tcount: 1,\r\n\t\t\t\t\tsizeType: ['compressed'],\r\n\t\t\t\t\tsourceType: ['album'],\r\n\t\t\t\t}\r\n\t\t\t\tlet [res_upload, res_info] = await uni.chooseImage(param)\r\n\t\t\t\tif (res_upload) return\r\n\t\t\t\tlet {\r\n\t\t\t\t\tsize = 0,\r\n\t\t\t\t\t\ttempFiles,\r\n\t\t\t\t\t\ttempFilePath = ''\r\n\t\t\t\t} = res_info\r\n\t\t\t\t// 格式化图片参数\r\n\t\t\t\tthis.$util.showLoading({\r\n\t\t\t\t\ttitle: \"上传中\"\r\n\t\t\t\t})\r\n\t\t\t\tlet {\r\n\t\t\t\t\tattachment_path: path\r\n\t\t\t\t} = await this.$api.base.uploadFile({\r\n\t\t\t\t\tfilePath: tempFiles[0].path,\r\n\t\t\t\t\tformData: {\r\n\t\t\t\t\t\ttype: 'picture'\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tthis.infoForm.avatarUrl = path\r\n\t\t\t\tthis.$util.hideAll()\r\n\t\t\t},\r\n\t\t\t// sub 授权手机号,info 用户信息\r\n\t\t\tasync submit(formType) {\r\n\t\t\t\tlet param = this.$util.deepCopy(this[`${formType}Form`])\r\n\t\t\t\tlet msg = this.validate(param, formType);\r\n\t\t\t\tif (msg) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: msg\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (formType == 'sub' && param.short_code.length != 6) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: `请输入6位数短信验证码`\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (formType == 'info' && (param.avatarUrl.includes('wxfile://') || param.avatarUrl.includes(\r\n\t\t\t\t\t\t'//tmp/'))) {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tattachment_path: path\r\n\t\t\t\t\t} = await this.$api.base.uploadFile({\r\n\t\t\t\t\t\tfilePath: param.avatarUrl,\r\n\t\t\t\t\t\tformData: {\r\n\t\t\t\t\t\t\ttype: 'picture'\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\tparam.avatarUrl = path\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (this.lockTap) return\r\n\t\t\t\tthis.lockTap = true\r\n\t\t\t\tthis.$util.showLoading()\r\n\t\t\t\tlet methodModel = formType == 'sub' ? 'bindUserPhone' : 'userUpdate'\r\n\t\t\t\tlet refs_key = formType == 'sub' ? 'show_phone_item' : 'show_info_item'\r\n\t\t\t\ttry {\r\n\t\t\t\t\tawait this.$api.user[methodModel](param)\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t\tthis.$refs[refs_key].close()\r\n\t\t\t\t\tthis.toResetItem(formType)\r\n\t\t\t\t\tawait this.getUserInfo()\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.$emit('go')\r\n\t\t\t\t\t}, 500)\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\t}, 2000)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n\r\n\r\n<style lang=\"scss\">\r\n\t.auth-box {\r\n\t\twidth: 630rpx;\r\n\t\theight: auto;\r\n\t\tpadding: 30rpx;\r\n\r\n\t\t.auth-img {\r\n\t\t\twidth: 322rpx;\r\n\t\t\theight: 341rpx;\r\n\t\t\t/* background: #f4f6f8; */\r\n\t\t}\r\n\r\n\t\t.auth-btn {\r\n\t\t\twidth: 367rpx;\r\n\t\t\theight: 90rpx;\r\n\t\t\tborder-radius: 90rpx;\r\n\t\t}\r\n\r\n\t\t.auth-info {\r\n\t\t\twidth: 80rpx;\r\n\t\t\theight: 80rpx;\r\n\t\t\tbackground: #f4f6f8;\r\n\t\t\tborder-radius: 50%;\r\n\t\t}\r\n\r\n\t}\r\n\r\n\r\n\t.popup-phone {\r\n\t\twidth: 630rpx;\r\n\r\n\t\t.input-info {\r\n\t\t\twidth: 570rpx;\r\n\t\t\theight: 90rpx;\r\n\t\t\tbackground: #F7F7F7;\r\n\r\n\t\t\t.item-input {\r\n\t\t\t\theight: 90rpx;\r\n\t\t\t\tfont-size: 32rpx;\r\n\t\t\t\ttext-align: left;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.input-info.sm {\r\n\t\t\twidth: 400rpx;\r\n\t\t}\r\n\r\n\t\t.send-btn {\r\n\t\t\twidth: 150rpx;\r\n\t\t\theight: 90rpx;\r\n\t\t}\r\n\t}\r\n</style>","import mod from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./auth.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./auth.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1725606880123\n var cssReload = require(\"C:/Users/Administrator/Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"/\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}