(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/component/diy/chainsDiy"],{3206:function(t,e,n){"use strict";var i=n("4138"),o=n.n(i);o.a},4138:function(t,e,n){},7971:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=(this._self._c,this.chainsList.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},"9b9da":function(t,e,n){"use strict";n.r(e);var i=n("7971"),o=n("bd49");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("3206");var s=n("828b"),a=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=a.exports},bd49:function(t,e,n){"use strict";n.r(e);var i=n("d711"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},d711:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("7ca3")),r=n("8f59"),s=i(n("f5e9"));function a(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 c(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,o.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}var u={name:"chainsDiy",props:["showStyle","showParams"],data:function(){return{chainsList:[]}},computed:c(c({},(0,r.mapState)({themeColor:function(t){return t.app.themeColor},jielongImg:function(t){return t.app.jielongImg}})),{},{titleFontSize:function(){return t.upx2px(2*this.showStyle.titleFontSize)+"px"},titleBtnSize:function(){return t.upx2px(2*this.showStyle.titleBtnSize)+"px"},titleIconMore:function(){return s.default.svgToUrl("more",this.showStyle.titleBtnColor)},titleIconSize:function(){return t.upx2px(2*this.showStyle.titleIconSize)+"px"},titleSpace:function(){return t.upx2px(2*this.showStyle.titleSpace)+"px"},itemBorderRadius:function(){return t.upx2px(2*this.showStyle.itemBorderRadius)+"px"},nameSize:function(){return t.upx2px(2*this.showStyle.nameSize)+"px"},contentSize:function(){return t.upx2px(2*this.showStyle.contentSize)+"px"},iconSize:function(){return t.upx2px(2*this.showStyle.iconSize)+"px"},btnSize:function(){return t.upx2px(2*this.showStyle.btnSize)+"px"},iconInvite:function(){return s.default.svgToUrl("invite",this.showStyle.iconColor)},iconPhone:function(){return s.default.svgToUrl("phone",this.showStyle.iconColor)},paddingTop:function(){return t.upx2px(2*this.showStyle.paddingTop)+"px"},paddingLeft:function(){return t.upx2px(2*this.showStyle.paddingLeft)+"px"},itemSpace:function(){return t.upx2px(2*this.showStyle.itemSpace)+"px"}}),watch:{showParams:{handler:function(t){t&&this.getChainsList()},immediate:!0,deep:!0}},methods:{getChainsList:function(){var e=this;this.$util.request("sequence.chainsList",{page:1,limit:this.showParams.count}).then((function(n){1==n.code?e.chainsList=n.data.data:t.showToast({title:n.msg,icon:"none"})})).catch((function(t){console.error("获取接龙列表",t)}))},toDetails:function(t,e){var n=this;2==e?this.getMemberState((function(){n.$util.toPage({mode:1,path:"/pagesTools/sequence/details?id="+t})})):this.$util.toPage({mode:1,path:"/pagesTools/sequence/details?id="+t})},getMemberState:function(e){var n=this;t.showLoading({title:"加载中",mask:!0}),this.$util.request("member.state").then((function(i){t.hideLoading(),1==i.code?6==i.data.state.state?e():-1==i.data.state.state?t.showModal({title:"系统提示",content:"此页面需成为会员后可查看！",confirmColor:n.themeColor,confirmText:"去加入",success:function(t){t.confirm&&n.$util.toPage({mode:1,path:"/pages/member/apply/index"})}}):t.showModal({title:"系统提示",content:"此页面需成为会员后可查看！",confirmColor:n.themeColor,confirmText:"前往查看",success:function(e){e.confirm&&t.switchTab({url:"/pages/mine/index"})}}):t.showToast({title:i.msg,icon:"none"})})).catch((function(t){console.error("获取会员状态 ",t)}))},toMore:function(){this.$util.toPage({mode:1,path:"/pagesTools/sequence/index"})},onContact:function(t){this.$util.toPage({mode:6,phone:t})},setShareData:function(t){this.$emit("setShareData",{title:t.name,path:"/pagesTools/sequence/details?id="+t.id,imageUrl:this.jielongImg})}}};e.default=u}).call(this,n("df3c")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/component/diy/chainsDiy-create-component',
    {
        'pages/component/diy/chainsDiy-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("9b9da"))
        })
    },
    [['pages/component/diy/chainsDiy-create-component']]
]);
