You cannot 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 line
14 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/lenovo/Desktop/uni-Identify-quality/pages/home/index.vue?a072","webpack:///C:/Users/lenovo/Desktop/uni-Identify-quality/pages/home/index.vue?10aa","webpack:///C:/Users/lenovo/Desktop/uni-Identify-quality/pages/home/index.vue?699d","webpack:///C:/Users/lenovo/Desktop/uni-Identify-quality/pages/home/index.vue?4220","uni-app:///pages/home/index.vue","webpack:///C:/Users/lenovo/Desktop/uni-Identify-quality/pages/home/index.vue?8a23"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","renderjs","component","options","__file","components","titleBlock","uDivider","e","message","indexOf","console","error","render","_vm","this","_h","$createElement","g0","_self","_c","addressList","length","$mp","data","Object","assign","$root","recyclableRender","staticRenderFns","_withStripped","name","onLoad","uni","onShow","tabbar","isPass","methods","scanOrder","onlyFromCamera","success","url","getAddress","res","goConsignmen","pddIsPass"],"mappings":"2IAAA,MAGA,aACA,YAFAA,EAAGC,kCAAoCC,EAGvCC,EAAWC,a,gFCLX,oIACIC,EADJ,QASIC,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,WACA,MACA,EACA,gBACAD,GAGFC,EAAUC,QAAQC,OAAS,uBACZ,aAAAF,E,0CCvBf,uQ,iCCAA,IAAIG,EAAJ,0LACA,IACEA,EAAa,CACXC,WAAY,WACV,OAAO,kEAITC,SAAU,WACR,OAAO,4GAKX,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,eAETC,GADKJ,EAAIK,MAAMC,GACVN,EAAIO,YAAYC,QACzBR,EAAIS,IAAIC,KAAOC,OAAOC,OACpB,GACA,CACEC,MAAO,CACLT,GAAIA,MAKRU,GAAmB,EACnBC,EAAkB,GACtBhB,EAAOiB,eAAgB,G,iCC/CvB,yHAAoqB,eAAG,G,mTCiDvqB,CACAC,aACAC,kBACAC,gBAEAC,kBACA,kBACA,kBAEA7B,YACA8B,UAEAX,gBACA,OACAH,eACAe,WAGAC,SACAC,qBACAL,gCACAA,YACAM,kBACAC,oBACA7B,gCACAA,8BACAsB,cACAQ,oDAKAC,sBAAA,0JACA,gCAAAC,SACAhC,eACA,aACA,0BAEA,0BACA,0CAPA,IASAiC,wBACAX,cACAQ,2CAGAI,qBAAA,0JACA,kCAAAF,SACA,aACA,2BAEA,0BACA,0CANA,MASA,c,6DCxGA,yHAA+wC,eAAG,G","file":"pages/home/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/home/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=71e217db&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=71e217db&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../Downloads/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 \"71e217db\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/home/index.vue\"\nexport default component.exports","export * from \"-!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=71e217db&scoped=true&\"","var components\ntry {\n components = {\n titleBlock: function () {\n return import(\n /* webpackChunkName: \"components/title-block/title-block\" */ \"@/components/title-block/title-block.vue\"\n )\n },\n uDivider: function () {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-divider/u-divider\" */ \"@/uview-ui/components/u-divider/u-divider.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 var g0 = _vm.addressList.length\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"main\">\r\n <title-block style=\"flex-shrink: 0; width: 100%\" title=\"寄存\"></title-block>\r\n <view class=\"order\">\r\n <view\r\n :class=\"['order-item', isPass !== 2 ? 'disabled-div' : '']\"\r\n @click.stop=\"goConsignmen\"\r\n >\r\n <image\r\n src=\"@/static/image/write.png\"\r\n mode=\"scaleToFill\"\r\n style=\"width: 63rpx; height: 62rpx\"\r\n />\r\n <view style=\"color: #fff; margin-top: 10rpx\">填写下单</view>\r\n </view>\r\n <view\r\n :class=\"['order-item', isPass !== 2 ? 'disabled-div' : '']\"\r\n style=\"background: #76c458\"\r\n @click.stop=\"scanOrder\"\r\n >\r\n <image\r\n src=\"@/static/image/scan.png\"\r\n mode=\"scaleToFill\"\r\n style=\"width: 57rpx; height: 57rpx\"\r\n />\r\n <view style=\"color: #fff; margin-top: 10rpx\">扫码下单</view>\r\n </view>\r\n </view>\r\n <view class=\"list\">\r\n <view style=\"color: #76c458\">目前可用寄存仓库地址</view>\r\n <u-divider :dashed=\"true\" lineColor=\"#4E964D\"></u-divider>\r\n <view v-for=\"(item, index) in addressList\" :key=\"item.ID\">\r\n <view class=\"list-item\">\r\n <view>{{ item.address }}</view>\r\n <view>剩余{{ item.leftNum }}位置</view>\r\n </view>\r\n <u-divider\r\n :dashed=\"true\"\r\n lineColor=\"#4E964D\"\r\n v-if=\"index !== addressList.length - 1\"\r\n ></u-divider>\r\n </view>\r\n </view>\r\n <tabbar :current=\"0\"></tabbar>\r\n </view>\r\n</template>\r\n<script>\r\nimport tabbar from \"../../components/uiq-tabbar/uiq-tabbar.vue\";\r\n\r\nexport default {\r\n name: \"index\",\r\n onLoad() {\r\n uni.hideTabBar();\r\n },\r\n onShow() {\r\n this.getAddress();\r\n this.pddIsPass();\r\n },\r\n components: {\r\n tabbar,\r\n },\r\n data() {\r\n return {\r\n addressList: [],\r\n isPass: 0,\r\n };\r\n },\r\n methods: {\r\n scanOrder() {\r\n uni.removeStorageSync(\"scanlist\");\r\n uni.scanCode({\r\n onlyFromCamera: false,\r\n success: (res) => {\r\n console.log(\"条码类型:\" + res.scanType);\r\n console.log(\"条码内容:\" + res.result);\r\n uni.navigateTo({\r\n url: \"/pages/scanFeedback/index?url=\" + res.result,\r\n });\r\n },\r\n });\r\n },\r\n async getAddress() {\r\n const res = await this.$api.deposit.address();\r\n console.log(res);\r\n if (res.status === 0) {\r\n this.addressList = res.data.data;\r\n } else {\r\n this.$common.msgToast(res.msg);\r\n }\r\n },\r\n goConsignmen() {\r\n uni.navigateTo({\r\n url: \"/pages/consignment-painting/index\",\r\n });\r\n },\r\n async pddIsPass() {\r\n const res = await this.$api.deposit.fddIsPass();\r\n if (res.status === 0) {\r\n this.isPass = res.data.fdd.status;\r\n } else {\r\n this.$common.msgToast(res.msg);\r\n }\r\n },\r\n },\r\n};\r\n</script>\r\n<style scoped lang=\"scss\">\r\n.main {\r\n box-sizing: border-box;\r\n height: 100vh;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n padding: 0 30rpx;\r\n background-image: url(\"https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png\");\r\n\r\n .order {\r\n width: 100%;\r\n margin-top: 40rpx;\r\n display: flex;\r\n justify-content: space-between;\r\n .order-item {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n width: 330rpx;\r\n height: 208rpx;\r\n border-radius: 20rpx;\r\n background: #4e964d;\r\n }\r\n .disabled-div {\r\n opacity: 0.5; /* 降低透明度 */\r\n pointer-events: none; /* 阻止鼠标事件 */\r\n user-select: none; /* 阻止文本被选择 */\r\n }\r\n }\r\n .list {\r\n margin-top: 40rpx;\r\n width: 100%;\r\n border-radius: 20rpx;\r\n box-sizing: border-box;\r\n padding: 12rpx 20rpx;\r\n display: flex;\r\n flex-direction: column;\r\n background: #fff;\r\n font-size: 24rpx;\r\n .list-item {\r\n width: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n color: #939393;\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=71e217db&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=71e217db&scoped=true&lang=scss&\""],"sourceRoot":""}