| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-assist-index"],{"0ee1":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page_container",style:{backgroundImage:"url("+t.domain+"assist_bg.png)"}},[i("v-uni-view",{staticClass:"bargain-list"},[i("v-uni-view",{staticClass:"sys-head fixed"},[i("v-uni-view",{staticClass:"sys-bar",style:{height:t.sysHeight}}),t.isFixed?i("v-uni-view",{staticClass:"bg"}):t._e()],1),i("v-uni-view",{staticClass:"list bg-f boder-24"},[t._l(t.assistList,(function(e,n){return[i("v-uni-view",{key:n+"_0",staticClass:"item acea-row row-between-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.openSubscribe(e.product_assist_id)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e.product.image}})],1),i("v-uni-view",{staticClass:"text acea-row row-column-around"},[i("v-uni-view",{staticClass:"name line2"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"num acea-row row-middle"},[i("v-uni-text",{staticClass:"iconfont icon-ic_fire"}),i("v-uni-text",{staticClass:"font-bold"},[t._v(t._s(e.user_count)+"人正在参与")])],1),i("v-uni-view",{staticClass:"money font-bold"},[t._v("最低:"),i("priceFormat",{attrs:{price:e.assistSku&&e.assistSku[0].assist_price,weight:!0,intSize:"40",floatSize:"24",labelSize:"24"}})],1),i("v-uni-view",{staticClass:"price regular"},[t._v("¥"+t._s(e.product.price))])],1),i("v-uni-view",{staticClass:"cutBnt"},[t._v("发起助力")])],1)]}))],2)],1),i("home")],1)},o=[]},"1bc2":function(t,e,i){var n=i("247d9");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("967d").default;o("95acdde0",n,!0,{sourceMap:!1,shadowMode:!1})},"247d9":function(t,e,i){var n=i("c86c");e=n(!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/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.page_container[data-v-e2cb8516]{width:100%;min-height:100vh;background-size:100% %?926?%;background-repeat:no-repeat;padding-top:%?470?%}.sys-head .bg[data-v-e2cb8516]{background:#e93323}.bargain-list .list[data-v-e2cb8516]{margin:0 %?20?%;padding:%?20?% %?24?% 0;position:relative;top:%?-50?%}.bargain-list .list .item[data-v-e2cb8516]{position:relative;padding:%?20?% 0}.bargain-list .list .item .pictrue[data-v-e2cb8516]{width:%?240?%;height:%?240?%}.bargain-list .list .item .pictrue uni-image[data-v-e2cb8516]{width:100%;height:100%;border-radius:%?16?%}.bargain-list .list .item .text[data-v-e2cb8516]{width:%?400?%}.bargain-list .list .item .text .name[data-v-e2cb8516]{font-size:%?28?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.bargain-list .list .item .text .num[data-v-e2cb8516]{font-size:%?22?%;color:#e93323;margin-top:%?8?%}.bargain-list .list .item .text .num .iconfont[data-v-e2cb8516]{font-size:%?30?%;margin-right:%?4?%}.bargain-list .list .item .text .money[data-v-e2cb8516]{font-size:%?22?%;color:#e93323;margin-top:%?34?%}.bargain-list .list .item .text .price[data-v-e2cb8516]{font-size:%?26?%;color:#999;-webkit-text-decoration-line:line-through;text-decoration-line:line-through;margin-top:%?10?%}.bargain-list .list .item .cutBnt[data-v-e2cb8516]{position:absolute;width:%?140?%;display:flex;align-items:center;justify-content:center;border-radius:%?50?%;font-size:%?24?%;color:#fff;height:%?56?%;right:0;bottom:%?20?%;background:linear-gradient(90deg,#ff7931,#e93323)}.bargain-list .list .item .cutBnt .iconfont[data-v-e2cb8516]{margin-right:%?8?%;font-size:%?30?%}.bargain-list .list .load[data-v-e2cb8516]{font-size:%?24?%;height:%?85?%;text-align:center;line-height:%?85?%}',""]),t.exports=e},"247f":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticStyle:{"touch-action":"none"},style:t.viewColor},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px",bottom:t.bottom},attrs:{id:"right-nav"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?i("v-uni-view",{staticClass:"homeCon",class:!0===t.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-ic_home",attrs:{"hover-class":"none",url:"/pages/index/index","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-ic_ShoppingCart1",attrs:{"hover-class":"none",url:"/pages/order_addcart/order_addcart","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-ic_user1",attrs:{"hover-class":"none",url:"/pages/user/index","open-type":"switchTab"}})],1):t._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image pictruea",attrs:{src:!0===t.homeActive?t.domain+"/static/images/navbtn_open.gif":t.domain+"/static/images/navbtn_close.gif"}})],1)],1)],1)],1)},o=[]},2968:function(t,e,i){var n=i("87a7");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("967d").default;o("0ecf5b3c",n,!0,{sourceMap:!1,shadowMode:!1})},"36a0":function(t,e,i){"use strict";i.r(e);var n=i("f5bda"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"4c0c":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("8f59"),o=i("aa10"),a={name:"Home",props:{},data:function(){return{domain:o.HTTP_REQUEST_URL,top:"",bottom:""}},computed:(0,n.mapGetters)(["homeActive","viewColor","keyColor"]),methods:{setTouchMove:function(t){t.touches[0].clientY<545&&t.touches[0].clientY>66&&(this.top=t.touches[0].clientY,this.bottom="auto")},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){this.bottom="50px"}};e.default=a},6776:function(t,e,i){"use strict";var n=i("2968"),o=i.n(n);o.a},"6ed47":function(t,e,i){"use strict";i.r(e);var n=i("0ee1"),o=i("36a0");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("f4d4");var s=i("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"e2cb8516",null,!1,n["a"],void 0);e["default"]=r.exports},7935:function(t,e,i){"use strict";i.r(e);var n=i("4c0c"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"87a7":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,".pictrueBox[data-v-0dd0b5be]{width:%?130?%;height:%?120?%}\n/*返回主页按钮*/.home[data-v-0dd0b5be]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:flex}.home .homeCon[data-v-0dd0b5be]{border-radius:%?50?%;opacity:0;height:0;color:#e93323;width:0}.home .homeCon.on[data-v-0dd0b5be]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)}.home .homeCon .iconfont[data-v-0dd0b5be]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-0dd0b5be]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme);box-shadow:0 %?5?% %?12?% rgba(0,0,0,.5)}.home .pictrue .image[data-v-0dd0b5be]{width:100%;height:100%}.pictruea[data-v-0dd0b5be]{width:100%;height:100%;display:block;object-fit:cover;vertical-align:middle}",""]),t.exports=e},d727:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return o.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(t){return o.default.get("store/product/assist/count",t,{noAuth:!0})},e.cancelReservationApi=function(t){return o.default.post("order/self/cancel/".concat(t))},e.getActivitycategory=function(t){return o.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t,e){return o.default.get("store/product/assist/detail/"+t,e)},e.getAssistList=function(t){return o.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return o.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return o.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return o.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t,e){return o.default.get("store/product/group/detail/"+t,e,{noAuth:!0})},e.getCombinationList=function(t){return o.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return o.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return o.default.post("combination/poster",t)},e.getCombinationUser=function(t){return o.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return o.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return o.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return o.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return o.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getReservationDate=function(t,e){return o.default.get("store/product/reservation/getMonth/".concat(t),e)},e.getReservationMerData=function(t){return o.default.get("store/merchant/detail/".concat(t))},e.getReservationTimes=function(t,e){return o.default.get("store/product/reservation/getDay/".concat(t),e)},e.getSeckillDetail=function(t){return o.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return o.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return o.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return o.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return o.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return o.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return o.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return o.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return o.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return o.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return o.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return o.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return o.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return o.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return o.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})};var o=n(i("fea3"))},defc:function(t,e,i){"use strict";i.r(e);var n=i("247f"),o=i("7935");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("6776");var s=i("828b"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"0dd0b5be",null,!1,n["a"],void 0);e["default"]=r.exports},f4d4:function(t,e,i){"use strict";var n=i("1bc2"),o=i.n(n);o.a},f5bda:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223");var o=i("d727"),a=n(i("defc")),s=i("672a"),r=i("8f59"),c=i("96e0"),u=i("aa10"),d=i("e44d"),l=uni.getSystemInfoSync().statusBarHeight+"px",f={components:{home:a.default},data:function(){return{sysHeight:l,domain:u.HTTP_REQUEST_URL+"/static/images/",topImage:"",assistList:[],active:0,type:0,scrollLeft:0,interval:0,status:1,page:1,limit:10,loading:!1,loadend:!1,pageloading:!1,userInfo:{},isFixed:!1}},computed:(0,c.configMap)({statusBarHeight:0},(0,r.mapGetters)(["isLogin"])),watch:{isLogin:{handler:function(t,e){t&&(this.getUserInfo(),this.getAssistProductList())},deep:!0}},onLoad:function(){this.getAssistProductList(),this.isLogin&&this.getUserInfo()},methods:{goBack:function(){uni.navigateBack()},getAssistProductList:function(){var t=this,e={page:t.page,limit:t.limit};t.loadend||t.pageloading||(t.pageloading=!0,(0,o.getAssistList)(e).then((function(e){var i=e.data.list,n=i.length<t.limit;t.page++,t.assistList=t.assistList.concat(i),uni.stopPullDownRefresh(),t.pageloading=!1,t.loadend=n})).catch((function(e){t.pageloading=!1})))},openSubscribe:function(t){this.isLogin?(0,o.initiateAssistApi)(t).then((function(t){var e=t.data.product_assist_set_id;uni.hideLoading(),uni.navigateTo({url:"/pages/activity/assist_detail/index?id="+e})})).catch((function(t){uni.showToast({title:t,icon:"none"})})):(0,d.toLogin)()},getUserInfo:function(){var t=this;(0,s.getUserInfo)().then((function(e){t.$set(t,"userInfo",e.data)}))}},onPullDownRefresh:function(){this.page=1,this.pageloading=!1,this.loadend=!1,this.assistList=[],this.getAssistProductList()},onPageScroll:function(t){this.isFixed=t.scrollTop>60},onReachBottom:function(){this.getAssistProductList()}};e.default=f}}]);
|