Commit f0cdb30a by 李伟康

修改视频

1 parent 44e496b1
...@@ -2126,7 +2126,6 @@ export default { ...@@ -2126,7 +2126,6 @@ export default {
label: '视频', label: '视频',
name: 'liveBroadcastMediaId', name: 'liveBroadcastMediaId',
type: 'select', type: 'select',
// tips: '暂无视频,请到运营平台直播间管理创建新的视频',
maxlength: 30, maxlength: 30,
optionLabel: 'label', optionLabel: 'label',
optionId: 'value', optionId: 'value',
...@@ -2225,7 +2224,6 @@ export default { ...@@ -2225,7 +2224,6 @@ export default {
mounted () { mounted () {
this.getCrowdfundingOrderConfig() this.getCrowdfundingOrderConfig()
this.getLiveList() this.getLiveList()
this.getVideoList()
this.setMinHeight('.crowd-config') this.setMinHeight('.crowd-config')
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getPayList() this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getPayList()
...@@ -2271,15 +2269,9 @@ export default { ...@@ -2271,15 +2269,9 @@ export default {
this.editForm.liveBroadcastRoomCover = e.coverUrl this.editForm.liveBroadcastRoomCover = e.coverUrl
this.editForm.liveBroadcastMediaUrl = e.mediaUrl this.editForm.liveBroadcastMediaUrl = e.mediaUrl
} }
} else {
if (this.editForm.liveBroadcastMediaUrl == e.mediaUrl) {
console.log(e.value)
this.editForm.liveBroadcastMediaId = e.value
}
} }
}) })
}, },
'editForm.targetStock' (newValue, oldValue) { 'editForm.targetStock' (newValue, oldValue) {
this.editForm.targetStock = limitPrice(newValue, oldValue, 99999, 0) this.editForm.targetStock = limitPrice(newValue, oldValue, 99999, 0)
}, },
...@@ -2312,9 +2304,9 @@ export default { ...@@ -2312,9 +2304,9 @@ export default {
methods: { methods: {
async getCrowdfundingOrderConfig () { async getCrowdfundingOrderConfig () {
const res = await this.$apis.common.getCrowdfundingOrderConfig(), const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterList = ['paymentModel','employeeRegistrationLinkFlag'] filterList = ['paymentModel', 'employeeRegistrationLinkFlag']
this.configEditFormData.map(e =>{ this.configEditFormData.map(e => {
if(filterList.includes(e.name)) e.isHide = res == 1 if (filterList.includes(e.name)) e.isHide = res == 1
}) })
}, },
changeFormAttr (formName, attrName, labelList, attrValue) { changeFormAttr (formName, attrName, labelList, attrValue) {
...@@ -2788,6 +2780,7 @@ export default { ...@@ -2788,6 +2780,7 @@ export default {
selectedProInfo = [], selectedProInfo = [],
goodsList = [] goodsList = []
/**商品 */ /**商品 */
res.liveBroadcastMediaId = ''
res.goodsList && res.goodsList.map(e => { res.goodsList && res.goodsList.map(e => {
goodsList.push({ goodsList.push({
activityPrice: (e.activityPrice / 100).toFixed(2), activityPrice: (e.activityPrice / 100).toFixed(2),
...@@ -2803,7 +2796,7 @@ export default { ...@@ -2803,7 +2796,7 @@ export default {
goodsName: e.goodsName goodsName: e.goodsName
}) })
}) })
if (res.liveBroadcastMediaUrl || res.liveBroadcastRoomId) res.liveFlag = true if (res.liveBroadcastRoomId || res.liveBroadcastMediaUrl) res.liveFlag = true
info.goodsList = goodsList info.goodsList = goodsList
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.activityInfo = info this.activityInfo = info
...@@ -3237,6 +3230,7 @@ export default { ...@@ -3237,6 +3230,7 @@ export default {
}) })
}, },
getVideoList () { getVideoList () {
const { liveBroadcastMediaUrl } = this.editForm
this.$apis.seckillActivity.getTencentcloudmediaList({}).then(res => { this.$apis.seckillActivity.getTencentcloudmediaList({}).then(res => {
if (res.length == 0) return '' if (res.length == 0) return ''
const staff = res.map(item => { const staff = res.map(item => {
...@@ -3248,6 +3242,13 @@ export default { ...@@ -3248,6 +3242,13 @@ export default {
} }
}) })
this.liveEditFormData_2.find(item => item.name == 'liveBroadcastMediaId').optionList = staff this.liveEditFormData_2.find(item => item.name == 'liveBroadcastMediaId').optionList = staff
if (liveBroadcastMediaUrl) {
staff.map(item => {
if (liveBroadcastMediaUrl == item.mediaUrl) {
this.editForm.liveBroadcastMediaId = item.value
}
})
}
}) })
}, },
getPayMerchatList () { getPayMerchatList () {
...@@ -3265,6 +3266,7 @@ export default { ...@@ -3265,6 +3266,7 @@ export default {
}, },
// 定金收款账户 // 定金收款账户
getPayList () { getPayList () {
this.getVideoList()
this.$apis.seckillActivity.getPayListApi({}).then(res => { this.$apis.seckillActivity.getPayListApi({}).then(res => {
this.baseData.payList = res this.baseData.payList = res
this.editForm.paymentAccountSource = this.editForm.paymentAccountSource || '1' this.editForm.paymentAccountSource = this.editForm.paymentAccountSource || '1'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!