text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-edit-edit"],{"06c5":function(t,e,n){"use strict";n("a630"),n("fb6a"),n("d3b7"),n("25f0"),n("3ca3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(n("6b75"));function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(t){if("string"===typeof t)return(0,i.default)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.default)(t,e):void 0}}},"1da1":function(t,e,n){"use strict";function i(t,e,n,i,r,a,o){try{var c=t[a](o),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(i,r)}function r(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function c(t){i(o,r,a,c,s,"next",t)}function s(t){i(o,r,a,c,s,"throw",t)}c(void 0)}))}}n("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},2909:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var i=c(n("6005")),r=c(n("db90")),a=c(n("06c5")),o=c(n("3427"));function c(t){return t&&t.__esModule?t:{default:t}}function s(t){return(0,i.default)(t)||(0,r.default)(t)||(0,a.default)(t)||(0,o.default)()}},3427:function(t,e,n){"use strict";function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},3634:function(t,e,n){"use strict";var i=n("4ea4");n("99af"),n("a630"),n("d81d"),n("a434"),n("f4b3"),n("3ca3"),n("498a"),n("bf19"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("b85c"));n("96cf");var a=i(n("1da1")),o=i(n("2909")),c={data:function(){var t=this;return{name:"",age:"",category:"",jueyu_status:"0",quchong_inner:"",quchong_inner_status:"0",quchong_outer:"",quchong_outer_status:"0",cover_img:"",address:"",xingge:"",waiguan:"",category_list:[],category_idx:0,lingyang_list:[0,1,2,3,4].map((function(e){return t.$util.getLingyangLevelLabel(e)})),lingyang_idx:0,sex_idx:0,sex_list:["未知","母","公"],age_idx:0,age_list:["未知","0-3个月","3-6个月","6-12个月"].concat((0,o.default)(Array.from({length:17},(function(t,e){return e})).map((function(t){return"".concat(t+1,"-").concat(t+2,"岁")})))),imgs:[],is_edit:!1}},computed:{form:function(){var t={name:this.name,age:+this.age_idx,sex:+this.sex_idx,category:+this.category_idx,jueyu_status:+this.jueyu_status,cover_img:this.cover_img,imgs:this.imgs,address:"中兴和园",xingge:this.xingge,waiguan:this.waiguan,lingyang_level:+this.lingyang_idx,owner:this.$av.currentUser()};return this.quchong_inner&&(t.quchong_inner=this.$util.dayjs(this.quchong_inner).toDate()),this.quchong_outer&&(t.quchong_outer=this.$util.dayjs(this.quchong_outer).toDate()),t},jsonCategoryList:function(){return[{id:0,name:"其他"}].concat((0,o.default)(this.category_list.map((function(t){return t.toJSON()}))))},categoryNameList:function(){return this.jsonCategoryList.map((function(t){return t.name}))}},onLoad:function(t){console.log(t),this.is_edit=!!t.edit,this.is_edit&&(this.objectId=t.objectId),this.getCategoryList()},methods:{getCategoryList:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$av.read("Category");case 2:n=e.sent,t.category_list=n,t.is_edit&&t.getDetail(t.objectId);case 5:case"end":return e.stop()}}),e)})))()},getDetail:function(){var t=arguments,e=this;return(0,a.default)(regeneratorRuntime.mark((function n(){var i,r,a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.length>0&&void 0!==t[0]?t[0]:e.objectId,n.next=3,e.$av.read("Cat",(function(t){t.equalTo("objectId",i),t.include(["cover_img"])}));case 3:return r=n.sent,a=r[0].toJSON(),e.name=a.name,e.category_idx=a.category,e.age_idx=a.age,e.sex_idx=a.sex,e.jueyu_status=a.jueyu_status,e.lingyang_idx=a.lingyang_level,e.quchong_inner=e.$util.formatDate(a.quchong_inner),e.quchong_inner_status=a.quchong_inner?"1":"0",e.quchong_outer=e.$util.formatDate(a.quchong_outer),e.quchong_outer_status=a.quchong_outer?"1":"0",e.waiguan=a.waiguan,e.xingge=a.xingge,e.address=a.address,e.cover_img=a.cover_img,n.next=21,e.$av.read("_File",(function(t){t.containsAll("objectId",a.imgs)}));case 21:o=n.sent,e.imgs=o.map((function(t){return t.toJSON()})),console.log(e.imgs);case 24:case"end":return n.stop()}}),n)})))()},bindPickerChange:function(t,e){this[t]=e.detail.value},changeRadio:function(t,e){this[t]=e.detail.value},bindDateChange:function(t,e){this[t]=e.detail.value},clickChooseCoverImg:function(){var t=this;uni.chooseImage({count:1,sizeType:["compressed"],success:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(n){var i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$showLoading("上传中..."),i=n.tempFilePaths[0],e.prev=2,e.next=5,t.$av.upload(i);case 5:r=e.sent,console.log(r),t.cover_img=r.get("url"),e.next=14;break;case 10:e.prev=10,e.t0=e["catch"](2),console.log(e.t0),t.$showToast("上传失败");case 14:case"end":return e.stop()}}),e,null,[[2,10]])})));function n(t){return e.apply(this,arguments)}return n}(),complete:function(){uni.hideLoading()}})},clickChooseImgs:function(){var t=this;uni.chooseImage({count:4,sizeType:["compressed"],success:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(n){var i,a,o,c,s,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.$showLoading("上传中..."),i=n.tempFilePaths.length+t.imgs.length,!(i>4)){e.next=5;break}return t.$showToast("太多了"),e.abrupt("return");case 5:a=t.imgs,e.prev=6,0,o=(0,r.default)(n.tempFilePaths),e.prev=9,o.s();case 11:if((c=o.n()).done){e.next=22;break}return s=c.value,t.$showToast("上传中..."),e.next=16,t.$av.upload(s);case 16:u=e.sent,t.$showToast("上传中..."),a.push(u.get("url"));case 20:e.next=11;break;case 22:e.next=27;break;case 24:e.prev=24,e.t0=e["catch"](9),o.e(e.t0);case 27:return e.prev=27,o.f(),e.finish(27);case 30:t.imgs=a,e.next=37;break;case 33:e.prev=33,e.t1=e["catch"](6),console.log(e.t1),t.$showToast("上传失败");case 37:case"end":return e.stop()}}),e,null,[[6,33],[9,24,27,30]])})));function n(t){return e.apply(this,arguments)}return n}(),complete:function(){uni.hideLoading()}})},clickChangeImg:function(t){var e=this;uni.chooseImage({count:1,sizeType:["compressed"],success:function(){var n=(0,a.default)(regeneratorRuntime.mark((function n(i){var r,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.$showLoading("上传中..."),r=i.tempFilePaths[0],n.prev=2,n.next=5,e.$av.upload(r);case 5:a=n.sent,console.log(a),e.imgs.splice(t,1,a.get("url")),n.next=14;break;case 10:n.prev=10,n.t0=n["catch"](2),console.log(n.t0),e.$showToast("上传失败");case 14:case"end":return n.stop()}}),n,null,[[2,10]])})));function i(t){return n.apply(this,arguments)}return i}(),complete:function(){uni.hideLoading()}})},deleteImg:function(t){this.imgs.splice(t,1)},clickSubmit:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var n,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.form,i=n.name,r=n.cover_img,i.trim()&&r.trim()){e.next=4;break}return t.$showToast("内容不全"),e.abrupt("return");case 4:if(console.log(t.form),e.prev=5,!t.is_edit){e.next=11;break}return e.next=9,t.$av.update("Cat",t.objectId,t.form);case 9:e.next=13;break;case 11:return e.next=13,t.$av.create("Cat",t.form);case 13:t.$showToast("上传成功","success"),setTimeout((function(){uni.navigateBack()}),1500),e.next=21;break;case 17:e.prev=17,e.t0=e["catch"](5),console.log(e.t0),t.$showToast("上传失败");case 21:case"end":return e.stop()}}),e,null,[[5,17]])})))()}}};e.default=c},6005:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(n("6b75"));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t))return(0,i.default)(t)}},"6b75":function(t,e,n){"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"96cf":function(t,e){!function(e){"use strict";var n,i=Object.prototype,r=i.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag",u="object"===typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{l=e.regeneratorRuntime=u?t.exports:{},l.wrap=b;var d="suspendedStart",f="suspendedYield",v="executing",h="completed",g={},p={};p[o]=function(){return this};var m=Object.getPrototypeOf,_=m&&m(m(I([])));_&&_!==i&&r.call(_,o)&&(p=_);var y=k.prototype=x.prototype=Object.create(p);C.prototype=y.constructor=k,k.constructor=C,k[s]=C.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===C||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(y),t},l.awrap=function(t){return{__await:t}},j(E.prototype),E.prototype[c]=function(){return this},l.AsyncIterator=E,l.async=function(t,e,n,i){var r=new E(b(t,e,n,i));return l.isGeneratorFunction(e)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},j(y),y[s]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},l.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(i,r){return c.type="throw",c.arg=t,e.next=i,r&&(e.method="next",e.arg=n),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],c=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;P(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:I(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=n),g}}}function b(t,e,n,i){var r=e&&e.prototype instanceof x?e:x,a=Object.create(r.prototype),o=new O(i||[]);return a._invoke=L(t,n,o),a}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(i){return{type:"throw",arg:i}}}function x(){}function C(){}function k(){}function j(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){function e(n,i,a,o){var c=w(t[n],t,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"===typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,a,o)}),(function(t){e("throw",t,a,o)})):Promise.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,o)}))}o(c.arg)}var n;function i(t,i){function r(){return new Promise((function(n,r){e(t,i,n,r)}))}return n=n?n.then(r,r):r()}this._invoke=i}function L(t,e,n){var i=d;return function(r,a){if(i===v)throw new Error("Generator is already running");if(i===h){if("throw"===r)throw a;return F()}n.method=r,n.arg=a;while(1){var o=n.delegate;if(o){var c=$(o,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var s=w(t,e,n);if("normal"===s.type){if(i=n.done?h:f,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=h,n.method="throw",n.arg=s.arg)}}}function $(t,e){var i=t.iterator[e.method];if(i===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,$(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=w(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(q,this),this.reset(!0)}function I(t){if(t){var e=t[o];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function e(){while(++i<t.length)if(r.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}return{next:F}}function F(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},b85c:function(t,e,n){"use strict";n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(n("06c5"));function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=(0,i.default)(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,o=t},f:function(){try{c||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}},bbbc:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'uni-page-body[data-v-fdc65366]{background-color:#f4efe9}.container[data-v-fdc65366]{padding-bottom:%?100?%}.box[data-v-fdc65366]{background-color:#fff;padding:0 %?40?%}.cell[data-v-fdc65366]{position:relative;height:%?88?%;border-bottom:%?2?% solid #eee}.cell uni-picker[data-v-fdc65366]{margin-right:%?40?%}uni-input[data-v-fdc65366]{text-align:right;border:0;font-size:%?32?%;font-family:PingFang SC;font-weight:400;color:#949494}.right-arrow[data-v-fdc65366]{position:absolute;top:50%;right:%?20?%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:%?18?%}.title[data-v-fdc65366]{font-size:%?32?%;font-family:PingFang SC;font-weight:400;color:#949494}uni-textarea[data-v-fdc65366]{width:100%;min-height:%?164?%;border:%?2?% solid #f4efe9;margin-bottom:%?40?%}.cover-img-box[data-v-fdc65366]{position:relative;height:%?400?%;border:%?2?% solid #f4efe9}.cover-img-box[data-v-fdc65366]:after{content:"+";font-size:%?280?%;font-weight:100}.cover-img-box uni-image[data-v-fdc65366]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.imgs-box[data-v-fdc65366]{position:relative}.add-icon[data-v-fdc65366]{border:%?2?% dashed #f4efe9}.add-icon[data-v-fdc65366],\n.imgs-box uni-image[data-v-fdc65366]{position:relative;width:%?210?%;height:%?210?%}.add-icon[data-v-fdc65366]:after{content:"+";font-size:%?100?%;font-weight:100}.img-box[data-v-fdc65366]{position:relative}.delete[data-v-fdc65366]{position:absolute;top:0;right:0;padding:%?20?%;font-size:%?28?%;font-weight:800;color:#fff}.button[data-v-fdc65366]{width:%?300?%;height:%?100?%;margin:%?40?% auto;border-radius:%?24?%}body.?%PAGE?%[data-v-fdc65366]{background-color:#f4efe9}',""]),t.exports=e},c25c:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("v-uni-view",{staticClass:"box"},[n("v-uni-view",{staticClass:"flex jcsb aic cell"},[n("v-uni-view",{staticClass:"title"},[t._v("花名")]),n("v-uni-input",{attrs:{type:"text",placeholder:"输入猫昵称"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),n("v-uni-view",{staticClass:"flex jcsb aic cell"},[n("v-uni-view",{staticClass:"title"},[t._v("品种")]),n("v-uni-picker",{attrs:{value:t.category_idx,range:t.categoryNameList},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange("category_idx",e)}}},[n("v-uni-view",{staticClass:"uni-input"},[t._v(t._s(t.jsonCategoryList[t.category_idx]&&t.jsonCategoryList[t.category_idx].name))])],1),n("v-uni-image",{staticClass:"right-arrow",attrs:{src:"/static/img/right_arrow.png",mode:"widthFix"}})],1),n("v-uni-view",{staticClass:"flex jcsb aic cell"},[n("v-uni-view",{staticClass:"title"},[t._v("猫龄")]),n("v-uni-picker",{attrs:{value:t.age_idx,range:t.age_list},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange("age_idx",e)}}},[n("v-uni-view",{staticClass:"uni-input"},[t._v(t._s(t.age_list[t.age_idx]))])],1),n("v-uni-image",{staticClass:"right-arrow",attrs:{src:"/static/img/right_arrow.png",mode:"widthFix"}})],1),n("v-uni-view",{staticClass:"flex jcsb aic cell"},[n("v-uni-view",{staticClass:"title"},[t._v("性别")]),n("v-uni-picker",{attrs:{value:t.sex_idx,range:t.sex_list},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange("sex_idx",e)}}},[n("v-uni-view",{staticClass:"uni-input"},[t._v(t._s(t.sex_list[t.sex_idx]))])],1),n("v-uni-image",{staticClass:"right-arrow",attrs:{src:"/static/img/right_arrow.png",mode:"widthFix"}})],1),n("v-uni-view",{staticClass:"flex jcsb aic cell"},[n("v-uni-view",{staticClass:"title"},[t._v("适合领养度")]),n("v-uni-picker",{attrs:{value:t.lingyang_idx,range:t.lingyang_list},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange("lingyang_idx",e)}}},[n("v-uni-view",{staticClass:"uni-input"},[t._v(t._s(t.lingyang_list[t.lingyang_idx]))])],1),n("v-uni-image",{staticClass:"right-arrow",attrs:{src:"/static/img/right_arrow.png",mode:"widthFix"}})],1),n("v-uni-view",{staticClass:"flex jcsb aic cell"},[n("v-uni-view",{staticClass:"title"},[t._v("是否绝育")]),n("v-uni-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeRadio("jueyu_status",e)}}},[n("v-uni-label",{staticClass:"radio"},[n("v-uni-radio",{attrs:{color:"#394F3E",value:"0",checked:"0"===t.jueyu_status}},[t._v("未绝育")])],1),n("v-uni-label",{staticClass:"radio ml-20"},[n("v-uni-radio",{attrs:{color:"#394F3E",value:"1",checked:"1"===t.jueyu_status}},[t._v("已绝育")])],1)],1)],1),n("v-uni-view",{staticClass:"flex jcsb aic cell"},[n("v-uni-view",{staticClass:"title"},[t._v("体内驱虫")]),n("v-uni-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeRadio("quchong_inner_status",e)}}},[n("v-uni-label",{staticClass:"radio"},[n("v-uni-radio",{attrs:{color:"#394F3E",value:"0",checked:"0"===t.quchong_inner_status}},[t._v("未驱虫")])],1),n("v-uni-label",{staticClass:"radio ml-20"},[n("v-uni-radio",{attrs:{color:"#394F3E",value:"1",checked:"1"===t.quchong_inner_status}},[t._v("已驱虫")])],1)],1),"1"===t.quchong_inner_status?n("v-uni-picker",{attrs:{mode:"date",value:t.quchong_inner},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindDateChange("quchong_inner",e)}}},[n("v-uni-view",{staticClass:"uni-input"},[t._v(t._s(t.quchong_inner||"最后驱虫日期"))])],1):t._e()],1),n("v-uni-view",{staticClass:"flex jcsb aic cell"},[n("v-uni-view",{staticClass:"title"},[t._v("体外驱虫")]),n("v-uni-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeRadio("quchong_outer_status",e)}}},[n("v-uni-label",{staticClass:"radio"},[n("v-uni-radio",{attrs:{color:"#394F3E",value:"0",checked:"0"===t.quchong_outer_status}},[t._v("未驱虫")])],1),n("v-uni-label",{staticClass:"radio ml-20"},[n("v-uni-radio",{attrs:{color:"#394F3E",value:"1",checked:"1"===t.quchong_outer_status}},[t._v("已驱虫")])],1)],1),"1"===t.quchong_outer_status?n("v-uni-picker",{attrs:{mode:"date",value:t.quchong_outer},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindDateChange("quchong_outer",e)}}},[n("v-uni-view",{staticClass:"uni-input"},[t._v(t._s(t.quchong_outer||"最后驱虫日期"))])],1):t._e()],1),n("v-uni-view",{staticClass:"card-box"},[n("v-uni-view",{staticClass:"title mt-40"},[t._v("外观描述")]),n("v-uni-textarea",{staticClass:"mt-20",attrs:{"auto-height":!0,maxlength:-1,placeholder:"描述外观"},model:{value:t.waiguan,callback:function(e){t.waiguan=e},expression:"waiguan"}})],1),n("v-uni-view",{staticClass:"card-box"},[n("v-uni-view",{staticClass:"title mt-40"},[t._v("性格描述")]),n("v-uni-textarea",{staticClass:"mt-20",attrs:{"auto-height":!0,maxlength:-1,placeholder:"描述猫咪大致性格"},model:{value:t.xingge,callback:function(e){t.xingge=e},expression:"xingge"}})],1),n("v-uni-view",{staticClass:"card-box mt-40 pb-20"},[n("v-uni-view",{staticClass:"title"},[t._v("常见活动范围描述")]),n("v-uni-textarea",{staticClass:"mt-20",attrs:{"auto-height":!0,maxlength:-1,placeholder:"活动范围"},model:{value:t.address,callback:function(e){t.address=e},expression:"address"}})],1)],1),n("v-uni-view",{staticClass:"box mt-20"},[n("v-uni-view",{staticClass:"card-box pt-40"},[n("v-uni-view",{staticClass:"title"},[t._v("上传猫封面(要能看到清晰猫脸的全身照)")]),n("v-uni-view",{staticClass:"flex jcc aic cover-img-box mt-20",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickChooseCoverImg.apply(void 0,arguments)}}},[n("v-uni-image",{attrs:{src:t.cover_img.url,mode:"aspectFill"}})],1)],1),n("v-uni-view",{staticClass:"card-box pb-20"},[n("v-uni-view",{staticClass:"title mt-40"},[t._v("上传猫照片(细节照,最多4张)")]),n("v-uni-view",{staticClass:"flex flex-wrap imgs-box mt-20"},[n("v-uni-view",{staticClass:"flex jcc aic add-icon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickChooseImgs.apply(void 0,arguments)}}}),t._l(t.imgs,(function(e,i){return n("v-uni-view",{key:i,staticClass:"img-box"},[n("v-uni-image",{staticClass:"ml-20",attrs:{src:e.url,mode:"aspectFill"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickChangeImg(i)}}}),n("v-uni-text",{staticClass:"delete",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.deleteImg(i)}}},[t._v("x")])],1)}))],2)],1)],1),n("v-uni-view",{staticClass:"button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickSubmit.apply(void 0,arguments)}}},[t._v("确认上传")])],1)},a=[]},c892:function(t,e,n){var i=n("bbbc");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("2ecd0624",i,!0,{sourceMap:!1,shadowMode:!1})},cf01:function(t,e,n){"use strict";n.r(e);var i=n("c25c"),r=n("d34b");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("f3bf");var o,c=n("f0c5"),s=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,"fdc65366",null,!1,i["a"],o);e["default"]=s.exports},d34b:function(t,e,n){"use strict";n.r(e);var i=n("3634"),r=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},db90:function(t,e,n){"use strict";function i(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},f3bf:function(t,e,n){"use strict";var i=n("c892"),r=n.n(i);r.a}}]);