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.
1 lines
3.7 KiB
1 lines
3.7 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/bargain/index"],{1725:function(t,n,a){"use strict";var e=a("bc51"),i=a.n(e);i.a},"3e0e":function(t,n,a){"use strict";a.r(n);var e=a("4253"),i=a("7b1b");for(var u in i)["default"].indexOf(u)<0&&function(t){a.d(n,t,(function(){return i[t]}))}(u);a("1725");var o=a("f0c5"),s=Object(o["a"])(i["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=s.exports},4253:function(t,n,a){"use strict";a.d(n,"b",(function(){return e})),a.d(n,"c",(function(){return i})),a.d(n,"a",(function(){}));var e=function(){var t=this,n=t.$createElement,a=(t._self._c,t.bargain.length),e=a>0?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=t.$t("已砍至"),g=t.$t("¥"),d=1===n.status?t.$t("活动进行中"):null,m=3===n.status?t.$t("砍价成功"):null,b=2===n.status?t.$t("活动已结束"):null,p=1===n.status?t.$t("取消活动"):null,h=1===n.status?t.$t("继续砍价"):null;return{$orig:e,m0:i,m1:u,m2:o,m3:s,m4:r,m5:l,m6:c,m7:f,m8:g,m9:d,m10:m,m11:b,m12:p,m13:h}})):null,i=t.bargain.length,u=0==i?t.$t("暂无砍价记录"):null;t.$mp.data=Object.assign({},{$root:{g0:a,l0:e,g1:i,m14:u}})},i=[]},"481e":function(t,n,a){"use strict";(function(t,n){var e=a("4ea4");a("4789");e(a("66fd"));var i=e(a("3e0e"));t.__webpack_require_UNI_MP_PLUGIN__=a,n(i.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},"7b1b":function(t,n,a){"use strict";a.r(n);var e=a("b48a"),i=a.n(e);for(var u in e)["default"].indexOf(u)<0&&function(t){a.d(n,t,(function(){return e[t]}))}(u);n["default"]=i.a},b48a:function(t,n,a){"use strict";(function(t){var e=a("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a("84d8"),u=a("d1ea"),o=e(a("19b6")),s={name:"BargainRecord",components:{CountDown:function(){a.e("components/countDown/index").then(function(){return resolve(a("80f6"))}.bind(null,a)).catch(a.oe)},Loading:function(){a.e("components/Loading/index").then(function(){return resolve(a("c986"))}.bind(null,a)).catch(a.oe)},emptyPage:function(){a.e("components/emptyPage").then(function(){return resolve(a("42ff"))}.bind(null,a)).catch(a.oe)},home:function(){Promise.all([a.e("common/vendor"),a.e("components/home/index")]).then(function(){return resolve(a("3b71"))}.bind(null,a)).catch(a.oe)}},props:{},mixins:[o.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,i.getBargainUserList)({page:t.page,limit:t.limit}).then((function(n){t.status=n.data.length<t.limit,t.bargain.push.apply(t.bargain,n.data),t.page++,t.loadingList=!1})).catch((function(n){t.$util.Tips({title:n})}))},getBargainUserCancel:function(t){var n=this;(0,i.getBargainUserCancel)({bargainId:t}).then((function(t){n.status=!1,n.loadingList=!1,n.page=1,n.bargain=[],n.getBargainUserList(),n.$util.Tips({title:t.msg})})).catch((function(t){n.$util.Tips({title:t})}))},getUserInfo:function(){var t=this;(0,u.getUserInfo)().then((function(n){t.userInfo=n.data}))}},onReachBottom:function(){this.getBargainUserList()}};n.default=s}).call(this,a("543d")["default"])},bc51:function(t,n,a){}},[["481e","common/runtime","common/vendor"]]]); |