Commit f0cdb30a by 李伟康

修改视频

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