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.8 KiB
1 lines
3.8 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/keep"],{"221a":function(t,n,e){"use strict";e.r(n);var o=e("f77b"),i=e.n(o);for(var u in o)"default"!==u&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=i.a},"516b":function(t,n,e){},"700a":function(t,n,e){"use strict";e.r(n);var o=e("8a72"),i=e("221a");for(var u in i)"default"!==u&&function(t){e.d(n,t,(function(){return i[t]}))}(u);e("9548");var s,a=e("f0c5"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);n["default"]=c.exports},"8a72":function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return o}));var i=function(){var t=this,n=t.$createElement;t._self._c},u=[]},9548:function(t,n,e){"use strict";var o=e("516b"),i=e.n(o);i.a},c5e9:function(t,n,e){"use strict";(function(t){e("8d0c");o(e("66fd"));var n=o(e("700a"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},f77b:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("a34a"));function i(t){return t&&t.__esModule?t:{default:t}}function u(t,n,e,o,i,u,s){try{var a=t[u](s),c=a.value}catch(l){return void e(l)}a.done?n(c):Promise.resolve(c).then(o,i)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(o,i){var s=t.apply(n,e);function a(t){u(s,o,i,a,c,"next",t)}function c(t){u(s,o,i,a,c,"throw",t)}a(void 0)}))}}var a=function(){e.e("components/empty").then(function(){return resolve(e("9467"))}.bind(null,e)).catch(e.oe)},c={components:{empty:a},data:function(){return{goodsList:[],headerTop:0,typeClass:"goods",subState:"",theIndex:null,oldIndex:null,isStop:!1,uid:0}},onPageScroll:function(t){},onPullDownRefresh:function(){setTimeout((function(){t.stopPullDownRefresh()}),1e3)},onLoad:function(){var n=t.getStorageSync("userinfo");this.uid=n.uid,t.showLoading({title:"加载中"}),this.collectionlist()},onShow:function(){this.collectionlist()},methods:{collectionlist:function(){var n=this;return s(o.default.mark((function e(){var i,u;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.getStorageSync("userinfo"),e.next=3,n.$api.collectionlist({action:"collectionlist",uid:i.uid});case 3:u=e.sent,n.goodsList=u.data,t.hideLoading();case 6:case"end":return e.stop()}}),e)})))()},switchType:function(n){var e=this;this.typeClass!=n&&(t.pageScrollTo({scrollTop:0,duration:0}),this.typeClass=n,this.subState=""==this.typeClass?"":"show"+n,setTimeout((function(){e.oldIndex=null,e.theIndex=null,e.subState="goods"==e.typeClass?"":e.subState}),200))},touchStart:function(t,n){n.touches.length>1?this.isStop=!0:(this.oldIndex=this.theIndex,this.theIndex=null,this.initXY=[n.touches[0].pageX,n.touches[0].pageY])},touchMove:function(t,n){var e=this;if(n.touches.length>1)this.isStop=!0;else{var o=n.touches[0].pageX-this.initXY[0],i=n.touches[0].pageY-this.initXY[1];this.isStop||Math.abs(o)<5||(Math.abs(i)>Math.abs(o)?this.isStop=!0:o<0?(this.theIndex=t,this.isStop=!0):o>0&&null!=this.theIndex&&this.oldIndex==this.theIndex&&(this.oldIndex=t,this.theIndex=null,this.isStop=!0,setTimeout((function(){e.oldIndex=null}),150)))}},touchEnd:function(t,n){this.isStop=!1},navTo:function(n){t.navigateTo({url:n})},deleteCoupon:function(n,e){var i=this;return s(o.default.mark((function u(){var s;return o.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return e.length,o.next=3,i.$api.addcollection({action:"addcollection",type:"false",uid:i.uid,id:n});case 3:s=o.sent,t.showLoading({title:"删除中..."}),1==s.code&&i.collectionlist(),t.hideLoading();case 7:case"end":return o.stop()}}),u)})))()},discard:function(){}}};n.default=c}).call(this,e("543d")["default"])}},[["c5e9","common/runtime","common/vendor"]]]);
|