|
@ -47,37 +47,24 @@ |
|
|
<el-rate v-model="form.rate" disabled /> |
|
|
<el-rate v-model="form.rate" disabled /> |
|
|
<div class="btn" v-if="form.companyId"> |
|
|
<div class="btn" v-if="form.companyId"> |
|
|
<el-space class="mt-4"> |
|
|
<el-space class="mt-4"> |
|
|
<template v-if="form.isBuy"> |
|
|
|
|
|
<el-button v-if="form.installed" @click.stop="openSpmUrl(`https://${form.domain}`,form,form.companyId,true)">进入控制台</el-button> |
|
|
|
|
|
<el-button v-else type="success">立即开通</el-button> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template v-else> |
|
|
|
|
|
<el-button type="warning" v-if="form.price" @click.stop="openSpmUrl(`/product/create`,form,form.companyId,true)"> |
|
|
|
|
|
<div class="flex items-center"> |
|
|
|
|
|
<span>¥{{ form.price * 0.1 }}</span> |
|
|
|
|
|
<span v-if="form.chargingMethod == 2">/年</span> |
|
|
|
|
|
<span v-if="form.chargingMethod == 3">/月</span> |
|
|
|
|
|
<span v-if="form.chargingMethod == 4">/天</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-button> |
|
|
|
|
|
<el-button v-else type="success" @click.stop="openSpmUrl(`/product/create`,form,form.companyId,true)">立即开通 |
|
|
|
|
|
</el-button> |
|
|
|
|
|
</template> |
|
|
|
|
|
<!-- 2. 已购买 @click="installPlug"--> |
|
|
|
|
|
<!-- <el-button type="primary" @click="openSpmUrl(`https://${form.domain}`,form,form.companyId,true)">--> |
|
|
|
|
|
<!-- 产品控制台--> |
|
|
|
|
|
|
|
|
<!-- <template v-if="form.isBuy">--> |
|
|
|
|
|
<!-- <el-button v-if="form.installed" @click.stop="openSpmUrl(`https://${form.domain}`,form,form.companyId,true)">进入控制台</el-button>--> |
|
|
|
|
|
<!-- <el-button v-else type="success">立即开通</el-button>--> |
|
|
|
|
|
<!-- </template>--> |
|
|
|
|
|
<!-- <template v-else>--> |
|
|
|
|
|
<!-- <el-button type="warning" v-if="form.price" @click.stop="openSpmUrl(`/product/create`,form,form.companyId,true)">--> |
|
|
|
|
|
<!-- <div class="flex items-center">--> |
|
|
|
|
|
<!-- <span>¥{{ form.price * 0.1 }}</span>--> |
|
|
|
|
|
<!-- <span v-if="form.chargingMethod == 2">/年</span>--> |
|
|
|
|
|
<!-- <span v-if="form.chargingMethod == 3">/月</span>--> |
|
|
|
|
|
<!-- <span v-if="form.chargingMethod == 4">/天</span>--> |
|
|
|
|
|
<!-- </div>--> |
|
|
<!-- </el-button>--> |
|
|
<!-- </el-button>--> |
|
|
<!-- 1. 未购买 --> |
|
|
|
|
|
<!-- <el-button--> |
|
|
|
|
|
<!-- type="success"--> |
|
|
|
|
|
<!-- @click="openSpmUrl(`/product/create`,form,form.companyId,true)"--> |
|
|
|
|
|
<!-- >--> |
|
|
|
|
|
<!-- 立即开通--> |
|
|
|
|
|
|
|
|
<!-- <el-button v-else type="success" @click.stop="openSpmUrl(`/product/create`,form,form.companyId,true)">立即开通--> |
|
|
<!-- </el-button>--> |
|
|
<!-- </el-button>--> |
|
|
|
|
|
|
|
|
|
|
|
<!-- </template>--> |
|
|
|
|
|
<el-button type="primary" @click.stop="openSpmUrl(`https://${form.domain}`,form,form.companyId,true)">进入控制台</el-button> |
|
|
<el-button @click="openSpmUrl(`/ask`,form,form.companyId,true)">产品文档</el-button> |
|
|
<el-button @click="openSpmUrl(`/ask`,form,form.companyId,true)">产品文档</el-button> |
|
|
|
|
|
|
|
|
<!-- 3. 其他按钮 --> |
|
|
|
|
|
<template v-for="(item,index) in form.links" :key="index"> |
|
|
<template v-for="(item,index) in form.links" :key="index"> |
|
|
<div v-if="item.qrcode"> |
|
|
<div v-if="item.qrcode"> |
|
|
<el-popover |
|
|
<el-popover |
|
@ -102,22 +89,6 @@ |
|
|
{{ item.type }} |
|
|
{{ item.type }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<!-- <template v-else>--> |
|
|
|
|
|
<!-- 1.1 已安装 --> |
|
|
|
|
|
<!-- <template v-if="form.installed">--> |
|
|
|
|
|
<!-- <el-button--> |
|
|
|
|
|
<!-- type="primary"--> |
|
|
|
|
|
<!-- @click="openSpmUrl(`https://${form.domain}`,form,form.companyId)"--> |
|
|
|
|
|
<!-- >--> |
|
|
|
|
|
<!-- 产品控制台--> |
|
|
|
|
|
<!-- </el-button>--> |
|
|
|
|
|
<!-- </template>--> |
|
|
|
|
|
<!-- 1.2 未安装 --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- </template>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-space> |
|
|
</el-space> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|