1 |
- {"version":3,"sources":["webpack:///./src/views/PresentRegister.vue?4e7a","webpack:///./node_modules/vant/es/picker/style/index.js","webpack:///./src/views/PresentRegister.vue?31d9","webpack:///./node_modules/vant/es/checkbox/index.js","webpack:///./node_modules/vant/es/checkbox-group/index.js","webpack:///src/views/PresentRegister.vue","webpack:///./src/views/PresentRegister.vue?3538","webpack:///./src/views/PresentRegister.vue?a46f","webpack:///./node_modules/vant/es/uploader/index.js","webpack:///./src/components/navBar.vue?51a5","webpack:///./node_modules/vant/es/icon/style/index.js","webpack:///./src/components/navBar.vue?b108","webpack:///./node_modules/vant/es/nav-bar/index.js","webpack:///src/components/navBar.vue","webpack:///./src/components/navBar.vue?879c","webpack:///./src/components/navBar.vue","webpack:///./node_modules/vant/es/uploader/style/index.js","webpack:///./node_modules/vant/es/utils/deep-clone.js","webpack:///./node_modules/vant/es/picker/PickerColumn.js","webpack:///./node_modules/vant/es/mixins/picker.js","webpack:///./node_modules/vant/es/picker/index.js"],"names":["_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PresentRegister_vue_vue_type_style_index_0_id_373e21e2_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PresentRegister_vue_vue_type_style_index_0_id_373e21e2_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","n","render","_vm","this","_h","$createElement","_c","_self","attrs","path","title","staticClass","_m","_v","model","value","callback","$$v","gender","expression","staticStyle","float","margin-right","name","checked-color","placeholder","error","pnError","required","maxlength","on","click","$event","presentName","type","rows","autosize","descError","desc","tag","_l","i","key","height","j","width","tags","length","_s","_e","margin-bottom","photoURL","imgUrl","onRead","loading","publishPresent","staticRenderFns","vant_es_checkbox","Object","create","class","b","shape","disabled","isDisabled","checked","toggle","_t","style","iconStyle","$slots","default","labelPosition","mixins","find_parent","props","Boolean","checkedColor","String","labelDisabled","computed","get","parent","indexOf","set","val","setParentValue","$emit","borderColor","backgroundColor","watch","created","findParent","methods","target","slice","max","push","index","splice","checkbox_group","Number","Array","PresentRegistervue_type_script_lang_js_","components","_components","AddPhoto","addPhoto","NavBar","navBar","defineProperty","uploader","icon","cell_group","field","radio_group","es_radio","picker","es_button","data","presentId","photo","giftDo","uploadNewPresent","that","imgURL","userId","localStorage","getItem","split","present","goodid","goodsNo","modelId","ownerId","toString","goodFirstKind","goodSecondKind","sellPrice","marketPrice","costPrice","upTime","getNowFormatDate","downTime","createTime","storeNums","img","isDel","content","keywords","description","searchWords","weight","point","unit","brandId","visit","favorite","sort","listImg","smallImg","specArray","exp","url","basic_service","get_data","response","ret","toast","success","$router","fail","compressImg","fileObj","photoCompress","quality","base64Codes","formData","FormData","bl","convertBase64UrlToBlob","append","updateUploadPresent","saveOrUpdateGift","undefined","res","e","console","warn","mask","message","duration","isEmojiCharacter","onReadExisting","date","Date","seperator","year","getFullYear","month","getMonth","strDate","getDate","hour","getHours","minutes","getMinutes","seconds","getSeconds","currentdate","substring","hs","charCodeAt","ls","uc","file","w","objDiv","ready","FileReader","readAsDataURL","onload","re","result","canvasDataURL","obj","Image","src","h","scale","canvas","document","createElement","ctx","getContext","anw","createAttribute","nodeValue","anh","setAttributeNode","drawImage","base64","toDataURL","urlData","arr","mime","match","bstr","atob","u8arr","Uint8Array","Blob","views_PresentRegistervue_type_script_lang_js_","component","componentNormalizer","options","__file","__webpack_exports__","_utils_create__WEBPACK_IMPORTED_MODULE_0__","_b","ref","accept","change","onChange","$attrs","inheritAttrs","beforeRead","Function","afterRead","resultType","maxSize","MAX_VALUE","event","_this","files","call","isArray","Promise","all","map","readFile","then","contents","oversize","payload","size","onAfterRead","_this2","resolve","reader","readAsText","$refs","input","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_navBar_vue_vue_type_style_index_0_id_7f9774c3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_navBar_vue_vue_type_style_index_0_id_7f9774c3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","background-color","border","slot","color","onClickLeft","es_nav_bar","fixed","van-hairline--bottom","leftArrow","leftText","domProps","textContent","rightText","zIndex","navBarvue_type_script_lang_js_","components_navBarvue_type_script_lang_js_","deepClone","item","deep_assign","DEFAULT_DURATION","PickerColumn","className","columnStyle","touchstart","onTouchStart","touchmove","preventDefault","onTouchMove","touchend","onTouchEnd","touchcancel","wrapperStyle","option","selected","currentIndex","optionStyle","innerHTML","getOptionText","setIndex","valueKey","itemHeight","defaultIndex","initialOptions","visibleItemCount","startY","offset","startOffset","$parent","children","destroyed","count","baseOffset","transition","transform","lineHeight","touches","clientY","deltaY","utils","Math","round","adjustIndex","_i","userAction","setValue","getValue","showToolbar","cancelButtonText","confirmButtonText","emit","$t","columnsStyle","simple","columns","value-key","initial-options","values","class-name","default-index","item-height","visible-item-count","frameStyle","setColumns","forEach","setColumnValues","getColumnValue","getColumnIndex","getValues","getIndexes","columnIndex","getColumn","column","setColumnValue","setColumnIndex","optionIndex","getColumnValues","JSON","stringify","child","setValues","setIndexes","indexes","_this3"],"mappings":"kHAAA,IAAAA,EAAAC,EAAA,QAAAC,EAAAD,EAAAE,EAAAH,GAA2eE,EAAG,8DCA9eD,EAAA,QAAAA,EAAA,6ECAA,MAAAG,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAAA,EAAA,WAA+BE,MAAA,CAAOC,KAAA,QAAAC,MAAA,UAA+BJ,EAAA,OAAYK,YAAA,QAAmB,CAAAT,EAAAU,GAAA,GAAAN,EAAA,KAAAJ,EAAAW,GAAA,cAAAP,EAAA,mBAA+DQ,MAAA,CAAOC,MAAAb,EAAA,OAAAc,SAAA,SAAAC,GAA4Cf,EAAAgB,OAAAD,GAAeE,WAAA,WAAsB,CAAAb,EAAA,aAAkBc,YAAA,CAAaC,MAAA,OAAAC,eAAA,QAAqCd,MAAA,CAAQe,KAAA,IAAAC,gBAAA,YAAsC,CAAAtB,EAAAW,GAAA,OAAAP,EAAA,aAAgCE,MAAA,CAAOe,KAAA,IAAAC,gBAAA,YAAsC,CAAAtB,EAAAW,GAAA,WAAAP,EAAA,KAAAJ,EAAAW,GAAA,UAAAP,EAAA,aAA6DE,MAAA,CAAOiB,YAAA,aAAAC,MAAAxB,EAAAyB,QAAAC,SAAA,GAAAC,UAAA,MAA8EC,GAAA,CAAKC,MAAA,SAAAC,GAAyB9B,EAAAyB,SAAA,IAAmBb,MAAA,CAAQC,MAAAb,EAAA,YAAAc,SAAA,SAAAC,GAAiDf,EAAA+B,YAAAhB,GAAoBE,WAAA,iBAA2Bb,EAAA,KAAAJ,EAAAW,GAAA,eAAAP,EAAA,kBAAAA,EAAA,aAAqEE,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UAAAD,GACAE,KAAArD,SAAAwD,IAGAC,gBAAA,SAAApS,GACA,OAAA/F,KAAAoV,SAAArP,IAAA,IAAwC6J,SAGxC4H,gBAAA,SAAAzR,EAAA6J,GACA,IAAAmI,EAAA/X,KAAAoV,SAAArP,GAEAgS,GAAAK,KAAAC,UAAAN,EAAAnI,WAAAwI,KAAAC,UAAAzI,KACAmI,EAAAnI,UACAmI,EAAArD,SAAA,KAIAiD,UAAA,WACA,OAAA3X,KAAAoV,SAAAhE,IAAA,SAAAkH,GACA,OAAAA,EAAAjC,cAIAkC,UAAA,SAAAvB,GACA,IAAApF,EAAA5R,KAEAgX,EAAAO,QAAA,SAAA3W,EAAAmF,GACA6L,EAAAoG,eAAAjS,EAAAnF,MAIAgX,WAAA,WACA,OAAA5X,KAAAoV,SAAAhE,IAAA,SAAAkH,GACA,OAAAA,EAAAhE,gBAIAkE,WAAA,SAAAC,GACA,IAAAC,EAAA1Y,KAEAyY,EAAAlB,QAAA,SAAAW,EAAAL,GACAa,EAAAT,eAAAJ,EAAAK","file":"js/chunk-1586d20a.edad951b.js","sourcesContent":["import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PresentRegister.vue?vue&type=style&index=0&id=373e21e2&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PresentRegister.vue?vue&type=style&index=0&id=373e21e2&scoped=true&lang=css&\"","import '../../style/base.css';\nimport '../index.css';","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('nav-bar',{attrs:{\"path\":\"index\",\"title\":\"上传礼物\"}}),_c('div',{staticClass:\"card\"},[_vm._m(0),_c('p',[_vm._v(\"希望对方的性别是\")]),_c('van-radio-group',{model:{value:(_vm.gender),callback:function ($$v) {_vm.gender=$$v},expression:\"gender\"}},[_c('van-radio',{staticStyle:{\"float\":\"left\",\"margin-right\":\"20px\"},attrs:{\"name\":\"1\",\"checked-color\":\"#fd6740\"}},[_vm._v(\"男\")]),_c('van-radio',{attrs:{\"name\":\"2\",\"checked-color\":\"#fd6740\"}},[_vm._v(\"女\")])],1),_c('p',[_vm._v(\"礼物名称\")]),_c('van-field',{attrs:{\"placeholder\":\"给你的礼物起个名字吧\",\"error\":_vm.pnError,\"required\":\"\",\"maxlength\":\"30\"},on:{\"click\":function($event){_vm.pnError=false}},model:{value:(_vm.presentName),callback:function ($$v) {_vm.presentName=$$v},expression:\"presentName\"}}),_c('p',[_vm._v(\"我的礼物丨走心介绍\")]),_c('van-cell-group',[_c('van-field',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请在此输入你的礼物介绍和礼物故事\",\"rows\":\"5\",\"autosize\":\"\",\"error\":_vm.descError,\"required\":\"\",\"maxlength\":\"300\"},on:{\"click\":function($event){_vm.descError=false}},model:{value:(_vm.desc),callback:function ($$v) {_vm.desc=$$v},expression:\"desc\"}})],1),_c('p',[_vm._v(\"礼物标签\")]),_c('van-radio-group',{model:{value:(_vm.tag),callback:function ($$v) {_vm.tag=$$v},expression:\"tag\"}},_vm._l(([0, 1 , 2, 3]),function(i){return _c('div',{key:i,staticStyle:{\"height\":\"40px\"}},_vm._l(([0, 1, 2, 3]),function(j){return _c('div',{key:j,staticStyle:{\"float\":\"left\",\"width\":\"25%\"}},[(i * 4 + j < _vm.tags.length)?_c('van-radio',{attrs:{\"name\":i * 4 + j,\"checked-color\":\"#fd6740\"}},[_vm._v(_vm._s(_vm.tags[i * 4 + j])+\"\\n \")]):_vm._e()],1)}))}))],1),_c('div',{staticClass:\"card\",staticStyle:{\"margin-bottom\":\"10px\"}},[_c('p',[_vm._v(\"上传礼物照片\")]),_c('div',{staticStyle:{\"margin-bottom\":\"10px\"}},[_c('add-photo',{attrs:{\"photoURL\":_vm.imgUrl},on:{\"onRead\":_vm.onRead}})],1)]),_c('van-button',{staticClass:\"submit_button\",attrs:{\"type\":\"primary\",\"loading\":_vm.loading},on:{\"click\":_vm.publishPresent}},[_vm._v(\"下一步\\n \")])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('h3',[_c('strong',[_vm._v(\"礼物匹配\")])])}]\n\nexport { render, staticRenderFns }","import create from '../utils/create';\nimport findParent from '../mixins/find-parent';\nexport default create({\n render: function render() {\n var _vm = this;\n\n var _h = _vm.$createElement;\n\n var _c = _vm._self._c || _h;\n\n return _c('div', {\n class: _vm.b()\n }, [_c('div', {\n class: [_vm.b('icon', [_vm.shape, {\n disabled: _vm.isDisabled,\n checked: _vm.checked\n }])],\n on: {\n \"click\": _vm.toggle\n }\n }, [_vm._t(\"icon\", [_c('icon', {\n style: _vm.iconStyle,\n attrs: {\n \"name\": \"success\"\n }\n })], {\n checked: _vm.checked\n })], 2), _vm.$slots.default ? _c('span', {\n class: _vm.b('label', _vm.labelPosition),\n on: {\n \"click\": function click($event) {\n _vm.toggle('label');\n }\n }\n }, [_vm._t(\"default\")], 2) : _vm._e()]);\n },\n name: 'checkbox',\n mixins: [findParent],\n props: {\n name: null,\n value: null,\n disabled: Boolean,\n checkedColor: String,\n labelPosition: String,\n labelDisabled: Boolean,\n shape: {\n type: String,\n default: 'round'\n }\n },\n computed: {\n checked: {\n get: function get() {\n return this.parent ? this.parent.value.indexOf(this.name) !== -1 : this.value;\n },\n set: function set(val) {\n if (this.parent) {\n this.setParentValue(val);\n } else {\n this.$emit('input', val);\n }\n }\n },\n isDisabled: function isDisabled() {\n return this.parent && this.parent.disabled || this.disabled;\n },\n iconStyle: function iconStyle() {\n var checkedColor = this.checkedColor;\n\n if (checkedColor && this.checked && !this.isDisabled) {\n return {\n borderColor: checkedColor,\n backgroundColor: checkedColor\n };\n }\n }\n },\n watch: {\n value: function value(val) {\n this.$emit('change', val);\n }\n },\n created: function created() {\n this.findParent('van-checkbox-group');\n },\n methods: {\n toggle: function toggle(target) {\n if (!this.isDisabled && !(target === 'label' && this.labelDisabled)) {\n this.checked = !this.checked;\n }\n },\n setParentValue: function setParentValue(val) {\n var parent = this.parent;\n var value = parent.value.slice();\n\n if (val) {\n if (parent.max && value.length >= parent.max) {\n return;\n }\n /* istanbul ignore else */\n\n\n if (value.indexOf(this.name) === -1) {\n value.push(this.name);\n parent.$emit('input', value);\n }\n } else {\n var index = value.indexOf(this.name);\n /* istanbul ignore else */\n\n if (index !== -1) {\n value.splice(index, 1);\n parent.$emit('input', value);\n }\n }\n }\n }\n});","import create from '../utils/create';\nexport default create({\n render: function render() {\n var _vm = this;\n\n var _h = _vm.$createElement;\n\n var _c = _vm._self._c || _h;\n\n return _c('div', {\n class: _vm.b()\n }, [_vm._t(\"default\")], 2);\n },\n name: 'checkbox-group',\n props: {\n max: Number,\n value: Array,\n disabled: Boolean\n },\n watch: {\n value: function value(val) {\n this.$emit('change', val);\n }\n }\n});","<template>\r\n <div>\r\n <nav-bar path=\"index\" title=\"上传礼物\"/>\r\n <div class='card'>\r\n <h3><strong>礼物匹配</strong></h3>\r\n <p>希望对方的性别是</p>\r\n <van-radio-group v-model=\"gender\">\r\n <van-radio name=\"1\" checked-color=\"#fd6740\" style=\"float: left; margin-right: 20px\">男</van-radio>\r\n <van-radio name=\"2\" checked-color=\"#fd6740\">女</van-radio>\r\n </van-radio-group>\r\n <p>礼物名称</p>\r\n <van-field\r\n placeholder=\"给你的礼物起个名字吧\"\r\n v-model=\"presentName\"\r\n :error=\"pnError\"\r\n @click=\"pnError=false\"\r\n required\r\n maxlength=\"30\"\r\n />\r\n <p>我的礼物丨走心介绍</p>\r\n <van-cell-group>\r\n <van-field\r\n type=\"textarea\"\r\n placeholder=\"请在此输入你的礼物介绍和礼物故事\"\r\n rows=\"5\"\r\n autosize\r\n v-model=\"desc\"\r\n :error=\"descError\"\r\n @click=\"descError=false\"\r\n required\r\n maxlength=\"300\"\r\n />\r\n </van-cell-group>\r\n\r\n <p>礼物标签</p>\r\n <van-radio-group v-model=\"tag\">\r\n <div\r\n v-for=\"i in [0, 1 , 2, 3]\"\r\n :key=\"i\"\r\n style=\"height: 40px\"\r\n >\r\n <div\r\n v-for=\"j in [0, 1, 2, 3]\"\r\n :key=\"j\"\r\n style=\"float: left; width: 25%\"\r\n >\r\n <van-radio\r\n v-if=\"i * 4 + j < tags.length\"\r\n :name=\"i * 4 + j\"\r\n checked-color=\"#fd6740\"\r\n >{{tags[i * 4 + j]}}\r\n </van-radio>\r\n </div>\r\n </div>\r\n </van-radio-group>\r\n\r\n </div>\r\n <div class=\"card\" style=\"margin-bottom: 10px\">\r\n <p>上传礼物照片</p>\r\n <div style=\"margin-bottom: 10px\">\r\n <add-photo :photoURL=\"imgUrl\" @onRead=\"onRead\"/>\r\n </div>\r\n </div>\r\n\r\n <van-button\r\n type=\"primary\"\r\n class=\"submit_button\"\r\n @click=\"publishPresent\"\r\n :loading=\"loading\"\r\n >下一步\r\n </van-button>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import {\r\n Uploader, Icon,\r\n CellGroup, Field,\r\n RadioGroup, Radio,\r\n CheckboxGroup, Checkbox,\r\n Picker,\r\n Button,\r\n Toast\r\n } from 'vant';\r\n import {BasicFunction} from \"../connector/basic-service\";\r\n import AddPhoto from \"../components/addPhoto\";\r\n import NavBar from \"../components/navBar\";\r\n export default {\r\n name: \"PresentRegister\",\r\n components: {\r\n AddPhoto,\r\n NavBar,\r\n [Uploader.name]: Uploader, [Icon.name]: Icon,\r\n [CellGroup.name]: CellGroup, [Field.name]: Field,\r\n [RadioGroup.name]: RadioGroup, [Radio.name]: Radio,\r\n [CheckboxGroup.name]: CheckboxGroup, [Checkbox.name]: Checkbox,\r\n [Picker.name]: Picker,\r\n [Button.name]: Button\r\n },\r\n data() {\r\n return {\r\n gender: '1',\r\n presentId: '',\r\n presentName: '',\r\n pnError: false,\r\n desc: '',\r\n descError: false,\r\n tags: [\r\n \"情怀\",\"复古\", \"有趣\", \"学霸\", \"实用\",\r\n \"童年\", \"吃货\", \"佛系\", \"土味\", \"活力\",\r\n \"洋气\", \"精致\", \"轻奢\", \"其它\",\r\n ],\r\n tag: 0,\r\n photo: null,\r\n loading: false,\r\n imgUrl: \"http://pjczv6ygf.bkt.clouddn.com/camera.png\",\r\n giftDo: {}\r\n }\r\n },\r\n methods: {\r\n uploadNewPresent() {\r\n let that = this;\r\n let imgURL = this.imgUrl;\r\n let tag = this.tag;\r\n let gender = this.gender;\r\n let userId = localStorage.getItem(\"frontend-userid\");\r\n imgURL = '/' + imgURL.split('/')[3] + '/' + imgURL.split('/')[4] + '/' + imgURL.split('/')[5];\r\n let present = [{\r\n goodid: this.presentId,\r\n name: this.presentName,\r\n goodsNo: \"0\", modelId: \"0\",\r\n ownerId: userId.toString(),\r\n goodFirstKind: gender,\r\n goodSecondKind: tag.toString(),\r\n sellPrice: \"0.0\", marketPrice: \"0.0\", costPrice: \"0.0\",\r\n upTime: getNowFormatDate(), downTime: getNowFormatDate(), createTime: getNowFormatDate(),\r\n storeNums: \"0\",\r\n img: imgURL,\r\n isDel: \"0\", content: \"none\", keywords: \"none\",\r\n description: that.desc,\r\n searchWords: \"\", weight: \"0.0\", point: \"0\", unit: \"0\", brandId: \"0\",\r\n visit: \"0\", favorite: \"0\", sort: \"0\", listImg: \"xx.jpg\",\r\n smallImg: \"xx.jpg\", specArray: \"{}\", exp: \"0\"\r\n }];\r\n // console.log(present);\r\n let url = \"updateBatch\";\r\n if (that.presentId === '') url = \"saveBatch\";\r\n BasicFunction.get_data(\"smartGoods/\" + url, function (response) {\r\n // console.log(\"------ Data Rcvd in PresentReg --------\");\r\n // console.log(response);\r\n if (response.ret === \"10000\") {\r\n Toast.success('上传成功!');\r\n that.$router.push('share');\r\n } else {\r\n Toast.fail(\"上传失败,请检查网络\");\r\n that.loading = false;\r\n }\r\n }, present);\r\n },\r\n compressImg: function () {\r\n let that = this;\r\n let fileObj = this.photo;\r\n photoCompress(fileObj, {\r\n quality: 0.2\r\n }, function (base64Codes) {\r\n let formData = new FormData();\r\n //console.log(\"压缩后:\" + base.length / 1024 + \" \" + base);\r\n var bl = convertBase64UrlToBlob(base64Codes);\r\n // formData.append('file', fileObj);\r\n // console.log(fileObj);\r\n formData.append(\"file\", bl); // 文件对象\r\n // console.log(bl);\r\n that.updateUploadPresent(formData);\r\n });\r\n },\r\n\r\n saveOrUpdateGift: function (present) {\r\n let that = this;\r\n let url = \"updateBatch\";\r\n if (that.presentId == undefined || that.presentId == null || that.presentId === '') url = \"saveBatch\";\r\n BasicFunction.get_data(\"smartGoods/\" + url, function (response) {\r\n // console.log(\"------ Data Rcvd in PresentReg --------\");\r\n // console.log(response);\r\n if (response.ret === \"10000\") {\r\n Toast.success('上传成功!');\r\n that.$router.push('share');\r\n } else {\r\n Toast.fail(\"上传失败,请检查网络\");\r\n that.loading = false;\r\n }\r\n }, present);\r\n }, updateUploadPresent: function (formData) {\r\n let that = this;\r\n let tag = this.tag;\r\n let gender = this.gender;\r\n let userId = localStorage.getItem(\"frontend-userid\");\r\n BasicFunction.get_data(\"fileserver/upload?sign=abcdefg\", function (res) {\r\n try {\r\n let imgURL = res.model;\r\n if (res.ret === '10000' && res.model != undefined && imgURL.length > 0) {\r\n // console.log('img:' + imgURL);\r\n let present = [{\r\n goodid: that.presentId,\r\n name: that.presentName,\r\n goodsNo: \"0\",\r\n modelId: \"0\",\r\n ownerId: userId.toString(),\r\n goodFirstKind: gender,\r\n goodSecondKind: tag.toString(),\r\n sellPrice: \"0.0\",\r\n marketPrice: \"0.0\",\r\n costPrice: \"0.0\",\r\n upTime: getNowFormatDate(),\r\n downTime: getNowFormatDate(),\r\n createTime: getNowFormatDate(),\r\n storeNums: \"0\",\r\n img: imgURL,\r\n isDel: \"0\",\r\n content: \"none\",\r\n keywords: \"none\",\r\n description: that.desc,\r\n searchWords: \"\",\r\n weight: \"0.0\",\r\n point: \"0\",\r\n unit: \"0\",\r\n brandId: \"0\",\r\n visit: \"0\",\r\n favorite: \"0\",\r\n sort: \"0\",\r\n listImg: \"xx.jpg\",\r\n smallImg: \"xx.jpg\",\r\n specArray: \"{}\",\r\n exp: \"0\"\r\n }];\r\n that.saveOrUpdateGift(present);\r\n } else {\r\n Toast.fail('上传图片失败,请检查网络');\r\n that.loading = false;\r\n }\r\n } catch (e) {\r\n console.warn(e);\r\n Toast.fail('上传图片失败,请检查网络');\r\n that.loading = false;\r\n }\r\n }, formData);\r\n },\r\n publishPresent() {\r\n Toast.loading({\r\n mask: true,\r\n message: '此过程大约需要15s,你的礼品正在拼命上传,请耐心等待...',\r\n duration: 20000\r\n });\r\n this.loading = true;\r\n // 检验输入\r\n if (isEmojiCharacter(this.presentName)) {\r\n Toast.fail('不支持表情哦');\r\n this.pnError = true;\r\n this.loading = false;\r\n return;\r\n }\r\n else if (this.presentName.length === 0) {\r\n Toast.fail('请填写礼物名称');\r\n this.pnError = true;\r\n this.loading = false;\r\n return;\r\n }\r\n else if (isEmojiCharacter(this.desc)) {\r\n Toast.fail('不支持表情哦');\r\n this.descError = true;\r\n this.loading = false;\r\n return;\r\n } else if (this.desc.length <= 15) {\r\n this.descError = true;\r\n Toast.fail('请输入至少15个字的礼物介绍');\r\n this.loading = false;\r\n return;\r\n } else if (this.photo === null) {\r\n Toast.fail('请上传礼物照片');\r\n this.loading = false;\r\n return;\r\n }\r\n // 上传礼物信息\r\n let userId = localStorage.getItem(\"frontend-userid\");\r\n // console.log('------- photo -------');\r\n // console.log(this.photo);\r\n if(userId == null || userId === undefined){\r\n this.$router.push('login');\r\n return;\r\n }\r\n\r\n let that = this;\r\n // 如果没有改变图片,直接上传\r\n if (this.imgUrl && this.imgUrl === this.photo) {\r\n that.uploadNewPresent();\r\n } else {\r\n that.compressImg();\r\n }\r\n },\r\n onRead: function (e) {\r\n this.photo = e;\r\n },\r\n onReadExisting(giftDo){\r\n let present = giftDo;\r\n // console.log('----- Present Info -----');\r\n // console.log(present);\r\n if(present.goodid == null || present.goodid == undefined){\r\n return;\r\n }\r\n this.presentId = present.goodid;\r\n this.gender = present.goodFirstKind.toString();\r\n this.presentName = present.name;\r\n this.desc = present.description;\r\n this.tag = present.goodSecondKind;\r\n this.imgUrl = 'http://gift.fogice.com' + present.img;\r\n this.photo = this.imgUrl;\r\n }\r\n },\r\n created: function () {\r\n Toast.fail('活动已结束!');\r\n this.$router.push('index');\r\n return;\r\n if (!localStorage.getItem('frontend-userid')) {\r\n this.$router.push('login');\r\n return;\r\n }\r\n let that = this;\r\n let presentId = this.$route.query.presentId;\r\n if(presentId == null || presentId == undefined){\r\n presentId = BasicFunction.utils_get_param(\"presentId\");\r\n }\r\n if(presentId == undefined || presentId == null){\r\n // do nothing\r\n that.giftDo = {};\r\n that.onReadExisting(that.giftDo);\r\n } else {\r\n let that = this;\r\n BasicFunction.get_data('smartGoods/list?goodid=' + presentId, function (res) {\r\n if (res.ret === '10000') {\r\n if (res.model === undefined || res.model == null || res.model.list == undefined || res.model.list.length <= 0) {\r\n Toast.fail('礼物查看遇到问题,请稍等一下再试吧');\r\n that.$router.push('index');\r\n return;\r\n }\r\n that.giftDo = res.model.list[0];\r\n that.onReadExisting(that.giftDo);\r\n }\r\n }, {});\r\n }\r\n }\r\n }\r\n\r\n function getNowFormatDate() {\r\n let date = new Date();\r\n let seperator = \"-\";\r\n let year = date.getFullYear();\r\n let month = date.getMonth() + 1;\r\n let strDate = date.getDate();\r\n let hour = date.getHours();\r\n let minutes = date.getMinutes();\r\n let seconds = date.getSeconds();\r\n if (month >= 1 && month <= 9) {\r\n month = \"0\" + month;\r\n }\r\n if (strDate >= 0 && strDate <= 9) {\r\n strDate = \"0\" + strDate;\r\n }\r\n if (hour >= 0 && hour <= 9) {\r\n hour = \"0\" + hour;\r\n }\r\n if (minutes >= 0 && minutes <= 9) {\r\n minutes = \"0\" + minutes;\r\n }\r\n if (seconds >= 0 && seconds <= 9) {\r\n seconds = \"0\" + seconds;\r\n }\r\n let currentdate = year + seperator + month + seperator + strDate;\r\n currentdate = currentdate + ' ' + hour + ':' + minutes + ':' + seconds;\r\n return currentdate;\r\n }\r\n\r\n // 判断是否有emoji\r\n function isEmojiCharacter(substring) {\r\n for (var i = 0; i < substring.length; i++) {\r\n var hs = substring.charCodeAt(i);\r\n if (0xd800 <= hs && hs <= 0xdbff) {\r\n if (substring.length > 1) {\r\n var ls = substring.charCodeAt(i + 1);\r\n var uc = ((hs - 0xd800) * 0x400) + (ls - 0xdc00) + 0x10000;\r\n if (0x1d000 <= uc && uc <= 0x1f77f) {\r\n return true;\r\n }\r\n }\r\n } else if (substring.length > 1) {\r\n var ls = substring.charCodeAt(i + 1);\r\n if (ls == 0x20e3) {\r\n return true;\r\n }\r\n } else {\r\n if (0x2100 <= hs && hs <= 0x27ff) {\r\n return true;\r\n } else if (0x2B05 <= hs && hs <= 0x2b07) {\r\n return true;\r\n } else if (0x2934 <= hs && hs <= 0x2935) {\r\n return true;\r\n } else if (0x3297 <= hs && hs <= 0x3299) {\r\n return true;\r\n } else if (hs == 0xa9 || hs == 0xae || hs == 0x303d || hs == 0x3030\r\n || hs == 0x2b55 || hs == 0x2b1c || hs == 0x2b1b\r\n || hs == 0x2b50) {\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n /*\r\n 三个参数\r\n file:一个是文件(类型是图片格式),\r\n w:一个是文件压缩的后宽度,宽度越小,字节越小\r\n objDiv:一个是容器或者回调函数\r\n photoCompress()\r\n */\r\n function photoCompress(file, w, objDiv) {\r\n var ready = new FileReader();\r\n /*开始读取指定的Blob对象或File对象中的内容. 当读取操作完成时,readyState属性的值会成为DONE,如果设置了onloadend事件处理程序,则调用之.同时,result属性中将包含一个data: URL格式的字符串以表示所读取文件的内容.*/\r\n ready.readAsDataURL(file);\r\n ready.onload = function () {\r\n var re = this.result;\r\n canvasDataURL(re, w, objDiv)\r\n }\r\n }\r\n\r\n function canvasDataURL(path, obj, callback) {\r\n var img = new Image();\r\n img.src = path;\r\n img.onload = function () {\r\n var that = this;\r\n // 默认按比例压缩\r\n var w = that.width,\r\n h = that.height,\r\n scale = w / h;\r\n w = obj.width || w;\r\n h = obj.height || (w / scale);\r\n var quality = 0.7; // 默认图片质量为0.7\r\n //生成canvas\r\n var canvas = document.createElement('canvas');\r\n var ctx = canvas.getContext('2d');\r\n // 创建属性节点\r\n var anw = document.createAttribute(\"width\");\r\n anw.nodeValue = w;\r\n var anh = document.createAttribute(\"height\");\r\n anh.nodeValue = h;\r\n canvas.setAttributeNode(anw);\r\n canvas.setAttributeNode(anh);\r\n ctx.drawImage(that, 0, 0, w, h);\r\n // 图像质量\r\n if (obj.quality && obj.quality <= 1 && obj.quality > 0) {\r\n quality = obj.quality;\r\n }\r\n // quality值越小,所绘制出的图像越模糊\r\n var base64 = canvas.toDataURL('image/jpeg', quality);\r\n // 回调函数返回base64的值\r\n callback(base64);\r\n }\r\n }\r\n\r\n /**\r\n * 将以base64的图片url数据转换为Blob\r\n * @param urlData\r\n * 用url方式表示的base64图片数据\r\n */\r\n function convertBase64UrlToBlob(urlData) {\r\n var arr = urlData.split(','), mime = arr[0].match(/:(.*?);/)[1],\r\n bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n);\r\n while (n--) {\r\n u8arr[n] = bstr.charCodeAt(n);\r\n }\r\n return new Blob([u8arr], {type: mime});\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n p, h3 {\r\n color: #fd6740;\r\n }\r\n h3 {\r\n padding: 5px;\r\n border-bottom: solid 1px #e4e4e4;\r\n }\r\n .card {\r\n background-color: white;\r\n margin: 20px 20px;\r\n border: solid 1px #e4e4e4;\r\n padding: 15px;\r\n text-align: left;\r\n }\r\n .submit_button {\r\n margin-bottom: 10px;\r\n margin-left: auto;\r\n margin-right: auto;\r\n background-color: #fd6740;\r\n border-color: #fd6740;\r\n width: 85%;\r\n }\r\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PresentRegister.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PresentRegister.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PresentRegister.vue?vue&type=template&id=373e21e2&scoped=true&\"\nimport script from \"./PresentRegister.vue?vue&type=script&lang=js&\"\nexport * from \"./PresentRegister.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PresentRegister.vue?vue&type=style&index=0&id=373e21e2&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"373e21e2\",\n null\n \n)\n\ncomponent.options.__file = \"PresentRegister.vue\"\nexport default component.exports","import create from '../utils/create';\nexport default create({\n render: function render() {\n var _vm = this;\n\n var _h = _vm.$createElement;\n\n var _c = _vm._self._c || _h;\n\n return _c('div', {\n class: _vm.b()\n }, [_vm._t(\"default\"), _c('input', _vm._b({\n ref: \"input\",\n class: _vm.b('input'),\n attrs: {\n \"type\": \"file\",\n \"accept\": _vm.accept,\n \"disabled\": _vm.disabled\n },\n on: {\n \"change\": _vm.onChange\n }\n }, 'input', _vm.$attrs, false))], 2);\n },\n name: 'uploader',\n inheritAttrs: false,\n props: {\n disabled: Boolean,\n beforeRead: Function,\n afterRead: Function,\n accept: {\n type: String,\n default: 'image/*'\n },\n resultType: {\n type: String,\n default: 'dataUrl'\n },\n maxSize: {\n type: Number,\n default: Number.MAX_VALUE\n }\n },\n methods: {\n onChange: function onChange(event) {\n var _this = this;\n\n var files = event.target.files;\n\n if (this.disabled || !files.length) {\n return;\n }\n\n files = files.length === 1 ? files[0] : [].slice.call(files, 0);\n\n if (!files || this.beforeRead && !this.beforeRead(files)) {\n return;\n }\n\n if (Array.isArray(files)) {\n Promise.all(files.map(this.readFile)).then(function (contents) {\n var oversize = false;\n var payload = files.map(function (file, index) {\n if (file.size > _this.maxSize) {\n oversize = true;\n }\n\n return {\n file: files[index],\n content: contents[index]\n };\n });\n\n _this.onAfterRead(payload, oversize);\n });\n } else {\n this.readFile(files).then(function (content) {\n _this.onAfterRead({\n file: files,\n content: content\n }, files.size > _this.maxSize);\n });\n }\n },\n readFile: function readFile(file) {\n var _this2 = this;\n\n return new Promise(function (resolve) {\n var reader = new FileReader();\n\n reader.onload = function (event) {\n resolve(event.target.result);\n };\n\n if (_this2.resultType === 'dataUrl') {\n reader.readAsDataURL(file);\n } else if (_this2.resultType === 'text') {\n reader.readAsText(file);\n }\n });\n },\n onAfterRead: function onAfterRead(files, oversize) {\n if (oversize) {\n this.$emit('oversize', files);\n } else {\n this.afterRead && this.afterRead(files);\n this.$refs.input && (this.$refs.input.value = '');\n }\n }\n }\n});","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./navBar.vue?vue&type=style&index=0&id=7f9774c3&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./navBar.vue?vue&type=style&index=0&id=7f9774c3&scoped=true&lang=css&\"","import '../../style/base.css';","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('van-nav-bar',{staticStyle:{\"background-color\":\"#fff6e3\"},attrs:{\"title\":_vm.title,\"border\":false}},[_vm._v(\"\\n style=\\\"max-width: 30px;\\\"\\n />\\n \"),_c('van-icon',{attrs:{\"slot\":\"left\",\"name\":\"arrow-left\",\"color\":\"black\"},on:{\"click\":_vm.onClickLeft},slot:\"left\"})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import create from '../utils/create';\nexport default create({\n render: function render() {\n var _vm = this;\n\n var _h = _vm.$createElement;\n\n var _c = _vm._self._c || _h;\n\n return _c('div', {\n class: [_vm.b({\n fixed: _vm.fixed\n }), {\n 'van-hairline--bottom': _vm.border\n }],\n style: _vm.style\n }, [_c('div', {\n class: _vm.b('left'),\n on: {\n \"click\": function click($event) {\n _vm.$emit('click-left');\n }\n }\n }, [_vm._t(\"left\", [_vm.leftArrow ? _c('icon', {\n class: _vm.b('arrow'),\n attrs: {\n \"name\": \"arrow-left\"\n }\n }) : _vm._e(), _vm.leftText ? _c('span', {\n class: _vm.b('text'),\n domProps: {\n \"textContent\": _vm._s(_vm.leftText)\n }\n }) : _vm._e()])], 2), _c('div', {\n staticClass: \"van-ellipsis\",\n class: _vm.b('title')\n }, [_vm._t(\"title\", [_vm._v(_vm._s(_vm.title))])], 2), _c('div', {\n class: _vm.b('right'),\n on: {\n \"click\": function click($event) {\n _vm.$emit('click-right');\n }\n }\n }, [_vm._t(\"right\", [_vm.rightText ? _c('span', {\n class: _vm.b('text'),\n domProps: {\n \"textContent\": _vm._s(_vm.rightText)\n }\n }) : _vm._e()])], 2)]);\n },\n name: 'nav-bar',\n props: {\n title: String,\n fixed: Boolean,\n leftText: String,\n rightText: String,\n leftArrow: Boolean,\n border: {\n type: Boolean,\n default: true\n },\n zIndex: {\n type: Number,\n default: 1\n }\n },\n computed: {\n style: function style() {\n return {\n zIndex: this.zIndex\n };\n }\n }\n});","<template>\r\n <div>\r\n <van-nav-bar\r\n :title=\"title\"\r\n style=\"background-color: #fff6e3\"\r\n :border=\"false\">\r\n style=\"max-width: 30px;\"\r\n />\r\n <van-icon name=\"arrow-left\" slot=\"left\" @click=\"onClickLeft\" color=\"black\"/>\r\n </van-nav-bar>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import {NavBar, Icon} from 'vant';\r\n\r\n export default {\r\n name: \"navBar\",\r\n components: {\r\n [NavBar.name]: NavBar,\r\n [Icon.name]: Icon\r\n },\r\n props: {\r\n path: {\r\n type: String,\r\n default: 'index'\r\n },\r\n title: {\r\n type: String,\r\n default: \"深大换换礼物交换\"\r\n }\r\n },\r\n methods: {\r\n onClickLeft: function () {\r\n this.$router.push(this.path);\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./navBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./navBar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./navBar.vue?vue&type=template&id=7f9774c3&scoped=true&\"\nimport script from \"./navBar.vue?vue&type=script&lang=js&\"\nexport * from \"./navBar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./navBar.vue?vue&type=style&index=0&id=7f9774c3&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7f9774c3\",\n null\n \n)\n\ncomponent.options.__file = \"navBar.vue\"\nexport default component.exports","import '../../style/base.css';\nimport '../index.css';","import deepAssign from './deep-assign';\nexport default function deepClone(obj) {\n if (Array.isArray(obj)) {\n return obj.map(function (item) {\n return deepClone(item);\n });\n } else if (typeof obj === 'object') {\n return deepAssign({}, obj);\n }\n\n return obj;\n}","import create from '../utils/create';\nimport deepClone from '../utils/deep-clone';\nimport { isObj, range } from '../utils';\nvar DEFAULT_DURATION = 200;\nexport default create({\n render: function render() {\n var _vm = this;\n\n var _h = _vm.$createElement;\n\n var _c = _vm._self._c || _h;\n\n return _c('div', {\n class: [_vm.b(), _vm.className],\n style: _vm.columnStyle,\n on: {\n \"touchstart\": _vm.onTouchStart,\n \"touchmove\": function touchmove($event) {\n $event.preventDefault();\n return _vm.onTouchMove($event);\n },\n \"touchend\": _vm.onTouchEnd,\n \"touchcancel\": _vm.onTouchEnd\n }\n }, [_c('ul', {\n style: _vm.wrapperStyle\n }, _vm._l(_vm.options, function (option, index) {\n return _c('li', {\n staticClass: \"van-ellipsis\",\n class: _vm.b('item', {\n disabled: _vm.isDisabled(option),\n selected: index === _vm.currentIndex\n }),\n style: _vm.optionStyle,\n domProps: {\n \"innerHTML\": _vm._s(_vm.getOptionText(option))\n },\n on: {\n \"click\": function click($event) {\n _vm.setIndex(index, true);\n }\n }\n });\n }))]);\n },\n name: 'picker-column',\n props: {\n valueKey: String,\n className: String,\n itemHeight: Number,\n defaultIndex: Number,\n initialOptions: Array,\n visibleItemCount: Number\n },\n data: function data() {\n return {\n startY: 0,\n offset: 0,\n duration: 0,\n startOffset: 0,\n options: deepClone(this.initialOptions),\n currentIndex: this.defaultIndex\n };\n },\n created: function created() {\n this.$parent.children && this.$parent.children.push(this);\n this.setIndex(this.currentIndex);\n },\n destroyed: function destroyed() {\n var children = this.$parent.children;\n children && children.splice(children.indexOf(this), 1);\n },\n watch: {\n defaultIndex: function defaultIndex() {\n this.setIndex(this.defaultIndex);\n }\n },\n computed: {\n count: function count() {\n return this.options.length;\n },\n baseOffset: function baseOffset() {\n return this.itemHeight * (this.visibleItemCount - 1) / 2;\n },\n columnStyle: function columnStyle() {\n return {\n height: this.itemHeight * this.visibleItemCount + 'px'\n };\n },\n wrapperStyle: function wrapperStyle() {\n return {\n transition: this.duration + \"ms\",\n transform: \"translate3d(0, \" + (this.offset + this.baseOffset) + \"px, 0)\",\n lineHeight: this.itemHeight + 'px'\n };\n },\n optionStyle: function optionStyle() {\n return {\n height: this.itemHeight + 'px'\n };\n }\n },\n methods: {\n onTouchStart: function onTouchStart(event) {\n this.startY = event.touches[0].clientY;\n this.startOffset = this.offset;\n this.duration = 0;\n },\n onTouchMove: function onTouchMove(event) {\n var deltaY = event.touches[0].clientY - this.startY;\n this.offset = range(this.startOffset + deltaY, -(this.count * this.itemHeight), this.itemHeight);\n },\n onTouchEnd: function onTouchEnd() {\n if (this.offset !== this.startOffset) {\n this.duration = DEFAULT_DURATION;\n var index = range(Math.round(-this.offset / this.itemHeight), 0, this.count - 1);\n this.setIndex(index, true);\n }\n },\n adjustIndex: function adjustIndex(index) {\n index = range(index, 0, this.count);\n\n for (var i = index; i < this.count; i++) {\n if (!this.isDisabled(this.options[i])) return i;\n }\n\n for (var _i = index - 1; _i >= 0; _i--) {\n if (!this.isDisabled(this.options[_i])) return _i;\n }\n },\n isDisabled: function isDisabled(option) {\n return isObj(option) && option.disabled;\n },\n getOptionText: function getOptionText(option) {\n return isObj(option) && this.valueKey in option ? option[this.valueKey] : option;\n },\n setIndex: function setIndex(index, userAction) {\n index = this.adjustIndex(index) || 0;\n this.offset = -index * this.itemHeight;\n\n if (index !== this.currentIndex) {\n this.currentIndex = index;\n userAction && this.$emit('change', index);\n }\n },\n setValue: function setValue(value) {\n var options = this.options;\n\n for (var i = 0; i < options.length; i++) {\n if (this.getOptionText(options[i]) === value) {\n return this.setIndex(i);\n }\n }\n },\n getValue: function getValue() {\n return this.options[this.currentIndex];\n }\n }\n});","/**\n * Common Picker Props\n */\nexport default {\n props: {\n title: String,\n loading: Boolean,\n showToolbar: Boolean,\n cancelButtonText: String,\n confirmButtonText: String,\n visibleItemCount: {\n type: Number,\n default: 5\n },\n itemHeight: {\n type: Number,\n default: 44\n }\n }\n};","import create from '../utils/create';\nimport PickerColumn from './PickerColumn';\nimport deepClone from '../utils/deep-clone';\nimport PickerMixin from '../mixins/picker';\nexport default create({\n render: function render() {\n var _vm = this;\n\n var _h = _vm.$createElement;\n\n var _c = _vm._self._c || _h;\n\n return _c('div', {\n class: _vm.b()\n }, [_vm.showToolbar ? _c('div', {\n staticClass: \"van-hairline--top-bottom\",\n class: _vm.b('toolbar')\n }, [_vm._t(\"default\", [_c('div', {\n class: _vm.b('cancel'),\n on: {\n \"click\": function click($event) {\n _vm.emit('cancel');\n }\n }\n }, [_vm._v(\"\\n \" + _vm._s(_vm.cancelButtonText || _vm.$t('cancel')) + \"\\n \")]), _vm.title ? _c('div', {\n staticClass: \"van-ellipsis\",\n class: _vm.b('title'),\n domProps: {\n \"textContent\": _vm._s(_vm.title)\n }\n }) : _vm._e(), _c('div', {\n class: _vm.b('confirm'),\n on: {\n \"click\": function click($event) {\n _vm.emit('confirm');\n }\n }\n }, [_vm._v(\"\\n \" + _vm._s(_vm.confirmButtonText || _vm.$t('confirm')) + \"\\n \")])])], 2) : _vm._e(), _vm.loading ? _c('div', {\n class: _vm.b('loading')\n }, [_c('loading')], 1) : _vm._e(), _c('div', {\n class: _vm.b('columns'),\n style: _vm.columnsStyle,\n on: {\n \"touchmove\": function touchmove($event) {\n $event.preventDefault();\n }\n }\n }, [_vm._l(_vm.simple ? [_vm.columns] : _vm.columns, function (item, index) {\n return _c('picker-column', {\n key: index,\n attrs: {\n \"value-key\": _vm.valueKey,\n \"initial-options\": _vm.simple ? item : item.values,\n \"class-name\": item.className,\n \"default-index\": item.defaultIndex,\n \"item-height\": _vm.itemHeight,\n \"visible-item-count\": _vm.visibleItemCount\n },\n on: {\n \"change\": function change($event) {\n _vm.onChange(index);\n }\n }\n });\n }), _c('div', {\n staticClass: \"van-hairline--top-bottom\",\n class: _vm.b('frame'),\n style: _vm.frameStyle\n })], 2)]);\n },\n name: 'picker',\n mixins: [PickerMixin],\n components: {\n PickerColumn: PickerColumn\n },\n props: {\n columns: Array,\n valueKey: {\n type: String,\n default: 'text'\n }\n },\n data: function data() {\n return {\n children: []\n };\n },\n computed: {\n frameStyle: function frameStyle() {\n return {\n height: this.itemHeight + 'px'\n };\n },\n columnsStyle: function columnsStyle() {\n return {\n height: this.itemHeight * this.visibleItemCount + 'px'\n };\n },\n simple: function simple() {\n return this.columns.length && !this.columns[0].values;\n }\n },\n watch: {\n columns: function columns() {\n this.setColumns();\n }\n },\n methods: {\n setColumns: function setColumns() {\n var _this = this;\n\n var columns = this.simple ? [{\n values: this.columns\n }] : this.columns;\n columns.forEach(function (columns, index) {\n _this.setColumnValues(index, deepClone(columns.values));\n });\n },\n emit: function emit(event) {\n if (this.simple) {\n this.$emit(event, this.getColumnValue(0), this.getColumnIndex(0));\n } else {\n this.$emit(event, this.getValues(), this.getIndexes());\n }\n },\n onChange: function onChange(columnIndex) {\n if (this.simple) {\n this.$emit('change', this, this.getColumnValue(0), this.getColumnIndex(0));\n } else {\n this.$emit('change', this, this.getValues(), columnIndex);\n }\n },\n // get column instance by index\n getColumn: function getColumn(index) {\n return this.children[index];\n },\n // get column value by index\n getColumnValue: function getColumnValue(index) {\n var column = this.getColumn(index);\n return column && column.getValue();\n },\n // set column value by index\n setColumnValue: function setColumnValue(index, value) {\n var column = this.getColumn(index);\n column && column.setValue(value);\n },\n // get column option index by column index\n getColumnIndex: function getColumnIndex(columnIndex) {\n return (this.getColumn(columnIndex) || {}).currentIndex;\n },\n // set column option index by column index\n setColumnIndex: function setColumnIndex(columnIndex, optionIndex) {\n var column = this.getColumn(columnIndex);\n column && column.setIndex(optionIndex);\n },\n // get options of column by index\n getColumnValues: function getColumnValues(index) {\n return (this.children[index] || {}).options;\n },\n // set options of column by index\n setColumnValues: function setColumnValues(index, options) {\n var column = this.children[index];\n\n if (column && JSON.stringify(column.options) !== JSON.stringify(options)) {\n column.options = options;\n column.setIndex(0);\n }\n },\n // get values of all columns\n getValues: function getValues() {\n return this.children.map(function (child) {\n return child.getValue();\n });\n },\n // set values of all columns\n setValues: function setValues(values) {\n var _this2 = this;\n\n values.forEach(function (value, index) {\n _this2.setColumnValue(index, value);\n });\n },\n // get indexes of all columns\n getIndexes: function getIndexes() {\n return this.children.map(function (child) {\n return child.currentIndex;\n });\n },\n // set indexes of all columns\n setIndexes: function setIndexes(indexes) {\n var _this3 = this;\n\n indexes.forEach(function (optionIndex, columnIndex) {\n _this3.setColumnIndex(columnIndex, optionIndex);\n });\n }\n }\n});"],"sourceRoot":""}
|