Commit e8b5066e authored by yaya's avatar yaya

feat: 众筹功能发布优化

parent 33b0b0e4
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
</div> </div>
</el-form-item> </el-form-item>
</div> </div>
<el-form-item label="微信群聊" prop="wxQrcode"> <el-form-item label="微信群聊" required>
<el-upload <el-upload
:action="uploadPath" :action="uploadPath"
:headers="headers" :headers="headers"
...@@ -307,6 +307,17 @@ export default { ...@@ -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 => { .catch(response => {
...@@ -358,8 +369,18 @@ export default { ...@@ -358,8 +369,18 @@ export default {
}) })
return return
} }
if (!this.goods.wxQrcode) {
this.$message({
type: 'error',
message: '请选择微信群聊图片!'
})
return
}
this.goods.groupPurchaseStartTime = this.timeValue[0] this.goods.groupPurchaseStartTime = this.timeValue[0]
this.goods.groupPurchaseEndTime = this.timeValue[1] this.goods.groupPurchaseEndTime = this.timeValue[1]
if (this.numType === -1) {
this.goods.buyLimitNum = -1
}
this.$refs.goods.validate((valid) => { this.$refs.goods.validate((valid) => {
if (valid) { if (valid) {
const loading = this.$loading({ const loading = this.$loading({
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<el-table-column align="center" label="销量" prop="selledNum" /> <el-table-column align="center" label="销量" prop="selledNum" />
<el-table-column align="center" label="众筹时间" prop="groupPurchaseStartTime" min-width="150px"> <el-table-column align="center" label="众筹时间" prop="groupPurchaseStartTime" min-width="150px">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="众筹发起人" prop="creatorName" /> <el-table-column align="center" label="众筹发起人" prop="creatorName" />
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<el-table-column align="center" label="操作" width="150" fixed="right"> <el-table-column align="center" label="操作" width="150" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
:disabled="(!scope.row.editAble && scope.row.type === 2)" :disabled="(scope.row.isOnSale)"
type="primary" type="primary"
size="mini" size="mini"
@click="handleToDetail(scope.row)">编辑 @click="handleToDetail(scope.row)">编辑
......
...@@ -369,7 +369,7 @@ export default { ...@@ -369,7 +369,7 @@ export default {
* 开团 * 开团
*/ */
handleToGroup(row) { handleToGroup(row) {
this.$confirm('确定将该藏品开启团购吗?', '提示', { this.$confirm('确定将该藏品转众筹吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' 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