(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/phoneList/detail"],{8507:function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("e92e");o(n("3240"));var i=o(n("9fb8"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"9c5e":function(t,e,n){"use strict";var o=n("9cc0"),i=n.n(o);i.a},"9cc0":function(t,e,n){},"9fb8":function(t,e,n){"use strict";n.r(e);var o=n("a5dd"),i=n("e536");for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);n("9c5e");var a=n("828b"),r=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"59f47e96",null,!1,o["a"],void 0);e["default"]=r.exports},a5dd:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.con&&2==t.active?t.list.length:null),o=t.con&&3==t.active?t.con.birthday.substring(0,10):null;t._isMounted||(t.e0=function(e){return t.$tools.getCall(t.user.authlist,t.con.phone)},t.e1=function(e){t.active=1},t.e2=function(e){t.active=2},t.e3=function(e){t.active=3}),t.$mp.data=Object.assign({},{$root:{g0:n,g1:o}})},i=[]},df12:function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("7ca3")),c=n("8f59");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var r={data:function(){return{active:1,page:1,list:[],lastPage:1,con:null,id:""}},components:{list:function(){Promise.all([n.e("common/vendor"),n.e("components/productList")]).then(function(){return resolve(n("3ea9"))}.bind(null,n)).catch(n.oe)},uParse:function(){Promise.all([n.e("common/vendor"),n.e("uni_modules/u-parse/u-parse")]).then(function(){return resolve(n("029c"))}.bind(null,n)).catch(n.oe)}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,c.mapState)(["user"])),onLoad:function(t){this.id=t.id,this.handleInfo(t.id),this.handleList(),this.$store.commit("changeSecratary",!1)},onReachBottom:function(){2==this.active&&(console.log("this.lastPage",this.lastPage),!this.lastPage||this.page>=this.lastPage?t.showToast({title:"没有更多数据！",icon:"none"}):(this.page++,this.handleList()))},onShareAppMessage:function(){return{title:this.con.cominfo.name,path:"/pages/phoneList/detail?id="+this.id,imageUrl:this.con.cominfo.logourl,success:function(t){console.log("分享到朋友成功")},fail:function(t){console.log("分享到朋友失败")}}},methods:{handleInfo:function(t){var e=this;return e.$model.getVipDetail({id:t}).then((function(t){console.log("详情",t),e.con=t.data}))},handleList:function(){var t=this;t.$model.getProductList({pageNo:t.page,pageSize:10,type:3,userId:t.id}).then((function(e){0==e.code?(t.list=t.list.concat(e.data.rows),t.lastPage=e.data.totalpage):t.$tools.msg(e.message)}))},handleDetail:function(e){console.log("详情",e);var n=this;n.$model.getProductDetail({id:e.id,type:3}).then((function(o){0==o.code?(o.data.type=3,t.navigateTo({url:"/pageTwo/product/detail?type=3&id="+e.id})):n.$tools.msg(o.message)}))},previewImage:function(e){console.log("pics",this.con.cominfo.pics.map((function(t){return t.url}))),t.previewImage({urls:this.con.cominfo.pics.map((function(t){return t.url})),current:e}).catch((function(t){console.log(t)}))}}};e.default=r}).call(this,n("df3c")["default"])},e536:function(t,e,n){"use strict";n.r(e);var o=n("df12"),i=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);e["default"]=i.a}},[["8507","common/runtime","common/vendor"]]]);