mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-07 06:15:33 +00:00
1 line
3.8 KiB
JavaScript
1 line
3.8 KiB
JavaScript
(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.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,e.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,i.getUserInfo)().then((function(n){t.userInfo=n.data}))}},onReachBottom:function(){this.getBargainUserList()}};n.default=f}).call(this,a("543d")["default"])},"70fb":function(t,n,a){"use strict";(function(t){a("7b91");e(a("66fd"));var n=e(a("9a32"));function e(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=a,t(n.default)}).call(this,a("543d")["createPage"])},9831:function(t,n,a){"use strict";var e=a("0812"),i=a.n(e);i.a},"9a32":function(t,n,a){"use strict";a.r(n);var e=a("d302"),i=a("b920");for(var u in i)"default"!==u&&function(t){a.d(n,t,(function(){return i[t]}))}(u);a("9831");var o,s=a("f0c5"),r=Object(s["a"])(i["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],o);n["default"]=r.exports},b920:function(t,n,a){"use strict";a.r(n);var e=a("1557"),i=a.n(e);for(var u in e)"default"!==u&&function(t){a.d(n,t,(function(){return e[t]}))}(u);n["default"]=i.a},d302:function(t,n,a){"use strict";var e;a.d(n,"b",(function(){return i})),a.d(n,"c",(function(){return u})),a.d(n,"a",(function(){return e}));var i=function(){var t=this,n=t.$createElement,a=(t._self._c,t.$t("已砍至")),e=t.$t("¥"),i=t.bargain.length>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=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"]]]); |