index.wxml 2.66 KB
<!--packageEquity/pages/receptionDetail/components/attack/index.wxml-->
<view class="attack-wrap">
	<block wx:if="{{ isShow }}">
		<block wx:if="{{ list && list.detailList && list.detailList.length>0 }}">
			<scroll-view scroll-x
			             class="scroll-view"
			             wx:if="{{ list && list.detailList && list.detailList.length>0 }}">
				<view class="attack-bout  {{ list.detailList.length>4?'attach-list-scroll':'' }}">
					<view class="attack-list {{ activeIndex==index?'active':'' }}"
					      wx:for="{{ list.detailList }}"
					      data-index="{{ index }}"
					      bind:tap="changeAttackType">
						<view class="title">
							攻防回合{{ index+1 }}
						</view>
						<view class="score">
							{{ item.defScore }}<text>分</text>
						</view>
					</view>
				</view>
			</scroll-view>
			<scroll-view scroll-y
			             class="attack-content"
			             scroll-top="{{ scrollTop }}"
			             bindscroll="watchScrollTrack"
			             data-event-code="offense_and_defense">
				<view class="content">
					<view class="left attack">
						攻
					</view>
					<view class="text">
						{{ list.detailList[activeIndex].question }}
					</view>
				</view>
				<view class="content">
					<view class="left defend">
						防
					</view>
					<view class="text">
						{{ list.detailList[activeIndex].answer }}
					</view>
				</view>
				<view class="verbal-wrap">
					<view class="verbal-wrap-content">
						<view class="title">
							<gl-image class="improve"
							          webp
							          src="/improve.png" />
							话术建议
						</view>
						<view class="suggest-content">
							<rich-text nodes="{{ list.detailList[activeIndex].suggestionsForImprovement }}"></rich-text>
						</view>
						<view class="line"></view>
						<view class="title">
							<gl-image class="improve"
							          webp
							          src="/polish.png" />
							润色表达
						</view>
						<view class="suggest-content">
							<rich-text nodes="{{ list.detailList[activeIndex].refineTheExpression }}"></rich-text>
						</view>
					</view>
				</view>
				<view class="footer">
					<view class="more" bind:tap="lookMore">
						去对话查看
					</view>
				</view>
				<view class="safeAreaInset"></view>
			</scroll-view>
		</block>
		<block wx:else>
			<view class="no-data">
				<gl-image class="no-data-img"
				          webp
				          src="/equity/empty.png" />
				<view class="list-not">
					{{ defenceResultFlag === 1 || defenceResultFlag === 0 || defenceResultFlag === 4 ? "数据分析中,请稍等" : defenceResultFlag === 3 ? "未发现攻防" : "未进行攻防识别" }}
				</view>
			</view>
		</block>
	</block>
</view>