cat-eye-test.js.map 26 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/cat-eye-test/cat-eye-test.vue?8024","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/cat-eye-test/cat-eye-test.vue?089e","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/cat-eye-test/cat-eye-test.vue?5b7b","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/cat-eye-test/cat-eye-test.vue?0532","uni-app:///pages/cat-eye-test/cat-eye-test.vue","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/cat-eye-test/cat-eye-test.vue?8fd4"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","renderjs","component","options","__file","components","uNavbar","uSteps","uStepsItem","uButton","uModal","uPopup","uRadioGroup","uRadio","e","message","indexOf","console","error","render","_vm","this","_h","$createElement","_self","_c","recyclableRender","staticRenderFns","_withStripped","data","signalNum","uploadBtn","powerNum","uploadMsg","testProjectId","deviceId","type","radiolist1","value","disabled","powerRefs","show7","flag","gatewayDeviceId","show1","title","content1","obj","show","current1","timer","stepList","id","desc","methods","changeInput","radioChange","pass","noPass","uploadTest","uni","mask","icon","res","setTimeout","resetDevice","url","uploadTestMsg","leftClick","content","success","delta","testGateway","testSignal","faceHas","uploadFace","userId","duration","onLoad"],"mappings":"0JAAA,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,sCACZ,aAAAF,E,0CCvBf,uQ,iCCAA,IAAIG,EAAJ,0LACA,IACEA,EAAa,CACXC,QAAS,WACP,OAAO,qHAITC,OAAQ,WACN,OAAO,mHAITC,WAAY,WACV,OAAO,6HAITC,QAAS,WACP,OAAO,qHAITC,OAAQ,WACN,OAAO,mHAITC,OAAQ,WACN,OAAO,mHAIT,UAAW,WACT,OAAO,qHAITC,YAAa,WACX,OAAO,+HAITC,OAAQ,WACN,OAAO,oHAKX,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,IAEjBC,GAAmB,EACnBC,EAAkB,GACtBR,EAAOS,eAAgB,G,iCCzEvB,yHAA01B,eAAG,G,uJCwD71B,CACAC,gBACA,OACAC,aACAC,aACAC,aACAC,WACAC,gDACAC,YACAC,WAEAC,aACAC,WACAC,YACAC,cAGA,CACAF,YACAC,YACAC,eAIAC,SACAC,OACAC,oDACAC,SACAC,aACAC,oCACAC,KACAb,gDACAC,aAEAa,QACAC,cACAC,WACAC,WACAC,KACAP,aACAQ,cACAnC,UACA,CACAkC,KACAP,eACAQ,kBACAnC,UAEA,CACAkC,KACAP,aACAQ,YACAnC,aAKAoC,SACAC,wBACAtC,yBAEAuC,wBACAvC,eACA,GACA,gBACA,cACA,cAEA,0BACA,eAEA,eAEAwC,gBACA,gBACA,cACA,YACA,eAEAC,kBACA,cACA,2BAEAC,sBAAA,4IAKA,OAJAC,eACAC,QACAhB,mBACAiB,cACA,SAGAF,oDAAA,gBADAG,SAEAH,gBACA3C,eACA,aACA2C,mBAEAI,uBACA,kBACA,OAGAJ,mBACA,0CApBA,IAuBAK,uBAAA,4IAKA,OAJAL,eACAC,QACAC,YACAjB,iBACA,SAGAe,mDACAzB,gCACA,gBAHA4B,SAIA9C,eACA2C,gBACA,aACA,mBACAA,aACAM,oCAGA,mBACA,0CApBA,IAsBAC,yBACAlD,4BACA,2CACA,qDACA,qCAEA,yCACA,2CACA,wCAEA,mBAEA,6BACA,qDACA,qCACA,yCACA,2CACA,wCACA,mBAEA,eACA,qDACA,qCACA,yCACA,2CACA,wCACA,mDACAA,4BACA,mBAEA,eACA,qDACA,qCACA,yCACA,2CACA,wCACA,mDACAA,4BACA,oBAGAmD,qBAAA,WACA,mCACA,qBAEAnD,eACA,GACAA,mBACA2C,gBACAA,aACAf,aACAwB,yBACAC,oBACA,YAEA,oBACA,UAEAV,gBACAW,eAUAX,gBACAW,WAUAC,uBAAA,4IAIA,OAHAZ,eACAf,iBACAiB,cACA,SAGAF,0EAAA,gBADAG,SAEAH,gBACA,qBACA,SACA3C,wBAEAA,sBACA,sBACA,0CAfA,IAkBAwD,sBAAA,4IAKA,OAJAb,eACAC,QACAhB,cACAiB,cACA,SAGAF,yDAAA,gBADAG,SAGAH,gBACA,oBACA,aACA,SACA3C,uBAEA,qBACA,0CAjBA,IAqBAyD,mBAAA,4IAKA,OAJAd,eACAC,QACAhB,iBACAiB,cACA,SAGAF,sFAAA,gBADAG,SAEAH,iBACA,0BACA3C,qBACA,UAEA,+BACA,0CAfA,IA2BA0D,sBAAA,4IAKA,OAJAf,eACAC,QACAhB,aACAiB,cACA,SAIAF,wDACAgB,kCACAzC,0BACA,gBALA4B,SAOAH,gBAEA,cACA,WACA3C,oBACA2C,aAEAiB,cACAhC,eACAiB,cAEA,WACA,WAGA,qBACA7C,sBACA,wBACA,0CAhCA,KAmCA6D,mBAAA,WACA7D,iBACA,yBACAA,eACA,2BACA,6BACA,mCACA,2BACA,oCACA,WAGA,6BACA,WAGA,gCACA,WAIA,0BAWA,c,6DC7YA,yHAAyjD,eAAG,G","file":"pages/cat-eye-test/cat-eye-test.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/cat-eye-test/cat-eye-test.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./cat-eye-test.vue?vue&type=template&id=37a99026&\"\nvar renderjs\nimport script from \"./cat-eye-test.vue?vue&type=script&lang=js&\"\nexport * from \"./cat-eye-test.vue?vue&type=script&lang=js&\"\nimport style0 from \"./cat-eye-test.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/cat-eye-test/cat-eye-test.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!./cat-eye-test.vue?vue&type=template&id=37a99026&\"","var components\ntry {\n components = {\n uNavbar: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-navbar/u-navbar\" */ \"@/uni_modules/uview-ui/components/u-navbar/u-navbar.vue\"\n )\n },\n uSteps: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-steps/u-steps\" */ \"@/uni_modules/uview-ui/components/u-steps/u-steps.vue\"\n )\n },\n uStepsItem: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-steps-item/u-steps-item\" */ \"@/uni_modules/uview-ui/components/u-steps-item/u-steps-item.vue\"\n )\n },\n uButton: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-button/u-button\" */ \"@/uni_modules/uview-ui/components/u-button/u-button.vue\"\n )\n },\n uModal: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-modal/u-modal\" */ \"@/uni_modules/uview-ui/components/u-modal/u-modal.vue\"\n )\n },\n uPopup: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-popup/u-popup\" */ \"@/uni_modules/uview-ui/components/u-popup/u-popup.vue\"\n )\n },\n \"u-Input\": function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u--input/u--input\" */ \"@/uni_modules/uview-ui/components/u--input/u--input.vue\"\n )\n },\n uRadioGroup: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-radio-group/u-radio-group\" */ \"@/uni_modules/uview-ui/components/u-radio-group/u-radio-group.vue\"\n )\n },\n uRadio: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-radio/u-radio\" */ \"@/uni_modules/uview-ui/components/u-radio/u-radio.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}\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!./cat-eye-test.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!./cat-eye-test.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"u-page\">\n\t\t<view class=\"\" style=\"height: 44px;margin-bottom: 88rpx;\">\n\t\t\t<u-navbar bgColor=\"#3c9cff\" title=\"猫眼测试\" @leftClick=\"leftClick\">\n\t\t\t</u-navbar>\n\t\t</view>\n\n\t\t<view class=\"u-demo-block\">\n\t\t\t<view class=\"u-demo-block__content steps\">\n\t\t\t\t<u-steps :current=\"current1\" direction=\"column\">\n\t\t\t\t\t<u-steps-item class=\"steps-item\" v-for=\"item in stepList\" :key=\"item.id\" :error=\"item.error\"\n\t\t\t\t\t\t:title=\"item.title\" :desc=\"item.desc\">\n\t\t\t\t\t</u-steps-item>\n\t\t\t\t\t<!-- \t<u-steps-item title=\"测试开门\" desc=\"10:35\">\n\t\t\t\t\t</u-steps-item>\n\t\t\t\t\t<u-steps-item title=\"测试刷卡\" desc=\"11:40\">\n\t\t\t\t\t</u-steps-item>\n\t\t\t\t\t<u-steps-item title=\"输入功耗\" desc=\"11:40\">\n\t\t\t\t\t</u-steps-item> -->\n\t\t\t\t</u-steps>\n\t\t\t</view>\n\n\t\t</view>\n\t\t<view class=\"upload\" style=\"width: 100vw;\">\n\t\t\t<u-button :disabled=\"uploadBtn\" type=\"primary\" size=\"large\" @click=\"uploadTestMsg\">完成测试并上传信息</u-button>\n\t\t</view>\n\t\t<u-modal :show=\"show1\" :title=\"title\" :content='content1' @confirm=\"confirm\" :asyncClose=\"true\">\n\t\t\t<u-button @click=pass slot=\"confirmButton\" type=\"primary\" text=\"通过\" shape=\"circle\"></u-button>\n\t\t\t<u-button @click=\"noPass\" slot=\"confirmButton\" type=\"error\" text=\"不通过\" shape=\"circle\"></u-button>\n\t\t</u-modal>\n\t\t<u-popup customStyle=\"width: 70vw\" :round=\"10\" mode=\"center\" :show=\"show7\" @close=\"close\">\n\t\t\t<view class=\"popupView\" style=\"height: 150px;\">\n\t\t\t\t<view class=\"power\">\n\t\t\t\t\t功耗选择\n\t\t\t\t</view>\n\t\t\t\t<view class=\"inputNum\" style=\"\">\n\t\t\t\t\t<view class=\"\">\n\t\t\t\t\t\t功耗:\n\t\t\t\t\t</view>\n\t\t\t\t\t<u--input placeholder=\"请输入功耗\" border=\"surround\" v-model=\"powerNum\" @change=\"changeInput\"></u--input>\n\t\t\t\t</view>\n\n\t\t\t\t<u-radio-group placement=\"row\">\n\t\t\t\t\t<u-radio :customStyle=\"{margin: '15px 30px'}\" v-for=\"(item, index) in radiolist1\" :key=\"index\"\n\t\t\t\t\t\t:label=\"item.value\" :name=\"item.powerRefs\" @change=\"radioChange\" iconPlacement=\"right\">\n\t\t\t\t\t</u-radio>\n\n\t\t\t\t</u-radio-group>\n\n\t\t\t</view>\n\t\t</u-popup>\n\t</view>\n\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tsignalNum: '',\n\t\t\t\tuploadBtn: false,\n\t\t\t\tpowerNum: 160,\n\t\t\t\tuploadMsg: {\n\t\t\t\t\ttestProjectId: uni.getStorageSync('testProjectId'),\n\t\t\t\t\tdeviceId: \"\",\n\t\t\t\t\ttype: null\n\t\t\t\t},\n\t\t\t\tradiolist1: [{\n\t\t\t\t\t\tvalue: '通过',\n\t\t\t\t\t\tdisabled: false,\n\t\t\t\t\t\tpowerRefs: true\n\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue: '不通过',\n\t\t\t\t\t\tdisabled: false,\n\t\t\t\t\t\tpowerRefs: false\n\t\t\t\t\t}\n\n\t\t\t\t],\n\t\t\t\tshow7: false,\n\t\t\t\tflag: 0,\n\t\t\t\tgatewayDeviceId: uni.getStorageSync('gatewayDeviceId'),\n\t\t\t\tshow1: false,\n\t\t\t\ttitle: '温馨提示',\n\t\t\t\tcontent1: '系统已成功植入您的人脸,请问您的人脸验证是否通过',\n\t\t\t\tobj: {\n\t\t\t\t\ttestProjectId: uni.getStorageSync('testProjectId'),\n\t\t\t\t\tdeviceId: \"\"\n\t\t\t\t},\n\t\t\t\tshow: false,\n\t\t\t\tcurrent1: null,\n\t\t\t\ttimer: null,\n\t\t\t\tstepList: [{\n\t\t\t\t\t\tid: 0,\n\t\t\t\t\t\ttitle: '测试信号',\n\t\t\t\t\t\tdesc: '测试网关信号',\n\t\t\t\t\t\terror: false\n\t\t\t\t\t}, {\n\t\t\t\t\t\tid: 1,\n\t\t\t\t\t\ttitle: '测试人脸开门',\n\t\t\t\t\t\tdesc: '测试人脸是否开门正常',\n\t\t\t\t\t\terror: false\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: 2,\n\t\t\t\t\t\ttitle: '功耗输入',\n\t\t\t\t\t\tdesc: '测试功耗',\n\t\t\t\t\t\terror: false\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tchangeInput(e) {\n\t\t\t\tconsole.log('change', e);\n\t\t\t},\n\t\t\tradioChange(n) {\n\t\t\t\tconsole.log(n);\n\t\t\t\tif (n) {\n\t\t\t\t\tthis.current1 = 3\n\t\t\t\t\tthis.show7 = false\n\t\t\t\t\tthis.flag = 6\n\t\t\t\t} else {\n\t\t\t\t\tthis.stepList[2].error = true\n\t\t\t\t\tthis.show7 = false\n\t\t\t\t}\n\t\t\t\tthis.show7 = false\n\t\t\t},\n\t\t\tpass() {\n\t\t\t\tthis.current1 = 2\n\t\t\t\tthis.show1 = false\n\t\t\t\tthis.flag = 5\n\t\t\t\tthis.show7 = true\n\t\t\t},\n\t\t\tnoPass() {\n\t\t\t\tthis.show1 = false\n\t\t\t\tthis.stepList[1].error = true\n\t\t\t},\n\t\t\tasync uploadTest() {\n\t\t\t\tuni.showLoading({\n\t\t\t\t\tmask: true,\n\t\t\t\t\ttitle: \"正在上传本次测试结果\",\n\t\t\t\t\ticon: 'none'\n\t\t\t\t})\n\t\t\t\tlet {\n\t\t\t\t\tdata: res\n\t\t\t\t} = await uni.$http.post('/api/v1/test/testResult', this.uploadMsg)\n\t\t\t\tuni.hideLoading()\n\t\t\t\tconsole.log(res);\n\t\t\t\tif (res.code == 200) {\n\t\t\t\t\tuni.$showMsg('上传成功')\n\t\t\t\t\t// this.uploadBtn = true\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tthis.resetDevice()\n\t\t\t\t\t}, 1500)\n\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tuni.$showMsg('上传失败')\n\t\t\t\t}\n\t\t\t},\n\t\t\t// 重置设备\n\t\t\tasync resetDevice() {\n\t\t\t\tuni.showLoading({\n\t\t\t\t\tmask: true,\n\t\t\t\t\ticon: 'none',\n\t\t\t\t\ttitle: '正在重置设备',\n\t\t\t\t})\n\t\t\t\tlet {\n\t\t\t\t\tdata: res\n\t\t\t\t} = await uni.$http.post('/api/v1/test/bluetooth/resetDevice', {\n\t\t\t\t\tdeviceId: this.uploadMsg.deviceId\n\t\t\t\t})\n\t\t\t\tconsole.log(res);\n\t\t\t\tuni.hideLoading()\n\t\t\t\tif (res.code == 200) {\n\t\t\t\t\tthis.$u.toast(`重置成功`)\n\t\t\t\t\tuni.switchTab({\n\t\t\t\t\t\turl:\"/pages/bluetooth/bluetooth\"\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tthis.$u.toast(`重置失败`)\n\t\t\t\t}\n\t\t\t},\n\t\t\tuploadTestMsg() {\n\t\t\t\tconsole.log(this.uploadMsg);\n\t\t\t\tif (this.flag == 0 || this.flag == 1 || this.flag == 2) {\n\t\t\t\t\t\tthis.$set(this.uploadMsg, 'signalNum', this.signalNum)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'status', 0)\n\t\t\t\t\t// this.$set(this.uploadMsg, 'faceOpenRes', true)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'signalRes', false)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'faceOpenRes', false)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'powerRes', false)\n\n\t\t\t\t\tthis.uploadTest()\n\t\t\t\t}\n\t\t\t\tif (this.flag == 3 || this.flag == 4) {\n\t\t\t\t\t\tthis.$set(this.uploadMsg, 'signalNum', this.signalNum)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'status', 0)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'signalRes', true)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'faceOpenRes', false)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'powerRes', false)\n\t\t\t\t\tthis.uploadTest()\n\t\t\t\t}\n\t\t\t\tif (this.flag == 5) {\n\t\t\t\t\t\tthis.$set(this.uploadMsg, 'signalNum', this.signalNum)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'status', 0)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'signalRes', true)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'faceOpenRes', true)\n\t\t\t\t\t\tthis.$set(this.uploadMsg, 'powerRes', false)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'powerNum', this.powerNum)\n\t\t\t\t\tconsole.log(this.uploadMsg);\n\t\t\t\t\tthis.uploadTest()\n\t\t\t\t}\n\t\t\t\tif (this.flag == 6) {\n\t\t\t\t\t\tthis.$set(this.uploadMsg, 'signalNum', this.signalNum)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'status', 1)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'signalRes', true)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'faceOpenRes', true)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'powerRes', true)\n\t\t\t\t\tthis.$set(this.uploadMsg, 'powerNum', this.powerNum)\n\t\t\t\t\tconsole.log(this.uploadMsg);\n\t\t\t\t\tthis.uploadTest()\n\t\t\t\t}\n\t\t\t},\n\t\tleftClick() {\n\t\t\tlet a = this.stepList.every((item) => {\n\t\t\t\treturn item.error == true\n\t\t\t})\n\t\t\tconsole.log(a);\n\t\t\tif (a) {\n\t\t\t\tconsole.log('模态框');\n\t\t\t\tuni.hideLoading()\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\t// this.show1 = false\n\t\t\t\t\t\t\tthis.$u.toast(`点击了确定`)\n\t\t\t\t\t\t\tthis.flag = 99\n\t\t\t\t\t\t\t// console.log(this.flag);\n\t\t\t\t\t\t\tuni.navigateBack({\n\t\t\t\t\t\t\t\tdelta: 1\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// this.$u.toast(`点击了取消`)\n\t\t\n\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tuni.navigateBack({\n\t\t\t\t\tdelta: 1\n\t\t\t\t})\n\t\t\n\t\t\t}\n\t\t\n\t\t},\n\n\n\n\t\t\t// 测试网关连接\n\t\t\tasync testGateway() {\n\t\t\t\tuni.showLoading({\n\t\t\t\t\ttitle: '正在测试网关连接',\n\t\t\t\t\ticon: 'none'\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.get(`/api/v1/test/gateway/connection/${this.gatewayDeviceId}`)\n\t\t\t\tuni.hideLoading()\n\t\t\t\tif (res.data.isConnect == true) {\n\t\t\t\t\tthis.flag = 1\n\t\t\t\t\tconsole.log('网关连接成功');\n\t\t\t\t} else {\n\t\t\t\t\tconsole.log('网关连接失败');\n\t\t\t\t\tthis.$u.toast(`网关连接失败`)\n\t\t\t\t}\n\t\t\t},\n\t\t\t// 测试信号\n\t\t\tasync testSignal() {\n\t\t\t\tuni.showLoading({\n\t\t\t\t\tmask: true,\n\t\t\t\t\ttitle: '信号测试中',\n\t\t\t\t\ticon: 'none'\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/bluetooth/checkSignal', this.obj)\n\n\t\t\t\tuni.hideLoading()\n\t\t\t\tif (res.data.isNormal == true) {\n\t\t\t\t\tthis.current1 = 1\n\t\t\t\t\tthis.flag = 3\n\t\t\t\t\tconsole.log('信号测试成功')\n\t\t\t\t} else {\n\t\t\t\t\tthis.$u.toast(`信号测试失败`)\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t// 检测人脸是否上传\n\t\t\tasync faceHas() {\n\t\t\t\tuni.showLoading({\n\t\t\t\t\tmask: true,\n\t\t\t\t\ttitle: '检测人脸是否上传',\n\t\t\t\t\ticon: 'none'\n\t\t\t\t})\n\t\t\t\tlet {\n\t\t\t\t\tdata: res\n\t\t\t\t} = await uni.$http.get(`/api/v1/test/user/${uni.getStorageSync('userId')}/hasUploadFace`)\n\t\t\t\tuni.hideLoading()\n\t\t\t\tif (res.data.hasUploadFace === true) {\n\t\t\t\t\tconsole.log('人脸已上传');\n\t\t\t\t\tthis.flag = 2\n\t\t\t\t} else {\n\t\t\t\t\tthis.$u.toast(`人脸未上传,请去我的页面上传人脸`)\n\t\t\t\t}\n\t\t\t},\n\t\t\t// confirm() {\n\t\t\t// \tsetTimeout(() => {\n\t\t\t// \t\t// 3秒后自动关闭\n\t\t\t// \t\tthis.show = false;\n\t\t\t// \t\tuni.switchTab({\n\t\t\t// \t\t\turl: \"/pages/mine/mine\"\n\t\t\t// \t\t})\n\t\t\t// \t}, 2000)\n\t\t\t// },\n\t\t\t// 猫眼植入特征值\n\t\t\tasync uploadFace() {\n\t\t\t\tuni.showLoading({\n\t\t\t\t\tmask: true,\n\t\t\t\t\ttitle: '下发人脸',\n\t\t\t\t\ticon: 'none'\n\t\t\t\t})\n\t\t\t\tlet {\n\t\t\t\t\tdata: res\n\t\t\t\t} =\n\t\t\t\tawait uni.$http.post('/api/v1/test/bluetooth/addTestFaceToCam', {\n\t\t\t\t\tuserId: uni.getStorageSync('userId'),\n\t\t\t\t\tdeviceId: this.obj.deviceId\n\t\t\t\t})\n\t\t\t\t// console.log(res);\n\t\t\t\tuni.hideLoading()\n\n\t\t\t\tif (res.code === 200) {\n\t\t\t\t\tthis.show1 = true\n\t\t\t\t\tconsole.log('植入成功');\n\t\t\t\t\tuni.showToast({\n\n\t\t\t\t\t\tduration: 1500,\n\t\t\t\t\t\ttitle: '人脸植入成功',\n\t\t\t\t\t\ticon: 'none'\n\t\t\t\t\t})\n\t\t\t\t\tthis.show1 = true\n\t\t\t\t\tthis.flag = 4\n\n\t\t\t\t} else {\n\t\t\t\t\tthis.$u.toast(`人脸植入失败`)\n\t\t\t\t\tconsole.log('人脸上传失败');\n\t\t\t\t\tthis.stepList[1].error = true\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tonLoad(option) {\n\t\t\tconsole.log(111);\n\t\t\tlet item = JSON.parse(option.item)\n\t\t\tconsole.log(item);\n\t\t\t\tthis.signalNum = item.signalNum\n\t\t\tthis.obj.deviceId = item.deviceId\n\t\t\tthis.uploadMsg.deviceId = item.deviceId\n\t\t\tthis.uploadMsg.type = item.type\n\t\t\tthis.testGateway().then(() => {\n\t\t\t\tif (this.flag != 1) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tthis.faceHas().then(() => {\n\t\t\t\t\tif (this.flag != 2) {\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t\tthis.testSignal().then(() => {\n\t\t\t\t\t\tif (this.flag != 3) {\n\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthis.uploadFace()\n\t\t\t\t\t})\n\t\t\t\t})\n\n\t\t\t})\n\n\n\t\t}\n\n\n\n\t}\n</script>\n\n<style lang=\"scss\">\n\t.steps {\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\n\t\t.u-steps-item {\n\n\t\t\theight: 25vh;\n\t\t\twidth: calc(100vw - 20px);\n\t\t\tmargin: 30px 10px;\n\n\t\t\t// background-color: red;\n\t\t\t.u-steps-item__line {\n\t\t\t\theight: 100px !important;\n\t\t\t}\n\t\t}\n\n\t\t// .u-steps-item {\n\t\t// \twidth: 100vw;\n\t\t// \theight: 25vh;\n\t\t// \tbackground-color: blue;\n\t\t// }\n\t}\n\n\n\n\t.u-modal__button-group--confirm-button {\n\t\tflex-direction: row !important;\n\n\t}\n\n\t.u-modal .u-button {\n\t\twidth: 180rpx !important;\n\n\t}\n\n\t.upload {\n\t\tposition: fixed;\n\t\tbottom: 0;\n\t\twidth: 100vw;\n\t}\n\n\t.power {\n\t\ttext-align: center;\n\t\tmargin: 13px 0 20px 0;\n\t}\n\n\t.inputNum {\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tpadding: 0 20rpx;\n\t}\n\n\t.u-radio-group {\n\t\tmargin-top: 20rpx;\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!./cat-eye-test.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!./cat-eye-test.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}