code-origin/server/public/mobile/assets/pay.7f11ad07.js

2 lines
3.2 KiB
JavaScript
Executable File

import{_ as e}from"./u-icon.7191c6e8.js";import{r as t,a,o as s,c as o,w as r,b as l,E as i,x as c,h as u,k as n,s as d,d as p,aQ as y,g as f,C as m}from"./index.26a6cf84.js";import{_ as g}from"./plugin-vue_export-helper.21dcd24c.js";var S=g({name:"u-empty",props:{src:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"#c0c4cc"},iconColor:{type:String,default:"#c0c4cc"},iconSize:{type:[String,Number],default:120},fontSize:{type:[String,Number],default:26},mode:{type:String,default:"data"},imgWidth:{type:[String,Number],default:120},imgHeight:{type:[String,Number],default:"auto"},show:{type:Boolean,default:!0},marginTop:{type:[String,Number],default:0},iconStyle:{type:Object,default:()=>({})}},data:()=>({icons:{car:"购物车为空",page:"页面不存在",search:"没有搜索结果",address:"没有收货地址",wifi:"没有WiFi",order:"订单为空",coupon:"没有优惠券",favor:"暂无收藏",permission:"无权限",history:"无历史记录",news:"无新闻列表",message:"消息列表为空",list:"列表为空",data:"数据为空"}})},[["render",function(d,p,y,f,m,g){const S=t(a("u-icon"),e),h=n;return y.show?(s(),o(h,{key:0,class:"u-empty",style:c({marginTop:y.marginTop+"rpx"})},{default:r((()=>[l(S,{name:y.src?y.src:"empty-"+y.mode,"custom-style":y.iconStyle,label:y.text?y.text:m.icons[y.mode],"label-pos":"bottom","label-color":y.color,"label-size":y.fontSize,size:y.iconSize,color:y.iconColor,"margin-top":"14"},null,8,["name","custom-style","label","label-color","label-size","size","color"]),l(h,{class:"u-slot-wrap"},{default:r((()=>[i(d.$slots,"bottom",{},void 0,!0)])),_:3})])),_:3},8,["style"])):u("v-if",!0)}],["__scopeId","data-v-582d610a"]]);var h=g({name:"u-loading",props:{mode:{type:String,default:"circle"},color:{type:String,default:"#c7c7c7"},size:{type:[String,Number],default:"34"},show:{type:Boolean,default:!0}},computed:{cricleStyle(){let e={};return e.width=this.size+"rpx",e.height=this.size+"rpx","circle"==this.mode&&(e.borderColor=`#e4e4e4 #e4e4e4 #e4e4e4 ${this.color?this.color:"#c7c7c7"}`),e}}},[["render",function(e,t,a,r,l,i){const p=n;return a.show?(s(),o(p,{key:0,class:d(["u-loading","circle"==a.mode?"u-loading-circle":"u-loading-flower"]),style:c([i.cricleStyle])},null,8,["class","style"])):u("v-if",!0)}],["__scopeId","data-v-53c07659"]]);var b=g(p({__name:"page-status",props:{status:{type:String,default:y.LOADING},fixed:{type:Boolean,default:!0}},setup:e=>(c,p)=>{const m=t(a("u-loading"),h),g=n;return e.status!==f(y).NORMAL?(s(),o(g,{key:0,class:d(["page-status",{"page-status--fixed":e.fixed}])},{default:r((()=>[u(" Loading "),e.status===f(y).LOADING?i(c.$slots,"loading",{key:0},(()=>[l(m,{size:60,mode:"flower"})]),!0):u("v-if",!0),u(" Error "),e.status===f(y).ERROR?i(c.$slots,"error",{key:1},void 0,!0):u("v-if",!0),u(" Empty "),e.status===f(y).EMPTY?i(c.$slots,"empty",{key:2},void 0,!0):u("v-if",!0)])),_:3},8,["class"])):i(c.$slots,"default",{key:1},void 0,!0)}}),[["__scopeId","data-v-e456cece"]]);function v(e){return m.get({url:"/pay/payWay",data:e},{isAuth:!0})}function _(e){return m.post({url:"/pay/prepay",data:e},{isAuth:!0})}function x(e){return m.get({url:"/pay/payStatus",data:e},{isAuth:!0})}export{S as _,b as a,v as b,x as g,_ as p};