jiuyiUniapp/jiuyi/unpackage/dist/build/web/assets/index.BI4RdXcX.js

2 lines
3.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{p as e,o as s,c as a,w as t,b as l,aK as o,e as d,_ as c,z as f,y as u,f as n,x as i,i as r}from"./index-CH9-aFWw.js";import{_ as p}from"./uni-tag.B4eR5K8E.js";import{r as _}from"./uni-app.es.DPi2kvld.js";import{_ as m}from"./uni-section.BzH4ItED.js";import{_ as y}from"./_plugin-vue_export-helper.BCo6x5W8.js";const h=y({__name:"index",props:{orderInfo:{type:Object,default:()=>({shop_logo:"",shop_name:"123",order_status_text:6})},showType:{type:Number,default:1},right:{type:Boolean,default:!0}},emits:["consult","click","buy"],setup(y,{emit:h}){const w=h;return(h,g)=>{const k=n,x=i,T=r,j=_(e("uni-tag"),p),b=_(e("uni-section"),m);return s(),a(T,{class:"commodity-information",onClick:g[2]||(g[2]=e=>w("click",y.orderInfo))},{default:t((()=>[l(b,null,o({decoration:t((()=>[l(k,{class:"shop-image",src:y.orderInfo.productName,mode:"aspectFill"},null,8,["src"])])),content:t((()=>[1==y.showType||4==y.showType?(s(),a(T,{key:0,class:"commodity-name commodity-name-1"},{default:t((()=>[l(x,{class:"commodity-name-title t2hd"},{default:t((()=>[d("耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉")])),_:1}),l(x,{class:"commodity-name-ks thd"},{default:t((()=>[d("X602 款式")])),_:1}),4==y.showType?(s(),a(x,{key:0},{default:t((()=>[d("待发货")])),_:1})):f("",!0)])),_:1})):f("",!0),2==y.showType||3==y.showType?(s(),a(T,{key:1,class:"commodity-name commodity-name-2"},{default:t((()=>[l(x,{class:"t2hd"},{default:t((()=>[d("耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉")])),_:1}),2==y.showType?(s(),a(T,{key:0,class:"df aic"},{default:t((()=>[l(T,{class:"df aic price mr10"},{default:t((()=>[l(x,{class:"f20 jg"},{default:t((()=>[d("¥")])),_:1}),l(x,{class:"f28"},{default:t((()=>[d(u(y.orderInfo.price),1)])),_:1})])),_:1}),l(T,{class:"df xl"},{default:t((()=>[l(x,null,{default:t((()=>[d("销量")])),_:1}),d(),l(x,null,{default:t((()=>[d(u(y.orderInfo.sales),1)])),_:1}),d(),l(x,null,{default:t((()=>[d("+")])),_:1})])),_:1})])),_:1})):f("",!0),3==y.showType?(s(),a(T,{key:1,class:"df aic"},{default:t((()=>[l(T,{class:"df xl thd"},{default:t((()=>[l(x,null,{default:t((()=>[d("店铺名称")])),_:1})])),_:1})])),_:1})):f("",!0)])),_:1})):f("",!0),5==y.showType?(s(),a(T,{key:2,class:"df fdc jcsb hohp"},{default:t((()=>[l(x,{class:"t2hd c333 f28 fw600"},{default:t((()=>[d("耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉")])),_:1}),l(x,{class:"c333 f24"},{default:t((()=>[d("销量156151")])),_:1}),l(T,{class:"df aic"},{default:t((()=>[l(x,{class:"f24 cFF9B27"},{default:t((()=>[d("价格¥123")])),_:1}),l(x,{class:"f24 ml40 c999"},{default:t((()=>[d("库存x1")])),_:1})])),_:1})])),_:1})):f("",!0)])),_:2},[3!=y.showType&&y.right?{name:"right",fn:t((()=>[1==y.showType||4==y.showType?(s(),a(T,{key:0,class:"df fdc jcsb aife",style:{height:"100%","align-items":"flex-end"}},{default:t((()=>[l(T,{class:"price-num"},{default:t((()=>[l(T,{class:"df aic price"},{default:t((()=>[l(x,{class:"f20 jg"},{default:t((()=>[d("¥")])),_:1}),l(x,{class:"f28"},{default:t((()=>[d("999.00")])),_:1})])),_:1}),l(x,{class:"c999 f24"},{default:t((()=>[d("x1")])),_:1})])),_:1}),4==y.showType?(s(),a(T,{key:0,onClick:g[0]||(g[0]=c((e=>w("consult",y.orderInfo)),["stop"])),class:"go-buy"},{default:t((()=>[l(j,{inverted:!0,text:"去咨询",type:"warning"})])),_:1})):f("",!0)])),_:1})):f("",!0),2==y.showType?(s(),a(T,{key:1,class:"go-buy",onClick:g[1]||(g[1]=c((e=>w("buy",y.orderInfo)),["stop"]))},{default:t((()=>[l(j,{inverted:!0,text:"去购买",type:"warning"})])),_:1})):f("",!0)])),key:"0"}:void 0]),1024)])),_:1})}}},[["__scopeId","data-v-e643ad19"]]);export{h as J};