require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugin/super_maihuo/index"],{"01c9":function(t,e,n){"use strict";var i=n("5d16"),r=n.n(i);r.a},"0d78":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("7ca3")),o=n("8f59");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c={data:function(){return{icoUrl:this.$icoUrl,maxSlots:7,userList:[],roomInfo:{},statusList:["组队中","已分红"],mockUserList:[{id:1,nickname:"张三",avatar:"https://img.yzcdn.cn/vant/cat.jpeg",contribution_value:100,is_abonus_user:1,mobile:"13800138000",createtime:"2025-01-01 10:00:00"},{id:2,nickname:"李四",avatar:"https://img.yzcdn.cn/vant/cat.jpeg",contribution_value:100,mobile:"13800138000",createtime:"2025-01-01 10:00:00"}],mockRoomInfo:{num:1,stime:"2025-01-01 10:00:00",status:1,money:100,ctime:"2025-01-01 10:00:00"}}},computed:a(a({},(0,o.mapGetters)(["base"])),{},{remainingSlots:function(){return this.maxSlots-this.userList.length}}),onLoad:function(e){var n=this;this.id=e.id,this.id?this.getRoomInfo():this.$util.toast("请先选择房间",1500,(function(){n.backPage()})),t.setNavigationBarTitle({title:"房间详情"})},methods:{getRoomInfo:function(){var t=this;this.$util.get("super_maihuo/group/detail",{id:this.id}).then((function(e){1==e.code?(t.userList=e.data.user_list,t.roomInfo=e.data.group):t.$util.toast(e.msg||e.message,1500,(function(){t.backPage()}))}))},backPage:function(){var e=this,n=getCurrentPages();1==n.length?this.jump("/pages/index/index",3):t.navigateBack({delta:1,fail:function(){e.$util.jump("/plugin/super_maihuo/roomList")}})},formatPhone:function(t){if(!t)return"";if(t.length>=11)return t.substring(0,3)+"****"+t.substring(7);if(t.includes("*"))return t;var e=t.length;if(e<=4)return t;Math.floor(e/3);var n=t.substring(0,Math.floor(e/3)),i=t.substring(e-Math.floor(e/3));return n+"****"+i}}};e.default=c}).call(this,n("df3c")["default"])},5269:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uAvatar:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-avatar/u-avatar")]).then(n.bind(null,"1350"))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"b248"))}},r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.userList,(function(e,n){var i=t.__get_orig(e),r=e.mobile?t.formatPhone(e.mobile):null;return{$orig:i,m0:r}}))),i=t.remainingSlots>0?t.userList.length:null;t.$mp.data=Object.assign({},{$root:{l0:n,g0:i}})},o=[]},"5d16":function(t,e,n){},8240:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("4c1a");i(n("3240"));var r=i(n("dc39"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},bc20:function(t,e,n){"use strict";n.r(e);var i=n("0d78"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},dc39:function(t,e,n){"use strict";n.r(e);var i=n("5269"),r=n("bc20");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("01c9");var u=n("828b"),a=Object(u["a"])(r["default"],i["b"],i["c"],!1,null,"29ba5e5c",null,!1,i["a"],void 0);e["default"]=a.exports}},[["8240","common/runtime","common/vendor"]]]);