mine.js.map 17 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/mine/mine.vue?bb50","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/mine/mine.vue?66c0","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/mine/mine.vue?829d","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/mine/mine.vue?ec50","uni-app:///pages/mine/mine.vue","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/mine/mine.vue?cca6"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","renderjs","component","options","__file","components","uCellGroup","uCell","uPicker","e","message","indexOf","console","error","render","_vm","this","_h","$createElement","_self","_c","_isMounted","e0","$event","show","recyclableRender","staticRenderFns","_withStripped","data","userName","pic","msg","userId","pageNo","pageSize","value","columns","arr","methods","projectChoose","confirm","uni","selectClick","choose","toUpload","url","toList","exit","title","content","success","toAddProject","getProjectList","res","filter","onLoad"],"mappings":"0IAAA,MAGA,aACA,YAFAA,EAAGC,kCAAoCC,EAGvCC,EAAWC,a,gFCLX,oIACIC,EADJ,QASIC,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,KACA,MACA,EACA,gBACAD,GAGFC,EAAUC,QAAQC,OAAS,sBACZ,aAAAF,E,0CCvBf,uQ,iCCAA,IAAIG,EAAJ,0LACA,IACEA,EAAa,CACXC,WAAY,WACV,OAAO,6HAITC,MAAO,WACL,OAAO,iHAITC,QAAS,WACP,OAAO,sHAKX,MAAOC,GACP,IAC+C,IAA7CA,EAAEC,QAAQC,QAAQ,wBACa,IAA/BF,EAAEC,QAAQC,QAAQ,QAWlB,MAAMF,EATNG,QAAQC,MAAMJ,EAAEC,SAChBE,QAAQC,MAAM,mBACdD,QAAQC,MACN,uFAEFD,QAAQC,MACN,mDAMN,IAAIC,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACJH,EAAII,MAAMC,GACdL,EAAIM,aACPN,EAAIO,GAAK,SAAUC,GACjBR,EAAIS,MAAO,KAIbC,GAAmB,EACnBC,EAAkB,GACtBZ,EAAOa,eAAgB,G,iCChDvB,yHAAk1B,eAAG,G,uJCkCr1B,CACAC,gBACA,OACAC,sCACAC,6BACAC,KACAC,kCACAC,SACAC,cAGAC,SACAC,SACA,IAEAZ,QACAa,SAOAC,SACAC,yBACA,sBACA,aACA3B,mBAEA4B,oBAIA,GAHA5B,eACAA,yBACAA,6BACA,mBAEA,OADA,aACA,0BAGA,mCACA,6BAEAA,oBAEA6B,0CACAA,yDAEA,qBACA,cAMAC,wBACA9B,gBAEA+B,kBACA,cACA/B,sBAGAgC,oBACAH,cACAI,wCAGAC,kBACAL,cACAI,0CAGAE,gBACAN,aACAO,aACAC,kBACAC,oBACA,YACAT,6BACAA,8BACAA,qCACAA,cACAI,gCAOAM,wBACAV,cACAI,wCAGAO,0BAAA,8JAMAX,gEAAA,gBADAY,SAGAZ,gBACA,YACA,yBACA,wBAEAa,KACAD,oCACAC,kBAEA,eACA,sBAUA,mBACA,0CA7BA,KAoCAC,mBACA,wBAcA,c,6DClLA,yHAAijD,eAAG,G","file":"pages/mine/mine.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/mine/mine.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./mine.vue?vue&type=template&id=dcbcfe34&\"\nvar renderjs\nimport script from \"./mine.vue?vue&type=script&lang=js&\"\nexport * from \"./mine.vue?vue&type=script&lang=js&\"\nimport style0 from \"./mine.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX.app/Contents/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 = \"pages/mine/mine.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./mine.vue?vue&type=template&id=dcbcfe34&\"","var components\ntry {\n components = {\n uCellGroup: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-cell-group/u-cell-group\" */ \"@/uni_modules/uview-ui/components/u-cell-group/u-cell-group.vue\"\n )\n },\n uCell: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-cell/u-cell\" */ \"@/uni_modules/uview-ui/components/u-cell/u-cell.vue\"\n )\n },\n uPicker: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-picker/u-picker\" */ \"@/uni_modules/uview-ui/components/u-picker/u-picker.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\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 _vm.show = false\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./mine.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./mine.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"myContent\">\n\t\t<view class=\"header\">\n\t\t\t<view class=\"myPhoto\">\n\t\t\t\t<img src=\"https://img0.baidu.com/it/u=1250551608,2180019998&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500\"\n\t\t\t\t\talt=\"\">\n\t\t\t</view>\n\t\t\t<text class=\"myInformation\">用户名:{{userName}}</text>\n\t\t</view>\n\n\t\t<view class=\"middle-num\">\n\t\t\t<u-cell-group>\n\t\t\t\t<!-- icon-style=\"color:red\" -->\n\t\t\t\t<u-cell :border=\"false\" icon=\"setting-fill\" :value=\"value\" title=\"项目选择\" @click=\"projectChoose\"\n\t\t\t\t\t:isLink=\"true\"></u-cell>\n\t\t\t\t<!-- \t\t<u-cell icon=\"order\" title=\"新增项目\" @click=\"toAddProject\" :isLink=\"true\"></u-cell>\n\t\t\t\t<u-cell icon=\"list-dot\" @click=\"toList\" title=\"项目列表\" :isLink=\"true\"></u-cell> -->\n\t\t\t</u-cell-group>\n\n\t\t</view>\n\t\t<view class=\"exit\">\n\t\t\t<u-cell-group>\n\t\t\t\t<u-cell @click=\"toUpload\" icon=\"camera-fill\" :isLink=\"true\" title=\"人脸上传\"></u-cell>\n\t\t\t\t<u-cell icon-style=\"color:#1296db\" :border=\"false\" @click=\"exit\" icon=\"minus-people-fill\" :isLink=\"true\"\n\t\t\t\t\ttitle=\"退出登录\"></u-cell>\n\t\t\t</u-cell-group>\n\t\t</view>\n\t\t<u-picker :show=\"show\" :columns=\"columns\" keyName='description' @confirm=\"confirm\"\n\t\t\t@cancel=\"show=false\"></u-picker>\n\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tuserName: uni.getStorageSync('userName'),\n\t\t\t\tpic: uni.getStorageSync('face'),\n\t\t\t\tmsg: {\n\t\t\t\t\tuserId: uni.getStorageSync('userId'),\n\t\t\t\t\tpageNo: 1,\n\t\t\t\t\tpageSize: 100\n\t\t\t\t},\n\n\t\t\t\tvalue: '',\n\t\t\t\tcolumns: [\n\t\t\t\t\t[]\n\t\t\t\t],\n\t\t\t\tshow: false,\n\t\t\t\tarr: []\n\n\n\n\t\t\t}\n\t\t},\n\n\t\tmethods: {\n\t\t\tprojectChoose() {\n\t\t\t\tthis.getProjectList()\n\t\t\t\tthis.show = true\n\t\t\t\tconsole.log('弹出');\n\t\t\t},\n\t\t\tconfirm(e) {\n\t\t\t\tconsole.log(1);\n\t\t\t\tconsole.log('confirm', e)\n\t\t\t\tconsole.log(this.arr,'全部项目');\n\t\t\t\tif(this.arr.length==0){\n\t\t\t\t\t\tthis.show = false\n\t\t\t\t\treturn this.$u.toast(`未检测到测试项目`)\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlet getWay = this.arr.filter((item) => {\n\t\t\t\t\treturn item.name == e.value[0]\n\t\t\t\t})\n\t\t\t\tconsole.log(getWay, '过滤');\n\t\t\t\t// console.log(getWay);\n\t\t\t\tuni.setStorageSync('testProjectId', getWay[0].id)\n\t\t\t\tuni.setStorageSync('gatewayDeviceId', getWay[0].gatewayDeviceId)\n\t\t\t\t// uni.setStorageSync('testProjectId', e.value[0].id)\n\t\t\t\tthis.value = getWay[0].name\n\t\t\t\tthis.show = false\n\t\t\t},\n\n\n\n\n\t\t\tselectClick(index) {\n\t\t\t\tconsole.log(index)\n\t\t\t},\n\t\t\tchoose() {\n\t\t\t\tthis.show3 = true\n\t\t\t\tconsole.log('我弹出来了');\n\n\t\t\t},\n\t\t\ttoUpload() {\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl: \"/pages/upload-face/upload-face\"\n\t\t\t\t})\n\t\t\t},\n\t\t\ttoList() {\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl: \"/pages/project-list/project-list\"\n\t\t\t\t})\n\t\t\t},\n\t\t\texit() {\n\t\t\t\tuni.showModal({\n\t\t\t\t\ttitle: '温馨提示',\n\t\t\t\t\tcontent: '确定要退出吗?',\n\t\t\t\t\tsuccess: res => {\n\t\t\t\t\t\tif (res.confirm) {\n\t\t\t\t\t\t\tuni.removeStorageSync('Token')\n\t\t\t\t\t\t\tuni.removeStorageSync('userId')\n\t\t\t\t\t\t\tuni.removeStorageSync('testProjectId')\n\t\t\t\t\t\t\tuni.redirectTo({\n\t\t\t\t\t\t\t\turl: \"/pages/login/login\"\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\n\t\t\t},\n\t\t\ttoAddProject() {\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl: \"/pages/add-project/add-project\"\n\t\t\t\t})\n\t\t\t},\n\t\t\tasync getProjectList() {\n\t\t\t\t// uni.showLoading({\n\t\t\t\t// \ttitle: \"正在请求中\"\n\t\t\t\t// })\n\t\t\t\tconst {\n\t\t\t\t\tdata: res\n\t\t\t\t} = await uni.$http.post('/api/v1/test/testProject/queryByCondition', this.msg)\n\t\t\t\t// console.log(res,'项目');\n\t\t\t\tuni.hideLoading()\n\t\t\t\tif (res.code == 200) {\n\t\t\t\t\tif (res.data.records.length == 0) {\n\t\t\t\t\t\tthis.$u.toast(`未检测到测试项目`)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlet filter = []\n\t\t\t\t\t\tres.data.records.forEach((item) => {\n\t\t\t\t\t\t\tfilter.push(item.name)\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.columns[0] = filter\n\t\t\t\t\t\tthis.arr = res.data.records\n\t\t\t\t\t}\n\t\t\t\t\t// let filter = []\n\t\t\t\t\t// res.data.records.forEach((item) => {\n\t\t\t\t\t// \tfilter.push(item.description)\n\t\t\t\t\t// })\n\t\t\t\t\t// this.columns[0] = filter\n\t\t\t\t\t// this.arr = res.data.records\n\n\t\t\t\t} else {\n\t\t\t\t\tthis.$u.toast(`请求失败`)\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t},\n\n\t\tonLoad(options) {\n\t\t\tthis.getProjectList()\n\t\t\t// const {\n\t\t\t// \tpage\n\t\t\t// } = options\n\t\t\t// if (page == upload) {\n\t\t\t// \tuni.navigateTo({\n\t\t\t// \t\turl: '/pages/mine/mine',\n\t\t\t// \t\tsuccess: () => {\n\t\t\t// \t\t\tuni.navigateBack()\n\t\t\t// \t\t}\n\t\t\t// \t})\n\t\t\t// }\n\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n\tpage {\n\t\tbackground: #eaeaea;\n\t}\n\n\t.myContent {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tmargin: 0 auto;\n\t}\n\n\t.header {\n\t\tflex-direction: row;\n\t\tdisplay: flex;\n\t\theight: 200rpx;\n\t}\n\n\t.headbgImage {\n\t\theight: 25%;\n\t\twidth: 100%;\n\t\tposition: absolute;\n\t\tz-index: 1;\n\t}\n\n\t.myPhoto {\n\t\theight: 140rpx;\n\t\twidth: 140rpx;\n\t\tposition: absolute;\n\t\tz-index: 2;\n\t\tmargin-left: 3%;\n\t\tmargin-top: 3%;\n\n\t\tborder-radius: 50%;\n\n\t\timg {\n\t\t\tborder-radius: 50%;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t}\n\n\t.myInformation {\n\t\tposition: absolute;\n\t\tz-index: 2;\n\t\tmargin-left: 25%;\n\t\tmargin-top: 9%;\n\t}\n\n\t.exit {\n\t\tmargin-top: 50px;\n\t\tbackground: white;\n\t\twidth: 100%;\n\t\t// margin-left: 20rpx;\n\t\theight: 176rpx;\n\t\t// border-radius: 10px;\n\t}\n\n\t.middle-num {\n\t\tposition: absolute;\n\t\tz-index: 2;\n\t\tdisplay: flex;\n\t\tflex-wrap: nowrap;\n\t\tbackground: white;\n\t\twidth: 100%;\n\t\t// margin-left: 20rpx;\n\t\theight: 93rpx;\n\t\t// border-radius: 10px;\n\t\tmargin-top: -16rpx;\n\t}\n\n\t.popup {\n\t\theight: 700rpx;\n\t\twidth: 100vw;\n\t\t// width: calc(100vw - 40rpx);\n\t\t// margin: 0 20rpx;\n\n\t\t.title {\n\t\t\tpadding: 20rpx;\n\t\t\ttext-align: center;\n\t\t}\n\t}\n</style>","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./mine.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./mine.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}