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.
1 lines
7.3 KiB
1 lines
7.3 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-template-comment-reply"],{6931:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("ade3")),s={data:function(){return{commentList:[],comment:""}},onLoad:function(){this.getReply()},methods:{getLike:function(t){0===t||t>0?(this.commentList[t].isLike=!this.commentList[t].isLike,1==this.commentList[t].isLike?this.commentList[t].likeNum++:this.commentList[t].likeNum--):1==this.comment.isLike?(this.comment.isLike=!this.comment.isLike,this.comment.likeNum--):(this.comment.isLike=!this.comment.isLike,this.comment.likeNum++)},getReply:function(){var t;this.comment={id:1,name:"叶轻眉",date:"12-25 18:58",contentText:"我不信伊朗会没有后续反应,美国肯定会为今天的事情付出代价的",url:"https://cdn.uviewui.com/uview/template/SmilingDog.jpg",allReply:12,likeNum:33,isLikes:!1},this.commentList=[{name:"新八几",date:"12-25 18:58",contentText:"不要乱打广告啊喂!虽然是真的超好用",url:"https://cdn.uviewui.com/uview/template/SmilingDog.jpg",likeNum:33,isLike:!1,reply:{name:"uview",contentStr:"uview是基于uniapp的一个UI框架,代码优美简洁,宇宙超级无敌彩虹旋转好用,用它!"}},{name:"叶轻眉1",date:"01-25 13:58",url:"https://cdn.uviewui.com/uview/template/SmilingDog.jpg",contentText:"我不信伊朗会没有后续反应,美国肯定会为今天的事情付出代价的",allReply:0,likeNum:11,isLike:!1,reply:{name:"粘粘",contentStr:"今天吃什么,明天吃什么,晚上吃什么,我只是一只小猫咪为什么要烦恼这么多"}},(t={name:"叶轻眉2",date:"03-25 13:58",contentText:"我不信伊朗会没有后续反应,美国肯定会为今天的事情付出代价的",allReply:0,likeNum:21,url:"https://cdn.uviewui.com/uview/template/SmilingDog.jpg",isLike:!1},(0,a.default)(t,"allReply",2),(0,a.default)(t,"reply",{name:"豆包",contentStr:"想吃冰糖葫芦粘豆包,但没钱5555........."}),t),{name:"叶轻眉3",date:"06-20 13:58",contentText:"我不信伊朗会没有后续反应,美国肯定会为今天的事情付出代价的",allReply:0,likeNum:150,url:"https://cdn.uviewui.com/uview/template/SmilingDog.jpg",isLike:!1}]}}};e.default=s},"81e9":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */uni-page-body[data-v-082dc2d2]{background-color:#f2f2f2}.comment[data-v-082dc2d2]{padding:%?30?%;font-size:%?32?%;background-color:#fff}.comment .top[data-v-082dc2d2]{display:flex;justify-content:space-between}.comment .left[data-v-082dc2d2]{display:flex}.comment .left .heart-photo uni-image[data-v-082dc2d2]{width:%?64?%;height:%?64?%;border-radius:50%;background-color:#f2f2f2}.comment .left .user-info[data-v-082dc2d2]{margin-left:%?10?%}.comment .left .user-info .name[data-v-082dc2d2]{color:#5677fc;font-size:%?28?%;margin-bottom:%?4?%}.comment .left .user-info .date[data-v-082dc2d2]{font-size:%?20?%;color:#c0c4cc}.comment .right[data-v-082dc2d2]{display:flex;font-size:%?20?%;align-items:center;color:#9a9a9a}.comment .right .like[data-v-082dc2d2]{margin-left:%?6?%}.comment .right .num[data-v-082dc2d2]{font-size:%?26?%;color:#9a9a9a}.comment .highlight[data-v-082dc2d2]{color:#5677fc}.comment .highlight .num[data-v-082dc2d2]{color:#5677fc}.all-reply[data-v-082dc2d2]{margin-top:%?10?%;padding-top:%?20?%;background-color:#fff}.all-reply .all-reply-top[data-v-082dc2d2]{margin-left:%?20?%;padding-left:%?20?%;border-left:solid %?4?% #5677fc;font-size:%?30?%;font-weight:700}.all-reply .item[data-v-082dc2d2]{border-bottom:solid %?2?% #e4e7ed}.all-reply .reply[data-v-082dc2d2]{padding:%?20?%;background-color:#f2f2f2;border-radius:%?12?%;margin:%?10?% 0}.all-reply .reply .username[data-v-082dc2d2]{font-size:%?24?%;color:#7a7a7a}body.?%PAGE?%[data-v-082dc2d2]{background-color:#f2f2f2}',""]),t.exports=e},8272:function(t,e,i){"use strict";i.r(e);var n=i("6931"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},8306:function(t,e,i){var n=i("81e9");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("32c31dfc",n,!0,{sourceMap:!1,shadowMode:!1})},9487:function(t,e,i){"use strict";i.r(e);var n=i("e4f9"),a=i("8272");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("b2f4");var c,l=i("f0c5"),o=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,"082dc2d2",null,!1,n["a"],c);e["default"]=o.exports},b2f4:function(t,e,i){"use strict";var n=i("8306"),a=i.n(n);a.a},e4f9:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uIcon:i("b1e3").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"wrap"},[i("v-uni-view",{staticClass:"comment"},[i("v-uni-view",{staticClass:"top"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-view",{staticClass:"heart-photo"},[i("v-uni-image",{attrs:{src:t.comment.url,mode:""}})],1),i("v-uni-view",{staticClass:"user-info"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(t.comment.name))]),i("v-uni-view",{staticClass:"date"},[t._v("06-25 13:58")])],1)],1),i("v-uni-view",{staticClass:"right",class:{highlight:t.comment.isLike}},[t._v(t._s(t.comment.likeNum)),t.comment.isLike?t._e():i("u-icon",{staticClass:"like",attrs:{name:"thumb-up",color:"#9a9a9a",size:30},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getLike.apply(void 0,arguments)}}}),t.comment.isLike?i("u-icon",{staticClass:"like",attrs:{name:"thumb-up-fill",size:30},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getLike.apply(void 0,arguments)}}}):t._e()],1)],1),i("v-uni-view",{staticClass:"content"},[t._v(t._s(t.comment.contentText))])],1),i("v-uni-view",{staticClass:"all-reply"},[i("v-uni-view",{staticClass:"all-reply-top"},[t._v("全部回复("+t._s(t.comment.allReply)+")")]),t._l(t.commentList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item"},[i("v-uni-view",{staticClass:"comment"},[i("v-uni-view",{staticClass:"top"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-view",{staticClass:"heart-photo"},[i("v-uni-image",{attrs:{src:e.url,mode:""}})],1),i("v-uni-view",{staticClass:"user-info"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"date"},[t._v(t._s(e.date))])],1)],1),i("v-uni-view",{staticClass:"right",class:{highlight:e.isLike}},[i("v-uni-view",{staticClass:"num"},[t._v(t._s(e.likeNum))]),e.isLike?t._e():i("u-icon",{staticClass:"like",attrs:{name:"thumb-up",size:30,color:"#9a9a9a"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getLike(n)}}}),e.isLike?i("u-icon",{staticClass:"like",attrs:{name:"thumb-up-fill",size:30},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getLike(n)}}}):t._e()],1)],1),e.reply?i("v-uni-view",{staticClass:"reply"},[i("v-uni-view",{staticClass:"username"},[t._v(t._s(e.reply.name))]),i("v-uni-view",{staticClass:"text"},[t._v(t._s(e.reply.contentStr))])],1):t._e(),i("v-uni-view",{staticClass:"content"},[t._v(t._s(e.contentText))])],1)],1)}))],2)],1)},s=[]}}]);
|