(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-template-detail"],{"017d":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-textarea",class:t.textareaClass,style:[t.textareaStyle]},[a("v-uni-textarea",{staticClass:"u-textarea__field",style:{height:t.$u.addUnit(t.height)},attrs:{value:t.innerValue,placeholder:t.placeholder,"placeholder-style":t.$u.addStyle(t.placeholderStyle,"string"),"placeholder-class":t.placeholderClass,disabled:t.disabled,focus:t.focus,autoHeight:t.autoHeight,fixed:t.fixed,cursorSpacing:t.cursorSpacing,cursor:t.cursor,showConfirmBar:t.showConfirmBar,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd,adjustPosition:t.adjustPosition,disableDefaultPadding:t.disableDefaultPadding,holdKeyboard:t.holdKeyboard,maxlength:t.maxlength,confirmType:t.confirmType},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.onBlur.apply(void 0,arguments)},linechange:function(e){arguments[0]=e=t.$handleEvent(e),t.onLinechange.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.onInput.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)},keyboardheightchange:function(e){arguments[0]=e=t.$handleEvent(e),t.onKeyboardheightchange.apply(void 0,arguments)}}}),t.count?a("v-uni-text",{staticClass:"u-textarea__count",style:{"background-color":t.disabled?"transparent":"#fff"}},[t._v(t._s(t.innerValue.length)+"/"+t._s(t.maxlength))]):t._e()],1)},i=[]},"049e":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3");var n={props:{value:{type:[String,Number],default:uni.$u.props.textarea.value},placeholder:{type:[String,Number],default:uni.$u.props.textarea.placeholder},placeholderClass:{type:String,default:uni.$u.props.input.placeholderClass},placeholderStyle:{type:[String,Object],default:uni.$u.props.input.placeholderStyle},height:{type:[String,Number],default:uni.$u.props.textarea.height},confirmType:{type:String,default:uni.$u.props.textarea.confirmType},disabled:{type:Boolean,default:uni.$u.props.textarea.disabled},count:{type:Boolean,default:uni.$u.props.textarea.count},focus:{type:Boolean,default:uni.$u.props.textarea.focus},autoHeight:{type:Boolean,default:uni.$u.props.textarea.autoHeight},fixed:{type:Boolean,default:uni.$u.props.textarea.fixed},cursorSpacing:{type:Number,default:uni.$u.props.textarea.cursorSpacing},cursor:{type:[String,Number],default:uni.$u.props.textarea.cursor},showConfirmBar:{type:Boolean,default:uni.$u.props.textarea.showConfirmBar},selectionStart:{type:Number,default:uni.$u.props.textarea.selectionStart},selectionEnd:{type:Number,default:uni.$u.props.textarea.selectionEnd},adjustPosition:{type:Boolean,default:uni.$u.props.textarea.adjustPosition},disableDefaultPadding:{type:Boolean,default:uni.$u.props.textarea.disableDefaultPadding},holdKeyboard:{type:Boolean,default:uni.$u.props.textarea.holdKeyboard},maxlength:{type:[String,Number],default:uni.$u.props.textarea.maxlength},border:{type:String,default:uni.$u.props.textarea.border},formatter:{type:[Function,null],default:uni.$u.props.textarea.formatter}}};e.default=n},"0fb2":function(t,e,a){"use strict";a.r(e);var n=a("c2f4"),i=a("97e5");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=s.exports},"1acf":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".directask[data-v-1e27e6cc]{padding:%?30?%;border-top:1px solid #ededed}.directask .helpme[data-v-1e27e6cc]{color:#9e9e9e;font-size:%?26?%}.directask .helpme .title[data-v-1e27e6cc]{font-size:%?35?%;font-weight:700;margin-bottom:%?18?%;color:#000}.directask .expand[data-v-1e27e6cc]{margin:%?30?% 0}.directask .expand .surplus[data-v-1e27e6cc]{color:#fff;font-size:%?26?%;background:#03a9f4;border-radius:%?50?%;padding:%?8?% %?12?%;margin-right:%?20?%;margin-bottom:%?15?%}.directask .expand .surplus .item[data-v-1e27e6cc]{margin-left:%?10?%}.directask .textarea[data-v-1e27e6cc]{margin-top:%?30?%;margin-bottom:%?30?%;border-radius:%?20?%}.directask .textarea .u-textarea[data-v-1e27e6cc]{border-radius:%?20?%;padding:%?24?%}.directask .textarea .operate[data-v-1e27e6cc]{justify-content:flex-end;margin-top:%?30?%}.directask .textarea .operate .surplus[data-v-1e27e6cc]{height:%?66?%;line-height:%?66?%;font-size:%?28?%;padding:0 %?20?%;border-radius:%?10?%;background-color:#ff9800;color:#fff;max-width:%?286?%}.directask .textarea .operate .empty[data-v-1e27e6cc]{margin-right:%?30?%;border:1px solid #9e9e9e;color:#9e9e9e;padding:%?12?% %?42?%;border-radius:%?10?%}.directask .textarea .operate .submit[data-v-1e27e6cc]{height:%?66?%;line-height:%?66?%;font-size:%?28?%;padding:0 %?42?%;border-radius:%?10?%;background-color:#26b3a0;color:#fff}.directask .textarea .operate .hoversubmit[data-v-1e27e6cc]{background:#f7f7f7;color:#acacb3}.directask .answer[data-v-1e27e6cc]{border-radius:%?18?%;padding:%?18?%;border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.directask .duplicate[data-v-1e27e6cc]{width:100%;height:%?80?%;line-height:%?80?%;border-radius:%?10?%;font-weight:700;color:#fff;background:#26b3a0;margin-top:%?30?%;font-size:%?30?%}.flash[data-v-1e27e6cc]{margin-left:2px;-webkit-animation:flash-data-v-1e27e6cc .8s linear infinite;animation:flash-data-v-1e27e6cc .8s linear infinite}@-webkit-keyframes flash-data-v-1e27e6cc{from{opacity:0}to{opacity:1}}@keyframes flash-data-v-1e27e6cc{from{opacity:0}to{opacity:1}}",""]),t.exports=e},3793:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("c975"),a("4de4"),a("d3b7"),a("498a"),a("d81d"),a("e9c4");var i,o,r,s=n(a("c7eb")),u=n(a("1da1")),c=n(a("5530")),l=a("26cb"),d=null,f={data:function(){return{info:{},tobheight:45,platform:this.$platform.get(),answer:"",valuechat:"",thevaluechat:"",down:0,done:!1,second:15,showanswer:!1,show_flash:!1,selectornot:0}},computed:(0,c.default)({},(0,l.mapGetters)(["appInfo","userInfo","userData","isLogin","homeTemplate"])),onShow:function(){this.$ws.socketStatus()||this.$ws.init(),this.isLogin&&this.getUserData()},onLoad:function(){if("wxMiniProgram"==this.platform){var t=uni.getMenuButtonBoundingClientRect().top-uni.getSystemInfoSync().statusBarHeight,e=uni.getSystemInfoSync().statusBarHeight+t;this.tobheight=t+e+uni.getMenuButtonBoundingClientRect().height}this.getInfo(),this.onmessage()},onReady:function(){var t=this;clearTimeout(i),i=setTimeout((function(){wx.createInterstitialAd&&1==t.appInfo.interstitial_status&&(d=wx.createInterstitialAd({adUnitId:t.appInfo.interstitial_id}),d.onLoad((function(){})),d.onError((function(t){})),d.onClose((function(){1==t.appInfo.interstitial_infinite_status&&t.showInterstitial()})),d.show().catch((function(t){console.error(t)})))}),4e3)},onUnload:function(){this.$ws.completeClose(),clearInterval(o)},onHide:function(){console.log("onHide"),this.$ws.completeClose()},methods:(0,c.default)((0,c.default)({},(0,l.mapActions)(["getUserInfo","showAuthModal","getUserData"])),{},{onmessage:function(){var t=this,e="";uni.onSocketMessage((function(a){console.log(2),t.showanswer=!0;var n=a.data;if(-1!=n.indexOf("wike_err:"))return uni.showToast({title:"报错:"+n,icon:"none"}),t.answer="报错:"+n,void(t.show_flash=!1);if(!t.$ws.socketStatus())return uni.showToast({title:"连接错误,正在重新思考"}),void t.onSubmit(t.valuechat);if(-1!=n.indexOf("[DONE]"))t.record(t.valuechat,e),e="",t.done=!0,t.show_flash=!1;else{var i=n.split("data:").filter((function(t){return!!t.trim()&&"[DONE]"!==t.trim()})),o="";i.map((function(t){return JSON.parse(t)})).map((function(t){return o=t.choices[0].delta.content})).join(""),void 0!=o&&(e+=o),t.answer=e,uni.hideLoading()}}))},waitWss:function(){var t=this;return new Promise((function(e,a){t.$ws.init(),e(1)}))},record:function(t,e){var a=this;this.$http("question.add",{question:t,answer:e}).then((function(t){a.getUserData()}))},getInfo:function(){var t=this;this.$http("template.info",{id:this.$Route.query.id}).then((function(e){0==e.code&&(t.info=e.data,uni.setNavigationBarTitle({title:t.appInfo.site_name}))}))},copyText:function(t){uni.setClipboardData({data:t,success:function(){console.log("success")}})},countdown:function(){var t=this,e=this;if(e.second--,0==e.second)return console.log("15秒定时结束"),e.showanswer?(e.second=15,clearTimeout(r),void console.log("关闭定时器")):(uni.showLoading({title:"输入中..."}),clearTimeout(r),console.log("关闭定时器"),e.$ws.completeClose(),console.log("关闭直连"),void setTimeout((function(){uni.hideLoading(),e.second=15,e.directGpt(t.valuechat)}),1500));r=setTimeout((function(){if(e.showanswer)return clearTimeout(r),console.log("关闭定时器"),void(e.second=15);e.countdown()}),1e3)},onInitTimeout:function(){},getempty:function(){!this.answer||this.done?(this.valuechat="",this.answer=""):uni.showToast({title:"正在输入回答,请等待输入完成",icon:"none"})},init:function(t){if(this.isLogin)if(t){if(this.appInfo.time_member&&1==this.appInfo.time_member){if(0==this.userData.is_validity&&this.userData.coin<=0)return void uni.showModal({confirmText:"去充值",confirmColor:"#26B3A0",content:"您的提问次数/时长不足",title:"提示",success:function(t){t.confirm&&uni.navigateTo({url:"/pages/user/member/member"})}})}else if(this.userData.coin<=0)return void uni.showModal({confirmText:"去充值",confirmColor:"#26B3A0",content:"您的提问次数/时长不足",title:"提示",success:function(t){t.confirm&&uni.navigateTo({url:"/pages/user/member/member"})}});this.appInfo.sk?!this.answer||this.done?(this.done=!1,this.answer="正在思考中...",this.show_flash=!0,this.showanswer=!1,this.onSubmit(t)):uni.showToast({title:"正在输入回答,请等待输入完成",icon:"none"}):uni.showToast({title:"未正确配置key",icon:"none"})}else uni.showToast({title:"请输入关键词或问题",icon:"none"});else uni.navigateTo({url:"/pages/user/signin"})},onSubmit:function(t){var e=this;return(0,u.default)((0,s.default)().mark((function a(){var n,i,o;return(0,s.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=e,n.countdown(),i={prompt:t,guide:n.info.guide,key:n.appInfo.sk?n.appInfo.sk:"",lines:n.appInfo.connect_lines?e.appInfo.connect_lines:1},o=JSON.stringify(i),n.$ws.socketStatus()?n.$ws.send(o):n.directGpt(t);case 5:case"end":return a.stop()}}),a)})))()},directGpt:function(t){var e=this;console.log("s"),e.answer="正在输入中...",e.showanswer=!0,e.$http("ai.chat",{prompt:t,guide:e.info.sub_title,answer:""}).then((function(t){0==t.code?(e.answer=t.data.trim(),e.show_flash=!1,e.done=!0,e.second=15,e.getUserData()):3==t.code?(e.answer=t.msg,e.show_flash=!1,e.second=15,e.done=!0):(e.answer=t.msg,e.valuechat="该问题已被隐藏!",e.show_flash=!1,e.second=15,e.done=!0)}))},showInterstitial:function(){o=setInterval((function(){d.show().catch((function(t){console.error(t)}))}),this.appInfo.gap?1e3*this.appInfo.gap:12e3)}})};e.default=f},"381f":function(t,e,a){a("a9e3"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$t.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$t.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$t.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$t.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$t.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},"38c7":function(t,e,a){"use strict";a.r(e);var n=a("3793"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},4161:function(t,e,a){"use strict";var n=a("b647"),i=a.n(n);i.a},"48e2":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'.placeholder[data-v-4e1476d4]{background:var(--empty-bg--);border-radius:%?24?%;display:flex;flex-direction:column;margin:0 %?24?% %?20?%;padding:%?40?% %?32?%}.placeholder[data-v-4e1476d4]:nth-of-type(1){margin-top:0}.placeholder [class*="ph-"][data-v-4e1476d4]{background-color:#fafbfc;margin-bottom:%?24?%;overflow:hidden;position:relative;width:100%}.placeholder [class*="ph-"][data-v-4e1476d4]::before{-webkit-animation-duration:1.5s;animation-duration:1.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:PlaceholdersAnimation-data-v-4e1476d4;animation-name:PlaceholdersAnimation-data-v-4e1476d4;-webkit-animation-timing-function:linear;animation-timing-function:linear;background:linear-gradient(90deg,transparent,rgba(0,0,0,.02) 20%,transparent 40%);content:"";height:100%;left:0;max-width:1000px;position:absolute;top:0;width:100vw}.placeholder [class*="ph-"][data-v-4e1476d4]:last-child{margin-bottom:0}.placeholder.user[data-v-4e1476d4]{flex-direction:row}.placeholder.user .user-info[data-v-4e1476d4]{flex:1}.placeholder .ph-title[data-v-4e1476d4]{height:%?54?%}.placeholder .ph-name[data-v-4e1476d4]{height:%?48?%;width:%?240?%}.placeholder .ph-text[data-v-4e1476d4]{height:%?32?%;margin-bottom:%?16?%}.placeholder .ph-avatar[data-v-4e1476d4]{border-radius:50%;flex-shrink:0;height:%?88?%;margin-right:%?24?%;width:%?88?%}@-webkit-keyframes PlaceholdersAnimation-data-v-4e1476d4{0%{-webkit-transform:translate3d(-30%,0,0);transform:translate3d(-30%,0,0)}100%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes PlaceholdersAnimation-data-v-4e1476d4{0%{-webkit-transform:translate3d(-30%,0,0);transform:translate3d(-30%,0,0)}100%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}',""]),t.exports=e},"4c90":function(t,e,a){var n=a("f88f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("5df3ecaf",n,!0,{sourceMap:!1,shadowMode:!1})},"50f5":function(t,e,a){"use strict";a.r(e);var n=a("5f23"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"543f":function(t,e,a){"use strict";a.r(e);var n=a("78aa"),i=a("38c7");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("e383");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"1e27e6cc",null,!1,n["a"],void 0);e["default"]=s.exports},"5f23":function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("2909"));a("a9e3"),a("13d5"),a("d3b7"),a("ddb0"),a("14d9");var o={props:{count:{type:Number,default:1},type:{type:String,default:"question"}},data:function(){return{size:this.myReduce(this.count)}},methods:{myReduce:function(t){return(0,i.default)(new Array(t).keys()).reduce((function(t,e){return e>1&&t.push(t[e-1]+t[e-2]),t}),[1,1])}}};e.default=o},6570:function(t,e,a){"use strict";a.r(e);var n=a("d008"),i=a("50f5");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("4161");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"4e1476d4",null,!1,n["a"],void 0);e["default"]=s.exports},"78aa":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={tnNavBar:a("f71b").default,wikeSkeleton:a("6570").default,uIcon:a("94f3").default,"u-Textarea":a("0fb2").default,wikeAd:a("9a13").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticStyle:{color:"#000"}},[a("tn-nav-bar",{attrs:{backgroundColor:"#F5FFFD",bottomShadow:!1}},[t._v("提问模板")]),a("v-uni-view",{style:{height:t.tobheight+"px"}})],1),t.info.title?t._e():a("wike-skeleton",{attrs:{count:0}}),a("v-uni-view",{staticClass:"directask"},[a("v-uni-view",{staticClass:"helpme"},[a("v-uni-view",{staticClass:"title"},[t._v(t._s(t.info.title))]),t._v(t._s(t.info.sub_title))],1),a("v-uni-view",{staticClass:"expand u-flex flex-wrap"},[a("v-uni-navigator",{staticClass:"surplus u-flex align-center",attrs:{url:"../user/member/member?id=1"}},[a("u-icon",{attrs:{name:"question-circle-fill",color:"#f1f1f1",size:"18",top:"1"}}),a("v-uni-view",{staticClass:"item"},[t._v("次数:"+t._s(t.userData.coin)+"次")])],1),t.appInfo.time_member&&1==t.appInfo.time_member?a("v-uni-navigator",{staticClass:"surplus u-flex align-center",attrs:{url:"../user/member/member?id=2"}},[a("u-icon",{attrs:{name:"clock-fill",color:"#f1f1f1",size:"18",top:"1"}}),a("v-uni-view",{staticClass:"item"},[t._v("时长:"+t._s(1==t.userData.is_validity?t.userData.countdown:0)+"天")])],1):t._e(),a("v-uni-navigator",{staticClass:"surplus u-flex align-center",attrs:{url:"../user/member/member?id=3"}},[a("u-icon",{attrs:{name:"more-circle-fill",color:"#f1f1f1",size:"18",top:"1"}}),a("v-uni-view",{staticClass:"item"},[t._v("免费领次数")])],1)],1),a("v-uni-view",{staticClass:"textarea"},[a("u--textarea",{attrs:{height:"120",placeholder:"请输入关键词或问题..."},model:{value:t.valuechat,callback:function(e){t.valuechat=e},expression:"valuechat"}}),a("v-uni-view",{staticClass:"operate u-flex align-center"},[a("v-uni-view",{staticClass:"empty",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getempty.apply(void 0,arguments)}}},[t._v("清空")]),a("v-uni-view",{staticClass:"submit",attrs:{"hover-class":"hoversubmit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.init(t.valuechat)}}},[t._v("立即提交")])],1)],1),t.answer?a("v-uni-view",{staticClass:"answer-container"},[a("v-uni-view",{staticClass:"answer"},[a("v-uni-text",[t._v(t._s(t.answer))]),"正在思考中..."==t.answer?a("v-uni-text",[t._v(t._s(t.second)+"s")]):t._e(),t.show_flash?a("v-uni-text",{staticClass:"flash"},[t._v("│")]):t._e()],1),a("v-uni-button",{staticClass:"duplicate u-flex justify-center",attrs:{"hover-class":"hoversubmit",disabled:!t.done},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.copyText(t.answer)}}},[t._v("一键复制")])],1):t._e(),a("v-uni-view",{staticStyle:{"margin-top":"20rpx"}},[a("wike-ad")],1)],1)],1)},o=[]},"97e5":function(t,e,a){"use strict";a.r(e);var n=a("d982"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},aa41:function(t,e,a){var n=a("1acf");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("0e0cf844",n,!0,{sourceMap:!1,shadowMode:!1})},ae0d:function(t,e,a){"use strict";a.r(e);var n=a("b9cf"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},b647:function(t,e,a){var n=a("48e2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("5ef8dc17",n,!0,{sourceMap:!1,shadowMode:!1})},b9cf:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("99af"),a("14d9");var i=n(a("049e")),o={name:"u-textarea",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:function(t){return t}}},watch:{value:{immediate:!0,handler:function(t,e){this.innerValue=t,!1===this.firstChange&&!1===this.changeFromInner&&this.valueChange(),this.firstChange=!1,this.changeFromInner=!1}}},computed:{textareaClass:function(){var t=[],e=this.border,a=this.disabled;this.shape;return"surround"===e&&(t=t.concat(["u-border","u-textarea--radius"])),"bottom"===e&&(t=t.concat(["u-border-bottom","u-textarea--no-radius"])),a&&t.push("u-textarea--disabled"),t.join(" ")},textareaStyle:function(){return uni.$u.deepMerge({},uni.$u.addStyle(this.customStyle))}},methods:{setFormatter:function(t){this.innerFormatter=t},onFocus:function(t){this.$emit("focus",t)},onBlur:function(t){this.$emit("blur",t),uni.$u.formValidate(this,"blur")},onLinechange:function(t){this.$emit("linechange",t)},onInput:function(t){var e=this,a=t.detail||{},n=a.value,i=void 0===n?"":n,o=this.formatter||this.innerFormatter,r=o(i);this.innerValue=i,this.$nextTick((function(){e.innerValue=r,e.valueChange()}))},valueChange:function(){var t=this,e=this.innerValue;this.$nextTick((function(){t.$emit("input",e),t.changeFromInner=!0,t.$emit("change",e),uni.$u.formValidate(t,"change")}))},onConfirm:function(t){this.$emit("confirm",t)},onKeyboardheightchange:function(t){this.$emit("keyboardheightchange",t)}}};e.default=o},bc98:function(t,e,a){"use strict";a.r(e);var n=a("db53"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},c2f4:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("uvTextarea",{attrs:{value:t.value,placeholder:t.placeholder,height:t.height,confirmType:t.confirmType,disabled:t.disabled,count:t.count,focus:t.focus,autoHeight:t.autoHeight,fixed:t.fixed,cursorSpacing:t.cursorSpacing,cursor:t.cursor,showConfirmBar:t.showConfirmBar,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd,adjustPosition:t.adjustPosition,disableDefaultPadding:t.disableDefaultPadding,holdKeyboard:t.holdKeyboard,maxlength:t.maxlength,border:t.border,customStyle:t.customStyle,formatter:t.formatter},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),function(e){return t.$emit("focus")}.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),function(e){return t.$emit("blur")}.apply(void 0,arguments)},linechange:function(e){arguments[0]=e=t.$handleEvent(e),function(e){return t.$emit("linechange",e)}.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),function(e){return t.$emit("confirm")}.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),function(e){return t.$emit("input",e)}.apply(void 0,arguments)},keyboardheightchange:function(e){arguments[0]=e=t.$handleEvent(e),function(e){return t.$emit("keyboardheightchange")}.apply(void 0,arguments)}}})},i=[]},c3a6:function(t,e,a){"use strict";var n=a("fcf4"),i=a.n(n);i.a},c4b0:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".tn-custom-nav-bar[data-v-1c850f1e]{display:block;position:relative}.tn-custom-nav-bar__bar[data-v-1c850f1e]{display:flex;position:relative;align-items:center;min-height:%?100?%;justify-content:space-between;min-height:0;box-shadow:%?0?% %?0?% %?0?%;z-index:9999}.tn-custom-nav-bar__bar--fixed[data-v-1c850f1e]{position:fixed;width:100%;top:0}.tn-custom-nav-bar__bar--alpha[data-v-1c850f1e]{background:transparent!important;box-shadow:none!important}.tn-custom-nav-bar__bar--bottom-shadow[data-v-1c850f1e]{box-shadow:%?0?% %?0?% %?80?% %?0?% rgba(0,0,0,.05)}.tn-custom-nav-bar__bar__action[data-v-1c850f1e]{display:flex;align-items:center;height:100%;justify-content:center;max-width:100%}.tn-custom-nav-bar__bar__action--nav-back[data-v-1c850f1e]{\n /* position: absolute; */\n /* top: 50%; */\n /* left: 20rpx; */\n /* margin-top: -15rpx; */margin-left:%?20?%;font-size:%?38?%;line-height:100%}.tn-custom-nav-bar__bar__action--nav-back-text[data-v-1c850f1e]{margin-left:%?10?%}.tn-custom-nav-bar__bar__content[data-v-1c850f1e]{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:auto;font-size:%?32?%;cursor:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}",""]),t.exports=e},c96f:function(t,e,a){"use strict";a.r(e);var n=a("017d"),i=a("ae0d");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("ffbb");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"eafc93bc",null,!1,n["a"],void 0);e["default"]=s.exports},d008:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",t._l(t.size,(function(e,n){return a("v-uni-view",{key:n,staticClass:"placeholder question"},["question"===t.type?[a("v-uni-view",{staticClass:"ph-title"}),a("v-uni-view",{staticClass:"ph-name"}),a("v-uni-view",{staticClass:"ph-text"}),a("v-uni-view",{staticClass:"ph-text"})]:t._e(),"user"===t.type?[a("v-uni-view",{staticClass:"ph-avatar"}),a("v-uni-view",{staticClass:"user-info"},[a("v-uni-view",{staticClass:"ph-name"}),a("v-uni-view",{staticClass:"ph-text"}),a("v-uni-view",{staticClass:"ph-text"})],1)]:t._e()],2)})),1)},i=[]},d982:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("c96f")),o=n(a("049e")),r={name:"u--textarea",mixins:[uni.$u.mpMixin,o.default,uni.$u.mixin],components:{uvTextarea:i.default}};e.default=r},db53:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("c7eb")),o=n(a("1da1"));a("a9e3");var r=n(a("381f")),s={name:"tn-nav-bar",mixins:[r.default],props:{zIndex:{type:Number,default:0},height:{type:Number,default:0},unit:{type:String,default:"px"},isBack:{type:Boolean,default:!0},backIcon:{type:String,default:"left"},backTitle:{type:String,default:"返回"},alpha:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},bottomShadow:{type:Boolean,default:!0},customBack:{type:Boolean,default:!1},beforeBack:{type:Function,default:null}},computed:{navBarStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.position="fixed"),t.zIndex=this.elZIndex,t},barClass:function(){var t="";return this.backgroundColorClass&&(t+=" ".concat(this.backgroundColorClass)),this.fontColorClass&&(t+="".concat(this.fontColorClass)),this.fixed&&(t+=" tn-custom-nav-bar__bar--fixed"),this.alpha&&(t+=" tn-custom-nav-bar__bar--alpha"),this.bottomShadow&&(t+=" tn-custom-nav-bar__bar--bottom-shadow"),t},barStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.paddingTop=this.statusBarHeight+"px"),this.backgroundColorClass||(t.backgroundColor=""!==this.backgroundColor?this.backgroundColor:"#FFFFFF"),!this.fontColorClass&&this.fontColor&&(t.color=this.fontColor),t.zIndex=this.elZIndex,t},contentStyle:function(){var t={};if(t.top=this.fixed?this.statusBarHeight+"px":"0px",t.height=0===this.height?this.customBarHeight-this.statusBarHeight+this.unit:this.height+this.unit,t.lineHeight=t.height,this.isBack)if(this.customBack){var e=2*(this.customBackStyleInfo.width+this.customBackStyleInfo.left);t.width="calc(100% - ".concat(e,"px)")}else t.width="calc(100% - 340rpx)";else t.width="100%";return t},elZIndex:function(){return this.zIndex?this.zIndex:this.$t.zIndex.navbar}},data:function(){return{statusBarHeight:0,customBarHeight:0,customBackStyleInfo:{width:86,height:32,left:15}}},mounted:function(){this.updateNavBarInfo()},created:function(){},methods:{updateNavBarInfo:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){var a,n,o;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.vuex_custom_bar_height,n=t.vuex_status_bar_height,a){e.next=15;break}return e.prev=3,e.next=6,t.$t.updateCustomBar();case 6:o=e.sent,a=o.customBarHeight,n=o.statusBarHeight,e.next=15;break;case 11:return e.prev=11,e.t0=e["catch"](3),setTimeout((function(){t.updateNavBarInfo()}),10),e.abrupt("return");case 15:t&&t.$t.vuex("vuex_status_bar_height",n),t&&t.$t.vuex("vuex_custom_bar_height",a),t.customBarHeight=a,t.statusBarHeight=n;case 19:case"end":return e.stop()}}),e,null,[[3,11]])})))()},handlerBack:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){var a;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.beforeBack||"function"!==typeof t.beforeBack){e.next=10;break}if(a=t.beforeBack.bind(t.$t.$parent.call(t))(),!a||"function"!==typeof a.then){e.next=7;break}return e.next=5,a.then((function(e){t.navBack()})).catch((function(t){}));case 5:e.next=8;break;case 7:!0===a&&t.navBack();case 8:e.next=11;break;case 10:t.navBack();case 11:case"end":return e.stop()}}),e)})))()},navBack:function(){var t=getCurrentPages();if(t&&t.length>0){var e=t[0];1!=t.length||e.route&&"pages/index/index"==e.route?uni.navigateBack({delta:1}):uni.reLaunch({url:"/pages/index/index"})}else uni.reLaunch({url:"/pages/index/index"})}}};e.default=s},e383:function(t,e,a){"use strict";var n=a("aa41"),i=a.n(n);i.a},f71b:function(t,e,a){"use strict";a.r(e);var n=a("faa7"),i=a("bc98");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("c3a6");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"1c850f1e",null,!1,n["a"],void 0);e["default"]=s.exports},f88f:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,"uni-view[data-v-eafc93bc], uni-scroll-view[data-v-eafc93bc], uni-swiper-item[data-v-eafc93bc]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-textarea[data-v-eafc93bc]{border-radius:4px;background-color:#fff;position:relative;display:flex;flex-direction:row;flex:1;padding:9px}.u-textarea--radius[data-v-eafc93bc]{border-radius:4px}.u-textarea--no-radius[data-v-eafc93bc]{border-radius:0}.u-textarea--disabled[data-v-eafc93bc]{background-color:#f5f7fa}.u-textarea__field[data-v-eafc93bc]{flex:1;font-size:15px;color:#606266;width:100%}.u-textarea__count[data-v-eafc93bc]{position:absolute;right:5px;bottom:2px;font-size:12px;color:#909193;background-color:#fff;padding:1px 4px}",""]),t.exports=e},faa7:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"tn-custom-nav-bar-class tn-custom-nav-bar",style:[t.navBarStyle]},[a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar",class:[t.barClass],style:[t.barStyle]},[t.isBack?a("v-uni-view",[t.customBack?a("v-uni-view",[a("v-uni-view",{style:{width:t.customBackStyleInfo.width+"px",height:t.customBackStyleInfo.height+"px",marginLeft:t.customBackStyleInfo.left+"px"}},[t._t("back")],2)],1):a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handlerBack.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back",class:["tn-icon-"+t.backIcon]}),t.backTitle?a("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back-text"},[t._v(t._s(t.backTitle))]):t._e()],1)],1):t._e(),a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__content",style:[t.contentStyle]},[t._t("default")],2),a("v-uni-view",[t._t("right")],2)],1)],1)},i=[]},fcf4:function(t,e,a){var n=a("c4b0");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("2045a1a5",n,!0,{sourceMap:!1,shadowMode:!1})},ffbb:function(t,e,a){"use strict";var n=a("4c90"),i=a.n(n);i.a}}]);