mer-tradescreen/yusi/assets/Businesses-BXNLBuZy.js

2 lines
6.0 KiB
JavaScript
Raw Normal View History

2024-06-24 11:09:18 +08:00
import{_ as m}from"./TABBG-WzGsGP99.js";import{_ as f,i as v,a as B,u as $,r as D,o as E,j as b,b as g,f as h,k as _,w as C,d as a,q as k,e as w,h as I,n as N,y as S,z as V,B as j}from"./index-x46xq0Cd.js";import{m as G,j as L}from"./api-PbyN3WbF.js";import"./axios-QLjAsgXu.js";const R=n=>(S("data-v-bc6a521c"),n=n(),V(),n),z={key:0,class:"center"},A={key:1,class:"box"},T={class:"img-cls"},q=R(()=>a("img",{src:m,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1)),M={class:"content"},O={class:"btns"},F={key:0,class:"table"},H={__name:"Businesses",setup(n){const y=v(!1),o=B();$();let d=v(0),u={};const s=t=>{i.data.splice(0,i.data.length),d.value=t,G({...o.area,status:d.value,limit:50}).then(e=>{u=e.data.list,p(e.data.list)})},x=t=>{t.columnIndex==10&&L({mer_id:u[t.rowIndex].mer_id,...o.area}).then(e=>{o.storeLogin(e.data),j.push("/storeLogin"),console.log(o.userInfo)})},p=t=>{t.forEach((e,l)=>{var c,r;l%2==0?i.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${l+1}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;' >${e.mer_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.mer_address}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.mark||"--"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.is_best?"推荐":"不推荐"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.create_time}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.margin}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${((c=e.merchantCategory)==null?void 0:c.category_name)||"--"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.status?"开启":"关闭"}</div>`,"<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;color:#3D9EB5';cursor: pointer;>登录</div>"]):i.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${l+1}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.mer_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.mer_address}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.mark||"--"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.is_best?"推荐":"不推荐"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.create_time}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.margin}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${((r=e.merchantCategory)==null?void 0:r.category_name)||"--"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.status?"开启":"关闭"}</div>`,"<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;color:#3D9EB5; cursor: pointer;'>登录</div>"])})},i=D({headerBGC:"linear-gradient(to right, #ff0000, #00ff00)",oddRowBGC:"",evenRowBGC:"",rowNum:20,header:["<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>ID</div>","<div style='width: 100