message.js 3.0 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/message"],{"1cdb":function(t,n,e){"use strict";(function(t){e("02cf");o(e("66fd"));var n=o(e("2e1e"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"2e1e":function(t,n,e){"use strict";e.r(n);var o=e("5797"),u=e("88ec");for(var i in u)"default"!==i&&function(t){e.d(n,t,(function(){return u[t]}))}(i);e("31dc");var a,s=e("f0c5"),r=Object(s["a"])(u["default"],o["b"],o["c"],!1,null,"56da3772",null,!1,o["a"],a);n["default"]=r.exports},"31dc":function(t,n,e){"use strict";var o=e("69f0"),u=e.n(o);u.a},5797:function(t,n,e){"use strict";e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var o={uIcon:function(){return e.e("uview-ui/components/u-icon/u-icon").then(e.bind(null,"f728"))},uEmpty:function(){return e.e("uview-ui/components/u-empty/u-empty").then(e.bind(null,"5fcb"))},uNoNetwork:function(){return e.e("uview-ui/components/u-no-network/u-no-network").then(e.bind(null,"36dd"))}},u=function(){var t=this,n=t.$createElement;t._self._c},i=[]},"69f0":function(t,n,e){},"88ec":function(t,n,e){"use strict";e.r(n);var o=e("e8b7"),u=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=u.a},e8b7:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=u(e("a34a"));function u(t){return t&&t.__esModule?t:{default:t}}function i(t,n,e,o,u,i,a){try{var s=t[i](a),r=s.value}catch(c){return void e(c)}s.done?n(r):Promise.resolve(r).then(o,u)}function a(t){return function(){var n=this,e=arguments;return new Promise((function(o,u){var a=t.apply(n,e);function s(t){i(a,o,u,s,r,"next",t)}function r(t){i(a,o,u,s,r,"throw",t)}s(void 0)}))}}var s={onLoad:function(t){},mounted:function(){this.getMessage()},data:function(){return{messageList:[],pageindex:1,show:!1}},onReachBottom:function(){this.getMessage()},methods:{getMessage:function(){var n=a(o.default.mark((function n(){var e;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/user/userMessageList",{page:this.pageindex});case 2:e=n.sent,console.log(e),0==e.status&&(this.pageindex>e.data.last_page?t.showToast({title:"没有更多了",icon:"none"}):(this.messageList=this.messageList.concat(e.data.data),this.pageindex++)),0==this.messageList.length?this.show=!0:this.show=!1;case 6:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),gotoliaotian:function(n){1==n.type||4==n.type?t.navigateTo({url:"../common_tools/my_consulting/consultingInfo?id="+n.relation_id}):2==n.type&&1==n.product_type||2==n.type&&2==n.product_type?t.navigateTo({url:"../common_tools/my_consulting/opinionInfo?id="+n.relation_id}):5!=n.type&&6!=n.type||t.navigateTo({url:"../service_box/box_details"})}}};n.default=s}).call(this,e("543d")["default"])}},[["1cdb","common/runtime","common/vendor"]]]);