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
23 KiB
1 lines
23 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/setting.vue?68f2","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/setting.vue?f70d","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/setting.vue?013d","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/setting.vue?bed0","uni-app:///user/pages/setting.vue","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/setting.vue?914c","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/setting.vue?b7fe"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","isLoad","options","infoList","text","url","user_info","authTime","timer","subForm","phone","short_code","rule","name","checkType","errorMsg","regText","lockTap","computed","primaryColor","subColor","configInfo","userInfo","onLoad","methods","initIndex","refresh","bg","initRefresh","toResetPhone","short_code_status","toResetItem","validate","item","toSend","msg","title","time","clearInterval","setTimeout","submit","param","opwaibu","opwaibu1","goDetail","toLoginOut","methodArr","key","val","arr"],"mappings":"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","file":"user/pages/setting.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './user/pages/setting.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./setting.vue?vue&type=template&id=544cbd62&\"\nvar renderjs\nimport script from \"./setting.vue?vue&type=script&lang=js&\"\nexport * from \"./setting.vue?vue&type=script&lang=js&\"\nimport style0 from \"./setting.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 = \"user/pages/setting.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!./setting.vue?vue&type=template&id=544cbd62&\"","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 return _vm.$util.goUrl({\n url: \"/user/pages/logout\",\n })\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!./setting.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!./setting.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"mine-pages-setting\">\r\n\t\t<view class=\"flex-center flex-column pd-lg fill-base\">\r\n\t\t\t<view class=\"space-lg\"></view>\r\n\t\t\t<view class=\"space-lg\"></view>\r\n\t\t\t<!-- #ifdef H5 -->\r\n\t\t\t<view class=\"avatar radius\">\r\n\t\t\t\t<view class=\"h5-image avatar radius\" :style=\"{ backgroundImage : `url('${user_info.avatarUrl}')`}\">\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- #endif -->\r\n\t\t\t<!-- #ifndef H5 -->\r\n\t\t\t<image mode=\"aspectFill\" class=\"avatar radius\" :src=\"user_info.avatarUrl\"></image>\r\n\t\t\t<!-- #endif -->\r\n\r\n\t\t\t<view @tap.stop=\"toResetPhone\" class=\"flex-y-center f-title c-caption mt-md\" v-if=\"user_info.phone\">\r\n\t\t\t\t{{user_info.split_phone}}\r\n\t\t\t\t<view class=\"ml-md f-caption\" :style=\"{color:primaryColor}\" v-if=\"configInfo.short_code_status\">\r\n\t\t\t\t\t更换手机号</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"flex-between pd-lg fill-base f-paragraph\">\r\n\t\t\t<view>昵称</view>\r\n\t\t\t<view class=\"c-caption\">{{user_info.nickName}}</view>\r\n\t\t</view>\r\n\t\t<view class=\"flex-between pd-lg fill-base f-paragraph\">\r\n\t\t\t<view>注册时间</view>\r\n\t\t\t<view class=\"c-caption\">{{user_info.create_date || '-'}}</view>\r\n\t\t</view>\r\n\t\t<!-- #ifndef MP-WEIXIN -->\r\n\t\t<view @tap.stop=\"$util.goUrl({url:`/user/pages/alipay-account`})\"\r\n\t\t\tclass=\"flex-between pd-lg fill-base f-paragraph\">\r\n\t\t\t<view>支付宝账号</view>\r\n\t\t\t<view class=\"flex-y-center c-caption\">{{user_info.split_alipay_number || '暂无'}}\r\n\t\t\t\t<view class=\"ml-md\" :style=\"{color:primaryColor}\">{{user_info.alipay_number?'修改':'去设置'}}</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- #endif -->\r\n\t\t<view class=\"space-md\"></view>\r\n\t\t<view @tap.stop=\"goDetail(index,'infoList',item)\" class=\"flex-between pd-lg fill-base f-paragraph\"\r\n\t\t\tv-for=\"(item,index) in infoList\" :key=\"index\">\r\n\t\t\t<view>{{item.text}}</view>\r\n\t\t\t<i class=\"iconfont icon-right\"></i>\r\n\t\t</view>\r\n\t\t<view class=\"space-max-footer\"></view>\r\n\r\n\r\n\t\t<!-- #ifdef H5 -->\r\n\t\t<fix-bottom-button @confirm=\"toLoginOut\" :text=\"[{ text: '退出登录', type: 'confirm' }]\" bgColor=\"#fff\">\r\n\t\t</fix-bottom-button>\r\n\t\t<!-- #endif -->\r\n\r\n\t\t\r\n\t\t<fix-bottom-button @cancel=\"$util.goUrl({url:`/user/pages/logout`})\" @confirm=\"toLoginOut\"\r\n\t\t\t:text=\"[{ text: '注销账户', type: 'cancel' },{ text: '退出登录', type: 'confirm' }]\" bgColor=\"#fff\">\r\n\t\t</fix-bottom-button>\r\n\t\t<!-- #ifdef APP-PLUS -->\r\n\t\t<!-- #endif -->\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=\"rule[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=\"rule[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=\"toResetItem\" 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\" 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\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\timport siteInfo from '@/siteinfo.js';\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tisLoad: false,\r\n\t\t\t\toptions: {},\r\n\t\t\t\tinfoList: [{\r\n\t\t\t\t\ttext: '隐私政策',\r\n\t\t\t\t\turl: `/user/pages/protocol`\r\n\t\t\t\t}, {\r\n\t\t\t\t\ttext: '服务协议',\r\n\t\t\t\t\turl: `/user/pages/information`\r\n\t\t\t\t}, {\r\n\t\t\t\t\ttext: '屏蔽列表',\r\n\t\t\t\t\turl: `/user/pages/shield`\r\n\t\t\t\t}],\r\n\t\t\t\tuser_info: {},\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\trule: [{\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\tregText: \"短信验证码\"\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\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\tuserInfo: state => state.user.userInfo,\r\n\t\t}),\r\n\t\tasync onLoad() {\r\n\t\t\tthis.initIndex()\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t...mapActions(['getUserInfo']),\r\n\t\t\t...mapMutations(['updateConfigItem', 'updateServiceItem', 'updateTechnicianItem', 'updateOrderItem',\r\n\t\t\t\t'updateUserItem'\r\n\t\t\t]),\r\n\t\t\tasync initIndex(refresh = false) {\r\n\t\t\t\t// #ifdef H5\r\n\t\t\t\tif (!refresh && this.$jweixin.isWechat()) {\r\n\t\t\t\t\tawait this.$jweixin.initJssdk();\r\n\t\t\t\t\tthis.$jweixin.wxReady(() => {\r\n\t\t\t\t\t\tthis.$jweixin.hideOptionMenu()\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t// #endif\r\n\t\t\t\tawait this.getUserInfo()\r\n\t\t\t\tthis.$util.setNavigationBarColor({\r\n\t\t\t\t\tbg: this.primaryColor\r\n\t\t\t\t})\r\n\t\t\t\tthis.user_info = this.$util.deepCopy(this.userInfo)\r\n\t\t\t},\r\n\t\t\tinitRefresh() {\r\n\t\t\t\tthis.initIndex(true)\r\n\t\t\t},\r\n\t\t\ttoResetPhone() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tshort_code_status = 0\r\n\t\t\t\t} = this.configInfo\r\n\t\t\t\tif (!short_code_status) return\r\n\t\t\t\tthis.$refs.show_phone_item.open()\r\n\t\t\t},\r\n\t\t\ttoResetItem() {\r\n\t\t\t\tthis.$refs.show_phone_item.close()\r\n\t\t\t\tthis.timer && clearTimeout(this.timer)\r\n\t\t\t\tthis.authTime = 0\r\n\t\t\t\tthis.subForm = {\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},\r\n\t\t\t//表单验证\r\n\t\t\tvalidate(param, is_send = false) {\r\n\t\t\t\tlet validate = new this.$util.Validate();\r\n\t\t\t\tthis.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 (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\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}, 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\tasync submit() {\r\n\t\t\t\tlet param = this.$util.deepCopy(this.subForm)\r\n\t\t\t\tlet msg = this.validate(param);\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 (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 (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.bindUserPhone(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.toResetItem()\r\n\t\t\t\t\tawait this.getUserInfo()\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\topwaibu(){\r\n\t\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\tplus.runtime.openWeb('https://www.shangmenanmmm.com/#/protocol')\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\topwaibu1(){\r\n\t\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\tplus.runtime.openWeb('https://anmoadmin.shangmenanmmm.com/information.html')\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\tgoDetail(index, key,i) {\r\n\t\t\t\tif(i.text=='隐私政策'){\r\n\t\t\t\t\tthis.opwaibu()\r\n\t\t\t\t}else if(i.text=='服务协议'){\r\n\t\t\t\t\tthis.opwaibu1()\r\n\t\t\t\t}else{\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\turl\r\n\t\t\t\t\t} = this[key][index]\r\n\t\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\t\turl\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\ttoLoginOut() {\r\n\t\t\t\tlet methodArr = ['updateServiceItem', 'updateTechnicianItem']\r\n\t\t\t\tmethodArr.map(item => {\r\n\t\t\t\t\tthis[item]({\r\n\t\t\t\t\t\tkey: 'pageActive',\r\n\t\t\t\t\t\tval: false\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\r\n\t\t\t\tlet arr = ['autograph', 'userInfo', 'location', 'appLogin', 'loginType',\r\n\t\t\t\t\t'isGzhLogin', 'isShowLogin', 'mineInfo', 'coachInfo', 'userPageType', 'commonOptions'\r\n\t\t\t\t]\r\n\t\t\t\tarr.map(key => {\r\n\t\t\t\t\tthis.updateUserItem({\r\n\t\t\t\t\t\tkey,\r\n\t\t\t\t\t\tval: key === 'isShowLogin' ? true : key === 'isGzhLogin' ? false : key ===\r\n\t\t\t\t\t\t\t'userPageType' ? 1 : ''\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\r\n\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\ttitle: `退出登录`\r\n\t\t\t\t})\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t// #ifdef H5\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tsiteroot\r\n\t\t\t\t\t} = siteInfo\r\n\t\t\t\t\tlet url = siteroot.split('/index.php')[0]\r\n\t\t\t\t\tlet href = `${url}/h5/#/pages/service`\r\n\t\t\t\t\twindow.location.href = href\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\t\turl: `/pages/service`,\r\n\t\t\t\t\t\topenType: `reLaunch`\r\n\t\t\t\t\t})\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t}, 1000)\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n\r\n<style lang=\"scss\">\r\n\t.mine-pages-setting {\r\n\t\t.iconfont {\r\n\t\t\tcolor: #999\r\n\t\t}\r\n\r\n\t\t.popup-phone {\r\n\t\t\twidth: 630rpx;\r\n\r\n\t\t\t.input-info {\r\n\t\t\t\twidth: 570rpx;\r\n\t\t\t\theight: 90rpx;\r\n\t\t\t\tbackground: #F7F7F7;\r\n\r\n\t\t\t\t.item-input {\r\n\t\t\t\t\theight: 90rpx;\r\n\t\t\t\t\tfont-size: 32rpx;\r\n\t\t\t\t\ttext-align: left;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.input-info.sm {\r\n\t\t\t\twidth: 400rpx;\r\n\t\t\t}\r\n\r\n\t\t\t.send-btn {\r\n\t\t\t\twidth: 150rpx;\r\n\t\t\t\theight: 90rpx;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>\n","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!./setting.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!./setting.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1725332665799\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":""} |