| 1 |
- {"code":"/*!\n * build: vue-admin-beautiful \n * copyright: chuzhixin 1204505056@qq.com \n * time: 2022-12-12 09:51:32\n */\n(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-7d8b06de\"],{3428:function(t,e,a){t.exports=a.p+\"static/img/login-bg.2387c241.jpg\"},\"35a2\":function(t,e,a){\"use strict\";a(\"f396\")},\"4e99\":function(t,e,a){\"use strict\";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"ContainerTit\",[n(\"div\",{attrs:{slot:\"headr\"},slot:\"headr\"},[n(\"el-button\",{attrs:{type:\"primary\"},on:{click:t.setMerchant}},[t._v(\"保存\")])],1),n(\"el-form\",{ref:\"base_form\",attrs:{model:t.base_form,\"label-width\":\"160px\",rules:t.base_rules,size:\"small\"}},[n(\"div\",{staticClass:\"clearfix\"},[n(\"div\",{staticClass:\"float_left\",staticStyle:{width:\"calc(100% - 395px)\"}},[n(\"div\",{staticClass:\"detail-tab-item\"},[n(\"p\",{staticClass:\"detail-tab-title\"},[t._v(\"页面设置\")]),n(\"div\",{staticClass:\"detail-tab-main\"},[n(\"el-form-item\",{staticStyle:{width:\"50%\"},attrs:{label:\"页面名称:\",prop:\"name\"}},[n(\"el-input\",{model:{value:t.base_form.name,callback:function(e){t.$set(t.base_form,\"name\",e)},expression:\"base_form.name\"}})],1),n(\"el-form-item\",{attrs:{label:\"Banner图片:\",prop:\"images\"}},[n(\"UploadQiniu\",{attrs:{\"is-check\":!0,limit:6,\"file-list\":t.img_list},on:{uploadSuccess:t.uploadSuccess,handleRemove:t.uploadRemove}})],1),n(\"el-form-item\",{staticStyle:{width:\"80%\"},attrs:{label:\"用户定位:\"}},[n(\"el-radio-group\",{model:{value:t.base_form.user_origin,callback:function(e){t.$set(t.base_form,\"user_origin\",e)},expression:\"base_form.user_origin\"}},[n(\"el-radio\",{attrs:{label:1}},[t._v(\"关闭\")]),n(\"el-radio\",{attrs:{label:2}},[t._v(\"当前位置\")]),n(\"el-radio\",{attrs:{label:3}},[t._v(\"城市定位\")])],1),n(\"p\",{staticStyle:{\"font-size\":\"12px\"}},[t._v(\" 当前位置:根据用户当前位置定位,由近到远显示所有商户信息(用户可调整当前位置) 未获取用户当前位置时,根据商户权重显示所有商户信息 \")]),n(\"p\",{staticStyle:{\"font-size\":\"12px\"}},[t._v(\" 城市定位:根据用户当前城市定位,仅显示用户定位城市所在商户信息(用户可调整所在城市) 未获取用户当前城市或当前城市无任何入驻商户时,不显示商户信息 \")])],1),n(\"el-form-item\",{attrs:{label:\"商户信息:\"}},[n(\"el-checkbox-group\",{model:{value:t.base_form.user_info,callback:function(e){t.$set(t.base_form,\"user_info\",e)},expression:\"base_form.user_info\"}},[n(\"el-checkbox\",{attrs:{label:\"商户LOGO\"}}),n(\"el-checkbox\",{attrs:{label:\"商户名称\",disabled:\"\"}}),n(\"el-checkbox\",{attrs:{label:\"商户简介\"}}),n(\"el-checkbox\",{attrs:{label:\"商户地址\"}}),n(\"el-checkbox\",{attrs:{label:\"距离\",disabled:1===t.base_form.user_origin}})],1)],1)],1)])]),n(\"div\",{staticClass:\"float_right\",staticStyle:{width:\"375px\"}},[n(\"div\",{staticClass:\"detail-tab-item\"},[n(\"p\",{staticClass:\"detail-tab-title\"},[t._v(\"页面示例\")]),n(\"div\",{staticClass:\"detail-tab-main\",staticStyle:{\"background-color\":\"#f7f7f7\",padding:\"0\"}},[n(\"div\",{staticClass:\"head_in\",staticStyle:{\"background-color\":\"#fff\"}},[n(\"p\",{staticClass:\"tit\"},[t._v(\"入驻商户\")])]),n(\"div\",{staticStyle:{height:\"54vh\",\"overflow-y\":\"auto\"}},[n(\"div\",{staticStyle:{\"background-color\":\"#fff\",padding:\"0 12px\",\"margin-bottom\":\"10px\"}},[t.base_form.images.length?n(\"div\",{staticStyle:{\"margin-bottom\":\"6px\"}},[n(\"img\",{staticStyle:{width:\"100%\",height:\"80px\"},attrs:{src:t.base_form.images[0],alt:\"\"}})]):t._e(),2===t.base_form.user_origin?n(\"div\",{staticStyle:{height:\"50px\"}},[n(\"p\",{staticStyle:{color:\"#999ca7\",\"font-size\":\"13px\"}},[t._v(\"当前位置\")]),n(\"div\",{staticClass:\"clearfix\",staticStyle:{\"margin-top\":\"6px\"}},[n(\"div\",{staticClass:\"float_left\"},[n(\"i\",{staticClass:\"el-icon-delete-location\"}),n(\"span\",{staticStyle:{\"margin-left\":\"4px\"}},[t._v(\"大明宫万达\")])]),n(\"div\",{staticClass:\"float_right\",staticStyle:{color:\"red\"}},[t._v(\"修改位置\")])])]):t._e(),3===t.base_form.user_origin?n(\"div\",{staticStyle:{height:\"40px\",padding:\"0 6px\"}},[n(\"div\",[n(\"span\",{staticStyle:{\"font-weight\":\"560\",margin:\"6px 6px 0 0\"}},[t._v(\" 西安市 \")]),n(\"i\",{staticClass:\"el-icon-arrow-down\"}),n(\"el-input\",{staticClass:\"float_right\",staticStyle:{width:\"74%\",\"border-radius\":\"10px\"},attrs:{placeholder:\"请输入店铺名称\",\"prefix-icon\":\"el-icon-search\",size:\"mini\"}})],1)]):t._e()]),n(\"div\",{staticStyle:{\"background-color\":\"#fff\",padding:\"0 12px\"}},t._l(t.shop_list,(function(e,r){return n(\"div\",{key:r,staticClass:\"clearfix\",staticStyle:{\"border-bottom\":\"1px solid #e2e2e2\",padding:\"10px 0\"}},[t.base_form.user_info.includes(\"商户LOGO\")?n(\"div\",{staticClass:\"float_left\"},[n(\"img\",{staticStyle:{width:\"100px\",height:\"100px\"},attrs:{src:a(\"3428\"),alt:\"\"}})]):t._e(),n(\"div\",{staticClass:\"float_left\",staticStyle:{\"margin-left\":\"14px\"}},[t.base_form.user_info.includes(\"商户名称\")?n(\"p\",{staticStyle:{\"font-weight\":\"560\"}},[t._v(\" \"+t._s(e.name)+\" \")]):t._e(),t.base_form.user_info.includes(\"商户简介\")?n(\"p\",{staticStyle:{\"margin-top\":\"6px\",color:\"#999ca7\"}},[t._v(\" \"+t._s(e.shopSpec)+\" \")]):t._e(),t.base_form.user_info.includes(\"商户地址\")?n(\"p\",{staticStyle:{\"margin-top\":\"6px\"}},[t._v(\" \"+t._s(e.region)+\" \")]):t._e(),n(\"div\",{staticStyle:{\"margin-top\":\"6px\"}},[t.base_form.user_info.includes(\"距离\")?n(\"span\",[n(\"i\",{staticClass:\"el-icon-delete-location\"}),n(\"span\",[t._v(t._s(e.shop_num))])]):t._e(),t.base_form.user_info.includes(\"查看地图\")?n(\"span\",{staticStyle:{\"margin-left\":\"4px\",color:\"red\"}},[t._v(\" 查看地图 > \")]):t._e()])]),n(\"div\",{staticClass:\"float_right\",staticStyle:{\"line-height\":\"100px\"}},[n(\"el-button\",{attrs:{size:\"mini\",type:\"danger\",round:\"\"}},[t._v(\" 进店 \")])],1)])})),0)])])])])])])],1)},r=[],i=a(\"5143\"),s=a(\"bdd1\"),c={name:\"MerchantsListSet\",components:{UploadQiniu:i[\"default\"]},data(){return{base_form:{name:\"入驻商户\",images:[],user_origin:2,user_group:4,user_info:[\"商户名称\",\"商户LOGO\",\"商户地址\",\"商户简介\",\"距离\"]},img_list:[],base_rules:{name:[{required:!0,message:\"请输入名称\",trigger:\"blur\"}]},shop_list:[{img:\"../../assets/img/pageComponents/preview_head.png\",name:\"我的店铺\",shopSpec:\"六牛科技\",region:\"西安市未央区大明宫万达\",shop_num:\"223m\"},{img:\"../../assets/img/pageComponents/preview_head.png\",name:\"我的店铺\",shopSpec:\"六牛科技\",region:\"西安市未央区大明宫万达\",shop_num:\"223m\"},{img:\"../../assets/img/pageComponents/preview_head.png\",name:\"我的店铺\",shopSpec:\"六牛科技\",region:\"西安市未央区大明宫万达\",shop_num:\"223m\"},{img:\"../../assets/img/pageComponents/preview_head.png\",name:\"我的店铺\",shopSpec:\"六牛科技\",region:\"西安市未央区大明宫万达\",shop_num:\"223m\"},{img:\"../../assets/img/pageComponents/preview_head.png\",name:\"我的店铺\",shopSpec:\"六牛科技\",region:\"西安市未央区大明宫万达\",shop_num:\"223m\"},{img:\"../../assets/img/pageComponents/preview_head.png\",name:\"我的店铺\",shopSpec:\"六牛科技\",region:\"西安市未央区大明宫万达\",shop_num:\"223m\"}]}},created(){this.getSettingMerchant()},methods:{uploadSuccess(t,e,a,n){const r=n.map(t=>t.content);this.base_form.images.length?this.base_form.images=this.base_form.images.concat(r):this.base_form.images=r,this.img_list=this.base_form.images.map(t=>({name:\"\",content:t}))},uploadRemove(t,e){this.base_form.images=\"\"},async getSettingMerchant(){const t=await Object(s[\"getSettingMerchant\"])({type:6});\"{}\"!==JSON.stringify(t.data)&&(this.base_form=t.data),this.base_form.images?this.img_list=this.base_form.images.map(t=>({name:\"\",url:t})):this.img_list=[]},async setMerchant(){await Object(s[\"saveSettingMerchant\"])({data:this.base_form,type:6});this.$message.success(\"保存成功\"),this.getSettingMerchant()}}},l=c,o=(a(\"35a2\"),a(\"2877\")),d=Object(o[\"a\"])(l,n,r,!1,null,\"07775826\",null);e[\"default\"]=d.exports},bdd1:function(t,e,a){\"use strict\";a.r(e),a.d(e,\"addMerchant\",(function(){return r})),a.d(e,\"getAllMerchant\",(function(){return i})),a.d(e,\"updateMerchant\",(function(){return s})),a.d(e,\"saveSettingMerchant\",(function(){return c})),a.d(e,\"getSettingMerchant\",(function(){return l})),a.d(e,\"getInfoMerchant\",(function(){return o})),a.d(e,\"delMerchant\",(function(){return d})),a.d(e,\"auditApply\",(function(){return u})),a.d(e,\"MerchantWithdrawAdd\",(function(){return h})),a.d(e,\"getMerchantWithdraw\",(function(){return m})),a.d(e,\"MerchantWithdrawGetAll\",(function(){return f})),a.d(e,\"MerchantUpdateAuditStatus\",(function(){return p})),a.d(e,\"MerchantGetSettingField\",(function(){return g})),a.d(e,\"Merchantlog\",(function(){return _})),a.d(e,\"enabledMerchant\",(function(){return b})),a.d(e,\"getAllMerchantSettlement\",(function(){return M})),a.d(e,\"updateMerchantSettlement\",(function(){return S})),a.d(e,\"getAllMerchantWithdraw\",(function(){return v})),a.d(e,\"addMerchantWithdraw\",(function(){return x})),a.d(e,\"getAllMerchantList\",(function(){return y})),a.d(e,\"getAllMerchantDetail\",(function(){return w})),a.d(e,\"exportgetAllMerchantDetail\",(function(){return O})),a.d(e,\"exportgetAllMerchantSettlement\",(function(){return C}));var n=a(\"b775\");function r(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/addMerchant\",method:\"post\",data:t})}function i(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/getAllMerchant\",method:\"post\",data:t})}function s(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/updateMerchant/\"+t,method:\"put\",data:e})}function c(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/saveSetting\",method:\"post\",data:t})}function l(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/getSetting\",method:\"post\",data:t})}function o(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/getInfoMerchant/\"+t,method:\"get\",data:e})}function d(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/delMerchant/\"+t,method:\"get\",data:e})}function u(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/auditApply/\"+t,method:\"put\",data:e})}function h(t){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/add\",method:\"post\",data:t})}function m(t){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/get\",method:\"post\",data:t})}function f(t){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/getAll\",method:\"post\",data:t})}function p(t,e){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/updateAuditStatus/\"+t,method:\"put\",data:e})}function g(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/getSettingField\",method:\"post\",data:e})}function _(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/log\",method:\"post\",data:t})}function b(t,e){return Object(n[\"default\"])({url:\"Merchant/Merchant/enabledMerchant/\"+t,method:\"get\",data:e})}function M(t){return Object(n[\"default\"])({url:\"Merchant/MerchantSettlement/getAllMerchantSettlement\",method:\"POST\",data:t})}function S(t){return Object(n[\"default\"])({url:\"Merchant/MerchantSettlement/updateMerchantSettlement\",method:\"POST\",data:t})}function v(t){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/getAll\",method:\"post\",data:t})}function x(t){return Object(n[\"default\"])({url:\"Merchant/MerchantWithdraw/add\",method:\"post\",data:t})}function y(t){return Object(n[\"default\"])({url:\"Merchant/Merchant/getAllMerchantList\",method:\"post\",data:t})}function w(t){return Object(n[\"default\"])({url:\"Merchant/MerchantDetail/getAllMerchantDetail\",method:\"post\",data:t})}function O(t){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getAllMerchantDetail\",method:\"post\",responseType:\"blob\",data:t})}function C(t){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getAllMerchantSettlement\",method:\"post\",responseType:\"blob\",data:t})}},f396:function(t,e,a){}}]);","extractedComments":[]}
|