1 |
- import{v as a,o as e,e as t,f as s,w as n,l as i,j as r,p as l,t as o,g as c,k as d,r as u,F as f,z as p,C as g,i as _,bA as b,q as x,m}from"./index-9880b451.js";import{B as y,_ as w}from"./bargain.30321267.js";import{_ as k}from"./s-layout.dfc5b0b5.js";import{_ as h}from"./_plugin-vue_export-helper.1b428a4d.js";const C=h({__name:"detail",setup(h){const C=a({id:"",buyPrice:"",bargainInfo:{},bgColor:{bgColor:"#333333",Color:"#fff",width:"44rpx",timeTxtwidth:"16rpx",isDay:!0},bargainUserHelpList:[],couponsHidden:!0});function I(a){return(a/100).toFixed(2)}return e((function(a){a.hasOwnProperty("id")&&(a.id?C.id=a.id:C.id=""),async function(){let{data:a,code:e}=await y.getBargainActivityDetail({id:C.id});0==e&&(C.bargainInfo=a,C.buyPrice=C.bargainInfo.bargainFirstPrice)}()})),(a,e)=>{const y=g,h=_,T=b,H=x,z=i(m("s-count-down"),w),P=i(m("s-layout"),k);return t(),s(P,{title:"砍价详情"},{default:n((()=>[r(h,{class:"bargain"},{default:n((()=>[r(h,{class:"header"},{default:n((()=>[r(T,{url:"/pages/activity/bargainingList","hover-class":"none"},{default:n((()=>[r(h,{class:"back",style:{width:"234rpx",height:"54rpx",background:"linear-gradient(233deg,#ffd169,#fe960f)",opacity:"1","border-radius":"0 26rpx 26rpx 0","line-height":"54rpx","text-align":"center",color:"#6e3f00","font-size":"25rpx"}},{default:n((()=>[r(y,{class:"iconfont icon-xiangzuo"}),l(" 返回砍价列表 ")])),_:1})])),_:1})])),_:1}),r(h,{class:"pad30",style:{"padding-bottom":"30rpx"}},{default:n((()=>[r(h,{class:"wrapper"},{default:n((()=>[r(h,{class:"pictxt acea-row row-between",onClick:a.goProduct,style:{display:"flex","box-sizing":"border-box"}},{default:n((()=>[r(h,{class:"pictrue"},{default:n((()=>[r(H,{src:C.bargainInfo.picUrl},null,8,["src"])])),_:1}),r(h,{class:"text acea-row row-column-around",style:{"margin-left":"10rpx"}},{default:n((()=>[r(h,{class:"line1"},{default:n((()=>[l(o(C.bargainInfo.name),1)])),_:1}),r(h,{class:"surplus"},{default:n((()=>[l("最低价:¥"+o(I(C.bargainInfo.bargainMinPrice)),1)])),_:1}),r(h,{class:"surplus"},{default:n((()=>[l("剩余:"+o(C.bargainInfo.stock)+" "+o(C.bargainInfo.unitName),1)])),_:1}),r(h,{class:"money font-color-red",style:{color:"red"}},{default:n((()=>[l(" 当前: ¥ "),r(y,{class:"num"},{default:n((()=>[l(o(I(C.buyPrice)),1)])),_:1})])),_:1}),C.bargainInfo.endTime>(new Date).getTime()&&C.bargainInfo.stock>0?(t(),s(h,{key:0,class:"acea-row",style:{display:"flex"}},{default:n((()=>[r(z,{tipText:" ",bgColor:C.bgColor,dayText:":",hourText:":",minuteText:":",secondText:" ",datatime:C.bargainInfo.endTime/1e3,isDay:!0},null,8,["bgColor","datatime"]),r(y,{style:{"font-size":"22rpx","margin-left":"4rpx","line-height":"36rpx"}},{default:n((()=>[l("后结束")])),_:1})])),_:1})):C.bargainInfo.endTime<=(new Date).getTime()?(t(),s(h,{key:1},{default:n((()=>[r(h,{style:{"font-size":"22rpx"},onClick:a.currentBargainUser},{default:n((()=>[l("已结束")])),_:1},8,["onClick"])])),_:1})):C.bargainInfo.stock<=0?(t(),s(h,{key:2},{default:n((()=>[r(h,{style:{"font-size":"22rpx"},onClick:a.currentBargainUser},{default:n((()=>[l("已售罄")])),_:1},8,["onClick"])])),_:1})):c("",!0)])),_:1}),r(y,{class:"iconfont icon-jiantou iconfonts"})])),_:1},8,["onClick"])])),_:1}),r(h,{class:"title font-color acea-row row-center-wrapper"},{default:n((()=>[r(h,{class:"pictrue"}),r(h,{class:"tits"},{default:n((()=>[r(h,{class:"titleCon"},{default:n((()=>[l("砍价记录")])),_:1}),r(h,{class:"line"})])),_:1}),r(h,{class:"pictrue on"})])),_:1}),r(h,{class:"bargainGang borRadius14"},{default:n((()=>[C.bargainUserHelpList.length>0?(t(),s(h,{key:0,class:"list"},{default:n((()=>[a.index<3||!C.couponsHidden?(t(!0),d(f,{key:0},u(C.bargainUserHelpList,((e,i)=>(t(),s(h,{key:i,class:"item acea-row row-between-wrapper"},{default:n((()=>[r(h,{class:"pictxt acea-row row-between-wrapper"},{default:n((()=>[r(h,{class:"pictrue"},{default:n((()=>[r(H,{src:e.avatar},null,8,["src"])])),_:2},1024),r(h,{class:"text"},{default:n((()=>[r(h,{class:"name line1"},{default:n((()=>[l(o(e.nickname),1)])),_:2},1024),r(h,{class:"line1"},{default:n((()=>[l(o(a.formatDate(e.createTime)),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),r(h,{class:"money"},{default:n((()=>[l(" 已砍 "),r(y,{class:"font-color-red"},{default:n((()=>[l(o(I(e.reducePrice)),1)])),_:2},1024),l("元 ")])),_:2},1024)])),_:2},1024)))),128)):c("",!0),C.bargainUserHelpList.length>3?(t(),s(h,{key:1,class:"open acea-row row-center-wrapper",onClick:a.openTap},{default:n((()=>[l(o(C.couponsHidden?"展开更多":"关闭展开")+" ",1),r(y,{class:p(["iconfont",C.couponsHidden?"icon-xiangxia":"icon-xiangshang"])},null,8,["class"])])),_:1},8,["onClick"])):c("",!0)])),_:1})):c("",!0),0===C.bargainUserHelpList.length?(t(),s(h,{key:1,class:"contentNo"},{default:n((()=>[r(y,{class:"iconfont icon-xiaolian mr8"}),l(" 暂无助力记录 ")])),_:1})):c("",!0)])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-a25ee8da"]]);export{C as default};
|