1 |
- {"version":3,"sources":["webpack:///./src/components/addPresentButton.vue?daf9","webpack:///src/components/addPresentButton.vue","webpack:///./src/components/addPresentButton.vue?d232","webpack:///./src/components/addPresentButton.vue?29a1","webpack:///./node_modules/vant/es/dialog/index.js","webpack:///./node_modules/vant/es/dialog/Dialog.js","webpack:///./node_modules/core-js/modules/_strict-method.js","webpack:///./src/views/me.vue?4709","webpack:///./node_modules/vant/es/row/style/index.js","webpack:///./node_modules/core-js/modules/es6.array.sort.js","webpack:///./node_modules/vant/es/col/style/index.js","webpack:///./src/components/schoolCard.vue?2b9f","webpack:///./src/components/schoolidCard.vue?e13b","webpack:///./node_modules/vant/es/col/index.js","webpack:///./src/components/addPresentButton.vue?a950","webpack:///./node_modules/vant/es/row/index.js","webpack:///./node_modules/vant/es/dialog/style/index.js","webpack:///./src/views/me.vue?777f","webpack:///./src/components/schoolidCard.vue?005e","webpack:///src/components/schoolidCard.vue","webpack:///./src/components/schoolidCard.vue?c896","webpack:///./src/components/schoolidCard.vue?0d5b","webpack:///./src/components/schoolCard.vue?77ac","webpack:///src/components/schoolCard.vue","webpack:///./src/components/schoolCard.vue?ecce","webpack:///./src/components/schoolCard.vue?d7f8","webpack:///src/views/me.vue","webpack:///./src/views/me.vue?1e40","webpack:///./src/views/me.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","src","on","click","toAddPresent","_e","can_add","staticRenderFns","addPresentButtonvue_type_script_lang_js_","name","props","type","Boolean","default","disabled","methods","toast","loading","mask","message","duration","$router","push","components_addPresentButtonvue_type_script_lang_js_","component","Object","componentNormalizer","options","__file","__webpack_exports__","instance","dialog_Dialog","create","directives","rawName","value","expression","class","b","className","title","isolated","$slots","domProps","textContent","_s","_t","has-title","innerHTML","buttons","showCancelButton","showConfirmButton","cancel","size","$event","handleAction","_v","cancelButtonText","$t","van-hairline--left","confirm","confirmButtonText","components","VanButton","es_button","mixins","popup","String","callback","Function","Array","beforeClose","overlay","closeOnClickOverlay","data","action","_this","state","onClose","$emit","dialog_initInstance","vue_runtime_esm","extend","el","document","createElement","$on","body","appendChild","$el","es_dialog_Dialog","Dialog","utils","Promise","resolve","reject","esm_extends","currentOptions","defaultOptions","lockScroll","alert","close","setDefaultOptions","resetDefaultOptions","install","use","prototype","$dialog","fails","__webpack_require__","module","exports","method","arg","call","_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_me_vue_vue_type_style_index_0_id_1d652d40_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_me_vue_vue_type_style_index_0_id_1d652d40_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","n","$export","aFunction","toObject","$sort","sort","test","P","F","undefined","comparefn","_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_schoolCard_vue_vue_type_style_index_0_id_31feaae1_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_schoolCard_vue_vue_type_style_index_0_id_31feaae1_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","_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_schoolidCard_vue_vue_type_style_index_0_id_43576ccc_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_schoolidCard_vue_vue_type_style_index_0_id_43576ccc_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","_utils_create__WEBPACK_IMPORTED_MODULE_0__","_obj","tag","span","offset","style","Number","computed","gutter","$parent","padding","paddingLeft","paddingRight","_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_addPresentButton_vue_vue_type_style_index_0_id_3b2d8fb3_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_addPresentButton_vue_vue_type_style_index_0_id_3b2d8fb3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","flex","align","justify","margin","marginLeft","marginRight","staticStyle","margin-bottom","width","logout","schoolidCardvue_type_template_id_43576ccc_scoped_true_render","border-bottom","toggleReadOnly","isReadonly","placeholder","error","personError","required","maxlength","readonly","model","$$v","personName","gender","float","margin-right","checked-color","weixinError","weixinName","dormDistrict","schoolidCardvue_type_template_id_43576ccc_scoped_true_staticRenderFns","schoolidCardvue_type_script_lang_js_","_components","defineProperty","cell_group","field","radio_group","es_radio","row","col","userDo","reviewDo","uploadNameChange","that","basic_service","get_data","response","ret","success","fail","uploadReviewChange","savePage","length","userSex","parseInt","getIdentityInfo","obj","localStorage","getItem","removeItem","userId","list","t","e","console","warn","getReviewInfo","toString","userWxAccount","created","components_schoolidCardvue_type_script_lang_js_","schoolidCard","schoolCardvue_type_template_id_31feaae1_scoped_true_render","color","statusColor","statusString","status","onRead","note","schoolPresent","max-width","schoolpic","schoolCardvue_type_template_id_31feaae1_scoped_true_staticRenderFns","schoolCardvue_type_script_lang_js_","schoolCardvue_type_script_lang_js_components","AddPhoto","addPhoto","photo","imgage","imgDo","IMGPREFIX","compressImg","fileObj","photoCompress","quality","base64Codes","formData","FormData","bl","convertBase64UrlToBlob","append","uploadImg","res","imgURL","updateInfo","image","useridentity","userSchoolCardPic","userReviewStatus","reviewerNote","reviewerNoteToUser","location","reload","userid","file","w","objDiv","ready","FileReader","readAsDataURL","onload","re","result","canvasDataURL","path","img","Image","h","height","scale","canvas","ctx","getContext","anw","createAttribute","nodeValue","anh","setAttributeNode","drawImage","base64","toDataURL","urlData","arr","split","mime","match","bstr","atob","u8arr","Uint8Array","charCodeAt","Blob","components_schoolCardvue_type_script_lang_js_","schoolCard_component","schoolCard","mevue_type_script_lang_js_","SchoolCard","SchoolidCard","AddPresentButton","addPresentButton","button_active","photoURL","dialog","then","catch","b_a","forEach","gift","mounted","getElementsByName","views_mevue_type_script_lang_js_","me_component"],"mappings":"kHAAA,IAAAA,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,oBAA+B,CAAAN,EAAA,QAAAI,EAAA,OAA0BE,YAAA,eAAAC,MAAA,CAAkCC,IAAA,6EAAkFC,GAAA,CAAKC,MAAAV,EAAAW,gBAA0BX,EAAAY,KAAAZ,EAAAa,QAAyJb,EAAAY,KAAzJR,EAAA,OAAoCE,YAAA,aAAAC,MAAA,CAAgCC,IAAA,oFAC1XM,EAAA,2BCeAC,EAAA,CACAC,KAAA,qBACAC,MAAA,CACAJ,QAAA,CACAK,KAAAC,QACAC,SAAA,GAEAC,SAAA,CACAH,KAAAC,QACAC,SAAA,IAGAE,QAAA,CACAX,aADA,WAEMY,EAAA,KAANC,QAAA,CACAC,MAAA,EACAC,QAAA,SACAC,SAAA,MAEA1B,KAAAoB,UAAApB,KAAA2B,QAAAC,KAAA,aCnC0VC,EAAA,0BCQ1VC,EAAgBC,OAAAC,EAAA,KAAAD,CACdF,EACA/B,EACAe,GACF,EACA,KACA,WACA,MAIAiB,EAAAG,QAAAC,OAAA,uBACeC,EAAA,KAAAL,iDChBfM,8DCDeC,EAAAN,OAAAO,EAAA,MAAM,CACrBxC,OAAA,WACA,IAAAC,EAAAC,KAEAC,EAAAF,EAAAG,eAEAC,EAAAJ,EAAAK,MAAAD,IAAAF,EAEA,OAAAE,EAAA,cACAG,MAAA,CACAS,KAAA,sBAEK,CAAAZ,EAAA,OACLoC,WAAA,EACAxB,KAAA,OACAyB,QAAA,SACAC,MAAA1C,EAAA0C,MACAC,WAAA,UAEAC,MAAA,CAAA5C,EAAA6C,IAAA7C,EAAA8C,YACK,C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AF,GACApB,EAAAqH,eAAA,IAEA,SArBAzT,KAAA2B,QAAAC,KAAA,UAuBAqS,QAAA,WACAvO,SAAAwO,kBAAA,cAAAzT,UChF4U0T,EAAA,ECQxUC,aAAYrS,OAAAC,EAAA,KAAAD,CACdoS,EACArU,EACAe,GACF,EACA,KACA,WACA,OAIAuT,EAASnS,QAAAC,OAAA,SACMC,EAAA,WAAAiS","file":"js/chunk-1fb320c3.10928cdb.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"button_container\"},[(_vm.can_add)?_c('img',{staticClass:\"add_button s\",attrs:{\"src\":\"http://pjczv6ygf.bkt.clouddn.com/add-present-button/add_button_active.png\"},on:{\"click\":_vm.toAddPresent}}):_vm._e(),(!_vm.can_add)?_c('img',{staticClass:\"add_button\",attrs:{\"src\":\"http://pjczv6ygf.bkt.clouddn.com/add-present-button/add_button_inactive.png\"}}):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"button_container\">\r\n <img src=\"http://pjczv6ygf.bkt.clouddn.com/add-present-button/add_button_active.png\"\r\n class=\"add_button s\"\r\n v-if=\"can_add\" @click=\"toAddPresent\"\r\n />\r\n\r\n <img src=\"http://pjczv6ygf.bkt.clouddn.com/add-present-button/add_button_inactive.png\"\r\n class=\"add_button\"\r\n v-if=\"!can_add\"\r\n />\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import {Toast} from 'vant';\r\n export default {\r\n name: \"add-present-button\",\r\n props: {\r\n can_add: {\r\n type: Boolean,\r\n default: true\r\n },\r\n disabled: {\r\n type: Boolean,\r\n default: true\r\n }\r\n },\r\n methods: {\r\n toAddPresent() {\r\n Toast.loading({\r\n mask: true,\r\n message: '加载中...',\r\n duration: 500\r\n });\r\n if (this.disabled) this.$router.push('verify');\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n .add_button {\r\n width: 50px;\r\n height: 50px;\r\n pointer-events: auto;\r\n }\r\n .button_container {\r\n position: fixed;\r\n bottom: 20px;\r\n z-index: 2;\r\n width: 100%;\r\n pointer-events: none;\r\n }\r\n\r\n .s {\r\n border-radius: 50%;\r\n background: white;\r\n box-shadow: inset -1px 1px 4px 2px #fd6740, inset 1px -1px 4px 2px #ffffff;\r\n -webkit-transition: all 1s;\r\n -moz-transition: all 1s;\r\n transition: all 1s;\r\n }\r\n\r\n .s:nth-child(n):hover {\r\n -webkit-animation: bs2 linear 1s 1s infinite, bs2-in 1s;\r\n -moz-animation: bs2 linear 1s 1s infinite, bs2-in 1s;\r\n animation: bs2 linear 1s 1s infinite, bs2-in 1s;\r\n }\r\n\r\n .s:nth-child(1) {\r\n width: 50px;\r\n height: 50px;\r\n margin-top: -10px;\r\n -webkit-animation: bs linear 2s 0.5s infinite;\r\n -moz-animation: bs linear 2s 0.5s infinite;\r\n animation: bs linear 2s 0.5s infinite;\r\n }\r\n\r\n .s:nth-child(2) {\r\n width: 65px;\r\n height: 65px;\r\n margin-top: -15px;\r\n -webkit-animation: bs linear 2s 0.7s infinite;\r\n -moz-animation: bs linear 2s 0.7s infinite;\r\n animation: bs linear 2s 0.7s infinite;\r\n }\r\n\r\n .s:nth-child(3) {\r\n width: 80px;\r\n height: 80px;\r\n margin-top: -20px;\r\n -webkit-animation: bs linear 2s 0.9s infinite;\r\n -moz-animation: bs linear 2s 0.9s infinite;\r\n animation: bs linear 2s 0.9s infinite;\r\n }\r\n\r\n .s:nth-child(4) {\r\n width: 95px;\r\n height: 95px;\r\n margin-top: -25px;\r\n -webkit-animation: bs linear 2s 1.1s infinite;\r\n -moz-animation: bs linear 2s 1.1s infinite;\r\n animation: bs linear 2s 1.1s infinite;\r\n }\r\n\r\n .s:nth-child(5) {\r\n width: 105px;\r\n height: 105px;\r\n margin-top: -30px;\r\n -webkit-animation: bs linear 2s 1.3s infinite;\r\n -moz-animation: bs linear 2s 1.3s infinite;\r\n animation: bs linear 2s 1.3s infinite;\r\n }\r\n\r\n .s:nth-child(6) {\r\n width: 120px;\r\n height: 120px;\r\n margin-top: -35px;\r\n -webkit-animation: bs linear 2s 1.5s infinite;\r\n -moz-animation: bs linear 2s 1.5s infinite;\r\n animation: bs linear 2s 1.5s infinite;\r\n }\r\n\r\n .s:nth-child(7) {\r\n width: 105px;\r\n height: 105px;\r\n margin-top: -30px;\r\n -webkit-animation: bs linear 2s 1.7s infinite;\r\n -moz-animation: bs linear 2s 1.7s infinite;\r\n animation: bs linear 2s 1.7s infinite;\r\n }\r\n\r\n .s:nth-child(8) {\r\n width: 95px;\r\n height: 95px;\r\n margin-top: -25px;\r\n -webkit-animation: bs linear 2s 1.9s infinite;\r\n -moz-animation: bs linear 2s 1.9s infinite;\r\n animation: bs linear 2s 1.9s infinite;\r\n }\r\n\r\n .s:nth-child(9) {\r\n width: 80px;\r\n height: 80px;\r\n margin-top: -20px;\r\n -webkit-animation: bs linear 2s 2.1s infinite;\r\n -moz-animation: bs linear 2s 2.1s infinite;\r\n animation: bs linear 2s 2.1s infinite;\r\n }\r\n\r\n .s:nth-child(10) {\r\n width: 65px;\r\n height: 65px;\r\n margin-top: -15px;\r\n -webkit-animation: bs linear 2s 2.3s infinite;\r\n -moz-animation: bs linear 2s 2.3s infinite;\r\n animation: bs linear 2s 2.3s infinite;\r\n }\r\n\r\n .s:nth-child(11) {\r\n width: 50px;\r\n height: 50px;\r\n margin-top: -10px;\r\n -webkit-animation: bs linear 2s 2.5s infinite;\r\n -moz-animation: bs linear 2s 2.5s infinite;\r\n animation: bs linear 2s 2.5s infinite;\r\n }\r\n\r\n @-webkit-keyframes bs {\r\n 0% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #fd6740;\r\n }\r\n\r\n 50% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 20px 0 #fdbd24;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #fffa27;\r\n }\r\n }\r\n\r\n @-moz-keyframes bs {\r\n 0% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #fd6740;\r\n }\r\n\r\n 50% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 20px 0 #fdbd24;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #fffa27;\r\n }\r\n }\r\n\r\n @-o-keyframes bs {\r\n 0% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #fd6740;\r\n }\r\n\r\n 50% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 20px 0 #fdbd24;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #fffa27;\r\n }\r\n }\r\n\r\n @keyframes bs {\r\n 0% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #fffa27;\r\n }\r\n\r\n 50% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 20px 0 #fd6740;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 0px 0 #fdbd24;\r\n }\r\n }\r\n\r\n @-webkit-keyframes bs2-in {\r\n 0% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 10px 0 #bbff33;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\r\n }\r\n\r\n @-moz-keyframes bs2-in {\r\n 0% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 10px 0 #bbff33;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\r\n }\r\n\r\n @-o-keyframes bs2-in {\r\n 0% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 10px 0 #bbff33;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\r\n }\r\n\r\n @keyframes bs2-in {\r\n 0% {\r\n box-shadow: inset -1px 1px 3px 2px #444444, inset 1px -1px 3px 2px #222222, 0 0 10px 0 #bbff33;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\r\n }\r\n\r\n @-webkit-keyframes bs2 {\r\n 0% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\r\n\r\n 50% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 10px 0 #ffbb33;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\r\n }\r\n\r\n @-moz-keyframes bs2 {\r\n 0% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\r\n\r\n 50% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 10px 0 #ffbb33;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\r\n }\r\n\r\n @-o-keyframes bs2 {\r\n 0% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\r\n\r\n 50% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 10px 0 #ffbb33;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\r\n }\r\n\r\n @keyframes bs2 {\r\n 0% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\r\n\r\n 50% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 10px 0 #ffbb33;\r\n }\r\n\r\n 100% {\r\n box-shadow: inset -1px 1px 5px 2px #444444, inset 1px -1px 5px 2px #222222, 0 0 0px 0 #ff3333;\r\n }\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!./addPresentButton.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!./addPresentButton.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./addPresentButton.vue?vue&type=template&id=3b2d8fb3&scoped=true&\"\nimport script from \"./addPresentButton.vue?vue&type=script&lang=js&\"\nexport * from \"./addPresentButton.vue?vue&type=script&lang=js&\"\nimport style0 from \"./addPresentButton.vue?vue&type=style&index=0&id=3b2d8fb3&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 \"3b2d8fb3\",\n null\n \n)\n\ncomponent.options.__file = \"addPresentButton.vue\"\nexport default component.exports","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport Vue from 'vue';\nimport VanDialog from './Dialog';\nimport { isServer } from '../utils';\nvar instance;\n\nvar initInstance = function initInstance() {\n instance = new (Vue.extend(VanDialog))({\n el: document.createElement('div')\n });\n instance.$on('input', function (value) {\n instance.value = value;\n });\n document.body.appendChild(instance.$el);\n};\n\nvar Dialog = function Dialog(options) {\n /* istanbul ignore if */\n if (isServer) {\n return Promise.resolve();\n }\n\n return new Promise(function (resolve, reject) {\n if (!instance) {\n initInstance();\n }\n\n _extends(instance, _extends({\n resolve: resolve,\n reject: reject\n }, Dialog.currentOptions, options));\n });\n};\n\nDialog.defaultOptions = {\n value: true,\n title: '',\n message: '',\n overlay: true,\n className: '',\n lockScroll: true,\n beforeClose: null,\n confirmButtonText: '',\n cancelButtonText: '',\n showConfirmButton: true,\n showCancelButton: false,\n closeOnClickOverlay: false,\n callback: function callback(action) {\n instance[action === 'confirm' ? 'resolve' : 'reject'](action);\n }\n};\nDialog.alert = Dialog;\n\nDialog.confirm = function (options) {\n return Dialog(_extends({\n showCancelButton: true\n }, options));\n};\n\nDialog.close = function () {\n if (instance) {\n instance.value = false;\n }\n};\n\nDialog.setDefaultOptions = function (options) {\n _extends(Dialog.currentOptions, options);\n};\n\nDialog.resetDefaultOptions = function () {\n Dialog.currentOptions = _extends({}, Dialog.defaultOptions);\n};\n\nDialog.install = function () {\n Vue.use(VanDialog);\n};\n\nVue.prototype.$dialog = Dialog;\nDialog.resetDefaultOptions();\nexport default Dialog;","import create from '../utils/create';\nimport VanButton from '../button';\nimport Popup from '../mixins/popup';\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('transition', {\n attrs: {\n \"name\": \"van-dialog-bounce\"\n }\n }, [_c('div', {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.value,\n expression: \"value\"\n }],\n class: [_vm.b(), _vm.className]\n }, [_vm.title ? _c('div', {\n class: _vm.b('header', {\n isolated: !_vm.message && !_vm.$slots.default\n }),\n domProps: {\n \"textContent\": _vm._s(_vm.title)\n }\n }) : _vm._e(), _vm.message || _vm.$slots.default ? _c('div', {\n class: _vm.b('content')\n }, [_vm._t(\"default\", [_vm.message ? _c('div', {\n class: _vm.b('message', {\n 'has-title': _vm.title\n }),\n domProps: {\n \"innerHTML\": _vm._s(_vm.message)\n }\n }) : _vm._e()])], 2) : _vm._e(), _c('div', {\n staticClass: \"van-hairline--top\",\n class: _vm.b('footer', {\n 'buttons': _vm.showCancelButton && _vm.showConfirmButton\n })\n }, [_c('van-button', {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.showCancelButton,\n expression: \"showCancelButton\"\n }],\n class: _vm.b('cancel'),\n attrs: {\n \"loading\": _vm.loading.cancel,\n \"size\": \"large\"\n },\n on: {\n \"click\": function click($event) {\n _vm.handleAction('cancel');\n }\n }\n }, [_vm._v(\"\\n \" + _vm._s(_vm.cancelButtonText || _vm.$t('cancel')) + \"\\n \")]), _c('van-button', {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.showConfirmButton,\n expression: \"showConfirmButton\"\n }],\n class: [_vm.b('confirm'), {\n 'van-hairline--left': _vm.showCancelButton && _vm.showConfirmButton\n }],\n attrs: {\n \"size\": \"large\",\n \"loading\": _vm.loading.confirm\n },\n on: {\n \"click\": function click($event) {\n _vm.handleAction('confirm');\n }\n }\n }, [_vm._v(\"\\n \" + _vm._s(_vm.confirmButtonText || _vm.$t('confirm')) + \"\\n \")])], 1)])]);\n },\n name: 'dialog',\n components: {\n VanButton: VanButton\n },\n mixins: [Popup],\n props: {\n title: String,\n message: String,\n callback: Function,\n className: [String, Object, Array],\n beforeClose: Function,\n confirmButtonText: String,\n cancelButtonText: String,\n showCancelButton: Boolean,\n showConfirmButton: {\n type: Boolean,\n default: true\n },\n overlay: {\n type: Boolean,\n default: true\n },\n closeOnClickOverlay: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n loading: {\n confirm: false,\n cancel: false\n }\n };\n },\n methods: {\n handleAction: function handleAction(action) {\n var _this = this;\n\n if (this.beforeClose) {\n this.loading[action] = true;\n this.beforeClose(action, function (state) {\n if (state !== false) {\n _this.onClose(action);\n }\n\n _this.loading[action] = false;\n });\n } else {\n this.onClose(action);\n }\n },\n onClose: function onClose(action) {\n this.$emit('input', false);\n this.$emit(action);\n this.callback && this.callback(action);\n }\n }\n});","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\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!./me.vue?vue&type=style&index=0&id=1d652d40&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!./me.vue?vue&type=style&index=0&id=1d652d40&scoped=true&lang=css&\"","import '../../style/base.css';\nimport '../index.css';","'use strict';\nvar $export = require('./_export');\nvar aFunction = require('./_a-function');\nvar toObject = require('./_to-object');\nvar fails = require('./_fails');\nvar $sort = [].sort;\nvar test = [1, 2, 3];\n\n$export($export.P + $export.F * (fails(function () {\n // IE8-\n test.sort(undefined);\n}) || !fails(function () {\n // V8 bug\n test.sort(null);\n // Old WebKit\n}) || !require('./_strict-method')($sort)), 'Array', {\n // 22.1.3.25 Array.prototype.sort(comparefn)\n sort: function sort(comparefn) {\n return comparefn === undefined\n ? $sort.call(toObject(this))\n : $sort.call(toObject(this), aFunction(comparefn));\n }\n});\n","import '../../style/base.css';\nimport '../index.css';","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!./schoolCard.vue?vue&type=style&index=0&id=31feaae1&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!./schoolCard.vue?vue&type=style&index=0&id=31feaae1&scoped=true&lang=css&\"","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!./schoolidCard.vue?vue&type=style&index=0&id=43576ccc&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!./schoolidCard.vue?vue&type=style&index=0&id=43576ccc&scoped=true&lang=css&\"","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(_vm.tag, {\n tag: \"component\",\n class: _vm.b((_obj = {}, _obj[_vm.span] = _vm.span, _obj[\"offset-\" + _vm.offset] = _vm.offset, _obj)),\n style: _vm.style\n }, [_vm._t(\"default\")], 2);\n\n var _obj;\n },\n name: 'col',\n props: {\n span: [Number, String],\n offset: [Number, String],\n tag: {\n type: String,\n default: 'div'\n }\n },\n computed: {\n gutter: function gutter() {\n return this.$parent && Number(this.$parent.gutter) || 0;\n },\n style: function style() {\n var padding = this.gutter / 2 + \"px\";\n return this.gutter ? {\n paddingLeft: padding,\n paddingRight: padding\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!./addPresentButton.vue?vue&type=style&index=0&id=3b2d8fb3&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!./addPresentButton.vue?vue&type=style&index=0&id=3b2d8fb3&scoped=true&lang=css&\"","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(_vm.tag, {\n tag: \"component\",\n class: _vm.b((_obj = {\n flex: _vm.flex\n }, _obj[\"align-\" + _vm.align] = _vm.flex && _vm.align, _obj[\"justify-\" + _vm.justify] = _vm.flex && _vm.justify, _obj)),\n style: _vm.style\n }, [_vm._t(\"default\")], 2);\n\n var _obj;\n },\n name: 'row',\n props: {\n type: String,\n align: String,\n justify: String,\n tag: {\n type: String,\n default: 'div'\n },\n gutter: {\n type: [Number, String],\n default: 0\n }\n },\n computed: {\n flex: function flex() {\n return this.type === 'flex';\n },\n style: function style() {\n var margin = \"-\" + Number(this.gutter) / 2 + \"px\";\n return this.gutter ? {\n marginLeft: margin,\n marginRight: margin\n } : {};\n }\n }\n});","import '../../style/base.css';\nimport '../../popup/index.css';\nimport '../index.css';","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticStyle:{\"margin-bottom\":\"20px\"}},[_c('schoolid-card'),_c('school-card')],1),_c('van-button',{staticStyle:{\"margin\":\"0 10px 90px 10px\",\"width\":\"90%\"},attrs:{\"type\":\"danger\",\"size\":\"large\"},on:{\"click\":_vm.logout}},[_vm._v(\"退出登录\\n \")]),_c('add-present-button',{attrs:{\"can_add\":false}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('van-row',{staticStyle:{\"border-bottom\":\"solid 1px #e4e4e4\"}},[_c('van-col',{attrs:{\"span\":\"14\"}},[_c('h3',[_c('strong',[_vm._v(\"个人资料\")])])]),_c('van-col',{attrs:{\"span\":\"6\"}},[_c('p',{on:{\"click\":function($event){_vm.toggleReadOnly()}}},[_vm._v(_vm._s(_vm.isReadonly ? \"编辑\" : \"保存\"))])])],1),_c('p',[_vm._v(\"昵称\")]),_c('van-cell-group',[_c('van-field',{attrs:{\"placeholder\":\"请输入昵称\",\"error\":_vm.personError,\"required\":\"\",\"maxlength\":\"10\",\"readonly\":_vm.isReadonly},on:{\"click\":function($event){_vm.personError=false}},model:{value:(_vm.personName),callback:function ($$v) {_vm.personName=$$v},expression:\"personName\"}})],1),_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\",\"disabled\":_vm.isReadonly}},[_vm._v(\"男\")]),_c('van-radio',{attrs:{\"name\":\"2\",\"checked-color\":\"#fd6740\",\"disabled\":_vm.isReadonly}},[_vm._v(\"女\")])],1),_c('p',[_vm._v(\"微信号\")]),_c('van-cell-group',[_c('van-field',{attrs:{\"placeholder\":\" \",\"error\":_vm.weixinError,\"required\":\"\",\"maxlength\":\"20\",\"readonly\":_vm.isReadonly},on:{\"click\":function($event){_vm.weixinError=false}},model:{value:(_vm.weixinName),callback:function ($$v) {_vm.weixinName=$$v},expression:\"weixinName\"}})],1),_c('p',[_vm._v(\"宿舍区\")]),_c('van-radio-group',{model:{value:(_vm.dormDistrict),callback:function ($$v) {_vm.dormDistrict=$$v},expression:\"dormDistrict\"}},[_c('van-radio',{staticStyle:{\"float\":\"left\",\"margin\":\"0 0 15px 10px\"},attrs:{\"name\":\"0\",\"checked-color\":\"#fd6740\",\"disabled\":_vm.isReadonly}},[_vm._v(\"斋区\\n \")]),_c('van-radio',{staticStyle:{\"float\":\"left\",\"margin\":\"0 10px 15px 10px\"},attrs:{\"name\":\"1\",\"checked-color\":\"#fd6740\",\"disabled\":_vm.isReadonly}},[_vm._v(\"西南\\n \")]),_c('van-radio',{staticStyle:{\"margin\":\"0 10px 15px 10px\"},attrs:{\"name\":\"2\",\"checked-color\":\"#fd6740\",\"disabled\":_vm.isReadonly}},[_vm._v(\"南区\\n \")]),_c('van-radio',{staticStyle:{\"float\":\"left\",\"margin\":\"0 0 15px 10px\"},attrs:{\"name\":\"3\",\"checked-color\":\"#fd6740\",\"disabled\":_vm.isReadonly}},[_vm._v(\"桂庙\\n \")]),_c('van-radio',{staticStyle:{\"float\":\"left\",\"margin\":\"0 10px 15px\"},attrs:{\"name\":\"4\",\"checked-color\":\"#fd6740\",\"disabled\":_vm.isReadonly}},[_vm._v(\"西丽\\n \")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"card\" >\r\n <van-row style=\"border-bottom: solid 1px #e4e4e4;\">\r\n <van-col span=\"14\">\r\n <h3><strong>个人资料</strong></h3>\r\n </van-col>\r\n <van-col span=\"6\" >\r\n <p @click=\"toggleReadOnly()\">{{isReadonly ? \"编辑\" : \"保存\"}}</p>\r\n </van-col>\r\n </van-row>\r\n <p>昵称</p>\r\n <van-cell-group>\r\n <van-field\r\n placeholder=\"请输入昵称\"\r\n v-model=\"personName\"\r\n :error=\"personError\"\r\n @click=\"personError=false\"\r\n required\r\n maxlength=\"10\"\r\n :readonly=\"isReadonly\"\r\n />\r\n </van-cell-group>\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\" :disabled=\"isReadonly\">男</van-radio>\r\n <van-radio name=\"2\" checked-color=\"#fd6740\" :disabled=\"isReadonly\">女</van-radio>\r\n </van-radio-group>\r\n <p>微信号</p>\r\n <van-cell-group>\r\n <van-field\r\n placeholder=\" \"\r\n v-model=\"weixinName\"\r\n :error=\"weixinError\"\r\n @click=\"weixinError=false\"\r\n required\r\n maxlength=\"20\"\r\n :readonly=\"isReadonly\"\r\n />\r\n </van-cell-group>\r\n <p>宿舍区</p>\r\n <van-radio-group v-model=\"dormDistrict\">\r\n <van-radio name=\"0\" checked-color=\"#fd6740\" style=\"float: left; margin: 0 0 15px 10px\"\r\n :disabled=\"isReadonly\">斋区\r\n </van-radio>\r\n <van-radio name=\"1\" checked-color=\"#fd6740\" style=\"float: left; margin: 0 10px 15px 10px\"\r\n :disabled=\"isReadonly\">西南\r\n </van-radio>\r\n <van-radio name=\"2\" checked-color=\"#fd6740\" style=\"margin: 0 10px 15px 10px\" :disabled=\"isReadonly\">南区\r\n </van-radio>\r\n <van-radio name=\"3\" checked-color=\"#fd6740\" style=\"float: left; margin: 0 0 15px 10px\"\r\n :disabled=\"isReadonly\">桂庙\r\n </van-radio>\r\n <van-radio name=\"4\" checked-color=\"#fd6740\" style=\"float: left; margin: 0 10px 15px\"\r\n :disabled=\"isReadonly\">西丽\r\n </van-radio>\r\n </van-radio-group>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import { Row, Col,\r\n CellGroup, Field,\r\n RadioGroup, Radio,\r\n Toast\r\n } from 'vant';\r\n import {BasicFunction} from \"../connector/basic-service\";\r\n\r\n export default {\r\n name: \"schoolidCard\",\r\n components: {\r\n\r\n [CellGroup.name]: CellGroup, [Field.name]: Field,\r\n [RadioGroup.name]: RadioGroup, [Radio.name]: Radio,\r\n [Row.name]: Row, [Col.name]: Col,\r\n\r\n },\r\n data() {\r\n return {\r\n gender: '0',\r\n dormDistrict: '1',\r\n personName: '',\r\n personError: false,\r\n weixinName: '',\r\n weixinError: false,\r\n isReadonly: true,\r\n userDo: {},\r\n reviewDo: {},\r\n }\r\n },\r\n methods: {\r\n uploadNameChange: function () {\r\n let that = this;\r\n BasicFunction.get_data(\"smartUsers/updateBatch\", function (response) {\r\n // console.log(\"------ Data Rcvd in uploadNameChange --------\");\r\n // console.log(response);\r\n if (response.ret === \"10000\") {\r\n that.isReadonly = true;\r\n Toast.success(\"上传成功\")\r\n } else {\r\n Toast.fail(\"上传失败,请检查网络\");\r\n }\r\n }, [this.userDo]);\r\n },\r\n uploadReviewChange: function () {\r\n let that = this;\r\n BasicFunction.get_data(\"smartIdentity/updateBatch\", function (response) {\r\n // console.log(\"------ Data Rcvd in uploadReviewChange --------\");\r\n // console.log(response);\r\n if (response.ret === \"10000\") {\r\n //history.go(0);\r\n that.isReadonly = true;\r\n Toast.success(\"上传成功\")\r\n } else {\r\n Toast.fail(\"上传失败,请检查网络\");\r\n }\r\n }, [this.reviewDo]);\r\n },\r\n toggleReadOnly: function () {\r\n if (!this.isReadonly){\r\n this.savePage()\r\n }\r\n this.isReadonly = !this.isReadonly;\r\n },\r\n savePage() {\r\n // 检验输入\r\n // var userId = localStorage.getItem(....\r\n if (this.personName.length === 0) {\r\n this.personError = true;\r\n return;\r\n } else if (this.weixinName.length < 6) {\r\n this.weixinError = true;\r\n Toast.fail('请输入正确格式的微信号');\r\n return;\r\n }\r\n // post_present()\r\n this.userDo.name = this.personName; // changed to personName instead.\r\n this.uploadNameChange();\r\n this.reviewDo.userSex = parseInt(this.gender); // TODO: 请注意 int <-> string 转换\r\n this.reviewDo.dormDistrict = parseInt(this.dormDistrict);\r\n this.uploadReviewChange();\r\n\r\n },\r\n getIdentityInfo: function (obj) {\r\n //this;\r\n if (localStorage.getItem('frontend-userid') == undefined || localStorage.getItem('frontend-userid') == null) {\r\n localStorage.removeItem('frontend-userid');\r\n this.$router.push('login');\r\n return;\r\n }\r\n let userId = localStorage.getItem(\"frontend-userid\");\r\n let that = this;\r\n BasicFunction.get_data(\"smartUsers/list?uid=\" + userId, function (response) {\r\n // console.log(\"------ Data Rcvd in getIdentityInfo --------\");\r\n // console.log(response);\r\n\r\n if (response === undefined || response.model === undefined || response.model.list === undefined || response.model.list.length === 0) {\r\n localStorage.removeItem('frontend-userid');\r\n that.$router.push('login');\r\n }\r\n try {\r\n let t = response.model.list;\r\n if (response.ret === \"10000\") {\r\n that.personName = t[0].name; // 左侧是vue页面内的变量名字, 右侧是后台数据里的变量名称\r\n that.userDo = t[0];\r\n } else Toast.fail(\"获取信息失败,请检查网络\");\r\n } catch (e) {\r\n console.warn(e);\r\n Toast.fail(\"获取信息失败,请检查网络\");\r\n }\r\n }, [{}]);\r\n },\r\n getReviewInfo:function (obj) {\r\n if (!localStorage.getItem('frontend-userid')) {\r\n this.$router.push('login');\r\n return;\r\n }\r\n let userId = localStorage.getItem(\"frontend-userid\");\r\n let that = this;\r\n BasicFunction.get_data(\"smartIdentity/list?userId=\" + userId, function (response) {\r\n // console.log(\"------ Data Rcvd in getReviewInfo --------\");\r\n // console.log(response);\r\n if (response == undefined || response.model == undefined || response.model.list == undefined || response.model.list.length == 0) {\r\n that.$router.push('login');\r\n return;\r\n }\r\n try {\r\n let t = response.model.list;\r\n if (response.ret === \"10000\" && t[0] != undefined && t[0].userSex != undefined) {\r\n that.gender = \"\" + t[0].userSex; // 左侧是vue页面内的变量名字, 右侧是后台数据里的变量名称\r\n that.dormDistrict = t[0].dormDistrict.toString(); //TODO: 请注意文本数字转换\r\n that.reviewDo = t[0];\r\n that.weixinName = t[0].userWxAccount;\r\n } else Toast.fail(\"获取失败,请检查网络\");\r\n } catch (e) {\r\n console.warn(e);\r\n Toast.fail(\"获取失败,请检查网络\");\r\n }\r\n }, [{}]);\r\n }\r\n },\r\n\r\n created: function () {\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 this.getIdentityInfo(that);\r\n this.getReviewInfo(that);\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n p, h3 {\r\n color: #fd6740;\r\n }\r\n\r\n h3 {\r\n padding: 3px;\r\n }\r\n\r\n p {\r\n padding-top: 7px;\r\n }\r\n\r\n .card {\r\n background-color: white;\r\n margin-top: 20px;\r\n margin-left: 20px;\r\n margin-right: 20px;\r\n margin-bottom: 20px;\r\n border: solid 1px #e4e4e4;\r\n padding-top: 15px;\r\n padding-left: 15px;\r\n padding-right: 15px;\r\n padding-bottom: 40px;\r\n\r\n text-align: left;\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!./schoolidCard.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!./schoolidCard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./schoolidCard.vue?vue&type=template&id=43576ccc&scoped=true&\"\nimport script from \"./schoolidCard.vue?vue&type=script&lang=js&\"\nexport * from \"./schoolidCard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./schoolidCard.vue?vue&type=style&index=0&id=43576ccc&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 \"43576ccc\",\n null\n \n)\n\ncomponent.options.__file = \"schoolidCard.vue\"\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\",staticStyle:{\"margin-bottom\":\"0\"}},[_c('van-row',{staticStyle:{\"border-bottom\":\"solid 1px #e4e4e4\"}},[_c('van-col',{attrs:{\"span\":\"14\"}},[_c('h3',[_c('strong',[_vm._v(\"校卡审核\")])])]),_c('van-col',{attrs:{\"span\":\"6\"}},[_c('p',{style:({ color: _vm.statusColor })},[_vm._v(_vm._s(_vm.statusString))])])],1),(_vm.status===30 || _vm.status === 500)?_c('div',[_c('add-photo',{on:{\"onRead\":_vm.onRead}}),_c('p',[_vm._v(_vm._s(_vm.note))]),_c('van-button',{staticStyle:{\"width\":\"100%\"},attrs:{\"type\":\"primary\",\"loading\":_vm.loading},on:{\"click\":_vm.schoolPresent}},[_vm._v(\"保存\\n \")])],1):_c('div',[_c('img',{staticStyle:{\"max-width\":\"100%\"},attrs:{\"src\":_vm.schoolpic}})])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"card\" style=\"margin-bottom: 0\">\r\n <van-row style=\"border-bottom: solid 1px #e4e4e4;\">\r\n <van-col span=\"14\">\r\n <h3><strong>校卡审核</strong></h3>\r\n </van-col>\r\n <van-col span=\"6\">\r\n <p :style=\"{ color: statusColor }\">{{statusString}}</p>\r\n </van-col>\r\n </van-row>\r\n <div v-if=\"status===30 || status === 500\">\r\n <add-photo @onRead=\"onRead\"/>\r\n <p>{{note}}</p>\r\n <van-button\r\n type=\"primary\"\r\n @click=\"schoolPresent\"\r\n style=\"width: 100%\"\r\n :loading=\"loading\"\r\n >保存\r\n </van-button>\r\n </div>\r\n <div v-else>\r\n <img :src=\"schoolpic\" style=\"max-width: 100%\"/>\r\n </div>\r\n\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import {Row, Col, Toast, Button} from 'vant';\r\n import AddPhoto from \"../components/addPhoto\";\r\n import {BasicFunction} from \"../connector/basic-service\";\r\n export default {\r\n name: \"schoolCard\",\r\n components: {\r\n AddPhoto,\r\n [Row.name]: Row, [Col.name]: Col,\r\n [Button.name]: Button\r\n },\r\n data() {\r\n return {\r\n statusColor:'',\r\n statusString:'-----',\r\n photo: null,\r\n loading:false,\r\n status:0,\r\n imgage: null,\r\n imgDo:{},\r\n schoolpic:\"\",\r\n IMGPREFIX: \"http://gift.fogice.com\",\r\n note: \"\"\r\n }\r\n },\r\n methods: {\r\n schoolPresent() {\r\n // 检验输入\r\n this.loading=true;\r\n if (this.photo === null) {\r\n Toast.fail('请上传礼物照片');\r\n this.loading=false;\r\n return;\r\n }\r\n this.compressImg();\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.uploadImg(formData);\r\n });\r\n },\r\n uploadImg(formData) {\r\n let that = this;\r\n BasicFunction.get_data(\"fileserver/upload?sign=abcdefg\", function (res) {\r\n try {\r\n if (res.ret === '10000' && res.model !== undefined && res.model.length !== 0) {\r\n let imgURL = res.model;\r\n that.updateInfo(imgURL);\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 updateInfo(image) {\r\n let that = this;\r\n let useridentity = that.imgDo;\r\n if (image != null) {\r\n useridentity.userSchoolCardPic = image;\r\n }\r\n else return;\r\n useridentity.userSchoolCardPic = image;\r\n useridentity.userReviewStatus = 100;\r\n useridentity.reviewerNote = \"等待审核\";\r\n useridentity.reviewerNoteToUser = \"等待审核\";\r\n BasicFunction.get_data(\"smartIdentity/updateBatch\", function (response) {\r\n // console.log(useridentity);\r\n // console.log(response);\r\n if (response.ret === \"10000\") {\r\n // console.log('----- User Info -----');\r\n Toast.success(\"上传成功\");\r\n that.loading = false;\r\n location.reload();\r\n } else {\r\n Toast.fail(\"上传失败,请检查网络\");\r\n that.loading = false;\r\n }\r\n }, [useridentity]);\r\n },\r\n onRead: function (e) {\r\n this.photo = e;\r\n }\r\n },\r\n created: function () {\r\n if (!localStorage.getItem('frontend-userid')) {\r\n this.$router.push('login');\r\n return;\r\n }\r\n let userid = localStorage.getItem('frontend-userid');\r\n let that = this;\r\n BasicFunction.get_data('smartIdentity/list?userId=' + userid, function (res) {\r\n // console.log('----- User Identity -----');\r\n // console.log(res);\r\n\r\n if (res === undefined || res.model === undefined || res.model.list === undefined) {\r\n Toast('读取失败,请检查网络');\r\n that.$router.push('verify');\r\n }\r\n if (res.ret === '10000') {\r\n try {\r\n let t = res.model.list;\r\n that.status = t[0].userReviewStatus;\r\n that.imgDo = t[0];\r\n that.note = t[0].reviewerNoteToUser;\r\n // console.log(that);\r\n if (res.model.list.length === 0 || that.status === 30) {\r\n that.statusColor = '#c5c5c5';\r\n that.statusString = '未上传校卡';\r\n that.$router.push('verify');\r\n } else if (that.status === 100 || that.status === 1000) {\r\n that.schoolpic = that.IMGPREFIX + t[0].userSchoolCardPic;\r\n if (that.status === 100) {\r\n that.statusColor = '#c5c530';\r\n that.statusString = '审核中'\r\n }\r\n if (that.status === 1000) {\r\n that.statusColor = '#00ff00';\r\n that.statusString = '审核通过'\r\n }\r\n } else {\r\n that.statusColor = '#ff0000';\r\n that.statusString = '审核未通过'\r\n }\r\n } catch (e) {\r\n console.warn(e);\r\n Toast.fail('获取用户信息失败');\r\n }\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\r\n</script>\r\n\r\n<style scoped>\r\n p, h3 {\r\n color: #fd6740;\r\n }\r\n\r\n p, h3 {\r\n padding: 5px;\r\n }\r\n p {\r\n padding-top: 3px ;\r\n }\r\n .card {\r\n background-color: white;\r\n margin: 0 20px;\r\n border: solid 1px #e4e4e4;\r\n padding: 15px;\r\n text-align: left;\r\n }\r\n .van-button {\r\n background-color: #fd6740;\r\n border-color: #fd6740;\r\n margin: 10px 0 10px;\r\n width: 55%;\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!./schoolCard.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!./schoolCard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./schoolCard.vue?vue&type=template&id=31feaae1&scoped=true&\"\nimport script from \"./schoolCard.vue?vue&type=script&lang=js&\"\nexport * from \"./schoolCard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./schoolCard.vue?vue&type=style&index=0&id=31feaae1&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 \"31feaae1\",\n null\n \n)\n\ncomponent.options.__file = \"schoolCard.vue\"\nexport default component.exports","<template>\r\n <div>\r\n <div style=\"margin-bottom: 20px\">\r\n <schoolid-card\r\n />\r\n <school-card\r\n />\r\n </div>\r\n <van-button type=\"danger\" @click=\"logout\" size=\"large\"\r\n style=\"margin: 0 10px 90px 10px; width: 90%\"\r\n >退出登录\r\n </van-button>\r\n <!--<add-present-button :can_add=\"button_active\"/>-->\r\n <add-present-button :can_add=\"false\"/>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import AddPresentButton from \"../components/addPresentButton\";\r\n import SchoolidCard from \"../components/schoolidCard\";\r\n import SchoolCard from \"../components/schoolCard\";\r\n import {BasicFunction} from \"../connector/basic-service\";\r\n import {Button, Toast, Dialog} from 'vant'\r\n\r\n export default {\r\n name: \"me\",\r\n components: {\r\n SchoolCard,\r\n SchoolidCard,\r\n AddPresentButton,\r\n [Button.name]: Button\r\n },\r\n data() {\r\n return {\r\n button_active: false,\r\n photoURL: ''\r\n }\r\n },\r\n methods: {\r\n logout() {\r\n Dialog.confirm({\r\n title: '退出登录吗',\r\n message: '退出登录后,请在公众号回复“1”重新获取链接登录哦'\r\n }).then(() => {\r\n Toast.loading({\r\n mask: true,\r\n message: '加载中...',\r\n duration: 1000\r\n });\r\n localStorage.removeItem('frontend-userid');\r\n this.$router.push('warning');\r\n }).catch();\r\n }\r\n },\r\n created: function () {\r\n if (!localStorage.getItem('frontend-userid')) {\r\n this.$router.push('login');\r\n return;\r\n }\r\n let b_a = true;\r\n let userid = localStorage.getItem(\"frontend-userid\");\r\n let that = this;\r\n BasicFunction.get_data(\"smartGoods/list?isDel=0&ownerId=\" + userid, function (response) {\r\n // console.log(\"------ Data Rcvd in me --------\");\r\n // console.log(response);\r\n try {\r\n let list = response.model.list;\r\n if (response.ret === \"10000\" && response.model !== undefined && response.model.list !== undefined) {\r\n list.forEach(gift => {\r\n if (gift.sort !== 4) b_a = false; // 限制上传1个礼物\r\n });\r\n that.button_active = b_a;\r\n } else that.button_active = true;\r\n } catch (e) {\r\n console.warn(e);\r\n that.button_active = true;\r\n }\r\n }, {});\r\n },\r\n mounted: function () {\r\n document.getElementsByName(\"me_icon\")[0].click(); // 保证导航栏正确\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!./me.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!./me.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me.vue?vue&type=template&id=1d652d40&scoped=true&\"\nimport script from \"./me.vue?vue&type=script&lang=js&\"\nexport * from \"./me.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me.vue?vue&type=style&index=0&id=1d652d40&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 \"1d652d40\",\n null\n \n)\n\ncomponent.options.__file = \"me.vue\"\nexport default component.exports"],"sourceRoot":""}
|