1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/try/try.vue?76cd","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/try/try.vue?a1ae","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/try/try.vue?3d69","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/try/try.vue?c1b3","uni-app:///pages/try/try.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","renderjs","component","options","__file","components","render","_vm","this","_h","$createElement","_self","_c","recyclableRender","staticRenderFns","_withStripped","data","msg","deviceId","pic","gatewayDeviceId","methods","resetDevice","uni","mask","icon","title","res","console","getFacePic","gate","onLoad","duration","setInterval"],"mappings":"wIAAA,MAGA,aACA,YAFAA,EAAGC,kCAAoCC,EAGvCC,EAAWC,a,gFCLX,6HACIC,EADJ,QAQIC,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,KACA,MACA,EACA,gBACAD,GAGFC,EAAUC,QAAQC,OAAS,oBACZ,aAAAF,E,0CCtBf,uQ,iCCAA,IAAIG,EAAJ,0LACA,IAAIC,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACJH,EAAII,MAAMC,IAEjBC,GAAmB,EACnBC,EAAkB,GACtBR,EAAOS,eAAgB,G,iCCRvB,yHAAi1B,eAAG,G,uJCQp1B,CACAC,gBACA,OACAC,KACAC,yBAGAC,OACAC,iCAGAC,SAEAC,uBAAA,4IAKA,OAJAC,eACAC,QACAC,YACAC,iBACA,SAGAH,yDAAA,gBADAI,SAEAC,eACAL,gBACA,YACA,mBAEA,mBACA,0CAfA,IAiBAM,sBAAA,4JAGAN,oDAAA,gBADAI,SAEAC,oBACA,gFALA,IAOAE,gBAAA,4JAGAP,sDACA,oCAFAI,SAGAC,eAAA,0CALA,KAUAG,kBAIAR,aACAG,aACAM,eAEAC,wBACAV,aACAG,cACAM,iBAEA,OAGA,c","file":"pages/try/try.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/try/try.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./try.vue?vue&type=template&id=1c88177e&\"\nvar renderjs\nimport script from \"./try.vue?vue&type=script&lang=js&\"\nexport * from \"./try.vue?vue&type=script&lang=js&\"\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/try/try.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!./try.vue?vue&type=template&id=1c88177e&\"","var components\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!./try.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!./try.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"\">\n\t\t获取人脸\n\t\t<img :src=\"pic\" alt=\"\">\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tmsg: {\n\t\t\t\t\tdeviceId: \"b44f96f00ff0\",\n\t\t\t\t},\n\n\t\t\t\tpic: '',\n\t\t\t\tgatewayDeviceId: 'd825b0036120',\n\t\t\t}\n\t\t},\n\t\tmethods: {\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', this.msg)\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} else {\n\t\t\t\t\tthis.$u.toast(`重置失败`)\n\t\t\t\t}\n\t\t\t},\n\t\t\tasync getFacePic() {\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/facePic/${1}`)\n\t\t\t\tconsole.log(res.data);\n\t\t\t\tthis.pic = 'data:image/jpg;base64,' + res.data\n\t\t\t},\n\t\t\tasync gate() {\n\t\t\t\tconst {\n\t\t\t\t\tdata: res\n\t\t\t\t} = await uni.$http.get(\n\t\t\t\t\t`/api/v1/test/gateway/connection/${this.gatewayDeviceId}`)\n\t\t\t\tconsole.log(res);\n\n\n\t\t\t}\n\t\t},\n\t\tonLoad() {\n\t\t\t// this.resetDevice()\n\t\t\t// this.getFacePic()\n\t\t\t// this.gate()\n\t\t\tuni.showToast({\n\t\t\t\ttitle: '我在测试',\n\t\t\t\tduration: 10000,\n\t\t\t})\n\t\t\tsetInterval(() => {\n\t\t\t\tuni.showToast({\n\t\t\t\t\ttitle: '2我在测试',\n\t\t\t\t\tduration: 10000,\n\t\t\t\t})\n\t\t\t}, 10000)\n\n\t\t}\n\t}\n</script>"],"sourceRoot":""}
|