|
@@ -1,10 +1,12 @@
|
|
|
const $ = require("jquery")
|
|
|
+const infoMsgImg = require('./../images/msg1.png')
|
|
|
+const infoMsgImgOn = require('./../images/msg2.png')
|
|
|
|
|
|
function renderRecommendInfo(className,title,data, hasInfo, type, position) {
|
|
|
console.log('title:', title)
|
|
|
const str = `<div class="recommendInfoWrapper ${className}">
|
|
|
<h4><i></i>${title}</h4>
|
|
|
- <div class="recommendInfoBox ${className + 'box'}"></div>
|
|
|
+ <div class="recommendInfoBox clearfix ${className + 'box'}"></div>
|
|
|
</div>`
|
|
|
$('.recommendWrap').append(str)
|
|
|
let childrenNodeStr = ''
|
|
@@ -12,7 +14,7 @@ function renderRecommendInfo(className,title,data, hasInfo, type, position) {
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
childrenNodeStr += `<span class="recommendInfoItem" data-name="${data[i].name}">
|
|
|
${data[i].name}
|
|
|
- <span title="点击名称可看详细说明" class="infoMsg">说明</span>
|
|
|
+ <span title="点击名称可看详细说明" class="infoMsg"></span>
|
|
|
</span>`
|
|
|
}
|
|
|
} else {
|
|
@@ -52,7 +54,7 @@ function renderTreat(className,title, data) {
|
|
|
console.log('renderTreat')
|
|
|
const str = `<div class="recommendInfoWrapper ${className}">
|
|
|
<h4><i></i>${title}</h4>
|
|
|
- <div class="recommendInfoBox ${className + 'box'}"></div>
|
|
|
+ <div class="recommendInfoBox clearfix ${className + 'box'}"></div>
|
|
|
</div>`
|
|
|
$('.recommendWrap').append(str)
|
|
|
if(data.commonTreatment&&data.commonTreatment.content) {
|