bargain.js 4.0 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/visualization/components/bargain"],{"04b4":function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("9523")),a=n("86eb"),s=n("26cb"),o=n("6557"),c=n("2a39");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var u=getApp(),f={name:"bargain",props:{dataConfig:{type:Object,default:function(){}}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,s.mapGetters)(["isLogin","uid"])),watch:{dataConfig:{immediate:!0,handler:function(t,e){t&&(this.isShow=t.isShow.val,this.selectType=t.tabConfig.tabVal,this.$set(this,"selectId",t.selectConfig.activeValue||""),this.$set(this,"type",t.titleInfo.type),this.salesOrder=1==t.goodsSort.type?"desc":"",this.newsOrder=2==t.goodsSort.type?"news":"",this.ids=t.ids?t.ids.join(","):"",this.numConfig=t.numConfig.val,this.productslist())}}},data:function(){return{bargList:[],name:this.$options.name,isIframe:u.globalData.isIframe,isShow:!0,selectType:0,selectId:"",salesOrder:"",newsOrder:"",ids:"",page:1,limit:this.$config.LIMIT,type:"",numConfig:0}},created:function(){},mounted:function(){},methods:{productslist:function(){var t=this,e={};e=t.selectType?{page:t.page,limit:t.limit,type:t.type,ids:t.ids,selectType:t.selectType}:{page:t.page,limit:t.numConfig<=t.limit?t.numConfig:t.limit,type:t.type,newsOrder:t.newsOrder,salesOrder:t.salesOrder,selectId:t.selectId,selectType:t.selectType},(0,c.getHomeProducts)(e).then((function(e){t.bargList=e.data.list})).catch((function(e){t.$util.Tips({title:e})}))},bargDetail:function(e){var n=this;(0,o.goPage)(e).then((function(i){n.isLogin?t.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(e.id,"&bargain=").concat(n.uid)}):(0,a.toLogin)()}))}}};e.default=f}).call(this,n("543d")["default"])},"05c5":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.isIframe&&!t.bargList.length),i=n?t.$t("砍价模块,暂无数据"):null,r=t.bargList.length&&t.isShow&&!t.isIframe,a=r?t.$t("砍价活动"):null,s=r?t.$t("呼朋唤友来砍价"):null,o=r?t.$t("更多"):null,c=r?t.__map(t.bargList,(function(e,n){var i=t.__get_orig(e),r=t.$t("¥"),a=t.$t("¥");return{$orig:i,m4:r,m5:a}})):null,l=t.bargList.length&&t.isIframe,u=l?t.$t("砍价活动"):null,f=l?t.$t("呼朋唤友来砍价"):null,d=l?t.$t("更多"):null;t.$mp.data=Object.assign({},{$root:{g0:n,m0:i,g1:r,m1:a,m2:s,m3:o,l0:c,g2:l,m6:u,m7:f,m8:d}})},r=[]},1583:function(t,e,n){"use strict";var i=n("fcf2"),r=n.n(i);r.a},"35eb":function(t,e,n){"use strict";n.r(e);var i=n("05c5"),r=n("9f7d");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("1583");var s=n("f0c5"),o=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=o.exports},"9f7d":function(t,e,n){"use strict";n.r(e);var i=n("04b4"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},fcf2:function(t,e,n){}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'pages/index/visualization/components/bargain-create-component',
  4. {
  5. 'pages/index/visualization/components/bargain-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("35eb"))
  7. })
  8. },
  9. [['pages/index/visualization/components/bargain-create-component']]
  10. ]);