diff --git a/pages/center/prohibited/details.vue b/pages/center/prohibited/details.vue index 356c613..465ae0b 100644 --- a/pages/center/prohibited/details.vue +++ b/pages/center/prohibited/details.vue @@ -68,6 +68,16 @@ + + + + + + {{dealword(subitem)[1]}} + + + @@ -326,6 +336,26 @@ }, methods: { + // 对话加命中标签 + dealTypes(type) { + if (type) { + let tem = type.split(',') + return tem + } else { + return [] + } + }, + // 对话加命中标签 + dealword(type) { + if (type) { + let a = type.split('-') + let rest = type.substring(2).split('-').join(',') + let arr = [a[0], rest] + return arr + } else { + return [] + } + }, // 获取违禁词 findTabooWords() { this.$u.get('/customer/findTabooWords', { @@ -1141,6 +1171,34 @@ color: #333333; } } + // 违禁正则标签 + .newmark { + margin: 30rpx 0 10rpx 120rpx; + + .mark-item { + display: flex; + flex-wrap: wrap; + margin-bottom: 12rpx; + + .markicon { + width: 30rpx; + height: 30rpx; + margin-right: 12rpx; + } + + .marktext { + font-size: 24rpx; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #3E50E8; + min-height: 30rpx; + line-height: 30rpx; + max-width: 420rpx; + text-align: left; + word-break: break-all; + } + } + } .text { margin: 50upx 30upx; diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 2dabd8c..dbb692b 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -862,7 +862,8 @@ // 对话加命中标签 dealTypes(type) { if (type) { - let tem = type.substring(1).split(',') + let tem = type.split(',') + // let tem = type.substring(1).split(',') return tem } else { return [] @@ -879,8 +880,6 @@ return [] } }, - - // 跳转设备日志页面 eqLogClick() { uni.navigateTo({ @@ -2158,7 +2157,7 @@ .scroll-Y .text[data-speaker="4"] .newmark, .scroll-Y .text[data-speaker="8"] .newmark, .scroll-Y .text[data-speaker="6"] .newmark { - margin-left: 84rpx; + // margin-left: 84rpx; } .box { width: 100%;