|
|
|
@ -74,7 +74,7 @@ |
|
|
|
|
</div> |
|
|
|
|
<div style="font-size: 10px">|</div> |
|
|
|
|
<div class="toolprice"> |
|
|
|
|
<div>上架时间:{{ tool.onlineTime.slice(0, 10) }}</div> |
|
|
|
|
<div>上架时间:{{ tool.onlineTime && tool.onlineTime.slice(0, 10) }}</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -434,15 +434,15 @@ |
|
|
|
|
<span v-else>¥{{ serviceType == '测试服务(按次计)' ? buyTool.priceTime : buyTool.price }}</span> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="购买数量:"> |
|
|
|
|
<span v-if="(serviceType == '测试服务(按次计)' && buyTool.priceTime == 0) || (serviceType == '使用时长(按月计)' && buyTool.price == 0)">1</span> |
|
|
|
|
<el-input-number |
|
|
|
|
v-if="serviceType == '测试服务(按次计)'" |
|
|
|
|
v-else |
|
|
|
|
size="mini" |
|
|
|
|
v-model="buyAmount" |
|
|
|
|
:min="1" |
|
|
|
|
:max="999" |
|
|
|
|
label="购买数量" |
|
|
|
|
></el-input-number> |
|
|
|
|
<span v-else>1</span> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="交付方式:"> |
|
|
|
|
{{ buyTool.deliverType }} |
|
|
|
@ -657,6 +657,12 @@ export default { |
|
|
|
|
qrcode: VueQrcode, |
|
|
|
|
}, |
|
|
|
|
filters: {}, |
|
|
|
|
watch:{ |
|
|
|
|
serviceType(newval,oldval) { |
|
|
|
|
this.amount = 1 |
|
|
|
|
this.buyAmount = 1 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
...mapGetters(['paytype', 'tooltypelist', 'token', 'userinform']), |
|
|
|
|
addPriceAll() { |
|
|
|
@ -677,38 +683,8 @@ export default { |
|
|
|
|
getTool(this.id).then((response) => { |
|
|
|
|
this.tool = response.tool |
|
|
|
|
|
|
|
|
|
// 处理可下载链接 |
|
|
|
|
// const selectItem = this.mp4Info.find((it) => it.name == this.tool.name) |
|
|
|
|
// if (selectItem) { |
|
|
|
|
// this.tool.videoUrl = selectItem.videoUrl |
|
|
|
|
// this.tool.uploadApp = selectItem.uploadApp |
|
|
|
|
// this.tool.uploadInstall = selectItem.uploadInstall |
|
|
|
|
// this.tool.uploadUse = selectItem.uploadUse |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// this.buyTool=response.tool; |
|
|
|
|
this.$emit('inform', this.tool) |
|
|
|
|
this.tool.amount = 1 |
|
|
|
|
// this.images = response.fileInfoList |
|
|
|
|
// this.images.forEach(item=>{ |
|
|
|
|
// if(item.fileType == 'head'){ |
|
|
|
|
// this.icon.push(item) |
|
|
|
|
// }else if(item.fileType == 'detail'){ |
|
|
|
|
// this.icon.push(item) |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
// for (let index in this.images) { |
|
|
|
|
// if (this.images[index].fileType == 'head') this.icon = this.images[index] |
|
|
|
|
// else if (this.images[index].fileType == 'detail') { |
|
|
|
|
// this.detailImages.push(this.images[index]) |
|
|
|
|
// } else if (this.images[index].fileType == 'package') { |
|
|
|
|
// this.packageUrl = this.images[index].fileId |
|
|
|
|
// } else if (this.images[index].fileType == 'readme') { |
|
|
|
|
// this.readmeUrl = this.images[index].fileId |
|
|
|
|
// } else if (this.images[index].fileType == 'icon') { |
|
|
|
|
// this.tool.img = this.images[index].fileUrl |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// 处理可下载文件fileType fileUrl filePath |
|
|
|
|
if (response.fileInfoList.length) { |
|
|
|
|