shop-php/public/static/js/pages-helpPeople-formTable.eb84a059.js

1 line
50 KiB
JavaScript
Raw Normal View History

2024-03-13 09:43:37 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-helpPeople-formTable"],{"1c7d":function(t,e,a){"use strict";a.r(e);var i=a("2a91"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"22c7":function(t,e,a){"use strict";a.r(e);var i=a("d4e3"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"2a91":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c7eb")),o=i(a("5530")),s=i(a("1da1"));a("4de4"),a("d3b7"),a("a434"),a("ac1f"),a("159b");var r=a("3093"),l={data:function(){return{value:[],showPicker:!1,showOverly:!1,isOpen:[!0,!0,!0,!0,!0],SaveList:[!1,!1,!1,!1,!1],domHeight:[],columns:[["是","否"]],mode:"add",formData:{shop_user_id:1,name:"",contact:"",family_count:"",address:"",house_rent_info:{area:"",ageLimit:"",request:"",isFinish:"",fitment:""},land_rent_info:{isBreeding:"",area:"",request:"",payInfo:"",advantage:"",shortcoming:"",reson:"",ageLimit:""},product_info:{type:"",area:"",quality:"",manner:"",maturationCycle:"",maturationTime:"",yield:"",sellType:"",sellMethods:"",Sales:"",productName:"",advantage:"",isBrand:"",isProcessing:"",isDemands:"",quesition:""},idle_asset_rent_info:{area:"",advantage:"",num:"",type:"",other:""},house_decoration_construction:{area:"",startTime:"",standard:"",ask:"",time:"",serve:""}},showText:{title:"",content:""},textList:[{title:"房子出租需求",content:"宅基地出租(通过展示自己长期不在老家居住的宅基地,平台匹配宅基地租给有需求的打造,实现与原有宅基地所有者合作达到闲置资产增收)"},{title:"空闲资产出租/出售需求",content:"平台上提供(出租、出售、置换、抵押和捐赠等服务,让闲置资产价值最大化)"},{title:"农副产品出售需求",content:"种养土地(收集土地上作物信息,平台展示、包装,助农销售增收)"},{title:"空闲资产出租/出售需求",content:"房屋修缮及建设(提供房屋设计、修缮等服务)"},{title:"空闲土地出租需求",content:"闲置土地(了解闲置土地面积,平台整合资源,帮助其匹配订单种养殖、出租、认养认等服务,让闲置土地增收)。"}]}},computed:{saveNum:function(){return this.SaveList.filter((function(t){return!0===t})).length}},onReady:function(){for(var t=1;t<6;t++)this.domHeight[t-1]=this.getFormHeight("#formheight"+t)},onLoad:function(){var t=this,e=this.$store.state.app.userInfo;"string"==typeof e&&(e=JSON.parse(e)),this.formData.shop_user_id=e.uid,uni.request({url:r.HTTP_REQUEST_URL_SIX+"/api/index/getVillagerInfo",method:"GET",data:{shop_user_id:e.uid},success:function(e){0!=e.data.data.length&&(t.mode="edit",t.formData=e.data.data,t.formData.house_rent_info=JSON.parse(t.formData.house_rent_info),t.formData.land_rent_info=JSON.parse(t.formData.land_rent_info),t.formData.product_info=JSON.parse(t.formData.product_info),t.formData.idle_asset_rent_info=JSON.parse(t.formData.idle_asset_rent_info),t.formData.house_decoration_construction=JSON.parse(t.formData.house_decoration_construction),t.formData.house_rent_info.area&&t.SaveList.splice(0,1,!0),t.formData.land_rent_info.area&&t.SaveList.splice(1,1,!0),t.formData.product_info.area&&t.SaveList.splice(2,1,!0),t.formData.idle_asset_rent_info.area&&t.SaveList.splice(3,1,!0),t.formData.house_decoration_construction.area&&t.SaveList.splice(4,1,!0))},fail:function(t){uni.showToast({icon:"none",title:t.msg||t.message||t})}})},methods:{getFormHeight:function(t){var e,a=uni.createSelectorQuery().in(this);return a.select(t).boundingClientRect((function(t){e=t.height+20})).exec(),e+"px"},back:function(){uni.navigateBack()},showFn:function(t){this.showText=this.textList[t],this.showOverly=!0},open:function(t){var e=this;this.isOpen.forEach((function(a,i){i==t?e.isOpen.splice(t,1,!e.isOpen[t]):e.isOpen.splice(i,1,!0)}))},submit:function(){var t=this;return(0,s.default)((0,n.default)().mark((