12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/lunbobox"],{"1c67":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={name:"lunbobox",data:function(){return{lunboboxList:[],showIndex:0}},computed:{nextIndex:function(){return this.showIndex<this.lunboboxList.length-1?this.showIndex+1:0},cueeShowBox:function(){return this.lunboboxList[this.showIndex]}},created:function(){var n=this;this.getLunboBoxList(),setInterval((function(){n.showIndex=n.nextIndex}),3e3)},methods:{getLunboBoxList:function(){var n=this;this.$api.lunbobox().then((function(t){var e=t.code,o=t.data;1==e&&(n.lunboboxList=n.dataHandler(o))}))},dataHandler:function(n){var t=this,e=n.map((function(n){return n.nickname=t.nicknameHandler(n.nickname),n.goods_name=t.goodsNameHandler(n.goods_name),n}));return e},nicknameHandler:function(n){var t=n.substring(0,1),e=n.substring(n.length-2,n.length-1);return"".concat(t,"***").concat(e)},goodsNameHandler:function(n){var t=4;return n.length<=t?n:n.substring(0,t)},toDetail:function(){var t=this.cueeShowBox.box_id;console.log(this.cueeShowBox),t&&n.navigateTo({url:"/pages/index/details?id="+t+"&type=0"})}}};t.default=e}).call(this,e("543d")["default"])},"38f4":function(n,t,e){"use strict";e.r(t);var o=e("f3d3"),u=e("a004");for(var a in u)"default"!==a&&function(n){e.d(t,n,(function(){return u[n]}))}(a);e("b97e");var i,r=e("f0c5"),c=Object(r["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);t["default"]=c.exports},"94e5":function(n,t,e){},a004:function(n,t,e){"use strict";e.r(t);var o=e("1c67"),u=e.n(o);for(var a in o)"default"!==a&&function(n){e.d(t,n,(function(){return o[n]}))}(a);t["default"]=u.a},b97e:function(n,t,e){"use strict";var o=e("94e5"),u=e.n(o);u.a},f3d3:function(n,t,e){"use strict";var o;e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return o}));var u=function(){var n=this,t=n.$createElement;n._self._c},a=[]}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'components/lunbobox-create-component',
- {
- 'components/lunbobox-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("38f4"))
- })
- },
- [['components/lunbobox-create-component']]
- ]);
|