pages-activity-bargain-index.fc86a02a.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-bargain-index"],{"0bf0":function(t,e,a){"use strict";var n=a("103b"),i=a.n(n);i.a},"103b":function(t,e,a){var n=a("c73c");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("b01e6560",n,!0,{sourceMap:!1,shadowMode:!1})},1626:function(t,e,a){"use strict";a.r(e);var n=a("f8cf"),i=a("ae2bd");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("3861");var o,u=a("f0c5"),d=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,"60697522",null,!1,n["a"],o);e["default"]=d.exports},"16c5":function(t,e,a){var n=a("4da1");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("ee6313fa",n,!0,{sourceMap:!1,shadowMode:!1})},1743:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[t.bargain.length>0?[a("div",{ref:"container",staticClass:"bargain-record"},[t._l(t.bargain,(function(e,n){return a("div",{key:n,staticClass:"item"},[a("div",{staticClass:"picTxt acea-row row-between-wrapper"},[a("div",{staticClass:"pictrue"},[a("v-uni-image",{attrs:{src:e.image}})],1),a("div",{staticClass:"text acea-row row-column-around"},[a("div",{staticClass:"line1",staticStyle:{width:"100%"}},[t._v(t._s(e.title))]),1===e.status?a("count-down",{attrs:{"justify-left":"justify-content:left","is-day":!0,"tip-text":"倒计时 ","day-text":" 天 ","hour-text":" 时 ","minute-text":" 分 ","second-text":" 秒",datatime:e.datatime}}):3===e.status?a("div",{staticClass:"successTxt font-color-red"},[t._v("砍价成功")]):a("div",{staticClass:"endTxt"},[t._v("活动已结束")]),a("div",{staticClass:"money font-color-red"},[t._v("已砍至"),a("span",{staticClass:"symbol"},[t._v("¥")]),a("span",{staticClass:"num"},[t._v(t._s(e.residue_price))])])],1)]),a("div",{staticClass:"bottom acea-row row-between-wrapper"},[1===e.status?a("div",{staticClass:"purple"},[t._v("活动进行中")]):3===e.status?a("div",{staticClass:"success"},[t._v("砍价成功")]):a("div",{staticClass:"end"},[t._v("活动已结束")]),a("div",{staticClass:"acea-row row-middle row-right"},[1===e.status?a("div",{staticClass:"bnt cancel",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.getBargainUserCancel(e.bargain_id)}}},[t._v("取消活动")]):t._e(),1===e.status?a("div",{staticClass:"bnt bg-color-red",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goDetail(e.bargain_id)}}},[t._v("继续砍价")]):t._e()])])])})),a("Loading",{attrs:{loaded:t.status,loading:t.loadingList}})],2)]:t._e(),0==t.bargain.length?[a("emptyPage",{attrs:{title:"暂无砍价记录~"}})]:t._e()],2)},r=[]},2946:function(t,e,a){"use strict";a.r(e);var n=a("1743"),i=a("84cf");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("e37c");var o,u=a("f0c5"),d=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,"4559b7d2",null,!1,n["a"],o);e["default"]=d.exports},3861:function(t,e,a){"use strict";var n=a("16c5"),i=a.n(n);i.a},4025:function(t,e,a){"use strict";a.r(e);var n=a("9e72"),i=a("9487");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("9844");var o,u=a("f0c5"),d=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,"0d9dfabe",null,!1,n["a"],o);e["default"]=d.exports},"42da":function(t,e,a){"use strict";a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"countDown",props:{justifyLeft:{type:String,default:""},tipText:{type:String,default:"倒计时"},dayText:{type:String,default:"天"},hourText:{type:String,default:"时"},minuteText:{type:String,default:"分"},secondText:{type:String,default:"秒"},datatime:{type:Number,default:0},isDay:{type:Boolean,default:!0}},data:function(){return{day:"00",hour:"00",minute:"00",second:"00"}},created:function(){this.show_time()},mounted:function(){},methods:{show_time:function(){var t=this;function e(){var e=t.datatime-Date.parse(new Date)/1e3,a=0,n=0,i=0,r=0;e>0?(a=!0===t.isDay?Math.floor(e/86400):0,n=Math.floor(e/3600)-24*a,i=Math.floor(e/60)-24*a*60-60*n,r=Math.floor(e)-24*a*60*60-60*n*60-60*i,n<=9&&(n="0"+n),i<=9&&(i="0"+i),r<=9&&(r="0"+r),t.day=a,t.hour=n,t.minute=i,t.second=r):(t.day="00",t.hour="00",t.minute="00",t.second="00")}e(),setInterval(e,1e3)}}};e.default=n},"4da1":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".Loads[data-v-60697522]{height:%?80?%;font-size:%?25?%;color:#000}.Loads .iconfont[data-v-60697522]{font-size:%?30?%;margin-right:%?10?%;height:%?32?%;line-height:%?32?%}\n/*加载动画*/@-webkit-keyframes load-data-v-60697522{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes load-data-v-60697522{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loadingpic[data-v-60697522]{-webkit-animation:load-data-v-60697522 3s linear 1s infinite;animation:load-data-v-60697522 3s linear 1s infinite}.loading[data-v-60697522]{-webkit-animation:load-data-v-60697522 linear 1s infinite;animation:load-data-v-60697522 linear 1s infinite}",""]),t.exports=e},"686f":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"empty-box"},[a("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),a("v-uni-view",{staticClass:"txt"},[t._v(t._s(t.title))])],1)},r=[]},"6fed":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getBargainDetail=r,e.postBargainHelpCount=o,e.postBargainStartUser=u,e.postBargainStart=d,e.postBargainHelpPrice=s,e.postBargainHelp=c,e.postBargainHelpList=l,e.postBargainShare=f,e.getBargainUserList=g,e.getBargainUserCancel=p,e.getCombinationList=v,e.getCombinationDetail=m,e.getCombinationPink=b,e.postCombinationRemove=h,e.getBargainList=x,e.bargainUserCancel=y,e.getSeckillIndexTime=_,e.getSeckillList=w,e.getSeckillDetail=C,e.getBargainPoster=T,e.getCombinationPoster=k,e.seckillCode=L,e.scombinationCode=B;var i=n(a("c9b6"));function r(t,e){return(0,i.default)({url:"/api/bargain/detail/"+e,method:"get",data:t})}function o(t){return(0,i.default)({url:"/api/bargain/help/count",method:"post",data:t})}function u(t){return(0,i.default)({url:"/api/bargain/start/user",method:"post",data:t})}function d(t){return(0,i.default)({url:"/api/bargain/start",method:"post",data:t})}function s(t){return(0,i.default)({url:"/api/bargain/help/price",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/bargain/help",method:"post",data:t})}function l(t){return(0,i.default)({url:"/api/bargain/help/list",method:"post",data:t})}function f(t){return(0,i.default)({url:"/api/bargain/share",method:"post",data:t})}function g(t){return(0,i.default)({url:"/api/bargain/user/list",method:"get",data:t})}function p(t){return(0,i.default)({url:"/api/bargain/user/cancel",method:"post",data:t})}function v(t){return i.default.get("combination/list",t,{noAuth:!0})}function m(t){return i.default.get("combination/detail/"+t)}function b(t){return i.default.get("combination/pink/"+t)}function h(t){return i.default.post("combination/remove",t)}function x(t){return i.default.get("bargain/list",t,{noAuth:!0})}function y(t){return i.default.post("bargain/user/cancel",{bargainId:t})}function _(){return i.default.get("seckill/index",{},{noAuth:!0})}function w(t,e){return i.default.get("seckill/list/"+t,e,{noAuth:!0})}function C(t){return i.default.get("seckill/detail/"+t)}function T(t){return i.default.post("bargain/poster",t)}function k(t){return i.default.post("combination/poster",t)}function L(t,e){return i.default.get("seckill/code/"+t,e)}function B(t){return i.default.get("combination/code/"+t)}},7484:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{title:{type:String,default:"暂无记录"}}};e.default=n},"786c":function(t,e,a){"use strict";var n=a("4ea4");a("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("4025")),r=n(a("beef")),o=a("6fed"),u=a("b726"),d=n(a("1626")),s={name:"BargainRecord",components:{CountDown:i.default,Loading:d.default,emptyPage:r.default},props:{},data:function(){return{bargain:[],status:!1,loadingList:!1,page:1,limit:20,userInfo:{}}},onLoad:function(){this.getBargainUserList(),this.getUserInfo()},methods:{goDetail:function(t){uni.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(t,"&bargain=").concat(this.userInfo.uid)})},goList:function(){uni.navigateTo({url:"/pages/activity/goods_bargain/index"})},getBargainUserList:function(){var t=this;t.loadingList||t.status||(0,o.getBargainUserList)({page:t.page,limit:t.limit}).then((function(e){t.status=e.data.length<t.limit,t.bargain.push.apply(t.bargain,e.data),t.page++,t.loadingList=!1})).catch((function(e){t.$dialog.error(e.msg)}))},getBargainUserCancel:function(t){var e=this;uni.showModal({title:"提示",content:"确定取消砍价商品吗",success:function(a){a.confirm?(console.log("用户点击确定"),(0,o.getBargainUserCancel)({bargainId:t}).then((function(t){e.status=!1,e.loadingList=!1,e.page=1,e.bargain=[],e.getBargainUserList(),uni.showToast({title:t.msg})})).catch((function(t){uni.showToast({title:t})}))):a.cancel&&console.log("用户点击取消")}})},getUserInfo:function(){var t=this;(0,u.userinfos)().then((function(e){t.userInfo=e.data}))}},onReachBottom:function(){this.getBargainUserList()}};e.default=s},"84cf":function(t,e,a){"use strict";a.r(e);var n=a("786c"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"8f8f":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".time[data-v-0d9dfabe]{display:flex;justify-content:center}.red[data-v-0d9dfabe]{color:#fc4141;margin:0 %?4?%}",""]),t.exports=e},9487:function(t,e,a){"use strict";a.r(e);var n=a("42da"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},9844:function(t,e,a){"use strict";var n=a("aa5b"),i=a.n(n);i.a},"9e72":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"time",style:t.justifyLeft},[t.tipText?a("v-uni-text",{staticClass:"red"},[t._v(t._s(t.tipText))]):t._e(),!0===t.isDay?a("v-uni-text",{staticClass:"styleAll"},[t._v(t._s(t.day))]):t._e(),t.dayText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.dayText))]):t._e(),a("v-uni-text",{staticClass:"styleAll"},[t._v(t._s(t.hour))]),t.hourText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.hourText))]):t._e(),a("v-uni-text",{staticClass:"styleAll"},[t._v(t._s(t.minute))]),t.minuteText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.minuteText))]):t._e(),a("v-uni-text",{staticClass:"styleAll"},[t._v(t._s(t.second))]),t.secondText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.secondText))]):t._e()],1)},r=[]},aa5b:function(t,e,a){var n=a("8f8f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("25f8e3cc",n,!0,{sourceMap:!1,shadowMode:!1})},ac8d:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"Loading",props:{loaded:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}}};e.default=n},ae2bd:function(t,e,a){"use strict";a.r(e);var n=a("ac8d"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},b726:function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.lookSubpoints=r,e.lookOneself=o,e.spread=u,e.myspread=d,e.orderData=s,e.getUserInfo=c,e.userinfo=l,e.spreadBanner=f,e.getAddressList=g,e.addressEdit=p,e.addressDel=v,e.setAddressDefault=m,e.getCartList=b,e.getCartNum=h,e.cartDel=x,e.getcollectList=y,e.delcollect=_,e.transfer=w,e.yuetransfer=C,e.cashtransfer=T,e.share=k;var i=n(a("c9b6"));function r(t,e){return(0,i.default)({url:"/api/tree/children/"+e,method:"get",data:t})}function o(t){return(0,i.default)({url:"/api/tree/points",method:"get",data:t})}function u(t){return(0,i.default)({url:"/api/user/spread",method:"post",data:t})}function d(t){return(0,i.default)({url:"/api/spread/people",method:"POST",data:t})}function s(t){return(0,i.default)({url:"/api/order/data",method:"get",data:t})}function c(t){return(0,i.default)({url:"/api/userinfo",method:"get",data:t})}function l(t){return(0,i.default)({url:"/api/userinfo",method:"get",data:t})}function f(t){return(0,i.default)({url:"/api/spread/banner",method:"get",data:t})}function g(t){return(0,i.default)({url:"/api/address/list",method:"get",data:t})}function p(t){return(0,i.default)({url:"/api/address/edit",method:"post",data:t})}function v(t){return(0,i.default)({url:"/api/address/del",method:"post",data:t})}function m(t){return(0,i.default)({url:"/api/address/default/set",method:"post",data:t})}function b(t){return(0,i.default)({url:"/api/cart/list",method:"get",data:t})}function h(t){return(0,i.default)({url:"/api/cart/num",method:"post",data:t})}function x(t){return(0,i.default)({url:"/api/cart/del",method:"post",data:t})}function y(t){return(0,i.default)({url:"/api/collect/user",method:"get",data:t})}function _(t){return(0,i.default)({url:"/api/collect/del",method:"post",data:t})}function w(t){return(0,i.default)({url:"/api/trade",method:"post",data:t})}function C(t){return(0,i.default)({url:"/api/yue/trade",method:"post",data:t})}function T(t){return(0,i.default)({url:"/api/cash/trade",method:"post",data:t})}function k(t){return(0,i.default)({url:"/api/game",method:"get",data:t})}},beef:function(t,e,a){"use strict";a.r(e);var n=a("686f"),i=a("ce55");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("0bf0");var o,u=a("f0c5"),d=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,"244d8f0e",null,!1,n["a"],o);e["default"]=d.exports},c73c:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.empty-box[data-v-244d8f0e]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-244d8f0e]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-244d8f0e]{font-size:%?26?%;color:#999}',""]),t.exports=e},ce55:function(t,e,a){"use strict";a.r(e);var n=a("7484"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},d320:function(t,e,a){var n=a("e3f8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("07f43730",n,!0,{sourceMap:!1,shadowMode:!1})},e37c:function(t,e,a){"use strict";var n=a("d320"),i=a.n(n);i.a},e3f8:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-4559b7d2]{background-color:#f5f5f5}\n/*砍价记录*/.bargain-record .item .picTxt .text .time .styleAll[data-v-4559b7d2]{color:#fc4141;font-size:%?24?%}.bargain-record .item .picTxt .text .time .red[data-v-4559b7d2]{color:#999;font-size:%?24?%}.bargain-record .item[data-v-4559b7d2]{background-color:#fff;margin-bottom:%?12?%}.bargain-record .item .picTxt[data-v-4559b7d2]{height:%?210?%;border-bottom:1px solid #f0f0f0;padding:0 %?30?%}.bargain-record .item .picTxt .pictrue[data-v-4559b7d2]{width:%?150?%;height:%?150?%}.bargain-record .item .picTxt .pictrue uni-image[data-v-4559b7d2]{width:100%;height:100%;border-radius:%?6?%}.bargain-record .item .picTxt .text[data-v-4559b7d2]{width:%?515?%;font-size:%?30?%;color:#282828;height:%?150?%}.bargain-record .item .picTxt .text .time[data-v-4559b7d2]{font-size:%?24?%;color:#868686;justify-content:left!important}.bargain-record .item .picTxt .text .successTxt[data-v-4559b7d2]{font-size:%?24?%}.bargain-record .item .picTxt .text .endTxt[data-v-4559b7d2]{font-size:%?24?%;color:#999}.bargain-record .item .picTxt .text .money[data-v-4559b7d2]{font-size:%?24?%}.bargain-record .item .picTxt .text .money .num[data-v-4559b7d2]{font-size:%?32?%;font-weight:700}.bargain-record .item .picTxt .text .money .symbol[data-v-4559b7d2]{font-weight:700}.bargain-record .item .bottom[data-v-4559b7d2]{height:%?100?%;padding:0 %?30?%;font-size:%?27?%}.bargain-record .item .bottom .purple[data-v-4559b7d2]{color:#f78513}.bargain-record .item .bottom .end[data-v-4559b7d2]{color:#999}.bargain-record .item .bottom .success[data-v-4559b7d2]{color:#e93323}.bargain-record .item .bottom .bnt[data-v-4559b7d2]{font-size:%?27?%;color:#fff;width:%?176?%;height:%?60?%;border-radius:%?32?%;text-align:center;line-height:%?60?%}.bargain-record .item .bottom .bnt.cancel[data-v-4559b7d2]{color:#aaa;border:1px solid #ddd}.bargain-record .item .bottom .bnt ~ .bnt[data-v-4559b7d2]{margin-left:%?18?%}body.?%PAGE?%[data-v-4559b7d2]{background-color:#f5f5f5}',""]),t.exports=e},f8cf:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[t.loading&&!t.loaded?a("v-uni-view",{staticClass:"Loads acea-row row-center-wrapper",staticStyle:{"margin-top":".2rem"}},[t.loading?a("v-uni-view",[a("v-uni-view",{staticClass:"iconfont icon-jiazai loading acea-row row-center-wrapper"}),t._v("正在加载中")],1):a("v-uni-view",[t._v("上拉加载更多")])],1):t._e()],1)},r=[]}}]);