添加代扣按钮
<p><strong>简要描述:</strong> </p>
<p>添加代扣按钮</p>
<ul>
<li><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/09767928757022a19cb95e0e27188067" alt="" /></li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>/contract/all/contract/state</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>get </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">comefrom</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>请求来源 2 微信公众号 4 APP 5 天天车宝</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code": 200,
"data": {
"contractTypes": [
4,
2,
1
],
"userContractType": 110
},
"message": "success"
}
</code></pre>
<ul>
<li>userContractType:个位标识微信 十位标识支付宝 百位标识新浪 千位标识云闪付 万位标识余额 等于0时为未签约</li>
<li>js判断方法参考:
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/4a54bae2e5f53c438d1996de2bf46f62" alt="" /></li>
<li>contractTypes 支持签约的平台数组 1 微信 2 支付宝 4 新浪</li>
</ul>
<pre><code>{
"code": 500,
"message": "请先添加车辆"
}</code></pre>