杨总惠通宝
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
htb_backend/public/static/js/pages-plantGrass-plant_rele...

1 lines
76 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_release-index"],{"01c6":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",[this.loading&&!this.loaded?e("v-uni-view",{staticClass:"Loads acea-row row-center-wrapper",staticStyle:{"margin-top":".2rem"}},[this.loading?e("v-uni-view",[e("v-uni-view",{staticClass:"iconfont icon-jiazai loading acea-row row-center-wrapper"}),this._v("正在加载中")],1):e("v-uni-view",[this._v("上拉加载更多")])],1):this._e()],1)},o=[]},"0553":function(t,e,i){"use strict";i.r(e);var n=i("64fe"),o=i("bc6f");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("7c92");var s=i("f0c5"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"6fa93b30",null,!1,n["a"],void 0);e["default"]=r.exports},"07e9":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"containers",style:t.viewColor},[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",{class:0==t.isActive?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabs(0)}}},[t._v("已购")]),i("v-uni-text",{class:1==t.isActive?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabs(1)}}},[t._v("收藏")]),i("v-uni-text",{class:2==t.isActive?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabs(2)}}},[t._v("浏览")])],1),i("v-uni-view",{staticClass:"search"},[i("v-uni-text",{staticClass:"iconfont icon-xiazai5"}),i("v-uni-input",{attrs:{type:"text",placeholder:"请输入商品名称","confirm-type":"search","placeholder-class":"placeholder"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.setValue.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.searchBut()}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}})],1),i("v-uni-view",{staticClass:"sub_title"},[t._v(t._s(0==t.isActive?"已购宝贝":1==t.isActive?"收藏宝贝":"浏览记录"))]),i("v-uni-text",{staticClass:"iconfont icon-guanbi5",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"main"},[i("v-uni-scroll-view",{attrs:{"scroll-y":"true"}},[0==t.isActive?[t.bought.length?i("v-uni-view",{attrs:{id:"goods"},on:{touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchmove.apply(void 0,arguments)}}},t._l(t.bought,(function(e,n){return i("v-uni-view",{key:n,staticClass:"picTxt acea-row"},[i("v-uni-view",{staticClass:"checkbox"},[e.check?i("v-uni-text",{staticClass:"iconfont icon-xuanzhong1",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goodsCheck(e,n)}}}):i("v-uni-text",{staticClass:"iconfont icon-weixuanzhong",class:{disabled:t.disabled},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goodsCheck(e,n)}}})],1),i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e.image}})],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"line2 name"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"money"},[t._v("¥"),i("v-uni-text",[t._v(t._s(e.price))])],1)],1)],1)})),1):i("v-uni-view",{staticClass:"empty"},[i("v-uni-image",{attrs:{src:"/static/images/no_thing.png"}}),i("v-uni-text",[t._v("暂无内容哦~")])],1)]:t._e(),1==t.isActive?[t.collect.length?i("v-uni-view",{attrs:{id:"collect"},on:{touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchmove1.apply(void 0,arguments)}}},t._l(t.collect,(function(e,n){return i("v-uni-view",{key:n,staticClass:"picTxt acea-row"},[i("v-uni-view",{staticClass:"checkbox"},[e.check?i("v-uni-text",{staticClass:"iconfont icon-xuanzhong1",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goodsCheck(e,n)}}}):i("v-uni-text",{staticClass:"iconfont icon-weixuanzhong",class:{disabled:t.disabled},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goodsCheck(e,n)}}})],1),i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e.image}})],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"line2 name"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"money"},[t._v("¥"),i("v-uni-text",[t._v(t._s(e.price))])],1)],1)],1)})),1):i("v-uni-view",{staticClass:"empty"},[i("v-uni-image",{attrs:{src:"/static/images/no_thing.png"}}),i("v-uni-text",[t._v("暂无内容哦~")])],1)]:t._e(),2==t.isActive?[t.browse.length?i("v-uni-view",{attrs:{id:"browse"},on:{touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchmove2.apply(void 0,arguments)}}},t._l(t.browse,(function(e,n){return i("v-uni-view",{key:n,staticClass:"picTxt acea-row"},[i("v-uni-view",{staticClass:"checkbox"},[e.check?i("v-uni-text",{staticClass:"iconfont icon-xuanzhong1",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goodsCheck(e,n)}}}):i("v-uni-text",{staticClass:"iconfont icon-weixuanzhong",class:{disabled:t.disabled},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goodsCheck(e,n)}}})],1),i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e.image}})],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"line2 name"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"money"},[t._v("¥"),i("v-uni-text",[t._v(t._s(e.price))])],1)],1)],1)})),1):i("v-uni-view",{staticClass:"empty"},[i("v-uni-image",{attrs:{src:"/static/images/no_thing.png"}}),i("v-uni-text",[t._v("暂无内容哦~")])],1)]:t._e()],2),i("v-uni-view",{staticClass:"foot_bar"},[i("v-uni-button",{staticClass:"confirm_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("确定("+t._s(t.checkedArr.length)+")")])],1)],1)],1)},o=[]},"0a76":function(t,e,i){var n=i("df07");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("83a82ec8",n,!0,{sourceMap:!1,shadowMode:!1})},"0bad":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAMAAAAKE/YAAAAASFBMVEUAAACEhISKioqbm5uKioqIiIiPj4+AgIB0dnh2d3pobHFtb3RydHdvcXVlanF4eXtxc3Z6e3xqbnJ9fX5hZ25bY2xeZW1jaW8UjgZ/AAAAB3RSTlMA83kpyraIIl7yXwAABrlJREFUeNrs090KwyAMhmF/2iaCYMX7v9etnZCeOPVgakaeC5CXj6gyazYNS9ObserJ7sDC/sg2i49MtFHZAYwceWdg5d7asrmND33dNZM/SHalLLBjuV30xagN2NkUs2940QoYkugCiZboL/4vOiIm6DI7OgV/vkXoMTc64pk56DAlmkYmPkGzSdE0MgnQako0jfyE0Ko1OroSID0jj4h2Z4EH0jwyr+h7ZFbR98hLRCM0ivTEsGhfgI0ro69ZLzr6KifREj0yOrCMxoLWaKySaIleI9pJtERLtET/MjphVRganV7U1d2OwiAQhuHDhRmGn6HQ+7/Txf5Nm0psK1vd90xJ9MkXtHopfBdaV9qiXRWtX/YxdHgbHTwi6TbocBNawRDFf4RWPEXx36AjLum/RLuWaC1ofzc6rjuDVrR0J3ovjGeW9kv/BR2CNksqTMUPoJ2gD6SW5CPfQLtaBSQvJrSTZrQ7lJbcVAO0JmQcopLRK7QiZvTeG+PHoy36bM3QmlNKOXdd1/e9tRbAz2hthxM5YvUdaN2lbGGbH0Eqpw42zeqfD6NBYEIrS5ajnPr90TegVUqwzzzQmDrYp77gevBTGT/QXbKwj5z0KXSfevukWNAp2SfxF6Blzk0uaJ0zPIl1rdvQhrFdZPQNaI+t8y4c6To60DRQwxDVn6LdOI3ST1LVTDU/Rqo5Oi4NZlKnxKouXqWao8PUYPa6mfmcOl5DezG3FNfVziOjeguti5lamyW9M3suIfpraBnaNPv57QvbDEAxAzCqc+iojQozGvnJ0G/MjIxUnVqBhSn2p9DFycAmDGlm9u1W5i53nUU/RURGyJqttTBHp9CEQzo+UgVtmqE5pYLuLQuaQhxz3BeyxHHoGDrQmFnQqtVlpjShgUayoAP2fXn/Ktr5sRW6kdnzguaHWdCB+q7vAS6joxnTgn6PLFlBF62gzXDT4TxamnBB0Ef/mT0hDyF5Ib9Cqz7nLDNfQ0enSy5u0AfEyPYRjDH6XbygUdA25SwzX0DLcyXGc2jPdk6+lvw2yjOapJxk5mtoaYV+ARaymCtszCMa1+gO4BNosutgHW7VZIsZkFYBtEcDwKudcWeuqGnu82i2pbqa6QZ0nBK0qYCPmEVdfF+DFnNdLeZ70OYJ2qzCDZdBzKuQpJPon4Po3/busDdZGAjgePK8Ge314LiKfv9v+jBhHqXXOh3Qkvj3zeI0/nI2AstMg9sTNC3JZIxxVlO/hb6/fh6tF6FdmG0lmo5BoAHeQkuvokdNGo2txD+HTXplgQDsjnaZQaM8hmNBirwnWjdjG6HnX8SjLoN2cbxEgzyGCHlNUMEF0NSu0Mvz/jXmeLRTwxC9JOMY59YHPLKp9kFzhBZzpOaQvD86kY3QE1lkrKIBKkJPZKGFajHvj77dbpS4zG6DICDHJLm/GJp09HqYLKOG0uhpqCGaNXKAFmgBNJGKxjkh14OmRyoaEmYLiWyrdxA6JBdEU4CmIBuiNbLER6IvlySaV+iYXA59ISEHQYhekdlWgKYo1NBCDoMCaNKyAVohS1wATWoQonVzHs28ExpJD9EGaCHHJchj7dFoaCUr5DiuAo1TwaiFnDcLeC/09XpNo8NRT2b172LHolFF4yMOXidhZo1cDi1qKWMW8sFoXGVfNjMXRz9VR+aD0ajGOTNH4jrQOTVDUTRmAqubmVNgqbEF0BE7IufR/svthcZsk2lyp8l6Tdf3uDF6GIbnaIHNXv1jTg++2x6dD57HmWCKN0S7EQ17muU9sVuhe3yCflcsgWT/jvZ9gwh5NGyATnzgW/86ehTfuwwD7ydmyxjEgsamfwntDeGcHQa7y9IQtH4qA4hIxv8W7RtcdB0uKngTsrWQOE4BTjV9Di3k6L+lYPOlIWikOUBqfn4EQAE0/hnaG1rXDpedpjwGD/M32jjSMj6L7rVn3Qa7y5THWN7QO7ohNddn0J1Ta5fqjaY8m90c2TvauERdEp18ClxbMW+HBnKP5km7VCaB7lw6vlnYdsqW0S1CQet1Kto32QgAkabw7R7f8SHXhJHco+c1dNfUXaehTVN3RkM3tadOuvbUNW3qTl3T3tSdX6Cl3tRcv/ycPom6T557+K7WfOYsz/ddlf2YBV39sP0vvnBWW7+7sPV9PXn9wrZmtpBzaGGXd3shK+gK4QLOo3V3iUScQdcFz2MEXYs8B4jRxelf0rZoqZBW0H/Nv3H7W+V3zvmga+6DTvRBf3fOrQZPuanjKbfPPOVGpafcEvacm++ebVX/O++G0ufcuvucm6SfbTv6/w5q5VR+qtE7AAAAAElFTkSuQmCC"},"0c03":function(t,e,i){"use strict";i.r(e);var n=i("ada8"),o=i("184d");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("6f5c");var s=i("f0c5"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"769f67dc",null,!1,n["a"],void 0);e["default"]=r.exports},"110e":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t/e}},1444:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af");var o=n(i("2909")),a=i("d2c9"),s=(getApp(),{data:function(){return{navlist:[],productList:[],navActive:0,childList:[]}},watch:{},mounted:function(){this.productList.length||this.getAllCategory()},methods:{close:function(){this.$emit("close")},tap:function(t,e){this.navActive=t,this.childList=this.productList[t].children},getAllCategory:function(){var t=this;(0,a.getTopicList)().then((function(e){var i=[{category_id:"",count_use:0,count_view:0,pic:null,topic_id:"",topic_name:"不添加任何话题"}];t.productList=e.data,t.productList[0].children&&t.productList[0].children.length>0?t.productList[0].children=[].concat(i,(0,o.default)(t.productList[0].children)):t.productList[0].children=i,t.childList=t.productList[0].children}))},confirmTopic:function(t){this.$emit("getTopic",t)}}});e.default=s},"184d":function(t,e,i){"use strict";i.r(e);var n=i("1444"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"1c6c":function(t,e,i){"use strict";var n=i("d630"),o=i.n(n);o.a},"1e46":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("ac1f"),i("14d9"),i("d3b7"),i("159b"),i("a434"),i("c740");var o=n(i("b90c")),a=i("d2c9"),s=i("26cb"),r={props:{checkedObj:{type:Array,default:[]}},computed:(0,s.mapGetters)(["viewColor"]),components:{Loading:o.default},data:function(){return{isActive:0,loadedb:!1,loadingb:!1,loadedc:!1,loadingc:!1,loadeds:!1,loadings:!1,whereb:{page:1,limit:10,keyword:""},wherec:{page:1,limit:10,keyword:""},wheres:{page:1,limit:10,keyword:""},searchVal:"",checked:[],list:[],collect:[],bought:[],browse:[],checkedArr:this.checkedObj,disabled:!1}},watch:{checkedObj:{handler:function(t){this.checkedArr=t},deep:!0}},mounted:function(){this.checkedArr=this.checkedObj,this.getBounht(),this.getCollect(),this.getBrowse()},methods:{close:function(){this.$emit("close")},tabs:function(t){this.isActive=t,this.$set(this.whereb,"keyword",""),this.$set(this.wherec,"keyword",""),this.$set(this.wheres,"keyword",""),this.searchVal="",this.searchBut()},onTouchmove:function(t){var e=this;if(!this.loadendb&&!this.loadingb){var i=uni.createSelectorQuery().in(this);i.select("#goods").boundingClientRect((function(t){t.bottom<1500&&t.top<0&&e.getBounht()})).exec()}},onTouchmove1:function(t){var e=this;if(!this.loadendc&&!this.loadingc){var i=uni.createSelectorQuery().in(this);i.select("#collect").boundingClientRect((function(t){t.bottom<1500&&t.top<0&&e.getCollect()})).exec()}},onTouchmove2:function(t){var e=this;if(!this.loadends&&!this.loadings){var i=uni.createSelectorQuery().in(this);i.select("#browse").boundingClientRect((function(t){t.bottom<1500&&t.top<0&&e.getBrowse()})).exec()}},setValue:function(t){this.$set(this.whereb,"keyword",t.detail.value),this.$set(this.wherec,"keyword",t.detail.value),this.$set(this.wheres,"keyword",t.detail.value)},searchBut:function(){this.loadingb=this.loadingc=this.loadings=this.loadedb=this.loadedc=this.loadeds=!1,this.whereb.page=this.wherec.page=this.wheres.page=1,this.bought=this.collect=this.browse=[],0==this.isActive?this.getBounht():1==this.isActive?this.getCollect():this.getBrowse()},getBounht:function(){var t=this;t.loadingb||t.loadedb||(t.loadingb=!0,(0,a.boughtLstApi)(t.whereb).then((function(e){t.loadingb=!1,t.loadedb=e.data.list.length<t.whereb.limit,t.bought.push.apply(t.bought,e.data.list),t.whereb.page=t.whereb.page+1,t.getInitchecked(t.bought)}),(function(e){t.$util.Tips({title:e.msg})})))},getCollect:function(){var t=this;t.loadingc||t.loadedc||(t.loadingc=!0,(0,a.collectLstApi)(t.wherec).then((function(e){t.loadingc=!1,t.loadedc=e.data.list.length<t.wherec.limit,t.collect.push.apply(t.collect,e.data.list),t.wherec.page=t.wherec.page+1,t.getInitchecked(t.collect)}),(function(e){t.$util.Tips({title:e.msg})})))},getBrowse:function(){var t=this;t.loadings||t.loadeds||(t.loadings=!0,(0,a.browseLstApi)(t.wheres).then((function(e){t.loadings=!1,t.loadeds=e.data.list.length<t.wheres.limit,t.browse.push.apply(t.browse,e.data.list),t.wheres.page=t.wheres.page+1,t.getInitchecked(t.browse)}),(function(e){t.$util.Tips({title:e.msg})})))},getInitchecked:function(t){var e=this;t.forEach((function(t,i){e.$set(t,"check",!1),e.checkedArr.forEach((function(i,n){t.spu_id!=(i.spu&&i.spu.spu_id)&&t.spu_id!=i.spu_id||e.$set(t,"check",!0)}))}))},goodsCheck:function(t,e){this.checkedArr.length>4&&!t.check||(this.$set(t,"check",!t.check),t.check?this.checkedArr.push(t):this.checkedArr.splice(this.checkedArr.findIndex((function(e){return e.spu_id==t.spu_id||t.spu_id==(e.spu&&e.spu.spu_id)})),1),this.disabled=this.checkedArr.length>4)},submit:function(){this.$emit("getProduct",this.checkedArr)}}};e.default=r},"1e47":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,i=t.width*e.imgScale,n=t.height*e.imgScale;return(0,o.default)({left:t.left+e.imgTranslateX-(i-t.width)/2,top:t.top+e.imgTranslateY-(n-t.height)/2,width:i,height:n})};var o=n(i("e71f")),a={left:0,top:0,width:0,height:0},s={imgTranslateX:0,imgTranslateY:0,imgScale:1}},"1ea6":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"Loading",props:{loaded:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}}};e.default=n},"1eba":function(t,e,i){var n=i("e082");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("5358fc94",n,!0,{sourceMap:!1,shadowMode:!1})},"37aa":function(t,e,i){var n=i("3ad2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("35eb7c9d",n,!0,{sourceMap:!1,shadowMode:!1})},"3ad2":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */@font-face{font-family:iconfont; /* Project id 3311610 */src:url(//at.alicdn.com/t/font_3311610_7wh8injedpd.woff2?t=1649382821379) format("woff2"),url(//at.alicdn.com/t/font_3311610_7wh8injedpd.woff?t=1649382821379) format("woff"),url(//at.alicdn.com/t/font_3311610_7wh8injedpd.ttf?t=1649382821379) format("truetype")}.iconfont[data-v-6fa93b30]{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-reset[data-v-6fa93b30]:before{content:"\\e611"}.icon-move[data-v-6fa93b30]:before{content:"\\e67b"}.bt-container[data-v-6fa93b30]{display:flex;flex-direction:column;justify-content:space-between;height:100%;box-sizing:border-box;background-color:#0e1319;padding-top:%?30?%;position:relative;overflow:hidden}.bt-container .iconfont[data-v-6fa93b30]{position:absolute;z-index:999;top:%?40?%;font-size:%?30?%;padding:%?10?%;background-color:hsla(0,0%,100%,.2);border-radius:50%;color:#fff}.bt-container .iconfont.active[data-v-6fa93b30]{color:#007aff}.bt-container .icon-move[data-v-6fa93b30]{right:%?100?%}.bt-container .icon-reset[data-v-6fa93b30]{right:%?40?%}.bt-container .bt-canvas[data-v-6fa93b30]{position:absolute;left:100%;top:0;width:300px;height:300px}.bt-container .mainContent[data-v-6fa93b30]{flex:1;margin:%?60?% %?60?% %?150?%;position:relative}.bt-container .mainContent .image[data-v-6fa93b30]{position:absolute;will-change:transform;-webkit-transform-origin:center center;transform-origin:center center}.bt-container .mainContent .controller[data-v-6fa93b30]{position:absolute;z-index:99;padding:%?20?%}.bt-container .mainContent .controller[data-v-6fa93b30]::after{display:block;content:"";box-shadow:0 0 %?10?% #333;background-color:#e4e7ed}.bt-container .mainContent .controller.controller_dot[data-v-6fa93b30]::after{width:%?40?%;height:%?40?%;border-radius:99px}.bt-container .mainContent .controller.vertical[data-v-6fa93b30]::after{width:%?10?%;height:%?40?%}.bt-container .mainContent .controller.horizon[data-v-6fa93b30]::after{width:%?40?%;height:%?10?%}.bt-container .mainContent .cropper[data-v-6fa93b30]{position:absolute;border:1px solid #eee;box-sizing:initial;-webkit-transform-origin:center center;transform-origin:center center;outline:999px solid rgba(0,0,0,.5);will-change:transform;display:contain;pointer-events:none}.bt-container .mainContent .cropper .line[data-v-6fa93b30]{position:absolute}.bt-container .mainContent .cropper .row[data-v-6fa93b30]{width:100%;height:0;left:0;border-top:1px dashed #007aff}.bt-container .mainContent .cropper .col[data-v-6fa93b30]{height:100%;width:0;border-left:1px dashed #007aff}.bt-container .mainContent .cropper .row1[data-v-6fa93b30]{top:33%}.bt-container .mainContent .cropper .row2[data-v-6fa93b30]{top:66%}.bt-container .mainContent .cropper .col1[data-v-6fa93b30]{left:33%}.bt-container .mainContent .cropper .col2[data-v-6fa93b30]{left:66%}.bt-container .slot[data-v-6fa93b30]{position:fixed;width:100%;left:0;bottom:0;height:%?90?%;height:calc(90rpx+ constant(safe-area-inset-bottom));height:calc(%?90?% + env(safe-area-inset-bottom))}',""]),t.exports=e},"3f6a":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i("3835")),a=n(i("2909")),s=n(i("c7eb")),r=n(i("1da1"));i("a9e3"),i("99af"),i("d3b7"),i("ac1f"),i("d9e2"),i("d401"),i("a630"),i("3ca3");var c=n(i("74a9")),d=n(i("1e47")),u=n(i("99e9")),l=n(i("e71f")),h=n(i("fa37")),f=i("d81dd"),p=0,v=0,g=0,m=0,w=0,b=0,x=0,_=1,y=[],C=null,P={name:"bt-cropper",props:{imageSrc:{type:String,default:"",required:!0},fileType:{type:String,default:"jpg"},dWidth:{type:Number,default:0},ratio:{type:Number,default:0,validator:function(t){return"number"!==typeof t?((0,f.log)("裁剪框比例值必须是数字","error"),!1):!(t<0)||((0,f.log)("裁剪框比例值必须大于零","error"),!1)}},showGrid:{type:Boolean,default:!1},quality:{type:Number,default:1},initPosition:{type:Object,default:function(){return null}},compress:{type:Boolean,default:!1},autoZoom:{type:Boolean,default:!0}},data:function(){return{imageUrl:"",imageInfo:null,containerRect:"",offsetX:0,offsetY:0,changeWidth:0,changeHeight:0,windowWidth:375,dpr:2,forceChangeWidth:0,forceChangeHeight:0,animate:!1,imgScale:1,imgTranslateX:0,imgTranslateY:0,showCanvas:!1,cropperPosition:{left:0,top:0,width:0,height:0},imageBoundingRect:{left:0,top:0,width:0,height:0}}},watch:{imageSrc:{handler:function(t){var e=this;this.imageUrl=t,this.imageInfo=null,t&&this.getImageInfo(t).then((function(t){return e.imageInfo=t,e.getContainerRect()})).then((function(t){return e.containerRect=t,e.imageBoundingRect=e.getImageInitRect(),e.resetImage(),0==e.ratio&&(e.cropperPosition=e.getCropperInitPosition()),e.imageBoundingRect})).then((function(t){if(e.initPosition){var i=e.initPosition,n=i.left,o=i.top,a=i.width,s=i.height,r=e.imageBoundingRect.width/e.imageInfo.width;if(void 0!==n){var c=e.cropperPosition.left-t.left-n*r;e.cropperPosition.left-=c}if(void 0!==o){var d=e.cropperPosition.top-t.top-o*r;e.cropperPosition.top-=d}a&&(e.cropperPosition.width=e.initPosition.width*r),s&&(e.cropperPosition.height=e.initPosition.height*r)}e.$emit("load")})).catch((function(t){e.$emit("loadFail",t)}))},immediate:!0},ratio:{handler:function(t){this.resetCropper(),this.applyAnim()},immediate:!1}},computed:{showImagePath:function(){return this.imageInfo&&this.imageInfo.compressPath?this.imageInfo.compressPath:(null===(t=this.imageInfo)||void 0===t?void 0:t.path)||"";var t},dSize:function(){if(this.dWidth>0)return{width:this.dWidth,height:this.dWidth*(this.cropperPosition.height/this.cropperPosition.width)};var t=1;return this.imageInfo&&(t=this.imgScale*this.imageBoundingRect.width/this.imageInfo.width),{width:this.cropperPosition.width/t,height:this.cropperPosition.height/t}},imageStyle:function(){var t={left:this.imageBoundingRect.left+"px",top:this.imageBoundingRect.top+"px",width:this.imageBoundingRect.width+"px",height:this.imageBoundingRect.height+"px",transition:this.transition,transform:"matrix(".concat(this.imgScale,", 0, 0, ").concat(this.imgScale,", ").concat(this.imgTranslateX,", ").concat(this.imgTranslateY,") translateZ(0px)")};return t},transition:function(){return this.animate?"0.2s":"none"},controllerPosition:function(){var t=uni.upx2px(40),e=uni.upx2px(30),i=uni.upx2px(20),n=this.transition;return{left:{left:this.cropperPosition.left-e+"px",top:this.cropperPosition.top+this.cropperPosition.height/2-t+"px",transition:n},right:{left:this.cropperPosition.left+this.cropperPosition.width-i+"px",top:this.cropperPosition.top+this.cropperPosition.height/2-t+"px",transition:n},top:{left:this.cropperPosition.left+this.cropperPosition.width/2-t+"px",top:this.cropperPosition.top-e+"px",transition:n},bottom:{left:this.cropperPosition.left+this.cropperPosition.width/2-t+"px",top:this.cropperPosition.top+this.cropperPosition.height-i+"px",transition:n},leftTop:{left:this.cropperPosition.left-t+"px",top:this.cropperPosition.top-t+"px",transition:n},rightTop:{left:this.cropperPosition.left+this.cropperPosition.width-t+"px",top:this.cropperPosition.top-t+"px",transition:n},leftBottom:{left:this.cropperPosition.left-t+"px",top:this.cropperPosition.top+this.cropperPosition.height-t+"px",transition:n},rightBottom:{left:this.cropperPosition.left+this.cropperPosition.width-t+"px",top:this.cropperPosition.top+this.cropperPosition.height-t+"px",transition:n}}}},methods:{applyAnim:function(){var t=this;this.animate=!0,clearTimeout(C),C=setTimeout((function(){t.animate=!1}),200)},getContainerRect:function(){var t=this;return(0,r.default)((0,s.default)().mark((function e(){var i;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=uni.getSystemInfoSync(),t.windowWidth=i.windowWidth,t.dpr=i.pixelRatio,e.abrupt("return",new Promise((function(e){uni.createSelectorQuery().in(t).select(".mainContent").boundingClientRect((function(t){e(t)})).exec()})));case 4:case"end":return e.stop()}}),e)})))()},getImageInfo:function(t){return(0,r.default)((0,s.default)().mark((function e(){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return uni.showLoading({title:"获取图片信息"}),e.abrupt("return",uni.getImageInfo({src:t}).then((function(t){var e,i=t[0];if(e=t[1],i)throw new Error(i);return uni.hideLoading(),e})).then((function(t){t.width,t.height;return t})).then((function(t){return t})).catch((function(t){throw uni.hideLoading(),uni.showToast({title:"图片加载失败",icon:"none"}),Error(t)})));case 2:case"end":return e.stop()}}),e)})))()},getImageInitRect:function(){return(0,c.default)(this.imageInfo,this.containerRect)},resetImage:function(){this.imgTranslateX=0,this.imgTranslateY=0,this.imgScale=1,this.resetCropper()},getCropperInitPosition:function(){return(0,u.default)(this.imageBoundingRect,{width:this.ratio||1,height:1})},resetRatio:function(){return(0,f.log)("本方法(resetRatio)已弃用,未来将删除,请用resetCropper代替","warn"),this.resetCropper()},resetCropper:function(){this.imageInfo&&0!==this.ratio&&(this.cropperPosition=this.getCropperInitPosition(),this.checkImagePosition())},onTouchStart:function(t){this.animate=!1,C&&clearTimeout(C),y=Array.from(t.touches),"image"===t.target.dataset.type?(p=this.imgTranslateX,v=this.imgTranslateY,2==t.touches.length&&(_=this.imgScale,g=h.default.apply(void 0,(0,a.default)((0,f.getTouchPoints)(y))))):(m=this.cropperPosition.left,w=this.cropperPosition.top,b=this.cropperPosition.width,x=this.cropperPosition.height)},onTouchEnd:function(){y=[],this.checkImagePosition(),this.autoZoom&&(clearTimeout(C),C=setTimeout(this.zoom,1e3)),this.reportChange()},getImagePosition:function(){return(0,d.default)(this.imageBoundingRect,{imgTranslateX:this.imgTranslateX,imgTranslateY:this.imgTranslateY,imgScale:this.imgScale})},getCropperPosition:function(){return(0,l.default)(this.cropperPosition)},checkImagePosition:function(){var t=this.getImagePosition(),e=this.getCropperPosition(),i=e.width/t.width,n=e.height/t.height,o=Math.max(i,n);o>1&&(this.imageZoom({left:e.left+e.width/2,top:e.top+e.height/2},o),this.applyAnim()),t.left>e.left?this.imgTranslateX=this.imgTranslateX-(t.left-e.left):t.right<e.right&&(this.imgTranslateX=this.imgTranslateX+(e.right-t.right)),t.top>e.top?this.imgTranslateY=this.imgTranslateY-(t.top-e.top):t.bottom<e.bottom&&(this.imgTranslateY=this.imgTranslateY+(e.bottom-t.bottom))},zoom:function(){var t=this.containerRect.width/this.containerRect.height,e=this.cropperPosition.width/this.cropperPosition.height,i=1;i=e>t?this.containerRect.width/this.cropperPosition.width:this.containerRect.height/this.cropperPosition.height,this.cropperPosition.width*=i,this.cropperPosition.height*=i,this.imageZoom({left:this.cropperPosition.left,top:this.cropperPosition.top},i);var n=(this.containerRect.height-this.cropperPosition.height)/2,o=n-this.cropperPosition.top,a=(this.containerRect.width-this.cropperPosition.width)/2,s=a-this.cropperPosition.left;this.cropperPosition.left=a,this.cropperPosition.top=n,this.imgTranslateX+=s,this.imgTranslateY+=o,this.checkImagePosition(),this.applyAnim()},reportChange:function(){var t=this.getImagePosition(),e=this.getCropperPosition(),i=this.imageBoundingRect.width/this.imageInfo.width*this.imgScale;this.$emit("change",{left:(e.left-t.left)/i,top:(e.top-t.top)/i,width:e.width/i,height:e.height/i})},imageZoom:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,top:0},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.getImagePosition();this.imgScale=this.imgScale*e;var n=(t.left-i.left)/i.width;this.imgTranslateX=this.imgTranslateX+i.width*(e-1)/2*(1-2*n);var o=(t.top-i.top)/i.height;this.imgTranslateY=this.imgTranslateY+i.height*(e-1)/2*(1-2*o)},onImageMove:function(t){if(2==t.touches.length&&2==y.length){var e=(0,f.getTouchPoints)(t.touches),i=_*h.default.apply(void 0,(0,a.default)(e))/g;this.imageZoom({left:this.cropperPosition.left+this.cropperPosition.width/2,top:this.cropperPosition.top+this.cropperPosition.height/2},i/this.imgScale)}else if(1==t.touches.length&&1==y.length){var n=(0,o.default)((0,f.getTouchPoints)(y)[0],2),s=n[0],r=n[1],c=(0,o.default)((0,f.getTouchPoints)(t.touches)[0],2),d=c[0],u=c[1];this.imgTranslateX=p+d-s,this.imgTranslateY=v+u-r}},onHandleResize:function(t,e,i){var n=(0,o.default)((0,f.getTouchPoints)(y)[0],2),a=n[0],s=n[1],r=(0,o.default)((0,f.getTouchPoints)(i.touches)[0],2),c=r[0],d=r[1],u=this.getCropperPosition(),l=this.getImagePosition(),h=c-a,p=d-s,v={width:uni.upx2px(100),height:uni.upx2px(100)},g=l.bottom-u.top,_=this.containerRect.bottom-u.top,C=Math.min(g,_),P=l.right-u.left,k=this.containerRect.right-u.left,A=Math.min(P,k),T=0;switch(t){case 1:T=b+h,T<A&&T>v.width&&(this.cropperPosition.width=T);break;case-1:var S=m+h,z=Math.min(l.left,u.left);T=b-h,S>z&&T>v.width&&(this.cropperPosition.left=S,this.cropperPosition.width=T);break;case 0:0!=this.ratio&&(this.cropperPosition.width=this.cropperPosition.height*this.ratio);break}switch(e){case 1:var E=x+p;E<C&&E>v.height&&(this.cropperPosition.height=E);break;case-1:var L=w+p,$=Math.min(l.top,u.top);if(L>$){var I=x-p;I>v.height&&(this.cropperPosition.top=L,this.cropperPosition.height=I)}break;case 0:0!=this.ratio&&(this.cropperPosition.height=this.cropperPosition.width/this.ratio);break}},crop:function(){var t=arguments,e=this;return(0,r.default)((0,s.default)().mark((function i(){return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(t.length>0&&void 0!==t[0]?t[0]:null,e.imageInfo){i.next=4;break}return uni.showToast({title:"图片尚未载入完成"}),i.abrupt("return",[new Error("图片尚未载入完成"),null]);case 4:return e.showCanvas=!0,e.$emit("cropStart"),i.abrupt("return",new Promise((function(t){e.$nextTick((function(){e.onCrop().then((function(e){t(e)}))}))})));case 7:case"end":return i.stop()}}),i)})))()},onCrop:function(){var t=this;return(0,r.default)((0,s.default)().mark((function e(){var i,n,a,r,c,d,u,l,h,p,v,g,m;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.imageInfo.path,n=uni.createCanvasContext("bt-canvas",t),c=t.getImagePosition(),d=t.getCropperPosition(),u=c.width/t.imageInfo.width,l=(d.left-c.left)/u,h=(d.top-c.top)/u,p=d.width/u,v=d.height/u,n.drawImage(i,l,h,p,v,0,0,t.dSize.width,t.dSize.height),e.next=12,new Promise((function(t){return n.draw(!0,t)}));case 12:return e.next=14,(0,f.sleep)(200);case 14:return e.next=16,new Promise((function(e){uni.canvasToTempFilePath({canvasId:"bt-canvas",fileType:t.fileType,destWidth:t.dSize.width,destHeight:t.dSize.height,quality:t.quality,success:function(t){e([null,t])},fail:function(t){e([t,null])},complete:function(){t.showCanvas=!1}})}));case 16:return g=e.sent,m=(0,o.default)(g,2),a=m[0],r=m[1],t.$emit("cropEnd",[a,r]),e.abrupt("return",[a,r]);case 22:case"end":return e.stop()}}),e)})))()}}};e.default=P},"43b1":function(t,e,i){"use strict";i.r(e);var n=i("07e9"),o=i("f0b8");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("49ef");var s=i("f0c5"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"56ede18f",null,!1,n["a"],void 0);e["default"]=r.exports},"493d":function(t,e,i){"use strict";i.r(e);var n=i("e933"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"49ef":function(t,e,i){"use strict";var n=i("9d99"),o=i.n(n);o.a},"62f1":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.containers[data-v-56ede18f]{background:#fff;border-radius:%?16?% %?16?% 0 0;padding:%?40?% 0;position:relative}.containers .header[data-v-56ede18f]{position:relative;padding:0 %?30?%}.containers .header .title[data-v-56ede18f]{width:100%;text-align:center}.containers .header .title uni-text[data-v-56ede18f]{position:relative;margin:0 %?50?%;color:#999;font-size:%?30?%}.containers .header .title uni-text.on[data-v-56ede18f]{color:#333;font-weight:700;font-size:%?34?%}.containers .header .title uni-text.on[data-v-56ede18f]::after{content:"";display:inline-block;width:%?40?%;height:%?5?%;background:var(--view-theme);position:absolute;bottom:%?-10?%;left:%?10?%}.containers .header .search[data-v-56ede18f]{margin-top:%?44?%;background:#f5f5f5;border-radius:%?30?%;padding:%?12?% %?30?% %?12?% %?66?%;position:relative}.containers .header .search .iconfont[data-v-56ede18f]{font-size:%?24?%;color:#939393;position:absolute;top:%?20?%;left:%?30?%}.containers .header .search .placeholder[data-v-56ede18f]{color:#999;font-size:%?26?%}.containers .header .sub_title[data-v-56ede18f]{color:#282828;font-size:%?26?%;margin-top:%?30?%}.containers .header .iconfont[data-v-56ede18f]{color:#8a8a8a;font-size:%?28?%;position:absolute;top:0;right:%?30?%}.containers uni-scroll-view[data-v-56ede18f]{height:%?650?%}.containers .main[data-v-56ede18f]{height:%?650?%;margin:%?40?% 0 %?80?%;padding:0 %?30?%}.picTxt[data-v-56ede18f]{width:100%;padding:%?25?% 0;position:relative;align-items:center;justify-content:space-between;margin-bottom:%?10?%}.picTxt .checkbox[data-v-56ede18f]{margin-right:%?30?%}.picTxt .checkbox .iconfont[data-v-56ede18f]{font-size:%?38?%;color:#ccc}.picTxt .checkbox .icon-xuanzhong1[data-v-56ede18f]{color:var(--view-theme)}.picTxt .checkbox .disabled[data-v-56ede18f]{pointer-events:none;cursor:default;opacity:.3}.picTxt .pictrue[data-v-56ede18f]{width:%?160?%;height:%?160?%}.picTxt .pictrue uni-image[data-v-56ede18f]{width:100%;height:100%;border-radius:%?8?%}.picTxt .text[data-v-56ede18f]{width:%?430?%;margin-left:%?30?%;font-size:%?28?%;color:#282828;position:relative;height:%?160?%}.picTxt .text .name[data-v-56ede18f]{color:#282828;font-size:%?28?%}.picTxt .text .money[data-v-56ede18f]{position:absolute;bottom:0;left:0;color:var(--view-priceColor);font-size:%?22?%;font-weight:700}.picTxt .text .money uni-text[data-v-56ede18f]{font-size:%?26?%}.foot_bar[data-v-56ede18f]{width:100%;position:fixed;bottom:0;left:0;background:#fff;padding:%?20?% 0;z-index:5}.foot_bar .confirm_btn[data-v-56ede18f]{width:%?710?%;height:%?86?%;line-height:%?86?%;color:#fff;text-align:center;font-size:%?32?%;background:var(--view-theme);border-radius:%?43?%;margin:0 auto}.empty[data-v-56ede18f]{margin:%?130?% 0 %?150?%;text-align:center}.empty uni-image[data-v-56ede18f], .empty uni-image[data-v-56ede18f]{display:inline-block;width:%?414?%;height:%?305?%}.empty uni-text[data-v-56ede18f]{display:block;color:#999;font-size:%?26?%}',""]),t.exports=e},"64fe":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"bt-container"},[i("v-uni-view",{staticClass:"mainContent",on:{touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchEnd.apply(void 0,arguments)},touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchStart.apply(void 0,arguments)}}},[t.imageInfo?[i("v-uni-image",{staticClass:"image",style:[t.imageStyle],attrs:{src:t.showImagePath,mode:"aspectFit","data-type":"image"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.onImageMove.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"cropper",style:{width:t.cropperPosition.width+"px",height:t.cropperPosition.height+"px",left:t.cropperPosition.left-1+"px",top:t.cropperPosition.top-1+"px",transition:t.transition}},[t.showGrid?[i("v-uni-view",{staticClass:"line row row1"}),i("v-uni-view",{staticClass:"line row row2"}),i("v-uni-view",{staticClass:"line col col1"}),i("v-uni-view",{staticClass:"line col col2"})]:t._e()],2),i("v-uni-view",{staticClass:"controller vertical",style:[t.controllerPosition.left],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.onHandleResize(-1,0,e)}}}),i("v-uni-view",{staticClass:"controller vertical",style:[t.controllerPosition.right],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.onHandleResize(1,0,e)}}}),i("v-uni-view",{staticClass:"controller horizon",style:[t.controllerPosition.top],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.onHandleResize(0,-1,e)}}}),i("v-uni-view",{staticClass:"controller horizon",style:[t.controllerPosition.bottom],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.onHandleResize(0,1,e)}}}),0==t.ratio?[i("v-uni-view",{staticClass:"controller controller_dot",style:[t.controllerPosition.leftTop],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.onHandleResize(-1,-1,e)}}}),i("v-uni-view",{staticClass:"controller controller_dot",style:[t.controllerPosition.rightTop],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.onHandleResize(1,-1,e)}}}),i("v-uni-view",{staticClass:"controller controller_dot",style:[t.controllerPosition.leftBottom],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.onHandleResize(-1,1,e)}}}),i("v-uni-view",{staticClass:"controller controller_dot",style:[t.controllerPosition.rightBottom],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.onHandleResize(1,1,e)}}})]:t._e()]:t._e()],2),i("v-uni-view",{staticClass:"slot"},[t._t("default")],2),t.showCanvas?i("v-uni-canvas",{staticClass:"bt-canvas",style:{width:t.dSize.width+"px",height:t.dSize.height+"px"},attrs:{"canvas-id":"bt-canvas"}}):t._e()],1)},o=[]},"6f5c":function(t,e,i){"use strict";var n=i("1eba"),o=i.n(n);o.a},"74a9":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{width:9,height:16},i=(0,o.default)(e.width,e.height),n=(0,o.default)(t.width,t.height);if(i>n){var a=e.height*n,s=e.height;return{width:a,height:s,left:(e.width-a)/2,top:0}}var r=e.width,c=e.width/n;return{width:r,height:c,left:0,top:(e.height-c)/2}};var o=n(i("110e"))},7763:function(t,e,i){"use strict";var n=i("0a76"),o=i.n(n);o.a},"7c92":function(t,e,i){"use strict";var n=i("37aa"),o=i.n(n);o.a},"86c7":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d81d"),i("14d9"),i("a434");var o=n(i("3835")),a=n(i("5530")),s=n(i("ade3")),r=i("26cb"),c=n(i("f272")),d=n(i("a208")),u=n(i("43b1")),l=n(i("0c03")),h=i("8342"),f=i("d2c9"),p=i("a5eb"),v=n(i("ae65")),g=i("4f1b"),m=n(i("3f30")),w={components:{avatar:d.default,associated:u.default,participateTopic:l.default,authorize:c.default,easyLoadimage:v.default},data:function(){return(0,s.default)({formData:{image:[],content:"",topic_id:"",spu_id:[],video_link:""},imageSrc:"",productList:[],topicName:{},isUpload:!0,isAuto:!1,isShowAuth:!1,showCd:!1,id:"",order_id:"",imgName:"",upload_max:50,uploadUrl:"".concat(h.HTTP_REQUEST_URL,"/api/upload/video"),tabList:[{name:"图文",value:1,icon:"icon-tuwen"},{name:"视频",value:2,icon:"icon-shipin"}],tabActive:1,isPlay:!1,videoContext:"",video_link:"",showVideo:!1,videoplay:!1},"videoContext","")},computed:(0,a.default)((0,a.default)({},(0,r.mapGetters)(["isLogin","viewColor","uid"])),(0,g.configMap)({community_app_switch:[]})),watch:{},mounted:function(){this.videoContext=uni.createVideoContext("myVideo",this)},onLoad:function(t){if(this.id=t.id,this.order_id=t.order_id,this.tabActive=t.type||1,1==this.community_app_switch.length&&(this.tabActive=this.community_app_switch[0]),this.isLogin){if(this.id)this.getDetail();else{var e=(0,p.getStorage)("addPlant");this.tabActive=(0,p.getStorage)("tabActive"),e&&(this.formData.content=e.content||"",this.formData.image=e.image||[],this.formData.video_link=e.video_link||"")}this.order_id&&this.getOrderGoods()}else this.isAuto=!0,this.isShowAuth=!0;this.videoContext=uni.createVideoContext("myvideo",this)},methods:{onLoadFun:function(){this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},getDetail:function(){var t=this;(0,f.plantDetailApi)(t.id).then((function(e){t.formData=e.data,t.productList=e.data.relevance||[],t.topicName=e.data.topic||{}})).catch((function(e){return t.$util.Tips({title:e})}))},getOrderGoods:function(){var t=this;(0,f.orderAssociatePlantApi)(t.order_id).then((function(e){t.productList=e.data||[],t.formData.spu_id=e.data.map((function(t){return t.spu_id}))})).catch((function(e){return t.$util.Tips({title:e})}))},changeTab:function(t){this.tabActive!=t.value&&(this.tabActive=t.value,this.formData.image=[])},deleteTopic:function(){this.formData.topic={},this.topicName={}},clk:function(){var t=this;uni.chooseImage({count:1,sizeType:["original"],success:function(e){var i=e.tempFilePaths[0];t.imageSrc=i,t.showCd=!0}})},crop:function(){var t=this;uni.showLoading({title:"",mask:!0}),this.$refs.cropper.crop().then((function(e){var i=(0,o.default)(e,2),n=i[0],a=i[1];n?uni.hideLoading():(uni.hideLoading(),t.doUpload(a.tempFilePath))}))},loadImage:function(){this.showCd=!1},doUpload:function(t){var e=this;uni.showLoading({title:"上传中",mask:!0}),uni.uploadFile({url:h.HTTP_REQUEST_URL+"/api/upload/image/field",filePath:t,name:"field",formData:{filename:t,name:e.imgName},header:(0,s.default)({},h.TOKENNAME,"Bearer "+m.default.state.app.token),success:function(t){var i=JSON.parse(t.data);i.data.path&&(e.formData.image.push(i.data.path),uni.hideLoading())},complete:function(t){}})},uploadVideo:function(){var t=this;uni.chooseVideo({sourceType:["camera","album"],success:function(e){uni.showLoading({title:"视频上传中"}),Math.ceil(e.size/1024)<1024*t.upload_max?uni.uploadFile({url:t.uploadUrl,filePath:e.tempFilePath,name:"file",formData:{user:"test"},header:(0,s.default)({},h.TOKENNAME,"Bearer "+m.default.state.app.token),success:function(e){uni.hideLoading();var i=JSON.parse(e.data);t.formData.video_link=i.data.src},complete:function(t){uni.hideLoading()},fail:function(e){uni.hideLoading(),t.Tips({title:e.message})}}):(uni.hideLoading(),uni.showModal({title:"提示",content:"视频超出限制".concat(t.upload_max,"MB")}))},fail:function(e){t.$util.Tips({title:e})}})},getImgName:function(t){this.imgName=t},DelPic:function(t){this.formData.image.splice(t,1)},addProduct:function(){this.$refs.associated.open()},addTopic:function(){this.$refs.participateTopic.open()},close:function(){this.$refs.associated.close(),this.$refs.participateTopic.close()},videoshow:function(){var t=this;this.showVideo=!0,this.videoContext=uni.createVideoContext("myVideo",this),this.$nextTick((function(){t.videoContext.play()}))},screenChange:function(t){var e=t.detail.fullScreen;e||(this.videoplay=!1)},getProduct:function(t){this.productList=t,this.formData.spu_id=t.map((function(t){return t.spu_id})),this.$refs.associated.close()},getTopic:function(t){t.topic_id?this.topicName=t:this.topicName={},this.formData.topic_id=t.topic_id,this.$refs.participateTopic.close()},formSubmit:function(t){var e=this,i=e.formData;if(e.isLogin){if(0==i.image.length)return e.$util.Tips({title:"请添加话题图片"});if(!i.content)return e.$util.Tips({title:"请分享使用心得和体会"});if(2==e.tabActive&&!i.video_link)return e.$util.Tips({title:"请添加话题视频"});e.id&&i.relevance.length&&(i.spu_id=i.relevance.map((function(t){return t.spu&&t.spu.spu_id||t.spu_id}))),i.order_id=e.order_id,i.is_type=e.tabActive,uni.showLoading({title:"保存中",mask:!0}),e.id?(0,f.updatePlantApi)(e.id,i).then((function(t){uni.hideLoading(),e.$util.Tips({title:t.messge,icon:"success"}),2==e.tabActive?uni.navigateTo({url:"/pages/short_video/nvueSwiper/index?id="+t.data.community_id+"&user=1&uid="+e.uid}):uni.redirectTo({url:"/pages/plantGrass/plant_detail/index?id="+t.data.community_id+"&type="+e.tabActive})})).catch((function(t){return e.$util.Tips({title:t})})):(0,f.createPlantApi)(i).then((function(t){uni.hideLoading(),e.$util.Tips({title:t.messge,icon:"success"}),(0,p.setStorage)("addPlant",""),(0,p.setStorage)("tabActive",1),2==e.tabActive?uni.navigateTo({url:"/pages/short_video/nvueSwiper/index?id="+t.data.community_id+"&user=1&uid="+e.uid}):uni.redirectTo({url:"/pages/plantGrass/plant_detail/index?id="+t.data.community_id+"&type="+e.tabActive})})).catch((function(t){return e.$util.Tips({title:t})}))}else e.isAuto=!0,e.isShowAuth=!0,e.id||setTimeout((function(){(0,p.setStorage)("addPlant",i),(0,p.setStorage)("tabActive",e.tabActive)}))}}};e.default=w},8835:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={easyLoadimage:i("ae65").default,btCropper:i("0553").default,uniPopup:i("59c7").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{style:t.viewColor},[n("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"release_content"},[2==t.community_app_switch.length?n("v-uni-view",{staticClass:"release_tab acea-row"},t._l(t.tabList,(function(e,i){return n("v-uni-view",{key:e.value,staticClass:"tab_item",class:{on:t.tabActive==e.value},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeTab(e)}}},[n("v-uni-text",{staticClass:"iconfont",class:e.icon}),t._v(t._s(e.name))],1)})),1):t._e(),n("v-uni-view",[n("v-uni-view",{staticClass:"release_item"},[n("v-uni-view",{staticClass:"photo_count"},[n("v-uni-view",{staticClass:"input_photo acea-row row-middle"},[2==t.tabActive?[t.formData.video_link?n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{staticClass:"video-bg",attrs:{mode:"widthFix",src:i("0bad")}}),n("v-uni-view",{staticClass:"videoHover",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.videoshow.apply(void 0,arguments)}}},[n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont icon-24gf-play"})],1)],1),n("v-uni-text",{staticClass:"video-text"},[t._v("点击可预览视频")]),n("v-uni-view",{staticClass:"close_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.formData.video_link=""}}},[n("v-uni-text",{staticClass:"iconfont icon-guanbi4"})],1)],1):n("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column add",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadVideo.apply(void 0,arguments)}}},[n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont icon-tianjiashipin"})],1),n("v-uni-view",{staticClass:"text"},[t._v("添加视频")])],1),t.formData.image.length<1?n("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column add",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clk.apply(void 0,arguments)}}},[n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont icon-fengmian"})],1),n("v-uni-view",{staticClass:"text"},[t._v("添加封面")])],1):t._e()]:t._e(),t._l(t.formData.image,(function(e,i){return n("v-uni-view",{key:i,staticClass:"pictrue"},[n("easy-loadimage",{attrs:{mode:"widthFix","image-src":e}}),2==t.tabActive?n("v-uni-text",{staticClass:"cover_text"},[t._v("封面")]):t._e(),n("v-uni-view",{staticClass:"close_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.DelPic(i)}}},[n("v-uni-text",{staticClass:"iconfont icon-guanbi4"})],1)],1)})),1==t.tabActive?[t.formData.image.length<6?n("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column add",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clk.apply(void 0,arguments)}}},[n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont icon-icon25201"})],1),n("v-uni-view",{staticClass:"text"},[t._v("添加图片")])],1):t._e()]:t._e(),t.showCd?n("v-uni-view",{staticClass:"container",attrs:{ratio:16/9}},[n("bt-cropper",{ref:"cropper",attrs:{imageSrc:t.imageSrc,dWidth:800},on:{cropEnd:function(e){arguments[0]=e=t.$handleEvent(e),t.loadImage.apply(void 0,arguments)}}},[n("v-uni-button",{staticClass:"crop_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.crop.apply(void 0,arguments)}}},[t._v("裁切")])],1)],1):t._e()],2)],1),n("v-uni-view",{staticClass:"textarea"},[n("v-uni-textarea",{attrs:{placeholder:"分享使用体验和心得,获得更多点赞和关注哦~(600字以内)",name:"comment","placeholder-class":"placeholder",maxlength:"600"},model:{value:t.formData.content,callback:function(e){t.$set(t.formData,"content",e)},expression:"formData.content"}})],1)],1),n("v-uni-view",{staticClass:"release_item"},[n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"name"},[n("v-uni-text",{staticClass:"iconfont icon-baobeilianjie"}),t._v("添加宝贝("+t._s(t.productList.length)+")")],1),n("v-uni-view",{staticClass:"select"},[n("v-uni-view",{staticClass:"select_count",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.addProduct.apply(void 0,arguments)}}},[0==t.productList.length?n("v-uni-text",{staticClass:"text"},[t._v("选择商品")]):n("v-uni-view",{staticClass:"text"},t._l(t.productList,(function(t,e){return n("v-uni-image",{key:e,staticClass:"image",attrs:{src:t.image||t.spu&&t.spu.image}})})),1),n("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1)],1)],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"name"},[n("v-uni-text",{staticClass:"iconfont icon-canyuhuati"}),t._v("参与话题")],1),n("v-uni-view",{staticClass:"select"},[n("v-uni-view",{staticClass:"select_count",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addTopic.apply(void 0,arguments)}}},[t.topicName.topic_name?n("v-uni-text",{staticClass:"text_name",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.deleteTopic.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"icon"},[t._v("#")]),n("v-uni-text",{staticClass:"title"},[t._v(t._s(t.topicName.topic_name))]),n("v-uni-text",{staticClass:"iconfont icon-guanbi5"})],1):n("v-uni-text",{staticClass:"text"},[t._v("选择话题")]),n("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1)],1)],1)],1)],1),n("v-uni-button",{staticClass:"release_btn button",attrs:{"form-type":"submit"}},[t._v("发布")])],1)],1),t.showVideo?n("v-uni-view",{staticClass:"video-count"},[n("v-uni-video",{staticClass:"videoLink",attrs:{id:"myVideo",autoplay:!0,loop:!0,muted:!0,src:t.formData.video_link}})],1):t._e(),n("v-uni-view",{staticClass:"mask",attrs:{catchtouchmove:"true",hidden:0==t.showVideo},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showVideo=!1}}}),n("avatar",{ref:"avatar",attrs:{quality:"1",selWidth:"250upx",selHeight:"250upx"},on:{upload:function(e){arguments[0]=e=t.$handleEvent(e),t.doUpload.apply(void 0,arguments)},getName:function(e){arguments[0]=e=t.$handleEvent(e),t.getImgName.apply(void 0,arguments)}}}),n("uni-popup",{ref:"associated",attrs:{type:"bottom"}},[n("associated",{attrs:{checkedObj:t.productList},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)},getProduct:function(e){arguments[0]=e=t.$handleEvent(e),t.getProduct.apply(void 0,arguments)}}})],1),n("uni-popup",{ref:"participateTopic",attrs:{type:"bottom"}},[n("participate-topic",{on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)},getTopic:function(e){arguments[0]=e=t.$handleEvent(e),t.getTopic.apply(void 0,arguments)}}})],1),n("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{onLoadFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadFun.apply(void 0,arguments)},authColse:function(e){arguments[0]=e=t.$handleEvent(e),t.authColse.apply(void 0,arguments)}}})],1)},a=[]},"8c06":function(t,e,i){"use strict";i.r(e);var n=i("86c7"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"99e9":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,i={left:0,right:0,top:0,bottom:0,width:0,height:0},n=(0,o.default)(e.width,e.height),c=(0,o.default)(t.width,t.height);n>c?(i.width=t.width,i.height=i.width/n,i.left=t.left,i.top=(t.height-i.height)/2+t.top):(i.height=t.height,i.width=i.height*n,i.left=(t.width-i.width)/2+t.left,i.top=t.top);return(0,a.default)(i)};var o=n(i("110e")),a=n(i("e71f")),s={left:0,top:0,width:9,height:16},r={width:2,height:1}},"9d99":function(t,e,i){var n=i("62f1");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("9a471c60",n,!0,{sourceMap:!1,shadowMode:!1})},a296:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.Popup[data-v-ac292046]{flex:1;align-items:center;justify-content:center;width:%?500?%;background-color:#fff;position:fixed;top:%?500?%;left:%?125?%;z-index:1000}.Popup .logo-auth[data-v-ac292046]{z-index:-1;position:absolute;left:50%;top:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:%?150?%;height:%?150?%;display:flex;align-items:center;justify-content:center;border:%?8?% solid #fff;border-radius:50%;background:#fff}.Popup .image[data-v-ac292046]{height:%?42?%;margin-top:%?-54?%}.Popup .title[data-v-ac292046]{font-size:%?28?%;color:#000;text-align:center;margin-top:%?30?%;align-items:center;justify-content:center;width:%?500?%;display:flex}.Popup .tip[data-v-ac292046]{font-size:%?22?%;color:#555;padding:0 %?24?%;margin-top:%?25?%;display:flex;align-items:center;justify-content:center}.Popup .bottom .item[data-v-ac292046]{width:%?250?%;height:%?80?%;background-color:#eee;text-align:center;line-height:%?80?%;margin-top:%?54?%;font-size:%?24?%;color:#666}.Popup .bottom .item .text[data-v-ac292046]{font-size:%?24?%;color:#666}.Popup .bottom .item.on[data-v-ac292046]{width:%?500?%}.flex[data-v-ac292046]{display:flex;flex-direction:row}.Popup .bottom .item.grant[data-v-ac292046]{font-weight:700;background-color:#e93323;\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-ac292046]{font-size:%?28?%;color:#fff}.mask[data-v-ac292046]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}',""]),t.exports=e},ada8:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"productSort"},[i("v-uni-view",{staticClass:"title"},[t._v("参与话题"),i("v-uni-text",{staticClass:"iconfont icon-guanbi5",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"con-box"},[i("v-uni-view",{staticClass:"aside"},[i("v-uni-scroll-view",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"scroll-y":"true"}},t._l(t.productList,(function(e,n){return i("v-uni-view",{key:e.category_id},[i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.children&&e.children.length>0,expression:"item.children && item.children.length > 0"}],staticClass:"item acea-row row-center-wrapper",class:n==t.navActive?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tap(n,"b"+n)}}},[i("v-uni-text",{staticClass:"item_text"},[t._v(t._s(e.cate_name))])],1)],1)})),1)],1),i("v-uni-view",{staticClass:"conter"},[i("v-uni-scroll-view",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"scroll-y":"true"}},t._l(t.childList,(function(e,n){return i("v-uni-view",{key:e.topic_id},[i("v-uni-view",{staticClass:"list",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.confirmTopic(e)}}},[i("v-uni-view",{staticClass:"item acea-row"},[i("v-uni-view",{staticClass:"picture"},[i("v-uni-image",{attrs:{src:e.pic}})],1),i("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.topic_name))])],1)],1)],1)})),1)],1)],1)],1)},o=[]},b90c:function(t,e,i){"use strict";i.r(e);var n=i("01c6"),o=i("cc26");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("7763");var s=i("f0c5"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"0566d5ee",null,!1,n["a"],void 0);e["default"]=r.exports},bc6f:function(t,e,i){"use strict";i.r(e);var n=i("3f6a"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},bd53:function(t,e,i){"use strict";var n=i("c35b"),o=i.n(n);o.a},bf24:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-59af0ac0]{background:#f5f5f5}body.?%PAGE?%[data-v-59af0ac0]{background:#f5f5f5}.crop_btn[data-v-59af0ac0]{line-height:%?90?%;height:%?90?%;height:calc(90rpx+ constant(safe-area-inset-bottom));height:calc(%?90?% + env(safe-area-inset-bottom))}.container[data-v-59af0ac0]{position:fixed;top:0;left:0;z-index:20;width:%?750?%;height:100vh}.release_content[data-v-59af0ac0]{margin-top:%?30?%;padding:0 %?20?%}.release_content .release_tab[data-v-59af0ac0]{border-radius:%?16?% %?16?% 0 0;border-bottom:%?1?% solid #e4e4e4;background:#fff;align-items:center;justify-content:center;height:%?86?%}.release_content .release_tab .tab_item[data-v-59af0ac0]{margin:0 %?40?%;font-size:%?32?%;color:#999;position:relative;line-height:%?86?%;cursor:pointer}.release_content .release_tab .tab_item.on[data-v-59af0ac0]{color:#e93323}.release_content .release_tab .tab_item.on[data-v-59af0ac0]::after{content:"";display:inline-block;width:100%;height:%?3?%;background:#e93323;position:absolute;bottom:%?2?%;left:0}.release_content .release_tab .tab_item .iconfont[data-v-59af0ac0]{margin-right:%?10?%;font-size:%?32?%}.release_content .release_item[data-v-59af0ac0]{background:#fff;padding:0 %?30?%;border-radius:%?10?%}.release_content .photo_count[data-v-59af0ac0]{padding:%?30?% 0}[data-v-59af0ac0] .input_photo .easy-loadimage,[data-v-59af0ac0] .input_photo uni-image,[data-v-59af0ac0] .input_photo uni-image{width:%?180?%;height:%?180?%;border-radius:%?12?%!important}.input_photo .pictrue[data-v-59af0ac0]{width:%?180?%;height:%?180?%;border-radius:%?12?%!important;margin-right:%?11?%;position:relative;overflow:hidden}.input_photo .pictrue[data-v-59af0ac0]:nth-child(3n){margin-right:0}.input_photo .pictrue .close_btn[data-v-59af0ac0]{width:%?30?%;height:%?30?%;background:rgba(0,0,0,.6);border-radius:0 %?12?% 0 %?12?%;position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;z-index:10}.input_photo .pictrue .close_btn .iconfont[data-v-59af0ac0]{color:#fff;font-size:%?12?%}.input_photo .pictrue .cover_text[data-v-59af0ac0]{display:flex;width:%?58?%;height:%?29?%;background:#e93323;border-radius:0 %?12?% 0 %?12?%;position:absolute;left:0;bottom:0;z-index:10;align-items:center;justify-content:center;font-size:%?18?%;color:#fff}[data-v-59af0ac0] .loading-img{width:%?180?%;height:%?180?%;border-radius:%?12?%}.input_photo .pictrue[data-v-59af0ac0]{margin-bottom:%?20?%}.input_photo .pictrue .videoHover[data-v-59af0ac0]{width:%?180?%;height:%?180?%;display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;z-index:10}.input_photo .pictrue .videoHover > uni-view[data-v-59af0ac0]{width:%?50?%;height:%?50?%;background:#000;border-radius:%?50?%;display:flex;align-items:center;justify-content:center}.input_photo .pictrue .videoHover > uni-view .iconfont[data-v-59af0ac0]{color:#fff;font-size:%?21?%}.input_photo .pictrue .video-text[data-v-59af0ac0]{display:block;width:%?180?%;text-align:center;color:#fff;font-size:%?18?%;z-index:13;position:absolute;bottom:%?20?%}.input_photo .pictrue uni-video[data-v-59af0ac0]{width:%?180?%;height:%?180?%;border-radius:%?12?%}.input_photo .add[data-v-59af0ac0]{background:#f6f6f6;color:#666}.input_photo .add .iconfont[data-v-59af0ac0]{font-size:%?50?%}.input_photo .add .text[data-v-59af0ac0]{margin-top:%?20?%;font-size:%?27?%}.textarea uni-textarea[data-v-59af0ac0]{font-size:%?28?%;padding-bottom:%?38?%;width:100%;box-sizing:border-box;height:%?400?%;overflow:hidden}.textarea .placeholder[data-v-59af0ac0]{color:#bbb}.release_item .item[data-v-59af0ac0]{height:%?106?%;border-bottom:%?1?% solid #eee;position:relative;font-size:%?30?%}.release_item .item[data-v-59af0ac0]:last-child{border-bottom:none}.release_item .item .name[data-v-59af0ac0]{color:#333}.release_item .item .name .iconfont[data-v-59af0ac0]{margin-right:%?10?%;font-size:%?28?%}.release_item .item .select[data-v-59af0ac0]{color:#bbb}.release_item .item .select .select_count[data-v-59af0ac0]{display:flex;align-items:center}.release_item .item .select .text[data-v-59af0ac0]{margin-right:%?15?%;display:flex;align-items:center}.release_item .item .select .text .image[data-v-59af0ac0], .release_item .item .select .text uni-image[data-v-59af0ac0], .release_item .item .select .text uni-image[data-v-59af0ac0]{width:%?60?%;height:%?60?%;margin-right:%?5?%}.release_item .item .select .iconfont[data-v-59af0ac0]{font-size:%?24?%}.release_item .item .select .text_name[data-v-59af0ac0]{color:var(--view-theme);padding:%?5?% %?12?%;background:var(--view-minorColor);border-radius:%?23?%;font-size:%?24?%;margin-right:%?10?%}.release_item .item .select .text_name .icon[data-v-59af0ac0]{color:var(--view-theme);font-weight:700;font-size:%?24?%}.release_item .item .select .text_name .title[data-v-59af0ac0]{margin:0 %?10?%}.release_item .item .select .text_name .iconfont[data-v-59af0ac0]{font-size:%?16?%}.button[data-v-59af0ac0]{width:%?710?%;height:%?86?%;line-height:%?86?%;color:#fff;text-align:center;font-size:%?32?%;background:var(--view-theme);border-radius:%?43?%}.release_btn[data-v-59af0ac0]{margin-top:%?160?%}.video-count[data-v-59af0ac0]{position:fixed;width:%?600?%;height:%?500?%;top:50%;left:50%;margin-left:%?-300?%;margin-top:%?-250?%;z-index:100;display:flex;align-items:center;justify-content:center}.video-count .videoLink[data-v-59af0ac0]{width:%?600?%;height:%?500?%}',""]),t.exports=e},c15c:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[t.isShowAuth&&t.code?i("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),t.isShowAuth&&t.code?i("v-uni-view",{staticClass:"Popup",style:"top:"+t.top+"px;"},[i("v-uni-view",{staticClass:"logo-auth"},[i("v-uni-image",{staticClass:"image",attrs:{src:t.routine_logo,mode:"aspectFit"}})],1),t.isWeixin?i("v-uni-text",{staticClass:"title"},[t._v("授权提醒")]):i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.title))]),t.isWeixin?i("v-uni-text",{staticClass:"tip"},[t._v("请授权头像等信息,以便为您提供更好的服务!")]):i("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.info))]),i("v-uni-view",{staticClass:"bottom flex"},[i("v-uni-text",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),i("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?i("v-uni-text",{staticClass:"text"},[t._v("去授权")]):i("v-uni-text",{staticClass:"text"},[t._v("去登录")])],1)],1)],1):t._e()],1)},o=[]},c35b:function(t,e,i){var n=i("bf24");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("535ee2ec",n,!0,{sourceMap:!1,shadowMode:!1})},cc26:function(t,e,i){"use strict";i.r(e);var n=i("1ea6"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},d2c9:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.boughtLstApi=function(t){return o.default.get("community/pay_product/lst",t)},e.browseLstApi=function(t){return o.default.get("community/hist_product/lst",t)},e.collectLstApi=function(t){return o.default.get("community/rela_product/lst",t)},e.createPlantApi=function(t){return o.default.post("community/create",t)},e.deletePlantApi=function(t){return o.default.post("community/delete/".concat(t))},e.focusArticleLst=function(t){return o.default.get("community/focuslst",t,{noAuth:!0})},e.followAuthorApi=function(t,e){return o.default.post("community/fans/".concat(t),e)},e.getTopicList=function(){return o.default.get("community/category/lst",{},{noAuth:!0})},e.getVideoCode=function(t,e){return o.default.get("community/qrcode/".concat(t),e,{noAuth:!0})},e.graphicLstApi=function(t){return o.default.get("community/lst",t,{noAuth:!0})},e.graphicProApi=function(t){return o.default.get("product/spu/get/".concat(t),{noAuth:!0})},e.graphicStartApi=function(t,e){return o.default.post("community/start/".concat(t),e)},e.hotSearchLst=function(){return o.default.get("common/commuunity/hot_keyword",{},{noAuth:!0})},e.myFansLst=function(t){return o.default.get("community/fans/lst",t)},e.myFocusLst=function(t){return o.default.get("community/focus/lst",t)},e.myVideoList=function(t,e){return o.default.get("community/user/community_video/".concat(t),e,{noAuth:!0})},e.orderAssociatePlantApi=function(t){return o.default.get("community/order/".concat(t),{},{noAuth:!0})},e.plantDetailApi=function(t){return o.default.get("community/show/".concat(t),{},{noAuth:!0})},e.replyCreateApi=function(t,e){return o.default.post("community/reply/create/".concat(t),e)},e.replyLstApi=function(t,e){return o.default.get("community/".concat(t,"/reply"),e,{noAuth:!0})},e.starArticleLst=function(t){return o.default.get("community/start/lst",t)},e.starCommentApi=function(t,e){return o.default.post("community/reply/start/".concat(t),e)},e.updatePlantApi=function(t,e){return o.default.post("community/update/".concat(t),e)},e.userArticleLst=function(t,e){return o.default.get("community/user/community/".concat(t),e)},e.userInfoApi=function(t){return o.default.get("community/user/info/".concat(t))},e.videoList=function(t){return o.default.get("community/video_lst",t,{noAuth:!0})};var o=n(i("b5ef"))},d630:function(t,e,i){var n=i("a296");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("8f383f98",n,!0,{sourceMap:!1,shadowMode:!1})},d81dd:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=null;return function(){null!==i&&clearTimeout(i),i=setTimeout(t.bind(this),e)}},e.getTouchPoints=function(t){return Array.from(t).map((function(t){return[t.clientX,t.clientY]}))},e.log=function(t){0},e.sleep=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return new Promise((function(e){setTimeout(e,t)}))},i("d81d"),i("a630"),i("3ca3"),i("d3b7")},dc52:function(t,e,i){"use strict";i.r(e);var n=i("8835"),o=i("8c06");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("bd53");var s=i("f0c5"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"59af0ac0",null,!1,n["a"],void 0);e["default"]=r.exports},df07:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".Loads[data-v-0566d5ee]{height:%?80?%;font-size:%?25?%;color:#000}.Loads .iconfont[data-v-0566d5ee]{font-size:%?30?%;margin-right:%?10?%;height:%?32?%;line-height:%?32?%}\n/*加载动画*/@-webkit-keyframes load-data-v-0566d5ee{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes load-data-v-0566d5ee{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loadingpic[data-v-0566d5ee]{-webkit-animation:load-data-v-0566d5ee 3s linear 1s infinite;animation:load-data-v-0566d5ee 3s linear 1s infinite}.loading[data-v-0566d5ee]{-webkit-animation:load-data-v-0566d5ee linear 1s infinite;animation:load-data-v-0566d5ee linear 1s infinite}",""]),t.exports=e},e082:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.productSort[data-v-769f67dc]{display:flex;flex-direction:column;width:100%;height:70vh;background:#fff;border-radius:%?16?% %?16?% 0 0}.productSort .title[data-v-769f67dc]{text-align:center;padding:%?40?% 0;position:relative;color:#333;font-size:%?34?%;font-weight:700}.productSort .title .iconfont[data-v-769f67dc]{color:#8a8a8a;font-size:%?28?%;position:absolute;right:%?30?%;top:%?42?%;font-weight:400}.productSort .con-box[data-v-769f67dc]{flex:1;display:flex;overflow:hidden}.productSort .aside[data-v-769f67dc]{overflow-y:auto;overflow-x:hidden;border-right:1px solid #eee;width:%?202?%;height:100%;overflow:hidden}.productSort .aside .item[data-v-769f67dc]{line-height:%?100?%;width:100%;font-size:%?26?%;color:#666}.productSort .aside .item_text[data-v-769f67dc]{padding-left:%?20?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.productSort .aside .item.on[data-v-769f67dc]{width:100%;text-align:center;font-weight:700;color:#333}.productSort .conter[data-v-769f67dc]{flex:1;height:100%;padding:0 %?30?%;background-color:#fff;margin-top:%?20?%}.productSort .conter .list[data-v-769f67dc]{flex-wrap:wrap}.productSort .conter .list .item[data-v-769f67dc]{margin-top:%?26?%;margin-bottom:%?40?%;align-items:center}.productSort .conter .list .item .picture[data-v-769f67dc]{width:%?88?%;height:%?88?%;border-radius:100%;position:relative}.productSort .conter .list .item .picture[data-v-769f67dc]::before{content:"#";display:block;width:%?88?%;height:%?88?%;line-height:%?88?%;border-radius:100%;color:#fff;font-size:%?40?%;text-align:center;position:absolute;top:0;left:0;background:rgba(0,0,0,.3)}.productSort .conter .listw:first-child .picture[data-v-769f67dc]::before{content:"\\\\";background:#d8d8d8}.productSort .conter .list .item .picture uni-image[data-v-769f67dc]{width:100%;height:100%;border-radius:100%}.productSort .conter .list .name[data-v-769f67dc]{margin-left:%?30?%;font-size:%?28?%;color:#282828;font-weight:700;max-width:%?300?%}',""]),t.exports=e},e71f:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,o.default)((0,o.default)({},t),{},{right:t.left+t.width,bottom:t.top+t.height})};var o=n(i("5530"))},e933:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i("5530")),a=n(i("ff56")),s=i("31bd"),r=i("5cac"),c=i("26cb"),d=n(i("dae1")),u=i("4f1b"),l=(n(i("8b6a")),i("713c")),h=getApp(),f={name:"Authorize",props:{isAuto:{type:Boolean,default:!0},isGoIndex:{type:Boolean,default:!0},isShowAuth:{type:Boolean,default:!1}},components:{},data:function(){return{title:"用户登录",info:"请登录,将为您提供更好的服务!",isWeixin:this.$wechat.isWeixin(),canUseGetUserProfile:!1,code:null,top:0,mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,editModal:!1}},computed:(0,o.default)((0,o.default)({},(0,c.mapGetters)(["isLogin","userInfo","viewColor"])),(0,u.configMap)(["routine_logo"])),watch:{isLogin:function(t){!0===t&&this.$emit("onLoadFun",this.userInfo)},isShowAuth:function(t){this.getCode(this.isShowAuth)}},created:function(){this.top=uni.getSystemInfoSync().windowHeight/2-70,wx.getUserProfile&&(this.canUseGetUserProfile=!0),this.setAuthStatus(),this.getCode(this.isShowAuth)},methods:{setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,l.toLogin)(!0)},getUserProfile:function(){var t=this,e=this;d.default.getUserProfile().then((function(i){var n=i.userInfo;n.code=t.code,n.spread=h.globalData.spid,n.spread_code=h.globalData.code,(0,s.commonAuth)({auth:{type:"routine",auth:n}}).then((function(i){if(200!=i.data.status)return uni.setStorageSync("auth_token",i.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var n=i.data.result.expires_time-a.default.time();e.$store.commit("UPDATE_USERINFO",i.data.result.user),e.$store.commit("LOGIN",{token:i.data.result.token,time:n}),e.$store.commit("SETUID",i.data.result.user.uid),a.default.set(r.EXPIRES_TIME,i.data.result.expires_time,n),a.default.set(r.USER_INFO,i.data.result.user,n),t.$emit("onLoadFun",i.data.result.user),i.data.result.user.isNew&&t.mp_is_new&&(t.editModal=!0)})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message,icon:"none",duration:2e3})}))})).catch((function(t){uni.hideLoading()}))},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1)}}};e.default=f},f0b8:function(t,e,i){"use strict";i.r(e);var n=i("1e46"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},f272:function(t,e,i){"use strict";i.r(e);var n=i("c15c"),o=i("493d");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("1c6c");var s=i("f0c5"),r=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"ac292046",null,!1,n["a"],void 0);e["default"]=r.exports},fa37:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0],i=t[0],n=e[0],o=t[1],a=e[1];return Math.sqrt(Math.pow(i-n,2)+Math.pow(o-a,2))}}}]);