1234567891011 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/zhilin-picker/zhilin-picker"],{330:function(n,e,t){"use strict";t.r(e);var i=t(331),o=t(333);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);t(335);var u,c=t(35),s=Object(c["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],u);s.options.__file="components/zhilin-picker/zhilin-picker.vue",e["default"]=s.exports},331:function(n,e,t){"use strict";t.r(e);var i=t(332);t.d(e,"render",(function(){return i["render"]})),t.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(e,"components",(function(){return i["components"]}))},332:function(n,e,t){"use strict";var i;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return u})),t.d(e,"recyclableRender",(function(){return r})),t.d(e,"components",(function(){return i}));try{i={uniPopup:function(){return t.e("components/uni-popup/uni-popup").then(t.bind(null,347))},uniNavBar:function(){return t.e("components/uni-nav-bar/uni-nav-bar").then(t.bind(null,466))},uniSearchBar:function(){return t.e("components/uni-search-bar/uni-search-bar").then(t.bind(null,473))},uniLoadMore:function(){return t.e("components/uni-load-more/uni-load-more").then(t.bind(null,374))},xwEmpty:function(){return t.e("components/xw-empty/xw-empty").then(t.bind(null,480))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement,t=(n._self._c,n.list.length),i=t?n.__map(n.list,(function(e,t){var i=n.__get_orig(e),o=n.selected.indexOf(e.id),r=n.selected.indexOf(e.id);return{$orig:i,g1:o,g2:r}})):null;n.$mp.data=Object.assign({},{$root:{g0:t,l0:i}})},r=!1,u=[];o._withStripped=!0},333:function(n,e,t){"use strict";t.r(e);var i=t(334),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},334:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(){t.e("components/uni-popup/uni-popup").then(function(){return resolve(t(347))}.bind(null,t)).catch(t.oe)},o=function(){t.e("components/uni-nav-bar/uni-nav-bar").then(function(){return resolve(t(466))}.bind(null,t)).catch(t.oe)},r=function(){t.e("components/xw-empty/xw-empty").then(function(){return resolve(t(480))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/uni-search-bar/uni-search-bar").then(function(){return resolve(t(473))}.bind(null,t)).catch(t.oe)},c=function(){t.e("components/more/uni-load-more").then(function(){return resolve(t(487))}.bind(null,t)).catch(t.oe)},s={name:"zhilin-select",components:{uniPopup:i,uniNavBar:o,xwEmpty:r,uniSearchBar:u,uniLoadMore:c},props:{title:{type:String,default:"请选择"},value:{type:Boolean,required:!0},data:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!1},searchInput:Function,initSelected:Array},data:function(){return{list:[],selected:[],showBottom:!1,loading:!1,searchVal:""}},created:function(){this.dataInit()},watch:{value:function(n,e){n?this.$refs.popup.open():this.$refs.popup.close()},data:function(n,e){this.loading=!1,this.showBottom=!1,this.dataInit()},searchVal:function(){this.$emit("searchInput",this.searchVal),this.inputSearch()},initSelected:function(n){this.selected=n}},methods:{lower:function(n){this.showBottom=!0,this.$emit("shua")},dataInit:function(){this.list=this.data},clickLeft:function(){this.$emit("input",!1)},tapItem:function(n,e,t){if(console.log(n,e,t),this.multiple){var i=this.selected.indexOf(n);-1==i?this.selected.push(n):this.selected.splice(i,1)}else this.selected=[n,e,t.city,t.city_id,t.district,t.district_id,t.province,t.province_id];this.$emit("change",this.selected.join())},tapOK:function(){""!=this.selected.join()||""==this.list?(this.$emit("input",!1),this.$emit("confirm",this.selected.join())):this.$api.msg("请先点击医院列表选择医院!")},popupChange:function(n){this.$emit("input",n.show)},inputSearch:function(){var n=this.searchVal;if(this.searchInput)return this.loading=!0,void this.searchInput(n);this.showBottom=!1,""==this.list||(this.list=this.list.map((function(n,e){return{label:n,value:n}})))}}};e.default=s},335:function(n,e,t){"use strict";t.r(e);var i=t(336),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},336:function(n,e,t){}}]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/components/zhilin-picker/zhilin-picker.js.map
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'components/zhilin-picker/zhilin-picker-create-component',
- {
- 'components/zhilin-picker/zhilin-picker-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('2')['createComponent'](__webpack_require__(330))
- })
- },
- [['components/zhilin-picker/zhilin-picker-create-component']]
- ]);
|