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.
2 lines
4.0 KiB
2 lines
4.0 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{160:function(t,e,n){"use strict";(function(t,e){var i=n(4);n(26);i(n(25));var r=i(n(161));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},161:function(t,e,n){"use strict";n.r(e);var i=n(162),r=n(164);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n(166);var o,u=n(32),d=Object(u["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"57280228",null,!1,i["components"],o);d.options.__file="pages/index/index.vue",e["default"]=d.exports},162:function(t,e,n){"use strict";n.r(e);var i=n(163);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},163:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return r})),n.d(e,"staticRenderFns",(function(){return o})),n.d(e,"recyclableRender",(function(){return a})),n.d(e,"components",(function(){return i}));var r=function(){var t=this,e=t.$createElement;t._self._c},a=!1,o=[];r._withStripped=!0},164:function(t,e,n){"use strict";n.r(e);var i=n(165),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},165:function(t,e,n){"use strict";(function(t){var i=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(55)),a=i(n(18)),o=i(n(57)),u=t.getSystemInfoSync(),d={data:function(){return{typedown1:"down",typedown:"down",colorred:"",colorred1:"",zdybt1:"zdybt1",zdybt2:"zdybt2",acindex:"",list111:[1,2,3,4],addWidth:u.screenWidth-70,addHeight:u.screenHeight-150,keyword:"",list:[],tabIndex:0,page:1,count:1,statusBarHeight:0,bgColor:"#dcdcdc"}},onLoad:function(){this.statusBarHeight=u.statusBarHeight},onShow:function(){},onReachBottom:function(){this.list.length<=this.count&&(this.page++,this.get_api_cage_list())},methods:{dijibut2:function(){this.zdybt1="zdybt1",this.colorred="",this.typedown="down",this.zdybt2="zdybt2active",this.typedown1="up",this.colorred1="#CA151F"},dijibut1:function(){this.zdybt1="zdybt1active",this.typedown="up",this.colorred1="",this.typedown1="down",this.zdybt2="zdybt2"},iemclick:function(t){this.acindex=t},julebu:function(){t.navigateTo({url:"/pages/user/clubs/clubs"})},regulations:function(){t.navigateTo({url:"/pages/index/regulations/regulations"})},huifang:function(){t.navigateTo({url:"/pages/index/detail"})},competition:function(){t.navigateTo({url:"/pages/index/competition/competition"})},get_api_cage_list:function(e){var n=this;return(0,o.default)(r.default.mark((function i(){var o,u,d,c;return r.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.showLoading({title:"加载中"}),1==e&&(n.page=1,n.list=[],n.keyword=""),i.next=4,n.$api.api_cage_list({uid:t.getStorageSync("userInfo").uid,order:0==n.tabIndex?"strains":1==n.tabIndex?"id":2==n.tabIndex?"gene":3==n.tabIndex?"type":"created",keyword:n.keyword,page:n.page});case 4:o=i.sent,u=o.errorcode,d=o.data,c=o.message,200==u?setTimeout((function(){t.hideLoading(),n.list=n.arrayUnique([].concat((0,a.default)(n.list),(0,a.default)(d.data)),"id"),n.count=d.count}),200):t.showToast({title:c,icon:"none"});case 9:case"end":return i.stop()}}),i)})))()},arrayUnique:function(t,e){var n={};return t.reduce((function(t,i){return!n[i[e]]&&(n[i[e]]=t.push(i)),t}),[])},tabItem:function(t){this.tabIndex=t,this.get_api_cage_list(1)},toPage:function(e,n){1==e?t.navigateTo({url:"/pages/index/detail?id="+n.id+"&type="+n.type+"&number="+n.number}):2==e?t.navigateTo({url:"/pages/index/create"}):t.scanCode({success:function(){}})}}};e.default=d}).call(this,n(2)["default"])},166:function(t,e,n){"use strict";n.r(e);var i=n(167),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},167:function(t,e,n){}},[[160,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|