test
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
13 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPages2-blindDate-dynamics-detail"],{"1d08":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[t.loadlogo?t._e():n("loadlogo"),t.detailInfo.id?[n("personnal-item",{attrs:{dynamicInfo:t.detailInfo,isDetail:!0},on:{comment:function(e){arguments[0]=e=t.$handleEvent(e),t.comment.apply(void 0,arguments)}}})]:t._e(),n("v-uni-view",{staticClass:"interval"}),n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"header"},[n("v-uni-view",{staticClass:"left-info"},[n("v-uni-view",{staticClass:"title"},[t._v("评论")]),n("v-uni-view",{staticClass:"num"},[t._v(t._s(t.commentNum)+"条")])],1)],1),t._l(t.commentList,(function(e,i){return n("v-uni-view",{key:e.id,staticClass:"comment-item"},[n("v-uni-view",{staticClass:"user-info"},[n("v-uni-view",{staticClass:"avatar"},[n("v-uni-image",{attrs:{src:e.avatar,mode:""}}),2==e.gneder?n("v-uni-view",{staticClass:"sex woman"},[n("v-uni-view",{staticClass:"iconfont icon-female"})],1):n("v-uni-view",{staticClass:"sex man"},[n("v-uni-view",{staticClass:"iconfont icon-male"})],1)],1),n("v-uni-view",{staticClass:"else-info"},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(e.nickname))]),n("v-uni-view",{staticClass:"date"},[t._v(t._s(e.create_time))])],1)],1),n("v-uni-view",{staticClass:"comment-detail"},[n("v-uni-view",{staticClass:"text"},[e.reply_id>0?n("span",{staticStyle:{color:"#0084FF"}},[t._v("@"+t._s(e.reply_name))]):t._e(),t._v(t._s(e.content))]),n("v-uni-view",{staticClass:"line"}),e.list.length?[n("v-uni-view",{staticClass:"comment-info"},t._l(e.visibilityList,(function(e){return n("v-uni-view",{key:e.id,staticClass:"info-item"},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(e.nickname)+":")]),n("v-uni-view",{staticClass:"value"},[t._v(t._s(e.content))])],1)})),1)]:t._e(),n("v-uni-view",{staticClass:"join-info"},[n("v-uni-view",{staticClass:"praise-box"},[n("v-uni-view",{on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handleCommentFabulousClick(e.id,i)}}},[e.is_fabulous?n("v-uni-image",{staticClass:"praise",attrs:{src:t.imgfixUrls+"dating/bd_light_praise.svg",mode:""}}):n("v-uni-image",{staticClass:"praise",attrs:{src:t.imgfixUrls+"dating/bd_praise.svg",mode:""}})],1),n("v-uni-view",{staticClass:"num"},[t._v(t._s(e.fabulous))])],1),n("v-uni-view",{staticClass:"comment-box",staticStyle:{"margin-left":"50rpx"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.reply(e)}}},[n("v-uni-image",{attrs:{src:t.imgfixUrls+"dating/bd_message1.svg",mode:""}}),n("v-uni-view",{staticClass:"num"},[t._v(t._s(e.list.length))])],1)],1),e.is_show_btn?[e.is_open?n("v-uni-view",{staticClass:"open-btn",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handleOpenClick(e,"close")}}},[t._v("收起")]):n("v-uni-view",{staticClass:"open-btn",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handleOpenClick(e,"open")}}},[t._v("展开")])]:t._e()],2),n("v-uni-view",{staticClass:"interval",staticStyle:{"margin-top":"30rpx"}})],1)}))],2),n("v-uni-view",{staticClass:"footer"},[n("v-uni-input",{attrs:{type:"text",focus:t.is_focus,placeholder:t.placeholder,"placeholder-style":"font-size: 28rpx"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.is_focus=!1}},model:{value:t.commentContent,callback:function(e){t.commentContent=e},expression:"commentContent"}}),n("v-uni-view",{staticClass:"submit-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submitComment.apply(void 0,arguments)}}},[t._v("发布")])],1),n("v-uni-view",{staticClass:"back-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goindex.apply(void 0,arguments)}}},[t._v("返回")])],2)},o=[]},"22f5":function(t,e,n){var i=n("31d9");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("1d7f7f41",i,!0,{sourceMap:!1,shadowMode:!1})},"31d9":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.interval[data-v-5f188f00]{width:%?690?%;height:%?8?%;margin:auto;background-color:#f8f8f8}.content[data-v-5f188f00]{width:%?690?%;margin:%?30?% auto %?130?%}.content .header[data-v-5f188f00]{width:100%;height:%?50?%;display:flex;align-items:center;justify-content:space-between}.content .header .left-info[data-v-5f188f00]{height:100%;display:flex;align-items:flex-end}.content .header .left-info .title[data-v-5f188f00]{height:100%;line-height:%?50?%;font-size:%?36?%;font-weight:700;color:#333;margin-right:%?10?%}.content .header .left-info .num[data-v-5f188f00]{height:%?36?%;line-height:%?36?%;color:#999;font-size:%?24?%}.content .header .right-info[data-v-5f188f00]{height:%?40?%;color:#999;font-size:%?28?%;display:flex;align-items:center}.content .header .right-info .hot[data-v-5f188f00]{margin-right:%?10?%}.content .header .right-info .new[data-v-5f188f00]{margin-left:%?10?%}.content .header .right-info .select[data-v-5f188f00]{font-weight:700;color:#333}.content .comment-item[data-v-5f188f00]{width:%?690?%;height:auto;margin:auto;padding-top:%?30?%}.content .comment-item .user-info[data-v-5f188f00]{width:100%;height:%?90?%;display:flex;align-items:center}.content .comment-item .user-info .avatar[data-v-5f188f00]{width:%?90?%;height:%?90?%;border-radius:%?45?%;position:relative}.content .comment-item .user-info .avatar uni-image[data-v-5f188f00]{width:%?90?%;height:%?90?%;border-radius:%?45?%}.content .comment-item .user-info .avatar .sex[data-v-5f188f00]{width:%?30?%;height:%?30?%;border-radius:%?15?%;position:absolute;right:0;bottom:0;color:#fff;line-height:%?30?%;text-align:center}.content .comment-item .user-info .avatar .sex .iconfont[data-v-5f188f00]{font-size:%?24?%}.content .comment-item .user-info .avatar .woman[data-v-5f188f00]{-webkit-transform:rotate(45deg);transform:rotate(45deg);background-color:#fe83af}.content .comment-item .user-info .avatar .man[data-v-5f188f00]{background-color:#0084ff}.content .comment-item .user-info .else-info[data-v-5f188f00]{height:100%;margin-left:%?20?%}.content .comment-item .user-info .else-info .name[data-v-5f188f00]{height:%?40?%;line-height:%?40?%;margin-top:%?4?%;font-size:%?28?%;font-weight:700;color:#333}.content .comment-item .user-info .else-info .date[data-v-5f188f00]{height:%?32?%;line-height:%?32?%;margin-top:%?10?%;font-size:%?24?%;color:#999}.content .comment-item .comment-detail[data-v-5f188f00]{width:%?580?%;height:%?40?%;line-height:%?40?%;height:auto;margin:0 0 0 %?110?%}.content .comment-item .comment-detail .text[data-v-5f188f00]{width:100%;height:auto;line-height:%?40?%;font-size:%?28?%;color:#333;padding:%?40?% 0}.content .comment-item .comment-detail .join-info[data-v-5f188f00]{width:100%;height:%?34?%;display:flex;align-items:center;margin-top:%?30?%}.content .comment-item .comment-detail .join-info .praise-box[data-v-5f188f00], .content .comment-item .comment-detail .join-info .comment-box[data-v-5f188f00]{display:flex;align-items:flex-end;color:#333;font-size:%?28?%}.content .comment-item .comment-detail .join-info .praise-box uni-image[data-v-5f188f00], .content .comment-item .comment-detail .join-info .comment-box uni-image[data-v-5f188f00]{width:%?34?%;height:%?34?%}.content .comment-item .comment-detail .join-info .praise-box .num[data-v-5f188f00], .content .comment-item .comment-detail .join-info .comment-box .num[data-v-5f188f00]{margin-left:%?10?%}.content .comment-item .comment-detail .line[data-v-5f188f00]{width:100%;height:%?2?%;background-color:#eee}.content .comment-item .comment-detail .comment-info[data-v-5f188f00]{width:100%;height:auto;padding-top:%?10?%;overflow:hidden}.content .comment-item .comment-detail .comment-info .info-item[data-v-5f188f00]{width:100%;height:auto;line-height:%?34?%;display:flex;font-size:%?24?%;color:#333;margin-top:%?10?%}.content .comment-item .comment-detail .comment-info .info-item .name[data-v-5f188f00]{font-weight:700}.content .comment-item .comment-detail .open-btn[data-v-5f188f00]{font-size:%?28?%;color:#333;font-weight:700;margin-top:%?20?%;display:flex;justify-content:flex-end}.open[data-v-5f188f00]{max-height:%?999999999?%!important}.footer[data-v-5f188f00]{width:%?690?%;height:%?70?%;padding:%?15?% %?30?%;background-color:#fff;display:flex;align-items:center;justify-content:space-between;border-top:%?1?% solid #eee;position:fixed;left:0;bottom:0;font-size:%?28?%}.footer uni-input[data-v-5f188f00]{width:%?570?%;height:%?40?%;padding:%?15?% 0 %?15?% %?30?%;border-radius:%?35?%;background-color:#f8f8f8}.footer .submit-btn[data-v-5f188f00]{height:%?40?%;color:#999;font-weight:700}.back-btn[data-v-5f188f00]{width:%?100?%;height:%?100?%;border-radius:%?50?%;text-align:center;line-height:%?100?%;background:linear-gradient(270deg,#ff8e88,#fdad28);font-size:%?28?%;color:#fff;position:fixed;right:%?30?%;bottom:%?250?%}',""]),t.exports=e},ab5e:function(t,e,n){"use strict";n.r(e);var i=n("1d08"),a=n("e86f");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("c3ee");var s,c=n("f0c5"),l=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"5f188f00",null,!1,i["a"],s);e["default"]=l.exports},b038:function(t,e,n){"use strict";var i=n("4ea4");n("99af"),n("d81d"),n("fb6a"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("2909")),o=i(n("2c7c")),s=i(n("c2a2")),c=i(n("f48d")),l={data:function(){return{loadlogo:!1,detailInfo:{},lng:"",lat:"",dynamic_id:0,reply_id:0,currentPage:1,totalPage:1,commentContent:"",commentList:[],commentNum:0,is_focus:!1,placeholder:"请输入评论..."}},onLoad:function(t){var e=this;e.dynamic_id=t.id,uni.getLocation({type:"wgs84",success:function(t){e.lng=t.longitude,e.lat=t.latitude}}),e.getDynamicDetailInfo(t.id),e.getDynamicComment()},components:{personnalItem:c.default,Loadlogo:s.default},methods:{getDynamicDetailInfo:function(t){var e=this;o.default._post_form("&p=dating&do=dynamicDesc",{id:t,lng:e.lng,lat:e.lat},(function(t){e.detailInfo=t.data||{}}),!1,(function(){}))},getDynamicComment:function(){var t=this;o.default._post_form("&p=dating&do=dynamicComment",{dynamic_id:t.dynamic_id,page:t.currentPage,page_index:10},(function(e){var n=e.data.list.map((function(t){return t.is_show_btn=t.list.length>3,t.is_open=!1,t.visibilityList=t.list.slice(0,3),t}));t.commentList=[].concat((0,a.default)(t.commentList),(0,a.default)(n)),t.totalPage=e.data.total,t.commentNum=e.data.list.length,t.currentPage++,t.loadlogo=!0}),!1,(function(){}))},handleCommentFabulousClick:function(t,e){var n=this;o.default._post_form("&p=dating&do=commentFabulous",{id:t},(function(t){0==t.errno&&(n.commentList[e].is_fabulous?n.commentList[e].fabulous--:n.commentList[e].fabulous++,n.commentList[e].is_fabulous=!n.commentList[e].is_fabulous)}),!1,(function(){}))},reply:function(t){this.placeholder="回复".concat(t.nickname,":"),this.is_focus=!0,this.reply_id=t.id,console.log(this.reply_id,"reply_id")},comment:function(){this.placeholder="请输入评论...",this.is_focus=!0,this.reply_id=0},handleOpenClick:function(t,e){t.is_open=!t.is_open,t.visibilityList="open"===e?t.list:t.list.slice(0,3)},submitComment:function(){var t=this;console.log(t.reply_id,"reply_id111"),o.default._post_form("&p=dating&do=addComment",{dynamic_id:t.dynamic_id,content:t.commentContent,reply_id:t.reply_id},(function(e){t.currentPage=1,t.commentList=[],t.getDynamicComment(t.dynamic_id),t.commentContent="",0==e.errno&&uni.showToast({title:e.message,icon:"none"})}),!1,(function(){}))},goindex:function(){var t=getCurrentPages();console.log(t),1==t.length?o.default.navigationTo({url:"pages/subPages2/blindDate/personal"}):uni.navigateBack({delta:1})}},onReachBottom:function(){this.currentPage<=this.totalPage&&this.getDynamicComment()}};e.default=l},c3ee:function(t,e,n){"use strict";var i=n("22f5"),a=n.n(i);a.a},e86f:function(t,e,n){"use strict";n.r(e);var i=n("b038"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a}}]);