(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/bargain/index"],{"0812":function(t,n,a){},1557:function(t,n,a){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=a("64d0"),i=a("816a"),u=o(a("9ad2"));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){a.e("components/countDown/index").then(function(){return resolve(a("bda5"))}.bind(null,a)).catch(a.oe)},r=function(){a.e("components/emptyPage").then(function(){return resolve(a("d173"))}.bind(null,a)).catch(a.oe)},l=function(){a.e("components/Loading/index").then(function(){return resolve(a("437f"))}.bind(null,a)).catch(a.oe)},c=function(){Promise.all([a.e("common/vendor"),a.e("components/home/index")]).then(function(){return resolve(a("a25b"))}.bind(null,a)).catch(a.oe)},f={name:"BargainRecord",components:{CountDown:s,Loading:l,emptyPage:r,home:c},props:{},mixins:[u.default],data:function(){return{bargain:[],status:!1,loadingList:!1,page:1,limit:20,userInfo:{}}},onLoad:function(){this.getBargainUserList(),this.getUserInfo()},methods:{goDetail:function(n){t.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(n,"&bargain=").concat(this.userInfo.uid)})},goList:function(){t.navigateTo({url:"/pages/activity/goods_bargain/index"})},getBargainUserList:function(){var t=this;t.loadingList||t.status||(0,e.getBargainUserList)({page:t.page,limit:t.limit}).then((function(n){t.status=n.data.length0?t.__map(t.bargain,(function(n,a){var e=t.__get_orig(n),i=1===n.status?t.$t("倒计时"):null,u=1===n.status?t.$t("天"):null,o=1===n.status?t.$t("时"):null,s=1===n.status?t.$t("分"):null,r=1===n.status?t.$t("秒"):null,l=1!==n.status&&3===n.status?t.$t("砍价成功"):null,c=1!==n.status&&3!==n.status?t.$t("活动已结束"):null,f=1===n.status?t.$t("活动进行中"):null,d=1!==n.status&&3===n.status?t.$t("砍价成功"):null,g=1!==n.status&&3!==n.status?t.$t("活动已结束"):null,m=1===n.status?t.$t("取消活动"):null,b=1===n.status?t.$t("继续砍价"):null;return{$orig:e,m0:i,m1:u,m2:o,m3:s,m4:r,m5:l,m6:c,m9:f,m10:d,m11:g,m12:m,m13:b}})):null,u=0==t.bargain.length?t.$t("暂无砍价记录"):null;t.$mp.data=Object.assign({},{$root:{m7:a,m8:e,l0:i,m14:u}})},u=[]}},[["70fb","common/runtime","common/vendor"]]]);