公司小程序
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.

12 lines
3.3 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/NeedsSelect/NeedsSelect"],{235:function(e,n,t){"use strict";t.r(n);var i=t(450),o=t(317);for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t(404);var u,s=t(1),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"ca618090",null,!1,i["a"],u);c.options.__file="components/NeedsSelect/NeedsSelect.vue",n["default"]=c.exports},317:function(e,n,t){"use strict";t.r(n);var i=t(318),o=t.n(i);for(var r in i)"default"!==r&&function(e){t.d(n,e,(function(){return i[e]}))}(r);n["default"]=o.a},318:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={name:"NeedsSelect",props:{selected:{type:Array,default:[!1,!1,!1,!1,!1,!1,!1,!1,!1]}},data:function(){return{allneeds:this.init()}},methods:{init:function(){for(var e=[],n=this.$Define.UserNeeds,t=0;t<n.length;t++){var i={name:n[t],key:(new Date).getTime()};e.push(i)}return e},isSelected:function(e){return!(e<0||e>=this.selected.length)&&this.selected[e]},onClickOneItem:function(e){var n=this.selected[e];this.selected[e]=!n,this.allneeds[e].key=(new Date).getTime()},onClickButtonOk:function(){var e=this.$Define.FireKeys.NeedsSelectedCallback;this.$fire.fire(e,{status:!0,selected:this.selected})},onClickButtonCancel:function(){var e=this.$Define.FireKeys.NeedsSelectedCallback;this.$fire.fire(e,{status:!1,selected:[]})}}};n.default=i},319:function(e,n,t){},404:function(e,n,t){"use strict";var i=t(319),o=t.n(i);o.a},450:function(e,n,t){"use strict";var i;t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return i}));try{i={uLine:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-line/u-line")]).then(t.bind(null,477))},uGap:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-gap/u-gap")]).then(t.bind(null,480))},uGrid:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-grid/u-grid")]).then(t.bind(null,496))},uGridItem:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-grid-item/u-grid-item")]).then(t.bind(null,497))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.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 e=this,n=e.$createElement,t=(e._self._c,e.__map(e.allneeds,(function(n,t){var i=e.__get_orig(n),o={width:"250rpx",height:"100rpx"},r=e.isSelected(t);return{$orig:i,a0:o,m0:r}})));e.$mp.data=Object.assign({},{$root:{l0:t}})},r=[];o._withStripped=!0}}]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/NeedsSelect/NeedsSelect.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/NeedsSelect/NeedsSelect-create-component',
{
'components/NeedsSelect/NeedsSelect-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('0')['createComponent'](__webpack_require__(235))
})
},
[['components/NeedsSelect/NeedsSelect-create-component']]
]);