glhcp/server/public/mobile/static/js/bundle-pages-user_group-use...

1 line
16 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-user_group-user_group"],{"0057":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getCouponList=r,e.getCoupon=o,e.getOrderCoupon=u,e.getMyCoupon=c,e.getActivityGoodsLists=s,e.getSeckillTime=d,e.getSeckillGoods=l,e.getGroupList=f,e.getUserGroup=g,e.getTeamInfo=p,e.teamKaiTuan=m,e.teamCheck=v,e.teamBuy=h,e.getBargainList=b,e.getBargainDetail=w,e.getBargainNumber=y,e.launchBargain=_,e.getBargainActivityList=x,e.getBargainActivityDetail=k,e.getBargainPost=S,e.helpBargain=C,e.closeBargainOrder=z,e.getSignLists=O,e.getSignRule=I,e.userSignIn=L,e.getIntegralGoods=T,e.getIntegralGoodsDetail=B,e.integralSettlement=G,e.integralSubmitOrder=j,e.getIntegralOrder=A,e.delIntegralOrder=M,e.getIntegralOrderDetail=E,e.cancelIntegralOrder=$,e.confirmIntegralOrder=D,e.getIntegralOrderTraces=P;var i=a(n("b175"));n("357b");function r(t){return i.default.get("coupon/getCouponList",{params:t})}function o(t){return i.default.post("coupon/getCoupon",{coupon_id:t})}function u(t){return i.default.post("coupon/getBuyCouponList",t)}function c(t){return i.default.get("coupon/myCouponList",{params:t})}function s(t){return i.default.get("activity_area/activityGoodsList",{params:t})}function d(){return i.default.get("seckill_goods/getSeckillTime")}function l(t){return i.default.get("seckill_goods/getSeckillGoods",{params:t})}function f(t){return i.default.get("team/activity",{params:t})}function g(t){return i.default.get("team/record",{params:t})}function p(t){return i.default.get("team/teamInfo",{params:t})}function m(t){return i.default.post("team/kaituan",t)}function v(t){return i.default.post("team/check",t)}function h(t){return i.default.post("team/buy",t)}function b(t){return i.default.get("bargain/lists",{params:t})}function w(t){return i.default.get("bargain/detail",{params:t})}function y(){return i.default.get("bargain/barginNumber")}function _(t){return i.default.post("bargain/sponsor",t)}function x(t){return i.default.get("bargain/orderList",{params:t})}function k(t){return i.default.get("bargain/bargainDetail",{params:t})}function S(t){return i.default.get("share/shareBargain",{params:t})}function C(t){return i.default.post("bargain/knife",t)}function z(t){return i.default.get("bargain/closeBargain",{params:t})}function O(){return i.default.get("sign/lists")}function I(){return i.default.get("sign/rule")}function L(){return i.default.get("sign/sign")}function T(t){return i.default.get("integral_goods/lists",{params:t})}function B(t){return i.default.get("integral_goods/detail",{params:t})}function G(t){return i.default.get("integral_order/settlement",{params:t})}function j(t){return i.default.post("integral_order/submitOrder",t)}function A(t){return i.default.get("integral_order/lists",{params:t})}function M(t){return i.default.post("integral_order/del",{id:t})}function E(t){return i.default.get("integral_order/detail",{params:{id:t}})}function $(t){return i.default.post("integral_order/cancel",{id:t})}function D(t){return i.default.post("integral_order/confirm",{id:t})}function P(t){return i.default.get("integral_order/orderTraces",{params:{id:t}})}},"0b86":function(t,e,n){"use strict";var a=n("4ea4");n("99af"),n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("0057"),r=a(n("9df2")),o=a(n("6f4a")),u={mixins:[r.default,o.default],data:function(){return{groupList:[],downOption:{auto:!1},upOption:{auto:!0,noMoreSize:1,empty:{icon:"/static/images/goods_null.png",tip:"暂无拼团~",fixed:!0}}}},props:{groupType:{type:Number}},mounted:function(){},methods:{upCallback:function(t){this.$getUserGroup(t.num,t.size)},$getUserGroup:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,a=this.groupType;(0,i.getUserGroup)({type:a,page_no:e,page_size:n}).then((function(n){if(n){var a=n.data.list,i=a.length,r=!!n.data.more;1==e&&(t.lists=[]),console.log(r),t.groupList=t.lists.concat(a),t.mescroll.endSuccess(i,r)}})).catch((function(){t.mescroll.endErr()}))}},computed:{getGroupStatus:function(){return function(t){var e="";switch(t){case 0:e="拼团中";break;case 1:e="拼团成功";break;case 2:e="拼团失败";break}return e}},getTeamCountTime:function(){return function(t){return t.count_time=Math.min(t.found_end_time,t.end_time)-Date.now()/1e3}}}};e.default=u},6044:function(t,e,n){"use strict";n.r(e);var a=n("0b86"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},6606:function(t,e,n){var a=n("75df");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("34c6fd4a",a,!0,{sourceMap:!1,shadowMode:!1})},6967:function(t,e,n){"use strict";n.r(e);var a=n("c4e9"),i=n("6044");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("fa74");var o,u=n("f0c5"),c=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,"538fc054",null,!1,a["a"],o);e["default"]=c.exports},"6b71":function(t,e,n){"use strict";n.r(e);var a=n("f69d2"),i=n("a56e");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var o,u=n("f0c5"),c=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,"3ca000ec",null,!1,a["a"],o);e["default"]=c.exports},"6f4a":function(t,e,n){"use strict";n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{i:Number,index:{type:Number,default:function(){return 0}}},data:function(){return{downOption:{auto:!1},upOption:{auto:!1},isInit:!1}},watch:{index:function(t){this.i!==t||this.isInit||(this.isInit=!0,this.mescroll&&this.mescroll.triggerDownScroll())}},methods:{mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var t=this.$refs.mescrollRef||this.$refs["mescrollRef"+this.i];t&&(this.mescroll=t.mescroll)}},mescrollInit:function(t){this.mescroll=t,this.mescrollInitByRef&&this.mescrollInitByRef(),this.i===this.index&&(this.isInit=!0,this.mescroll.triggerDownScroll())}}},i=a;e.default=i},"75df":function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */uni-page-body[data-v-538fc054]{\n /* 定义一些主题色及基础样式 */font-family:PingFang SC,Arial,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:%?28?%;color:#333;padding-bottom:env(safe-area-inset-bottom);background-color:#f6f6f6}.bold[data-v-538fc054]{font-weight:700}\n/* 定义字体颜色 */.primary[data-v-538fc054]{color:#ff2c3c}.bg-primary[data-v-538fc054]{background-color:#ff2c3c}.bg-white[data-v-538fc054]{background-color:#fff}.bg-body[data-v-538fc054]{background-color:#f6f6f6}.bg-gray[data-v-538fc054]{background-color:#e5e5e5}.black[data-v-538fc054]{color:#101010}.white[data-v-538fc054]{color:#fff}.normal[data-v-538fc054]{color:#333}.lighter[data-v-538fc054]{color:#666}.muted[data-v-538fc054]{color:#999}\n/* 定义字体大小 */.xxl[data-v-538fc054]{font-size:%?36?%}.xl[data-v-538fc054]{font-size:%?34?%}.lg[data-v-538fc054]{font-size:%?32?%}.md[data-v-538fc054]{font-size:%?30?%}.nr[data-v-538fc054]{font-size:%?28?%}.sm[data-v-538fc054]{font-size:%?26?%}.xs[data-v-538fc054]{font-size:%?24?%}.xxs[data-v-538fc054]{font-size:%?22?%}\n/* 定义常用外边距 */.ml5[data-v-538fc054]{margin-left:%?5?%}.ml10[data-v-538fc054]{margin-left:%?10?%}.ml20[data-v-538fc054]{margin-left:%?20?%}.ml30[data-v-538fc054]{margin-left:%?30?%}.mr5[data-v-538fc054]{margin-right:%?5?%}.mr10[data-v-538fc054]{margin-right:%?10?%}.mr20[data-v-538fc054]{margin-right:%?20?%}.mr30[data-v-538fc054]{margin-right:%?30?%}.mt5[data-v-538fc054]{margin-top:%?5?%}.mt10[data-v-538fc054]{margin-top:%?10?%}.mt20[data-v-538fc054]{margin-top:%?20?%}.mt30[data-v-538fc054]{margin-top:%?30?%}.mb5[data-v-538fc054]{margin-bottom:%?5?%}.mb10[data-v-538fc054]{margin-bottom:%?10?%}.mb20[data-v-538fc054]{margin-bottom:%?20?%}.mb30[data-v-538fc054]{margin-bottom:%?30?%}\n/* 定义常用的弹性布局 */.flex1[data-v-538fc054]{flex:1}.flexnone[data-v-538fc054]{flex:none}.wrap[data-v-538fc054]{flex-wrap:wrap}.row[data-v-538fc054]{display:flex;align-items:center}.row-center[data-v-538fc054]{display:flex;align-items:center;justify-content:center}.row-end[data-v-538fc054]{display:flex;align-items:center;justify-content:flex-end}.row-between[data-v-538fc054]{display:flex;align-items:center;justify-content:space-between}.row-around[data-v-538fc054]{display:flex;align-items:center;justify-content:space-around}.column[data-v-538fc054]{display:flex;flex-direction:column;justify-content:center}.column-center[data-v-538fc054]{display:flex;flex-direction:column;align-items:center;justify-content:center}.column-around[data-v-538fc054]{display:flex;flex-direction:column;align-items:center;justify-content:space-around}.column-end[data-v-538fc054]{display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.column-between[data-v-538fc054]{display:flex;flex-direction:column;align-items:center;justify-content:space-between}\n/* 超出隐藏 */.line1[data-v-538fc054]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.line2[data-v-538fc054]{word-break:break-all;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}\n/* 中划线 */.line-through[data-v-538fc054]{text-decoration:line-through}\n/* br60 */.br60[data-v-538fc054]{border-radius:%?60?%}\n/* 初始化按钮 */uni-page-body uni-button[data-v-538fc054]{padding:0;margin:0;background-color:initial;font-weight:400;font-size:%?28?%;overflow:unset;margin-left:0;margin-right:0}uni-page-body uni-button[data-v-538fc054]::after{border:none}uni-button[type=primary][data-v-538fc054]{background-color:#ff2c3c}.button-hover[type=primary][data-v-538fc054]{background-color:#ff2c3c}\n/* 按钮大小 */uni-button[size="xs"][data-v-538fc054]{line-height:%?58?%;height:%?58?%;font-size:%?26?%;padding:0 %?30?%}uni-button[size="sm"][data-v-538fc054]{line-height:%?62?%;height:%?62?%;font-size:%?28?%;padding:0 %?30?%}uni-button[size="md"][data-v-538fc054]{line-height:%?70?%;height:%?70?%;font-size:%?30?%;padding:0 %?30?%}uni-button[size="lg"][data-v-538fc054]{line-height:%?80?%;height:%?80?%;font-size:%?32?%;padding:0 %?30?%}.icon-xs[data-v-538fc054]{min-height:%?28?%;min-width:%?28?%;height:%?28?%;width:%?28?%;vertical-align:middle}.icon-sm[data-v-538fc054]{min-height:%?30?%;min-width:%?30?%;height:%?30?%;width:%?30?%;vertical-align:middle}.icon[data-v-538fc054]{min-height:%?34?%;min-width:%?34?%;height:%?34?%;width:%?34?%;vertical-align:middle}.icon-md[data-v-538fc054]{min-height:%?44?%;min-width:%?44?%;height:%?44?%;width:%?44?%;vertical-align:middle}.icon-lg[data-v-538fc054]{min-height:%?52?%;min-width:%?52?%;height:%?52?%;width:%?52?%;vertical-align:middle}.icon-xl[data-v-538fc054]{min-height:%?64?%;min-width:%?64?%;height:%?64?%;width:%?64?%;vertical-align:middle}.icon-xxl[data-v-538fc054]{min-height:%?120?%;min-width:%?120?%;height:%?120?%;width:%?120?%;vertical-align:middle}.img-null[data-v-538fc054]{width:%?300?%;height:%?300?%}\n/* 隐藏滚动条 */[data-v-538fc054]::-webkit-scrollbar{width:0;height:0;color:transparent}.group-list[data-v-538fc054]{min-height:calc(100vh - %?80?%);padding:0 %?20?%;overflow:hidden}.group-list .item[data-v-538fc054]{border-radius:%?10?%;position:relative}.group-list .item .group-header[data-v-538fc054]{height:%?80?%;padding:0 %?24?%;border-bottom:1px dotted #e5e5e5}.group-list .item .team-chief[data-v-538fc054]{position:absolute;z-index:100;top:%?105?%;padding:%?4?% %?20?%;border-radius:0 %?60?% %?60?% 0;background:linear-gradient(87deg,#f95f2f,#ff2c3c)}.group-list .item .all-price[data-v-538fc054]{text-align:right;padding:0 %?24?% %?20?%}.group-list .item .group-footer[data-v-538fc054]{height:%?100?%;border-top:1px solid #e5e5e5;padding:0 %?24?%}.group-list .item .group-footer .btn[data-v-538fc054]{width:%?244?%}body.?%PAGE?%[data-v-538fc054]{background-color:#f6f6f6}',""]),t.exports=e},a56e:function(t,e,n){"use strict";n.r(e);var a=n("d3ef"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},c4e9:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var a={mescrollUni:n("de4f").default,orderGoods:n("c84d").default,priceFormat:n("8312").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mescroll-uni",{ref:"mescrollRef",attrs:{top:"80rpx",down:t.downOption,up:t.upOption},on:{down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)},up:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"group-list"},t._l(t.groupList,(function(e,a){return n("v-uni-navigator",{key:a,staticClass:"item bg-white mt20",attrs:{"hover-class":"none",url:"/bundle/pages/order_details/order_details?id="+e.order_id}},[n("v-uni-view",{staticClass:"group-header row-between"},[n("v-uni-view",[e.team_end_time?n("v-uni-view",[t._v(t._s(e.team_end_time))]):n("v-uni-view",[t.getTeamCountTime(e)>=0?n("v-uni-view",{staticClass:"row"},[n("v-uni-view",{staticClass:"sm mr10"},[t._v(t._s(e.shop_name))])],1):t._e()],1)],1),n("v-uni-view",{class:2==e.status?"muted":"primary"},[t._v(t._s(t.getGroupStatus(e.status)))])],1),n("v-uni-view",{staticClass:"group-con"},[e.identity_text?n("v-uni-view",{staticClass:"team-chief xs white"},[t._v(t._s(e.identity_text))]):t._e(),n("order-goods",{attrs:{team:{need:e.need},list:[{people_num:e.people_num,name:e.name,spec_value_str:e.spec_value_str,image:e.image,goods_num:e.count,goods_id:e.goods_id,goods_price:e.order_amount}]}}),n("v-uni-view",{staticClass:"all-price row-end"},[n("v-uni-text",{staticClass:"muted xs"},[t._v("共"+t._s(e.count)+"件商品,总金额:")]),n("price-format",{attrs:{"show-subscript":!0,"subscript-size":30,"first-size":30,"second-size":30,price:e.order_amount}})],1)],1),0==e.pay_status?n("v-uni-view",{staticClass:"group-footer row"},[n("v-uni-view",{staticStyle:{flex:"1"}}),n("v-uni-view",[0==e.pay_status?n("v-uni-navigator",{attrs:{"hover-class":"none",url:"/pages/order_details/order_details?id="+e.order_id}},[n("v-uni-button",{staticClass:"br60 lighter btn",attrs:{size:"sm",type:"primary","hover-class":"none"}},[t._v("去付款")])],1):t._e()],1)],1):t._e()],1)})),1)],1)},r=[]},d3ef:function(t,e,n){"use strict";n("c740"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("d429"),i={data:function(){return{active:"",group:[{name:"全部",type:a.groupType.ALL,isShow:!0},{name:"拼团中",type:a.groupType.PROGESS,isShow:!1},{name:"拼团成功",type:a.groupType.SUCCESS,isShow:!1},{name:"拼团失败",type:a.groupType.FAIL,isShow:!1}]}},onLoad:function(t){var e=this.group,n=t.type||a.groupType.ALL,i=e.findIndex((function(t){return t.type==n}));this.changeShow(i)},methods:{changeShow:function(t){-1!=t&&(this.active=t,this.group[t].isShow=!0)}}};e.default=i},f69d2:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var a={tabs:n("a243").default,tab:n("201c").default,groupList:n("6967").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"user-group"},[n("tabs",{attrs:{active:t.active,isScroll:!1},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeShow.apply(void 0,arguments)}}},t._l(t.group,(function(e,a){return n("tab",{key:a,attrs:{name:e.name}},[e.isShow?n("group-list",{ref:"group"+e.type,refInFor:!0,attrs:{groupType:e.type}}):t._e()],1)})),1)],1)},r=[]},fa74:function(t,e,n){"use strict";var a=n("6606"),i=n.n(a);i.a}}]);