index.b6f990ac.js 5.6 KB

1
  1. import{d as g,r as E,$ as o,c as s,aj as l,q as e,ak as m,al as C,m as d}from"./index.332c7f08.js";import{L as c}from"./index.b186dfda.js";import{C as S}from"./index.91135ff9.js";import"./use-tab-status.9d769af8.js";const I="_myInstrument_yjyg0_1",y="_goodsImg_yjyg0_8",D="_times_yjyg0_19",B="_type_yjyg0_25",V="_NOT_ACTIVATED_yjyg0_41",R="_ACTIVATED_yjyg0_45";var a={myInstrument:I,goodsImg:y,times:D,type:B,NOT_ACTIVATED:V,ACTIVATED:R},U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAiCAYAAAA+stv/AAAAAXNSR0IArs4c6QAAAp1JREFUWEftlstrE1EUxr9zk3QyU0XBF4igogtFKJSKrsRom6QLq4IguHMhVWrRTNo/oH9Amwk+ihb3grhQIthM4gtXiqWIiC4sVRAXFhdik+n0cY/MuOliJsmEoXWRuxvuvd/5ne8c7hnCOi9a5/hoAQR2gPv7NEuzBwA+T0QHnBIy82eAHqhVZZwmCtUgZQ0EYGd6Dq5AFEDY5xmEMROB7FPy5U+NQjQMwMOp7dYypkDYBUAC/IiBUsT9EEmAzwIQYHxXo+iiUfNnIxANA1jZ1B1mXAawJIBzccMsrA5QySZPE9NDADEi3FVz5pXQAGYvJuI7NsfmQLQB4DHNKA17iVf19CjAQ2CeV1eiW+nmU7seREMOzF/v7hAi8t4Ri4KOthnFt17Ci3r6yDL4jbMXgexQjPKHUAAsPXmcQS8dMWKxV81PfvUStjK9e5jkrHsOnFCN0qtwADK9CSb5IhAAixNqftKFrrVqlqAymNwZacNhBnUyY8QREsBVSTznJSqYtkngtgtKGCHw9Moi3rXfKv3wg/AFsPX0GQl5n0FqvSxqZ8iWgLigGMXHXud8AaqZ1BffBycoEWNGy5v7gwHoKen2UjiLNcMUQQE4nNj/VDTD9EzGvwR66v8HIOCPkx0DG+u5FbYDLEDXlE3FcSew/Ts9IME3avVMqAAMPGk3zL7VWVf0VIGAU35OhAogi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ruyvP8pUtHTcvQ2YhE5EWWZfuDIDDT8Y5DcINOpzPV7XY/Zln2QUTsbtmsERmutNauVmyOvgBYXzGglgD88LTqZq14BMAsIO0NoxEIQ3U747iQbKsLSQGi1ZVsDER7S+l4O2ttLa8ZTMs6rl3Ll2W9weMVAK0z8AuwdFIyolLuVQAAAABJRU5ErkJggg==";function p(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!C(t)}var T=g({name:"my-instrument",setup(){const t=E({isLoading:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20}}),u=async()=>{try{if(t.isLoading)return;t.isLoading=!0;const i=await d.post("/api-student/userPaymentOrder/instrumentPage",{data:{...t.params}});t.listState.loading=!1;const A=i.data||{};if(t.list.length>0&&A.current===1)return;const r=A.rows||[];t.list=t.list.concat(r),t.listState.finished=A.current>=A.pages,t.params.page=A.current+1,t.listState.dataShow=t.list.length>0,t.isLoading=!1}catch{t.listState.dataShow=!1,t.listState.finished=!0,t.isLoading=!1}};return o(async()=>{await u()}),()=>{let i;return s("div",{class:a.myInstrument},[s(l,null,null),t.listState.dataShow?s(c,{finished:t.listState.finished,finishedText:" ",onLoad:u,immediateCheck:!1},p(i=t.list.map(A=>s(S,null,{icon:()=>s("img",{src:A.instrumentUrl,class:a.goodsImg},null),title:()=>s("div",{class:a.goodsInfo},[s("h2",null,[A.instrumentName]),s("p",{class:a.times},[e("\u8D2D\u4E70\u65F6\u95F4\uFF1A"),A.buyTime]),A.instrumentStatus==="ACTIVATED"&&s("div",{class:[a.type,a[A.instrumentStatus]]},[A.instrumentStatus==="ACTIVATED"&&s("img",{src:f},null),e("\u4E50\u5668\u4FDD\u969C\u670D\u52A1\u4E2D")]),A.instrumentStatus==="INVALID"&&s("div",{class:[a.type,a[A.instrumentStatus]]},[A.instrumentStatus==="INVALID"&&s("img",{src:n},null),e("\u4E50\u5668\u4FDD\u969C\u670D\u52A1\u5DF2\u5931\u6548")]),A.instrumentStatus==="NOT_OPEN"&&s("div",{class:[a.type,a[A.instrumentStatus]]},[A.instrumentStatus==="NOT_OPEN"&&s("img",{src:n},null),e("\u8BE5\u4E50\u5668\u672A\u5F00\u901A\u4E50\u5668\u4FDD\u969C\u670D\u52A1")]),A.instrumentStatus==="NOT_ACTIVATED"&&s("div",{class:[a.type,a[A.instrumentStatus]]},[A.instrumentStatus==="NOT_ACTIVATED"&&s("img",{src:U},null),e("\u4E50\u5668\u4FDD\u969C\u670D\u52A1\u5C1A\u672A\u6FC0\u6D3B")])])})))?i:{default:()=>[i]}):s(m,{btnStatus:!1,tips:"\u6682\u65E0\u4E50\u5668\u68C0\u67E5"},null)])}}});export{T as default};