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


<navigator wx:if="{{userrole!='经销商'}}" url="#" class="groud" bindtap="selectAgency">
    <view class="label jxs">
        {{language['指定企业']||'指定企业'}}：
    </view>
    <view class="agency" wx:if="{{agency.sys_enterpriseid}}">
        <view class="title">
            {{agency.enterprisename||" --"}}
        </view>
        <view class="exp">{{language['联系人']||'联系人'}}：{{agency.changeby||" --"}} {{agency.phonenumber||" --"}}</view>
        <view class="exp">{{language['详细地址']||'详细地址'}}：{{agency.province+agency.city+agency.county+agency.address||" --"}}</view>
    </view>
    <view wx:else>
        {{language['点击选择企业']||'点击选择企业'}}
    </view>
</navigator>
<view class="groud" wx:if="{{brandList.length}}">
    <view class="label">
        {{language['选择品牌']||'选择品牌'}}
    </view>
    <view class="content">
        <van-button custom-class='but {{item.sa_brandid==sa_brandid?"active":""}}' wx:for="{{brandList}}" wx:key="sa_brandid" data-item="{{item}}" bindtap="onSelectBrand">{{language[item.brandname]||item.brandname}}</van-button>
    </view>
</view>
<view class="groud" wx:if="{{domainList.length}}">
    <view class="label">
        {{language['选择领域']||'选择领域'}}
    </view>
    <view class="content">
        <van-button custom-class='but {{item.tradefield==tradefield?"active":""}}' wx:for="{{domainList}}" wx:key="sys_enterprise_tradefieldid" data-item="{{item}}" bindtap="onSelect">{{language[item.tradefield]||item.tradefield}}</van-button>
    </view>
</view>


<!-- 底部 -->
<view style="height: 150rpx;" />
<view class="footer">
    <van-button custom-class='but' loading='{{loading}}' loading-text="{{language['创建中...']||'创建中...'}}" bindtap="submit">{{language['创建订单']||'创建订单'}}</van-button>
</view>