Commit e8b5066e authored by yaya's avatar yaya

feat: 众筹功能发布优化

parent 33b0b0e4
......@@ -117,7 +117,7 @@
</div>
</el-form-item>
</div>
<el-form-item label="微信群聊" prop="wxQrcode">
<el-form-item label="微信群聊" required>
<el-upload
:action="uploadPath"
:headers="headers"
......@@ -307,6 +307,17 @@ export default {
})
}
}
const list = []
if (response.data.data.wxQrcode) {
list.push({
url: response.data.data.wxQrcode
})
this.goods.wxQrcode = response.data.data.wxQrcode
}
this.itemChatImages = list
if (response.data.data.groupPurchaseStartTime && response.data.data.groupPurchaseEndTime) {
this.timeValue = [response.data.data.groupPurchaseStartTime, response.data.data.groupPurchaseEndTime]
}
}
})
.catch(response => {
......@@ -358,8 +369,18 @@ export default {
})
return
}
if (!this.goods.wxQrcode) {
this.$message({
type: 'error',
message: '请选择微信群聊图片!'
})
return
}
this.goods.groupPurchaseStartTime = this.timeValue[0]
this.goods.groupPurchaseEndTime = this.timeValue[1]
if (this.numType === -1) {
this.goods.buyLimitNum = -1
}
this.$refs.goods.validate((valid) => {
if (valid) {
const loading = this.$loading({
......
......@@ -56,7 +56,7 @@
<el-table-column align="center" label="销量" prop="selledNum" />
<el-table-column align="center" label="众筹时间" prop="groupPurchaseStartTime" min-width="150px">
<template slot-scope="scope">
<span class="tooltip-span">{{ `${scope.row.groupPurchaseStartTime} ~ ${scope.row.groupPurchaseEndTime}` }}</span>
<span class="tooltip-span">{{ `${scope.row.groupPurchaseStartTime ? `${scope.row.groupPurchaseStartTime} ~ ${scope.row.groupPurchaseEndTime}` : '-'}` }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="众筹发起人" prop="creatorName" />
......@@ -73,7 +73,7 @@
<el-table-column align="center" label="操作" width="150" fixed="right">
<template slot-scope="scope">
<el-button
:disabled="(!scope.row.editAble && scope.row.type === 2)"
:disabled="(scope.row.isOnSale)"
type="primary"
size="mini"
@click="handleToDetail(scope.row)">编辑
......
......@@ -369,7 +369,7 @@ export default {
* 开团
*/
handleToGroup(row) {
this.$confirm('确定将该藏品开启团购吗?', '提示', {
this.$confirm('确定将该藏品转众筹吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment