PageSourceSearch

https://www.tyfo.com/dist/static/js/cartManage.js

js tyfo.com collected 2026-10-02 10:32:04 UTC 3,428 bytes, 1 lines download raw bytes

1import{m as e}from"./menuTitle.js";import{cQ as o}from"./index2.js";import{aP as t,r as s,v as r,g as a,a0 as l,W as i,aq as p,o as n,h as m,$ as c,S as d,aQ as f,aR as u}from"./vue.js";import{d as j}from"./index3.js";import{g as y}from"./setStore.js";import"./deleteSort.js";import"./deleteAddress.js";import{D as g,U as v}from"./updateCart.js";import{_ as h}from"./_plugin-vue_export-helper.js";import{a as b}from"./element-plus.js";import"./encryptlong.js";import"./call-bind.js";import"./get-intrinsic.js";import"./has-symbols.js";import"./function-bind.js";import"./has.js";import"./axios.js";import"./crypto-js.js";import"./js-md5.js";import"./jsencrypt-ext.js";import"./quill.js";import"./object-keys.js";import"./is-arguments.js";import"./has-tostringtag.js";import"./object-is.js";import"./define-properties.js";import"./has-property-descriptors.js";import"./is-regex.js";import"./regexp.prototype.flags.js";import"./functions-have-names.js";import"./is-date-object.js";import"./lodash-es.js";import"./@ctrl.js";import"./dayjs.js";import"./async-validator.js";import"./memoize-one.js";import"./escape-html.js";import"./normalize-wheel-es.js";import"./@floating-ui.js";const I={class:"page-body"},_=["src"],x=["onClick"],k=(e=>(f("data-v-af2da7f8"),e=e(),u(),e))((()=>m("br",null,null,-1))),w=["onClick"],E=h({__name:"cartManage",setup(f){t();const u=s();y("userInfo")&&(u.value=JSON.parse(j(y("userInfo"))));const h=s();r((()=>{E()}));const E=()=>{o({trolleyType:0,payType:encodeURIComponent("[]")}).then((e=>{200==e.code?(h.value=[],e.content.effectiveTrolleyGroupList.forEach((e=>{e.effectiveTrolleyList&&Array.isArray(e.effectiveTrolleyList)&&e.effectiveTrolleyList.forEach((e=>{h.value.push(e)}))})),e.content.ineffectiveTrolleyList.forEach((e=>{h.value.push(e)}))):b({message:e.msg,type:"error"})}))};s(),s();const T=s(),C=e=>{T.value=e.map((e=>e.categoryId))},S=s(),N=s(),A=e=>{E()};return(o,t)=>{const s=p("el-table-column"),r=p("el-table");return n(),a("div",I,[l(e,{titles:"购物车管理"}),l(r,{data:h.value,"header-cell-style":{background:"#E5E5E5",textAlign:"center",color:"#000"},"cell-style":{textAlign:"center"},style:{width:"100%"},onSelectionChange:C},{default:i((()=>[l(s,{label:"商品图片",prop:"goodsInfo.mainPicture"},{default:i((e=>[m("img",{src:e.row.goodsInfo.mainPicture,style:{width:"50px",height:"50px","object-fit":"cover"}},null,8,_)])),_:1}),l(s,{label:"商品名称",prop:"trolleyGoodsName"}),l(s,{label:"店铺名称",prop:"shopName"}),l(s,{label:"所选规格",prop:"goodsInfo.skuName"}),l(s,{label:"数量",prop:"goodsNum"}),l(s,{label:"价格",prop:"trolleyPrice"},{default:i((e=>[m("span",null,c(e.row.trolleyPrice)+" 元",1)])),_:1}),l(s,{label:"是否失效",prop:"trolleyIsEffective"},{default:i((e=>[m("span",{style:d({fontWeight:1===e.row.trolleyIsEffective?"bold":""})},c(1===e.row.trolleyIsEffective?"已失效":""),5)])),_:1}),l(s,{label:"操作"},{default:i((e=>[m("span",{class:"dospan",onClick:o=>{return t=e.row,void S.value.open(t.trolleyId);var t}},"删除",8,x),k,m("span",{class:"dospan",onClick:o=>{return t=e.row,void N.value.open(t.trolleyId,t.goodsNum,t.skuId);var t}},"修改数量",8,w)])),_:1})])),_:1},8,["data"]),l(g,{ref_key:"deleteSorts",ref:S,onFreash:A,categoryIds:T.value},null,8,["categoryIds"]),l(v,{ref_key:"updateSorts",ref:N,onFreash:A,categoryIds:T.value},null,8,["categoryIds"])])}}},[["__scopeId","data-v-af2da7f8"]]);export{E as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.