1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-profile-suqiu"],{"0ae0":function(t,a,e){var i=e("e217");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("2044c9d6",i,!0,{sourceMap:!1,shadowMode:!1})},"1e8e":function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("a9e3"),e("e9c4"),e("14d9");var i={data:function(){return{value:[],array:[],index:0,AllAddress:[]}},props:{level:{type:Number,default:3}},created:function(){console.log("请求地址"),this.getAllAddress()},methods:{getAllAddress:function(){var t=this;uni.showLoading({title:"加载中"}),uni.$u.http.post("/api/Publics/area").then((function(a){uni.hideLoading(),t.AllAddress=a.data,t.init()})).catch((function(t){uni.hideLoading()}))},init:function(){this.array=new Array(this.level);for(var t=0;t<this.array.length;t++)0==t?this.array[t]=this.AllAddress:(this.array[t]=[],null!=this.array[t-1][0].children&&(this.array[t]=this.array[t-1][0].children));this.$forceUpdate()},columnchange:function(t){for(var a=JSON.parse(JSON.stringify(t.detail.column+1)),e=t.detail.value,i=a;i<this.array.length;i++)this.array[i]=[],console.log("this.array[i] ",i),0===t.detail.column&&2===i?null!=this.array[i-1][0].children&&(this.array[i]=this.array[i-1][0].children):null!=this.array[i-1][e].children&&(this.array[i]=this.array[i-1][e].children);this.$forceUpdate()},pickerChange:function(t){for(var a=[],e=0;e<this.array.length;e++)a.push({name:this.array[e][t.target.value[e]].name,id:this.array[e][t.target.value[e]].id});this.$emit("change",{data:a})}}};a.default=i},2168:function(t,a,e){"use strict";var i=e("0ae0"),n=e.n(i);n.a},2909:function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t){return(0,i.default)(t)||(0,n.default)(t)||(0,o.default)(t)||(0,r.default)()};var i=d(e("6005")),n=d(e("db90")),o=d(e("06c5")),r=d(e("3427"));function d(t){return t&&t.__esModule?t:{default:t}}},3427:function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e("d9e2"),e("d401")},"3d05":function(t,a,e){"use strict";e.r(a);var i=e("544c"),n=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},"3ddb":function(t,a,e){"use strict";e.r(a);var i=e("56e3"),n=e("3d05");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("2168");var r=e("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"4b842b1a",null,!1,i["a"],void 0);a["default"]=d.exports},"544c":function(t,a,e){"use strict";e("7a82");var i=e("4ea4").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=i(e("2909"));e("14d9"),e("d3b7"),e("ddb0"),e("a434"),e("159b");var o=i(e("c2f2")),r={components:{AddressPicker:o.default},onLoad:function(){this.getInfo();for(var t=this.columns[0],a=this.columns[1],e=1;e<66;e++)t[t.length-1]<65&&(t.push(t[0]+e),a.push(a[0]+e));for(var i=150;i<200;i++)this.heightcolumns[0].push(i+"cm"),this.heightcolumns[1].push(i+"cm")},computed:{getheight:function(){return console.log(this.info),this.info.height_min?this.info.height_min+"-"+this.info.height_max:"请选择身高"}},data:function(){return{heightcolumns:[["不限"],["不限"]],showheight:!1,incomeIndex:"",showage:!1,info:{},showEducation:!1,showIncome:!1,incomecolumns:[["3000-6000","6000-10000","1万以上","不限"]],educationcolumns:[["高中","大专","本科","硕士","博士","不限"]],columns:[[18],[18]]}},methods:{heightconfirm:function(t){this.$set(this.info,"height_min",t.value[0]),this.$set(this.info,"height_max",t.value[1]),this.showheight=!1},storage:function(){var t=this,a={age_min:this.info.age_min,age_max:this.info.age_max,height_min:this.info.height_min,height_max:this.info.height_max,weight:this.info.weight,income:this.incomeIndex,province_id:this.info.province_id,city_id:this.info.city_id,area_id:this.info.area_id,education:this.info.education};uni.$u.http.post("/api/user/appeals",a).then((function(a){1==a.code&&t.$u.toast(a.msg)}))},confirm:function(t){this.info.age_min=t.value[0],this.info.age_max=t.value[1],this.showage=!1},changeHandler:function(t){var a=t.columnIndex,e=(t.value,t.values,t.index),i=t.picker;void 0===i&&this.$refs.uPicker;0===a&&(this.columns[1]=(0,n.default)(this.columns[0]),this.columns[1].splice(0,e),this.$set(this.columns,1,this.columns[1]))},change:function(t){var a=this;this.info.province_id=t.data[0].id,this.info.city_id=t.data[1].id,this.info.area_id=t.data[2].id,this.info.address="",t.data.forEach((function(t,e){a.info.address+=0===e?t.name:"-"+t.name}));this.info.address.split("-")},confirmEducation:function(t){this.info.education=t.value[0],this.showEducation=!1},confirmIncome:function(t){console.log(121,t),this.info.income=t.value[0],this.incomeIndex=t.indexs[0]+1,this.showIncome=!1},getInfo:function(){var t=this;uni.$u.http.post("/api/user/show_appeals").then((function(a){1==a.code&&(t.info=a.data,t.info.income&&("3000"==t.info.income[0]&&(t.info.income="3000-6000",t.incomeIndex=1),"6000"==t.info.income[0]&&(t.info.income="6000-10000",t.incomeIndex=2),"10000"==t.info.income[0]&&(t.info.income="1万以上",t.incomeIndex=3),"不限"==t.info.income[0]&&(t.info.income="不限",t.incomeIndex=4)))}))}}};a.default=r},"56e3":function(t,a,e){"use strict";e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){return i}));var i={uIcon:e("47f2").default,uPicker:e("7be4").default},n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",[e("v-uni-view",{staticClass:"title"},[t._v("基本条件")]),e("v-uni-view",{staticClass:"item-box u-flex u-col-center u-row-between"},[e("v-uni-text",{staticClass:"text1",staticStyle:{flex:"1"}},[t._v("年龄")]),e("v-uni-view",{staticClass:" u-flex",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.showage=!0}}},[t._v(t._s(t.info.age_min?t.info.age_min+"-":"请选择年龄")+t._s(t.info.age_max?t.info.age_max:"")),e("u-icon",{attrs:{name:"arrow-right"}})],1)],1),e("v-uni-view",{staticClass:"item-box u-flex u-col-center u-row-between",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.showheight=!0}}},[e("v-uni-text",{staticClass:"text1",staticStyle:{flex:"1"}},[t._v("身高")]),e("v-uni-view",{staticClass:" u-flex"},[e("v-uni-input",{staticStyle:{"text-align":"right"},attrs:{type:"text",disabled:!0,placeholder:""},model:{value:t.getheight,callback:function(a){t.getheight=a},expression:"getheight"}}),e("u-icon",{attrs:{name:"arrow-right"}})],1)],1),e("v-uni-view",{staticClass:"item-box u-flex u-col-center u-row-between",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.showEducation=!0}}},[e("v-uni-text",{staticClass:"text1",staticStyle:{flex:"1"}},[t._v("学历")]),e("v-uni-view",{staticClass:" u-flex"},[e("v-uni-text",{staticClass:"text_50"},[t._v(t._s(t.info.education))]),e("u-icon",{attrs:{name:"arrow-right"}})],1)],1),e("v-uni-view",{staticClass:"item-box u-flex u-col-center u-row-between",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.showIncome=!0}}},[e("v-uni-text",{staticClass:"text1",staticStyle:{flex:"1"}},[t._v("月收入")]),e("v-uni-view",{staticClass:" u-flex"},[e("v-uni-text",{staticClass:"text_50"},[t._v(t._s(t.info.income))]),e("u-icon",{attrs:{name:"arrow-right"}})],1)],1),e("v-uni-view",{staticClass:"item-box u-flex u-col-center u-row-between"},[e("v-uni-text",{staticClass:"text1",staticStyle:{flex:"1"}},[t._v("工作地区")]),e("v-uni-view",{staticClass:" u-flex"},[e("AddressPicker",{attrs:{level:3},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.change.apply(void 0,arguments)}}},[t._v(t._s(t.info.address))]),e("u-icon",{attrs:{name:"arrow-right"}})],1)],1),e("v-uni-view",{staticClass:"publish",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.storage.apply(void 0,arguments)}}},[t._v("保存")]),e("u-picker",{ref:"uPicker",attrs:{show:t.showIncome,immediateChange:!0,title:"收入",columns:t.incomecolumns},on:{cancel:function(a){arguments[0]=a=t.$handleEvent(a),t.showIncome=!1},confirm:function(a){arguments[0]=a=t.$handleEvent(a),t.confirmIncome.apply(void 0,arguments)}}}),e("u-picker",{ref:"uPicker",attrs:{show:t.showEducation,immediateChange:!0,title:"学历",columns:t.educationcolumns},on:{cancel:function(a){arguments[0]=a=t.$handleEvent(a),t.showEducation=!1},confirm:function(a){arguments[0]=a=t.$handleEvent(a),t.confirmEducation.apply(void 0,arguments)}}}),e("u-picker",{ref:"uPicker",attrs:{show:t.showage,immediateChange:!0,title:"年龄",columns:t.columns},on:{cancel:function(a){arguments[0]=a=t.$handleEvent(a),t.showage=!1},confirm:function(a){arguments[0]=a=t.$handleEvent(a),t.confirm.apply(void 0,arguments)},change:function(a){arguments[0]=a=t.$handleEvent(a),t.changeHandler.apply(void 0,arguments)}}}),e("u-picker",{ref:"uPicker",attrs:{immediateChange:!0,show:t.showheight,title:"身高",columns:t.heightcolumns},on:{cancel:function(a){arguments[0]=a=t.$handleEvent(a),t.showheight=!1},confirm:function(a){arguments[0]=a=t.$handleEvent(a),t.heightconfirm.apply(void 0,arguments)}}})],1)},o=[]},6005:function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t){if(Array.isArray(t))return(0,i.default)(t)};var i=function(t){return t&&t.__esModule?t:{default:t}}(e("6b75"))},"9e6b":function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-picker",{attrs:{range:t.array,"range-key":"name",value:t.value,mode:"multiSelector"},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.pickerChange.apply(void 0,arguments)},columnchange:function(a){arguments[0]=a=t.$handleEvent(a),t.columnchange.apply(void 0,arguments)}}},[t._t("default")],2)},n=[]},ad8a:function(t,a,e){"use strict";e.r(a);var i=e("1e8e"),n=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},c2f2:function(t,a,e){"use strict";e.r(a);var i=e("9e6b"),n=e("ad8a");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);var r=e("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"149fcabd",null,!1,i["a"],void 0);a["default"]=d.exports},e217:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */.u-line-1[data-v-4b842b1a]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2[data-v-4b842b1a]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3[data-v-4b842b1a]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4[data-v-4b842b1a]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5[data-v-4b842b1a]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border[data-v-4b842b1a]{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top[data-v-4b842b1a]{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left[data-v-4b842b1a]{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right[data-v-4b842b1a]{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom[data-v-4b842b1a]{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom[data-v-4b842b1a]{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button[data-v-4b842b1a]{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button[data-v-4b842b1a]::after{border:none}.u-hover-class[data-v-4b842b1a]{opacity:.7}.u-primary-light[data-v-4b842b1a]{color:#ecf5ff}.u-warning-light[data-v-4b842b1a]{color:#fdf6ec}.u-success-light[data-v-4b842b1a]{color:#f5fff0}.u-error-light[data-v-4b842b1a]{color:#fef0f0}.u-info-light[data-v-4b842b1a]{color:#f4f4f5}.u-primary-light-bg[data-v-4b842b1a]{background-color:#ecf5ff}.u-warning-light-bg[data-v-4b842b1a]{background-color:#fdf6ec}.u-success-light-bg[data-v-4b842b1a]{background-color:#f5fff0}.u-error-light-bg[data-v-4b842b1a]{background-color:#fef0f0}.u-info-light-bg[data-v-4b842b1a]{background-color:#f4f4f5}.u-primary-dark[data-v-4b842b1a]{color:#398ade}.u-warning-dark[data-v-4b842b1a]{color:#f1a532}.u-success-dark[data-v-4b842b1a]{color:#53c21d}.u-error-dark[data-v-4b842b1a]{color:#e45656}.u-info-dark[data-v-4b842b1a]{color:#767a82}.u-primary-dark-bg[data-v-4b842b1a]{background-color:#398ade}.u-warning-dark-bg[data-v-4b842b1a]{background-color:#f1a532}.u-success-dark-bg[data-v-4b842b1a]{background-color:#53c21d}.u-error-dark-bg[data-v-4b842b1a]{background-color:#e45656}.u-info-dark-bg[data-v-4b842b1a]{background-color:#767a82}.u-primary-disabled[data-v-4b842b1a]{color:#9acafc}.u-warning-disabled[data-v-4b842b1a]{color:#f9d39b}.u-success-disabled[data-v-4b842b1a]{color:#a9e08f}.u-error-disabled[data-v-4b842b1a]{color:#f7b2b2}.u-info-disabled[data-v-4b842b1a]{color:#c4c6c9}.u-primary[data-v-4b842b1a]{color:#3c9cff}.u-warning[data-v-4b842b1a]{color:#f9ae3d}.u-success[data-v-4b842b1a]{color:#5ac725}.u-error[data-v-4b842b1a]{color:#f56c6c}.u-info[data-v-4b842b1a]{color:#909399}.u-primary-bg[data-v-4b842b1a]{background-color:#3c9cff}.u-warning-bg[data-v-4b842b1a]{background-color:#f9ae3d}.u-success-bg[data-v-4b842b1a]{background-color:#5ac725}.u-error-bg[data-v-4b842b1a]{background-color:#f56c6c}.u-info-bg[data-v-4b842b1a]{background-color:#909399}.u-main-color[data-v-4b842b1a]{color:#303133}.u-content-color[data-v-4b842b1a]{color:#606266}.u-tips-color[data-v-4b842b1a]{color:#909193}.u-light-color[data-v-4b842b1a]{color:#c0c4cc}.u-safe-area-inset-top[data-v-4b842b1a]{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right[data-v-4b842b1a]{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom[data-v-4b842b1a]{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left[data-v-4b842b1a]{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast[data-v-4b842b1a]{z-index:10090}uni-toast .uni-toast[data-v-4b842b1a]{z-index:10090}[data-v-4b842b1a]::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-4b842b1a]{padding:%?30?% 0}.publish[data-v-4b842b1a]{position:fixed;bottom:%?84?%;left:%?50?%;right:%?50?%;margin:0 auto;width:%?650?%;height:%?104?%;line-height:%?104?%;text-align:center;background:linear-gradient(270deg,#a890fe,#ffaeae);border-radius:%?52?%;font-size:%?36?%;color:#fff}.item-box[data-v-4b842b1a]{background-color:#fff;padding:%?30?% %?36?%}.item-box .text1[data-v-4b842b1a]{white-space:nowrap;font-size:%?28?%;font-family:SF Pro;font-weight:500;color:#333}.item-box uni-image[data-v-4b842b1a]{width:%?116?%;height:%?116?%;border-radius:%?100?%}.item-box uni-input[data-v-4b842b1a]{flex:1;text-align:right}.title[data-v-4b842b1a]{margin-left:%?36?%;font-size:%?30?%;color:#222;font-weight:600}',""]),t.exports=a}}]);
|