You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/public/assets/pages-groupon-goods-index.b...

2 lines
14 KiB

11 months ago
import{o as e,c as s,w as o,a as t,f as a,b as l,d as n,F as i,n as d,e as u,k as c,i as r,r as f,S as m,x as _,t as p,y as g,Z as h,u as x,v as k,V as S}from"./index-ae8bbb19.js";import{_ as y}from"./mp-html.c15e78a1.js";import{r as w}from"./uni-app.es.ee1d5b08.js";import{_ as v}from"./u-modal.b5d074c6.js";import{W as b}from"./wxofficial.cfa745b7.js";import{S as C,a as T,C as A}from"./Comment.4c49b5d2.js";import{C as I}from"./index.88bc1a11.js";import{S as L}from"./SkuPopup.f6422807.js";import{A as P}from"./index.0c0be40a.js";import{C as j}from"./index.002ef29d.js";import{l as M}from"./task.c545452c.js";import{_ as G}from"./_plugin-vue_export-helper.1b428a4d.js";import{p as E,d as V}from"./goods.6f5948a4.js";import{t as R}from"./cart.414ee15f.js";import{A as D,a as U}from"./ActiveStatus.281bae5f.js";import"./u-loading.01f91c7b.js";import"./u-popup.d74d5514.js";import"./u-icon.b463ad8a.js";import"./comment.92b0fbb1.js";import"./color.813a9497.js";const $=G({components:{ShareSheet:C,CustomerBtn:I,SlideImage:T,TaskList:G({components:{AvatarImage:P,CountDown:j},props:{grouponGoodsId:{type:Number,default:null},list:{type:Array,default:[]}},data:()=>({showMore:!1,moreList:[]}),methods:{onShowMore(){const e=this;e.moreList.length?e.showMore=!0:M(e.grouponGoodsId).then((s=>{e.moreList=s.data.list,e.showMore=!0}))},onTargetTask(e){this.$navTo("pages/groupon/task/index",{taskId:e})}}},[["render",function(g,h,x,k,S,y){const b=c,C=r,T=f("avatar-image"),A=f("count-down"),I=m,L=w(_("u-modal"),v);return x.list.length?(e(),s(C,{key:0,class:"goods-task m-top20",style:d(g.appThemeStyle)},{default:o((()=>[t(C,{class:"item-title dis-flex"},{default:o((()=>[t(C,{class:"block-left flex-box"},{default:o((()=>[t(b,null,{default:o((()=>[a("进行中的团购")])),_:1})])),_:1}),t(C,{class:"block-right"},{default:o((()=>[t(b,{class:"iconfont icon-arrow-right col-9",onClick:h[0]||(h[0]=e=>y.onShowMore())})])),_:1})])),_:1}),t(C,{class:"task-list"},{default:o((()=>[(e(!0),l(i,null,n(x.list,((l,n)=>(e(),s(C,{class:"task-item",key:n},{default:o((()=>[t(C,{class:"user-info"},{default:o((()=>[t(C,{class:"user-avatar"},{default:o((()=>[t(T,{url:l.user.avatar_url,width:60},null,8,["url"])])),_:2},1024),t(b,{class:"user-name oneline-hide"},{default:o((()=>[a(p(l.user.nick_name),1)])),_:2},1024)])),_:2},1024),t(C,{class:"task-status"},{default:o((()=>[t(C,{class:"people"},{default:o((()=>[t(b,null,{default:o((()=>[a("还差")])),_:1}),t(b,{class:"col-m"},{default:o((()=>[a(p(l.surplus_people)+"人",1)])),_:2},1024),t(b,null,{default:o((()=>[a("成团")])),_:1})])),_:2},1024),t(C,{class:"count-down"},{default:o((()=>[t(b,null,{default:o((()=>[a("剩余")])),_:1}),t(A,{date:l.end_time,separator:"colon",theme:"text"},null,8,["date"])])),_:2},1024)])),_:2},1024),t(C,{class:"item-action"},{default:o((()=>[t(C,{class:"button",onClick:e=>y.onTargetTask(l.task_id)},{default:o((()=>[a("去参团")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1}),t(L,{modelValue:S.showMore,"onUpdate:modelValue":h[1]||(h[1]=e=>S.showMore=e),title:"可参与的拼单"},{default:o((()=>[t(I,{style:{"max-height":"610rpx","touch-action":"none"},"scroll-y":!0},{default:o((()=>[t(C,{class:"pops-content"},{default:o((()=>[(e(!0),l(i,null,n(S.moreList,((l,n)=>(e(),s(C,{class:"task-item",key:n},{default:o((()=>[t(C,{class:"user-info"},{default:o((()=>[t(C,{class:"user-avatar"},{default:o((()=>[t(T,{url:l.user.avatar_url,width:60},null,8,["url"])])),_:2},1024),t(b,{class:"user-name oneline-hide"},{default:o((()=>[a(p(l.user.nick_name),1)])),_:2},1024)])),_:2},1024),t(C,{class:"item-action"},{default:o((()=>[t(C,{class:"button",onClick:e=>y.onTargetTask(l.task_id)},{default:o((()=>[a("去参团")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["style"])):u("",!0)}],["__scopeId","data-v-8b507ab9"]]),SkuPopup:L,Comment:A,CountDown:j},mixins:[b],data:()=>({isLoading:!0,ActiveTypeEnum:D,ActiveStatusEnum:U,showSkuPopup:!1,skuMode:3,buyMode:1,showShareSheet:!1,posterApiCall:E,showRules:!1,setting:{},groupon