chunk-357d1b2d.e633cea7.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-357d1b2d"],{"28a5":function(t,e,n){"use strict";var r=n("aae3"),i=n("cb7c"),o=n("ebd6"),a=n("0390"),s=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),h=Math.min,d=[].push,f="split",p="length",v="lastIndex",m=4294967295,g=!l(function(){RegExp(m,"y")});n("214f")("split",2,function(t,e,n,l){var y;return y="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[p]||2!="ab"[f](/(?:ab)*/)[p]||4!="."[f](/(.?)(.?)/)[p]||"."[f](/()()/)[p]>1||""[f](/.?/)[p]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);var o,a,s,c=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,f=void 0===e?m:e>>>0,g=new RegExp(t.source,l+"g");while(o=u.call(g,i)){if(a=g[v],a>h&&(c.push(i.slice(h,o.index)),o[p]>1&&o.index<i[p]&&d.apply(c,o.slice(1)),s=o[0][p],h=a,c[p]>=f))break;g[v]===o.index&&g[v]++}return h===i[p]?!s&&g.test("")||c.push(""):c.push(i.slice(h)),c[p]>f?c.slice(0,f):c}:"0"[f](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var i=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):y.call(String(i),n,r)},function(t,e){var r=l(y,t,this,e,y!==n);if(r.done)return r.value;var u=i(t),d=String(this),f=o(u,RegExp),p=u.unicode,v=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(g?"y":"g"),w=new f(g?u:"^(?:"+u.source+")",v),b=void 0===e?m:e>>>0;if(0===b)return[];if(0===d.length)return null===c(w,d)?[d]:[];var x=0,_=0,k=[];while(_<d.length){w.lastIndex=g?_:0;var C,j=c(w,g?d:d.slice(_));if(null===j||(C=h(s(w.lastIndex+(g?0:_)),d.length))===x)_=a(d,_,p);else{if(k.push(d.slice(x,_)),k.length===b)return k;for(var O=1;O<=j.length-1;O++)if(k.push(j[O]),k.length===b)return k;_=x=C}}return k.push(d.slice(x)),k}]})},"3b8d":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("795b"),i=n.n(r);function o(t,e,n,r,o,a,s){try{var c=t[a](s),u=c.value}catch(l){return void n(l)}c.done?e(u):i.a.resolve(u).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new i.a(function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,c,"next",t)}function c(t){o(a,r,i,s,c,"throw",t)}s(void 0)})}}},"5c40":function(t,e,n){"use strict";var r=n("9e95"),i=n.n(r);i.a},8982:function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return p});var r=n("795b"),i=n.n(r),o=n("bc3a"),a=n.n(o),s=n("4328"),c=n.n(s),u=n("4360"),l=n("5cab"),h=n("a18c"),d=n("3089");function f(t,e){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var n={method:t.method,url:t.url,data:c.a.stringify(t.data)};return e&&(n.data=t.data),t.headers&&(n.headers=t.headers),new i.a(function(e,r){a()(n).then(function(t){if(t&&t.data&&200===t.status){var n=t.data;switch(n.errno){case 501:Object(d["Toast"])(n.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){h["a"].push("/login")})},1500),r(n.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(d["Toast"])(n.errmsg),r(n.errmsg);break}e(n)}else console.log(t),r(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(d["Toast"])(e),r(e,n)})})}function p(t){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new i.a(function(n,r){a.a.defaults.withCredentials=!0,a()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(d["Toast"])(e.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){h["a"].push("/login")})},1500),r(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(d["Toast"])(e.errmsg),r(e.errmsg);break}n(e)}else console.log(t),r(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(d["Toast"])(e),r(e,n)})})}},"96cf":function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=C(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=c;var l="suspendedStart",h="suspendedYield",d="executing",f="completed",p={};function v(){}function m(){}function g(){}var y={};y[o]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(L([])));b&&b!==n&&r.call(b,o)&&(y=b);var x=g.prototype=v.prototype=Object.create(y);function _(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(t){function e(n,i,o,a){var s=u(t[n],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(l).then(function(t){c.value=t,o(c)},function(t){return e("throw",t,o,a)})}a(s.arg)}var n;function i(t,r){function i(){return new Promise(function(n,i){e(t,r,n,i)})}return n=n?n.then(i,i):i()}this._invoke=i}function C(t,e,n){var r=l;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw o;return D()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=j(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=u(t,e,n);if("normal"===c.type){if(r=n.done?f:h,c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=f,n.method="throw",n.arg=c.arg)}}}function j(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function O(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function L(t){if(t){var n=t[o];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){while(++i<t.length)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:D}}function D(){return{value:e,done:!0}}return m.prototype=x.constructor=g,g.constructor=m,g[s]=m.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},_(k.prototype),k.prototype[a]=function(){return this},t.AsyncIterator=k,t.async=function(e,n,r,i){var o=new k(c(e,n,r,i));return t.isGeneratorFunction(n)?o:o.next().then(function(t){return t.done?t.value:o.next()})},_(x),x[s]="Generator",x[o]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=L,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},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 n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.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 o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},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),p},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),T(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},"9e95":function(t,e,n){},b4db:function(t,e,n){"use strict";n.d(e,"e",function(){return a}),n.d(e,"d",function(){return s}),n.d(e,"a",function(){return c}),n.d(e,"c",function(){return u}),n.d(e,"b",function(){return l}),n.d(e,"f",function(){return h}),n.d(e,"h",function(){return d}),n.d(e,"g",function(){return f});var r=n("8982"),i="/industryParkApi",o="/wx/SunanIdleResourceController";function a(t){return Object(r["a"])({url:i+o+"/list",method:"post",data:t})}function s(t){return Object(r["a"])({url:i+o+"/getTmpInfoByUserId",method:"post",data:t})}function c(t){return Object(r["a"])({url:i+o+"/add",method:"post",data:t})}function u(t){return Object(r["a"])({url:i+o+"/edit",method:"post",data:t})}function l(t){return Object(r["a"])({url:i+o+"/getById",method:"post",data:t})}function h(t){return Object(r["a"])({url:i+o+"/pushDown",method:"post",data:t})}function d(t){return Object(r["a"])({url:i+o+"/remove",method:"post",data:t})}function f(t){return Object(r["a"])({url:i+o+"/pushUp",method:"post",data:t})}},bee1:function(t,e,n){},d30a:function(t,e,n){"use strict";var r=n("bee1"),i=n.n(r);i.a},ec34:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"xianzhiziyuan-detail"},[r("div",{staticClass:"card"},[r("div",{staticClass:"card-header",on:{click:function(e){return t.goNavigator("xianzhiziyuan-detail")}}},[r("div",{staticClass:"title"},[t._v(t._s(t.info.name))]),r("div",{staticClass:"status"},[t._v(t._s(1==t.info.pushType?"上架中":"下架中"))])]),r("div",{staticClass:"room-type"},[t._v("\n\t\t\t"+t._s(t.info.types)+"\n\t\t")]),r("div",{staticClass:"company-name"},[t._v(t._s(t.info.companyName?t.info.companyName:"未知公司")+" "+t._s(t.$common.transDate(t.info.createdAt))+"\n\t\t")]),r("div",{staticClass:"info"},[t._v("\n\t\t\t"+t._s(t.info.info)+"\n\t\t\t"),t._l(t.info.pictureUrl,function(e){return r("div",[r("img",{staticStyle:{"max-width":"100%","max-height":"100vh"},attrs:{src:t.url+"/FileController/download/"+e,alt:""}})])})],2),r("div",{staticClass:"time"},[t._v("使用方式:"+t._s(1==t.info.useType?"租赁":"购买"))]),r("div",{staticClass:"time"},[t._v("参考金额:"),r("span",{staticStyle:{color:"#DB9037"}},[t._v(t._s(t.info.initUseMoney)+"元")])]),r("div",{staticClass:"time"},[t._v("联系人:"+t._s(t.info.connectName))]),r("div",{staticClass:"time",staticStyle:{display:"flex","align-items":"center"}},[r("div",[t._v("联系电话:"+t._s(t.info.connectPhone))]),r("TelNum",{attrs:{num:t.info.connectPhone,showTel:!1}})],1)]),r("div",{staticClass:"btn-view"},[2==t.info.pushType?r("button",{staticClass:"btn btn1",on:{click:function(e){return t.btnClickFucn("up")}}},[r("img",{attrs:{alt:"",src:n("2265")}}),r("div",{staticClass:"btn-text"},[t._v("上架")])]):r("button",{staticClass:"btn btn1",on:{click:function(e){return t.btnClickFucn("down")}}},[r("img",{attrs:{alt:"",src:n("b5e9")}}),r("div",{staticClass:"btn-text"},[t._v("下架")])]),r("button",{staticClass:"btn btn2",on:{click:function(e){return t.jumpEdit(t.id)}}},[r("img",{attrs:{alt:"",src:n("3dd6")}}),r("div",{staticClass:"btn-text",staticStyle:{color:"#13336b"}},[t._v("编辑")])]),r("button",{staticClass:"btn btn3"},[r("img",{attrs:{alt:"",src:n("104b")},on:{click:function(e){return t.btnClickFucn("delete")}}}),r("div",{staticClass:"btn-text"},[t._v("删除")])])]),r("confirmtwo",{ref:"confirmtwo",on:{detail:t.getInfoById}})],1)},i=[],o=(n("28a5"),n("96cf"),n("3b8d")),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"confirmtow"},[n("van-popup",{model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[n("div",{staticClass:"title"},[t._v(t._s(t.showDoc.title))]),n("div",{staticClass:"text"},[t._v(t._s(t.showDoc.text))]),n("div",{staticClass:"button-list"},[n("button",{staticClass:"cancel-btn",on:{click:function(e){t.show=!1}}},[t._v("取消")]),n("button",{staticClass:"confirm-btn",on:{click:function(e){return t.handleOk()}}},[t._v("确认")])])])],1)},s=[],c=n("cebc"),u=n("b4db"),l=n("5cab"),h=n("3089"),d={name:"ConfirmtwoView",data:function(){return{show:!1,showDoc:{}}},mounted:function(){},methods:{handleOk:function(){console.log(this.showDoc.title),"下架"==this.showDoc.title&&this.pushDown(),"上架"==this.showDoc.title&&this.pushUp(),"删除"==this.showDoc.title&&this.remove()},remove:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["h"])({id:this.showDoc.id,updatedBy:l["a"].currUser().id});case 2:e=t.sent,200==e.code&&(this.show=!1,this.$router.go(-1),Object(h["Toast"])("删除成功"));case 4:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),pushUp:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["g"])({id:this.showDoc.id,updatedBy:l["a"].currUser().id});case 2:e=t.sent,200==e.code&&(this.$emit("detail"),this.show=!1);case 4:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),pushDown:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["f"])({id:this.showDoc.id,updatedBy:l["a"].currUser().id});case 2:e=t.sent,200==e.code&&(this.$emit("detail"),this.show=!1);case 4:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),setVisible:function(t,e){console.log("ididididididididididididididid",e),this.show=!0,this.showDoc=Object(c["a"])({},t,{id:e}),console.log(this.showDoc)}}},f=d,p=(n("5c40"),n("2877")),v=Object(p["a"])(f,a,s,!1,null,null,null),m=v.exports,g=n("f7eb"),y={name:"xianzhiziyuan-detail",components:{confirmtwo:m,TelNum:g["a"]},data:function(){return{url:"https://www.idea-co-sf.com/industryParkApi",info:{},id:"",chooseStatus:1,up:{title:"上架",text:"资源上架后,将共享给所有企业可见。",apiUrl:""},down:{title:"下架",text:"资源下架后,所有企业将不可见。",apiUrl:""},delete:{title:"删除",text:"资源删除后,将无法找回",apiUrl:""}}},mounted:function(){this.id=this.$route.query.id,console.log("this.idthis.idthis.idthis.id",this.id),this.getInfoById()},methods:{jumpEdit:function(){this.$router.push({path:"/xianzhiziyuan-edit",query:{id:this.$route.query.id}})},getInfoById:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["b"])({id:this.id});case 2:e=t.sent,this.info=e,this.info.pictureUrl=this.info.pictureUrl.split(","),console.log(this.info.pictureUrl);case 6:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),btnClickFucn:function(t){this.$refs.confirmtwo.setVisible(this[t],this.id)}}},w=y,b=(n("d30a"),Object(p["a"])(w,r,i,!1,null,null,null));e["default"]=b.exports}}]);