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.8...

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,l as c,i as r,r as f,j as m,y as _,t as p,z as g,Z as h,v as x,x as k,U as S}from"./index-4ddb689d.js";import{_ as y}from"./mp-html.2b6407c3.js";import{r as w}from"./uni-app.es.24af5d4f.js";import{_ as v}from"./u-modal.9219359e.js";import{W as b}from"./wxofficial.956096a5.js";import{S as C,a as T,C as A}from"./Comment.8cab973f.js";import{C as I}from"./index.cdfc996d.js";import{S as j}from"./SkuPopup.ff6d3645.js";import{A as L}from"./index.1169d7d7.js";import{C as P}from"./index.994d85b2.js";import{l as M}from"./task.07a4f689.js";import{_ as G}from"./_plugin-vue_export-helper.1b428a4d.js";import{p as E,d as V}from"./goods.fb80a30a.js";import{t as R}from"./cart.86d426b5.js";import{A as U,a as D}from"./ActiveStatus.2bcdf502.js";import"./u-loading.7bd69747.js";import"./u-popup.37b3343e.js";import"./u-icon.e981d1c2.js";import"./comment.083546cf.js";import"./color.813a9497.js";const $=G({components:{ShareSheet:C,CustomerBtn:I,SlideImage:T,TaskList:G({components:{AvatarImage:L,CountDown:P},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,j=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(j,{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:j,Comment:A,CountDown:P},mixins:[b],data:()=>({isLoading:!0,ActiveTypeEnum:U,ActiveStatusEnum:D,showSkuPopup:!1,skuMode:3,buyMode:1,showShareSheet:!1,posterApiCall:E,showRules:!1,setting:{},groupon