detection-user/unpackage/dist/build/mp-weixin/pages/ruzhu/ruzhu.js

1 line
9.3 KiB
JavaScript
Raw Normal View History

2024-09-18 18:50:21 +08:00
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/ruzhu/ruzhu"],{"2eed":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return a}));var a={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"ee17"))},uUpload:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-upload/u-upload")]).then(n.bind(null,"bb5d"))}},i=function(){var e=this.$createElement;this._self._c},s=[]},5694:function(e,t,n){"use strict";n.r(t);var a=n("75c9"),i=n.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);t["default"]=i.a},"6b4e":function(e,t,n){"use strict";n.r(t);var a=n("2eed"),i=n("5694");for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);n("d9b9");var o=n("828b"),c=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"7996ac96",null,!1,a["a"],void 0);t["default"]=c.exports},"6c82":function(e,t,n){},"75c9":function(e,t,n){"use strict";(function(e){var a=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("7eb4")),s=a(n("7ca3")),o=a(n("ee10")),c=(a(n("f76e")),a(n("1fab"))),r=a(n("0022"));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={data:function(){return{baseUrl:this.$baseUrl,imagesUrl:"http://www.nuoyunr.com/lananRsc/",goodsId:"",one:!1,two:!1,three:!1,show:!1,guige:!1,msg:"3",tapnum:0,value5:"",tian:{skuName:"",price:""},fileList1:[],fileList2:[],fileList3:[],fileList4:[],fileList6:[],taplist:[{Text:"已发布"},{Text:"待上架"}],fenlist:[],ftitle:null,shopImages:[],shoplist:{type:"jc",partnerName:"",phone:"",businessLicense:"",shopImage:"",position:"",idCardFront:"",idCardBack:"",status:0},province:"",city:"",area:"",four:""}},onLoad:function(){this.getshop()},onShow:function(){},methods:{getshop:function(){var e=this;return(0,o.default)(i.default.mark((function t(){var n,a,s,o;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.default)({url:"/appInspection/partner/enterDetail",method:"get"});case 2:if(n=t.sent,n.data){t.next=5;break}return t.abrupt("return");case 5:n.data&&(e.shoplist=n.data),console.log(e.shoplist),e.fileList1.push({url:n.data.shopImage}),e.fileList2.push({url:n.data.businessLicense}),e.fileList3.push({url:n.data.idCardFront}),e.fileList4.push({url:n.data.idCardBack}),a=n.data.position,s=/.+?(省|市|自治区|自治州|县|区)/g,o=a.match(s).toString().split(","),"重庆市"==o[0]||"北京市"==o[0]||"天津市"==o[0]||"上海市"==o[0]?(e.province=o[0],e.city="市辖区",e.area=o[1],e.four=a.replace(e.province,"").replace(e.city,"").replace(e.area,"")):(e.province=o[0],e.city=o[1],e.area=o[2],e.four=a.replace(e.province,"").replace(e.city,"").replace(e.area,"")),e.fileList6.push({url:e.baseUrl+n.data.partnerLogo}),n.data.shopImageList&&n.data.shopImageList.forEach((function(t){t&&e.fileList4.push({url:e.baseUrl+t})}));case 18:case"end":return t.stop()}}),t)})))()},getgoods:function(){var t=this;return(0,o.default)(i.default.mark((function n(){var a;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,c.default)({url:"/appInspection/partner/enter",method:"post",data:t.shoplist});case 2:a=n.sent,console.log(a),200==a.code&&(e.showToast({title:"操作成功"}),t.getshop());case 5:case"end":return n.stop()}}),n)})))()},getxz:function(e){this.releasebox.goodsCategoryId=e.value[0].id