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.
2 lines
8.3 KiB
2 lines
8.3 KiB
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subPageC/flower/index"],{1121:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var i=o(n(1122));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},1122:function(e,t,n){"use strict";n.r(t);var o=n(1123),i=n(1125);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n(1135);var u,s=n(231),c=Object(s["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],u);c.options.__file="subPageC/flower/index.vue",t["default"]=c.exports},1123:function(e,t,n){"use strict";n.r(t);var o=n(1124);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},1124:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return u})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return o}));try{o={uPopup:function(){return Promise.resolve().then(n.bind(null,1127))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.search_result.length);e.$mp.data=Object.assign({},{$root:{g0:n}})},r=!1,u=[];i._withStripped=!0},1125:function(e,t,n){"use strict";n.r(t);var o=n(1126),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},1126:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1127)),r={comments:{UPopup:i.default},data:function(){return{rootPath:this.$config.ROOTPATH,show:!1,imageSrc:"",imageTitle:"",search_result:[]}},onLoad:function(){},methods:{close:function(){this.show=!1},chooseImage:function(t){var n=this,o=this;e.chooseMedia({count:1,sizeType:["compressed"],mediaType:["image"],sourceType:[t],success:function(t){o.imageSrc=t.tempFiles[0].tempFilePath,e.showLoading({title:"图片识别中..."}),n.task=e.uploadFile({url:n.rootPath+"/app-api/wechatshop/toolIdentify/identifyPlant",filePath:o.imageSrc,name:"file",formData:{file:o.imageSrc},success:function(t){console.log("uploadImage success, res is:",t);var n=JSON.parse(t.data);e.showToast({title:"识别成功",icon:"success",duration:1e3}),o.search_result=n.data.map((function(e,t){return{name:e.name,score:(100*e.score).toFixed(2)}})),o.show=!0},fail:function(t){console.log("uploadImage fail",t),e.showModal({content:t.errMsg,showCancel:!1})},complete:function(t){e.hideLoading(),n.task=null}})},fail:function(e){console.log("chooseImage fail",e)}})}}};t.default=r}).call(this,n(2)["default"])},1127:function(e,t,n){"use strict";n.r(t);var o=n(1128),i=n(1130);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n(1133);var u,s=n(231),c=Object(s["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"3a231fda",null,!1,o["components"],u);c.options.__file="uni_modules/uview-ui/components/u-popup/u-popup.vue",t["default"]=c.exports},1128:function(e,t,n){"use strict";n.r(t);var o=n(1129);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},1129:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return u})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return o}));try{o={uOverlay:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-overlay/u-overlay")]).then(n.bind(null,1555))},uTransition:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-transition/u-transition")]).then(n.bind(null,1563))},uStatusBar:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-status-bar/u-status-bar")]).then(n.bind(null,1573))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,1215))},uSafeBottom:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom")]).then(n.bind(null,1581))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__get_style([e.contentStyle]));e.$mp.data=Object.assign({},{$root:{s0:n}})},r=!1,u=[];i._withStripped=!0},1130:function(e,t,n){"use strict";n.r(t);var o=n(1131),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},1131:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1132)),r={name:"u-popup",mixins:[e.$u.mpMixin,e.$u.mixin,i.default],data:function(){return{overlayDuration:this.duration+50}},watch:{show:function(e,t){if(!0===e){var n=this.$children;this.retryComputedComponentRect(n)}}},computed:{transitionStyle:function(){var t={zIndex:this.zIndex,position:"fixed",display:"flex"};return t[this.mode]=0,"left"===this.mode||"right"===this.mode?e.$u.deepMerge(t,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?e.$u.deepMerge(t,{left:0,right:0}):"center"===this.mode?e.$u.deepMerge(t,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle:function(){var t={},n=e.$u.sys();n.safeAreaInsets;if("center"!==this.mode&&(t.flex=1),this.bgColor&&(t.backgroundColor=this.bgColor),this.round){var o=e.$u.addUnit(this.round);"top"===this.mode?(t.borderBottomLeftRadius=o,t.borderBottomRightRadius=o):"bottom"===this.mode?(t.borderTopLeftRadius=o,t.borderTopRightRadius=o):"center"===this.mode&&(t.borderRadius=o)}return e.$u.deepMerge(t,e.$u.addStyle(this.customStyle))},position:function(){return"center"===this.mode?this.zoom?"fade-zoom":"fade":"left"===this.mode?"slide-left":"right"===this.mode?"slide-right":"bottom"===this.mode?"slide-up":"top"===this.mode?"slide-down":void 0}},methods:{overlayClick:function(){this.closeOnClickOverlay&&this.$emit("close")},close:function(e){this.$emit("close")},afterEnter:function(){this.$emit("open")},clickHandler:function(){"center"===this.mode&&this.overlayClick(),this.$emit("click")},retryComputedComponentRect:function(t){for(var n=this,o=["u-calendar-month","u-album","u-collapse-item","u-dropdown","u-index-item","u-index-list","u-line-progress","u-list-item","u-rate","u-read-more","u-row","u-row-notice","u-scroll-list","u-skeleton","u-slider","u-steps-item","u-sticky","u-subsection","u-swipe-action-item","u-tabbar","u-tabs","u-tooltip"],i=function(i){var r=t[i],u=r.$children;o.includes(r.$options.name)&&"function"===typeof(null===r||void 0===r?void 0:r.init)&&e.$u.sleep(50).then((function(){r.init()})),u.length&&n.retryComputedComponentRect(u)},r=0;r<t.length;r++)i(r)}}};t.default=r}).call(this,n(2)["default"])},1133:function(e,t,n){"use strict";n.r(t);var o=n(1134),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},1134:function(e,t,n){},1135:function(e,t,n){"use strict";n.r(t);var o=n(1136),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},1136:function(e,t,n){}},[[1121,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/subPageC/flower/index.js.map
|