Untitled conversation
- User
{ "feedbacksPhotoViewerSingleTmpl": "{{include tmpl='toAllPhotosLinkTmpl' /}} {{include tmpl='photoViewerFeedbackTmpl' /}}", "toAllPhotosLinkTmpl": "{{if ~wbSettings.displayType == 'phone' || !photosForSingleFeedback}} <button class="popup-thumbs-gallery__back" data-link="{on 'click' toAllMedia}">Ко всем фото и видео {{/if}}", "photoViewerFeedbackTmpl": "{^{if !!currentFeedbackModel}} {^{for currentFeedbackModel ~parent = #data}} <div class="comment-card j-feedback-slide" data-link="class{merge: !photo && !video toggle='comment-card--no-photo'} class{merge: isVideo toggle='comment-card--video'} {on 'click' '.j-feedback-photo' ~parent.moveToSlideFromFeedback} {on 'click' '.j-show-feedback-answer' ~parent.showFeedbackAnswer} {on 'click' '.j-more-mobile' ~parent.toggleFeedbackMobile} {on 'click' '.j-s-leave-feedback-answer-complaint' ~parent.leaveAnswerComplaint} "> {^{if ~wbSettings.displayMode == 'm'}} <div class="comment-card__preview j-more-mobile"> <div class="comment-card__group"> <p class="comment-card__name j-user-profile">{{:userName || 'Покупатель WB'}} <span class="comment-card__stars stars-line star{{:star}}"> <span class="comment-card__show-more">См. отзыв {{if text || pros || cons}} <p class="comment-card__message hide" data-link="class{merge: (!text && !pros && !cons) toggle='hide'}"> {{if pros.length > 0}}<span class="comment-card__message--item"><span class="comment-card__message--item-bold">Достоинства:{{>pros}}{{/if}} {{if cons.length > 0}}<span class="comment-card__message--item"><span class="comment-card__message--item-bold">Недостатки:{{>cons}}{{/if}} {{if text.length > 0}}<span class="comment-card__message--item">{{if (pros.length > 0) || (cons.length > 0)}}<span class="comment-card__message--item-bold">Комментарий:{{/if}}{{>text}}{{/if}} {{/if}} {{/if}} <div class="comment-card__container" data-link="class{merge: showFeedbackMobile toggle='show'}"> {^{if ~wbSettings.displayMode == 'm'}} <h3 class="comment-card__title">Отзыв <button type="button" class="comment-card__close j-more-mobile">Скрыть отзыв {{/if}} <div class="comment-card__header"> <div class="comment-card__img-wrap hide-mobile"> <div class="comment-card__avatar img-plug"> <img class="comment-card__img j-user-profile" src="{{:personalPhoto}}" width="40" height="40" alt="User avatar"> <span class="comment-card__flag flag-{{:country}}"> <div class="comment-card__wrap"> <div class="comment-card__main"> <div class="comment-card__group"> <p class="comment-card__name j-user-profile">{{:userName || 'Покупатель WB'}} <span class="comment-card__stars stars-line star{{:star}}"> {{if pinned}} <p class="comment-card__pinned">Закреплён {{/if}} <ul class="comment-card__params"> {{if !pinned}} <li class="comment-card__item comment-card__item--date">{{:feedbackDate}} {{/if}} {^{if productColor && productColor != 'colorless'}} <li class="comment-card__item"> {{:productColor}} {{/if}} {^{if productColor && productColor != 'colorless' && productSize && productSize != '0'}} <li class="comment-card__item"> <span class="comment-card__separator">• {{/if}} {{if productSize && productSize != '0' && productColor}} <li class="comment-card__item"> {{:productSize}}{{if productSizeMatch}}, {{:productSizeMatch}}{{/if}} {{/if}} {{if productSize && productSize != '0' && !productColor}} <li class="comment-card__item"> <span class="comment-card__label">Размер: {{:productSize}}{{if productSizeMatch}}, {{:productSizeMatch}}{{/if}} {{/if}} <button type="button" class="comment-card__more-btn" data-link="{tooltip classes='tooltip-answer tooltip--center' pos='alignright bottom' trigger='click' tmplName='answerTooltipTmpl' tmplData=#data useBind=true tmplHelper=~parent.feedbackMenuHelper}"> <div class="comment-card__content"> <p class="comment-card__message j-feedback-text hide" data-link="class{merge:!text toggle='hide'}{on 'click' ~parent.expandFeedback}"> {{if pros.length > 0}}<span class="comment-card__message--item"><span class="comment-card__message--item-bold">Достоинства:{{>pros}}{{/if}} {{if cons.length > 0}}<span class="comment-card__message--item"><span class="comment-card__message--item-bold">Недостатки:{{>cons}}{{/if}} {{if text.length > 0}}<span class="comment-card__message--item">{{if (pros.length > 0) || (cons.length > 0)}}<span class="comment-card__message--item-bold">Комментарий:{{/if}}{{>text}}{{/if}} <span class="comment-card__message-more"><span class="comment-card__more feedback__expand hide">ещё <ul class="comment-card__gallery"> {{for slides}} {{if isVideo}} <li class="comment-card__photo-wrap j-feedback-photo" data-link="class{merge:active toggle='active'}"> <div class="comment-card__photo img-plug"> <img width="96" height="128" src="{{:~urlFeedbackVideoPreview(#data)}}" alt="video preview"> <span class="comment-card__video-btn"> {{else}} <li class="comment-card__photo-wrap j-feedback-photo" data-link="class{merge:active toggle='active'}"> <div class="comment-card__photo img-plug"> <img width="96" height="128" src="{{:~urlFeedbackPhoto(id, 'ms')}}" alt="photo"> {{/if}} {{/for}} {{if answer}} <div class="comment-card__answer answer-seller"> <button type="button" class="answer-seller__btn j-show-feedback-answer" data-link="class{merge: showAnswer toggle='open'}">{{if ~root.$user.getLocale() == 'by'}}Ответ поставщика{{else}}Ответ продавца{{/if}} {^{if showAnswer}} <div class="answer-seller__sellers-reply"> <p class="answer-seller__text j-feedback__text" data-link="{on 'click' ~parent.expandFeedback}">{{>answer.text}}<span class="feedback__expand hide">ещё <div class="answer-seller__btn-wrap j-b-feedback-comment"> <button class="answer-seller__complaint j-s-leave-feedback-answer-complaint" type="button">Пожаловаться на ответ {{/if}} {{/if}} {{/for}} {{/if}}", "answerTooltipTmpl": "<button class="tooltip-answer__btn" data-link="{on 'click' ~leaveCommentComplaint id}{on ~close}">Пожаловаться на отзыв" }
- Assistant