<import src="detail.skeleton.wxml"/>
<template is="skeleton" wx:if="{{loading}}" />

<view class="header">
    <view class="title">{{detail.name}}</view>
    <Yl-tags id="Tags" add ownertable='sat_campaign' ownerid='{{sat_campaignid}}' />
</view>
<!-- 简介 -->
<Yl_Detail list="{{briefs}}">
    <Yl-group slot='bottom' id='Group' add ownertable='sat_campaign' ownerid='{{sat_campaignid}}' />
</Yl_Detail>
<view style="height: 20rpx;" />
<Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
    <Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
    <Clue slot='活动线索' id='Clue' detail="{{detail}}" disabled="{{per.query(options,'offer')||isAdmin||isLeader}}" />
    <Work slot='任务' id='Work' ownertable='sat_campaign' ownerid='{{sat_campaignid}}' disabled="{{isAdmin||isLeader}}" />
    <Record slot='操作' id="Record" ownertable='sat_campaign' ownerid='{{sat_campaignid}}' />
    <Trace slot='跟进动态' id='Trace' ownertable='sat_campaign' ownerid='{{sat_campaignid}}' />
    <view style="height: 140rpx;" />
</Yl_FunTabs>

<!-- 底部 -->
<Yl_Tabbar wx:if="{{(isLeader || isAdmin) && tabbarList.length != 0 }}" list='{{tabbarList}}' bind:callback="tabbarOnClick" />

<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />