Commit 79a792bd by 王志慧

commit

1 parent d7acddc2
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
dialogVisible: false, dialogVisible: false,
couponMenu: false, couponMenu: false,
loading: false, loading: false,
activeName: 3, activeName: 1,
modelList: [], modelList: [],
pageNum: 1, pageNum: 1,
pageSize: 12, pageSize: 12,
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div class="upload-img"> <div class="upload-img">
<i class="el-icon-plus avatar-uploader-desc-icon"></i> <i class="el-icon-plus avatar-uploader-desc-icon"></i>
<div class="avatar-uploader-desc-word">上传照片</div> <div class="avatar-uploader-desc-word">上传照片</div>
<input type="file" class="upload-img" style="opacity: 0" accept=".jpg, .jpeg, .png" @change="e => handleImgChange(e)" /> <input type="file" ref="uploadImg" class="upload-img" style="opacity: 0" accept=".jpg, .jpeg, .png" @change="e => handleImgChange(e)" />
</div> </div>
</template> </template>
<el-dialog class="image-dialog" :visible.sync="dialogVisibleImg" width="50%"> <el-dialog class="image-dialog" :visible.sync="dialogVisibleImg" width="50%">
...@@ -64,7 +64,6 @@ export default { ...@@ -64,7 +64,6 @@ export default {
methods: { methods: {
// 上传图片 // 上传图片
handleImgChange(e) { handleImgChange(e) {
console.log(this.key)
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '图片上传中,请稍后' message: '图片上传中,请稍后'
...@@ -82,7 +81,6 @@ export default { ...@@ -82,7 +81,6 @@ export default {
this.$message.error('最多上传9张图片') this.$message.error('最多上传9张图片')
return return
} }
document.querySelector('.upload-img').value = ''
reader.readAsDataURL(file) reader.readAsDataURL(file)
reader.onload = e => { reader.onload = e => {
const imgFile = e.target.result const imgFile = e.target.result
...@@ -99,6 +97,8 @@ export default { ...@@ -99,6 +97,8 @@ export default {
this.imageUrlArr.push(res) this.imageUrlArr.push(res)
this.$emit('change', { arr: this.imageUrlArr, key: this.picOptions.key, index: this.index }) this.$emit('change', { arr: this.imageUrlArr, key: this.picOptions.key, index: this.index })
} }
e.target.value = ''
this.$refs.uploadImg.value = ''
}) })
} }
}, },
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
case 'img': case 'img':
this.imageUrlArr.splice(index, 1) this.imageUrlArr.splice(index, 1)
console.log(this.imageUrlArr) console.log(this.imageUrlArr)
this.$emit('change', { arr: this.imageUrlArr, key: this.picOptions.key, id: 1, index: this.index }) this.$emit('change', { arr: this.imageUrlArr, key: this.picOptions.key, id: 1, index: this.index })
break break
default: default:
this.videoUrl = '' this.videoUrl = ''
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
height: 104px; height: 104px;
border-radius: 4px; border-radius: 4px;
margin-right: 8px; margin-right: 8px;
margin-bottom:5px; margin-bottom: 5px;
&:hover .mask { &:hover .mask {
opacity: 1; opacity: 1;
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="channel-content gl-form-page"> <div class="channel-content gl-form-page">
<el-form ref="ruleForm" :model="channelForm" label-width="154px" :rules="rules"> <el-form ref="ruleForm" :model="channelForm" label-width="154px" :rules="rules">
<el-form-item label="频道名称:" prop="channelName"> <el-form-item label="频道名称:" prop="channelName">
<el-input v-model="channelForm.channelName" :disabled="isDisabled"></el-input> <el-input v-model="channelForm.channelName" :disabled="isDisabled" maxlength="4"></el-input>
</el-form-item> </el-form-item>
<span v-if="channelForm.channelType == 1"> <span v-if="channelForm.channelType == 1">
<el-form-item label="频道主题:" prop="channelStyle"> <el-form-item label="频道主题:" prop="channelStyle">
...@@ -72,6 +72,7 @@ export default { ...@@ -72,6 +72,7 @@ export default {
channelImgArr: [] channelImgArr: []
}, },
channelImgbgArr: ['banner1', 'banner2'], channelImgbgArr: ['banner1', 'banner2'],
channelOtherImgbgArr: ['membrane', 'crowd', 'activity'],
channelImgFlag: false, channelImgFlag: false,
picOptions: { picOptions: {
width: '104px', width: '104px',
...@@ -112,8 +113,13 @@ export default { ...@@ -112,8 +113,13 @@ export default {
return `https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/discover/${name}.png` return `https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/discover/${name}.png`
}, },
diffChannelStyle() { diffChannelStyle() {
this.channelForm.channelImgArr = [this.commonImg(this.channelImgbgArr[this.channelForm.channelStyle - 1])] if (this.channelForm.channelType == 1) {
this.channelForm.channelImg = this.commonImg(this.channelImgbgArr[this.channelForm.channelStyle - 1]) this.channelForm.channelImgArr = [this.commonImg(this.channelImgbgArr[this.channelForm.channelStyle - 1])]
this.channelForm.channelImg = this.commonImg(this.channelImgbgArr[this.channelForm.channelStyle - 1])
} else {
this.channelForm.channelImgArr = [this.commonImg(this.channelOtherImgbgArr[this.channelForm.channelType - 2])]
this.channelForm.channelImg = this.commonImg(this.channelOtherImgbgArr[this.channelForm.channelType - 2])
}
}, },
getChannelDetail() { getChannelDetail() {
let apis = this.id ? 'getChannelDetail' : this.merchantChannelId ? 'getMerchantChannelDetail' : '' let apis = this.id ? 'getChannelDetail' : this.merchantChannelId ? 'getMerchantChannelDetail' : ''
...@@ -125,7 +131,7 @@ export default { ...@@ -125,7 +131,7 @@ export default {
this.channelForm.posterImgArr.push(res.data.posterImg) //海报 this.channelForm.posterImgArr.push(res.data.posterImg) //海报
this.channelForm.publicityImgArr.push(res.data.publicityImg) //频道分享预览图 this.channelForm.publicityImgArr.push(res.data.publicityImg) //频道分享预览图
this.channelForm.channelImgArr.push(res.data.channelImg) //频道banner this.channelForm.channelImgArr.push(res.data.channelImg) //频道banner
// this.diffChannelStyle() this.diffChannelStyle()
} }
}) })
}, },
......
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
}, },
handleEdit(val) { handleEdit(val) {
this.$router.push({ this.$router.push({
path: `/channel/add?id=${val.id}` path: `/channel/add?id=${val.id}&channelType=${val.channelType}`
}) })
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="activity-content gl-form-page"> <div class="activity-content gl-form-page">
<el-form ref="ruleForm" :model="activityForm" label-width="154px" :rules="rules"> <el-form ref="ruleForm" :model="activityForm" label-width="154px" :rules="rules">
<el-form-item label="频道卡片主标题:" prop="topicTitle"> <el-form-item label="频道卡片主标题:" prop="topicTitle">
<el-input v-model="activityForm.topicTitle" maxlength="6"></el-input> <el-input v-model="activityForm.topicTitle" maxlength="4"></el-input>
</el-form-item> </el-form-item>
<template v-if="channelType == 3"> <template v-if="channelType == 3">
<el-form-item label="卡片背景图:" prop="backgroundImg"> <el-form-item label="卡片背景图:" prop="backgroundImg">
...@@ -109,38 +109,21 @@ export default { ...@@ -109,38 +109,21 @@ export default {
} }
}, },
{ {
itemName: '膨胀金活动',
itemValue: 2,
itemType: 'crowdfunding',
getInterfaceApi: this.$apis.store.bulgeActivity,
params: {
currentPage: 1
}
},
{
itemName: '定保活动', itemName: '定保活动',
itemValue: 3, itemValue: 1,
itemType: 'crowdfunding', itemType: 'crowdfunding',
getInterfaceApi: this.$apis.store.bulgeActivity, getInterfaceApi: this.$apis.store.bulgeActivity,
params: { params: {
currentPage: 1, currentPage: 1,
subscribe: 2 subscribe: 2
} }
}, }
// {
// itemName: '商品',
// itemValue: 5,
// itemType: 'goods',
// getInterfaceApi: this.$apis.store.goodsActivity,
// params: {
// currentPage: 1
// }
// }
] ]
} }
}, },
mounted() { mounted() {
this.diffChannelStyle() this.diffChannelStyle()
this.diffActivityList()
}, },
computed: { computed: {
...mapState({ ...mapState({
...@@ -165,7 +148,6 @@ export default { ...@@ -165,7 +148,6 @@ export default {
watch: { watch: {
topicDetail: { topicDetail: {
handler(data) { handler(data) {
console.log(data)
if (data) { if (data) {
this.activityForm = { this.activityForm = {
...data, ...data,
...@@ -179,7 +161,8 @@ export default { ...@@ -179,7 +161,8 @@ export default {
data.contentList[0].mediaList.forEach(item => { data.contentList[0].mediaList.forEach(item => {
this.activityForm.mediaUrlArr.push(item.mediaUrl) this.activityForm.mediaUrlArr.push(item.mediaUrl)
}) })
this.activityForm.activityPrice = this.activityForm.activityDetails.activityPrice this.activityForm.activityPrice = Number(this.activityForm.activityDetails.activityPrice) / 100
this.activityForm.productPrice = Number(this.activityForm.activityDetails.contentPrice) / 100
console.log(this.activityForm) console.log(this.activityForm)
} }
}, },
...@@ -191,6 +174,9 @@ export default { ...@@ -191,6 +174,9 @@ export default {
...mapActions({ ...mapActions({
addChannelTopic: 'channel/addChannelTopic' addChannelTopic: 'channel/addChannelTopic'
}), }),
diffActivityList() {
this.activityList.splice(4 - this.channelType, 1)
},
commonImg(name) { commonImg(name) {
return `https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/discover/${name}.png` return `https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/discover/${name}.png`
}, },
...@@ -217,7 +203,7 @@ export default { ...@@ -217,7 +203,7 @@ export default {
contentName: data.marketingName contentName: data.marketingName
} }
this.activityForm.pagePathContent = data.marketingId this.activityForm.pagePathContent = data.marketingId
console.log( this.activityForm.activityDetails) console.log(this.activityForm.activityDetails)
if (this.activityForm.activityDetails.selectType == 'goods') { if (this.activityForm.activityDetails.selectType == 'goods') {
this.activityForm.pagePathType = 2 this.activityForm.pagePathType = 2
this.activityForm.productPrice = this.activityForm.activityDetails.originalPrice this.activityForm.productPrice = this.activityForm.activityDetails.originalPrice
...@@ -227,8 +213,8 @@ export default { ...@@ -227,8 +213,8 @@ export default {
this.activityForm.activityDetails.contentPrice = this.activityForm.activityDetails.originalPrice this.activityForm.activityDetails.contentPrice = this.activityForm.activityDetails.originalPrice
} else { } else {
this.activityForm.pagePathType = 1 this.activityForm.pagePathType = 1
this.activityForm.productPrice = Number(this.activityForm.activityDetails.crowdFundingPrice)/100 this.activityForm.productPrice = Number(this.activityForm.activityDetails.crowdFundingPrice) / 100
this.activityForm.activityPrice = Number(this.activityForm.activityDetails.activityPrice)/100 this.activityForm.activityPrice = Number(this.activityForm.activityDetails.activityPrice) / 100
this.activityForm.activityDetails.contentName = this.activityForm.activityDetails.activityName this.activityForm.activityDetails.contentName = this.activityForm.activityDetails.activityName
} }
...@@ -249,10 +235,6 @@ export default { ...@@ -249,10 +235,6 @@ export default {
handleSave() { handleSave() {
console.log(this.activityForm) console.log(this.activityForm)
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
// if (!this.channelForm.channelImg) {
// this.channelImgFlag = true
// return
// }
let mediaList = [] let mediaList = []
if (this.activityForm.backgroundType == 1) { if (this.activityForm.backgroundType == 1) {
mediaList = [ mediaList = [
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</el-form> </el-form>
</div> </div>
<div class="add-box"> <div class="add-box">
<div class="btn-basic" @click="handleAddItem"> <div class="btn-basic" @click.stop="handleAddItem">
<img class="icon-add" src="@/assets/channel/icon-add.png" /> <img class="icon-add" src="@/assets/channel/icon-add.png" />
<div>新增一项</div> <div>新增一项</div>
</div> </div>
...@@ -115,21 +115,23 @@ ...@@ -115,21 +115,23 @@
<!-- <div class="el-form-item__error">请上传频道banner</div> --> <!-- <div class="el-form-item__error">请上传频道banner</div> -->
</el-form-item> </el-form-item>
</span> </span>
<span style="position: relative">
<el-form-item label="口碑文案:" :key="index" :class="index != 0 ? 'publicPraise-box' : 'publicPraise-wrap'" v-for="(text, index) in editForm.contentList[0].publicPraise">
<span class="txt-red">*</span>
<el-input type="text" v-model="text.value" maxlength="15"></el-input>
<div class="dele-publicPraise" @click="handleDelePraise(index)">
<img class="icon-dele" src="@/assets/channel/dele.png" />
</div>
</el-form-item>
<div class="el-form-item-public" v-if="publicPraiseFlag">请输入口碑文案</div>
</span>
<el-form-item label="口碑文案:" :key="index" :class="index != 0 ? 'publicPraise-box' : 'publicPraise-wrap'" v-for="(text, index) in editForm.contentList[0].publicPraise"> <div class="btn-basic" style="margin-left: 154px; margin-bottom: 10px" @click.stop="handleAddPraise">
<span class="txt-red">*</span>
<el-input type="text" v-model="text.value" maxlength="20"></el-input>
<div class="dele-publicPraise" @click="handleDelePraise(index)">
<img class="icon-dele" src="@/assets/channel/dele.png" />
</div>
</el-form-item>
<!-- <div class="el-form-item__error">请输入口碑文案</div> -->
<div class="btn-basic" style="margin-left: 154px; margin-bottom: 10px" @click="handleAddPraise">
<img class="icon-add" src="@/assets/channel/icon-add.png" /> <img class="icon-add" src="@/assets/channel/icon-add.png" />
<div>新增一条文案</div> <div>新增一条文案</div>
</div> </div>
<el-form-item label="宣传文案:" :prop="'contentList.' + 0 + '.promotion'" :rules="rules.promotion"> <el-form-item label="宣传文案:" :prop="'contentList.' + 0 + '.promotion'" :rules="rules.promotion">
<el-input type="textarea" v-model="editForm.contentList[0].promotion"></el-input> <el-input type="textarea" v-model="editForm.contentList[0].promotion" maxlength="100" show-word-limit></el-input>
</el-form-item> </el-form-item>
<el-form-item label="按钮报名:" :prop="'contentList.' + 0 + '.buttonRegistration'" :rules="rules.buttonRegistration"> <el-form-item label="按钮报名:" :prop="'contentList.' + 0 + '.buttonRegistration'" :rules="rules.buttonRegistration">
<el-input type="text" maxlength="6" v-model="editForm.contentList[0].buttonRegistration"></el-input> <el-input type="text" maxlength="6" v-model="editForm.contentList[0].buttonRegistration"></el-input>
...@@ -205,13 +207,15 @@ const url = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/discover/ ...@@ -205,13 +207,15 @@ const url = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/discover/
export default { export default {
data() { data() {
return { return {
isFlag: false, isFlag: true,
dialogVisibleImg: false, dialogVisibleImg: false,
publicPraiseFlag: false,
dialogType: '', dialogType: '',
dialogSrc: '', dialogSrc: '',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
currentPath: 0, currentPath: 0,
editForm: { editForm: {
productUrl: '',
styleArr: [], styleArr: [],
productPrice: '', productPrice: '',
activityPrice: '', activityPrice: '',
...@@ -289,7 +293,7 @@ export default { ...@@ -289,7 +293,7 @@ export default {
publicPraise: [{ required: true, message: '请输入口碑文案', trigger: 'blur' }], publicPraise: [{ required: true, message: '请输入口碑文案', trigger: 'blur' }],
backgroundImg: [{ required: true, message: '请选择卡片背景图', trigger: 'change' }], backgroundImg: [{ required: true, message: '请选择卡片背景图', trigger: 'change' }],
channelImg: [{ required: true, message: '请上传频道banner', trigger: 'change' }], channelImg: [{ required: true, message: '请上传频道banner', trigger: 'change' }],
promotion: [{ required: true, message: '请输入频道分享文案', trigger: 'blur' }], promotion: [{ required: true, message: '请输入宣传文案', trigger: 'blur' }],
buttonRegistration: [{ required: true, message: '请输入报名按钮', trigger: 'blur' }], buttonRegistration: [{ required: true, message: '请输入报名按钮', trigger: 'blur' }],
mediaUrl: [{ required: true, message: '请选择视频', trigger: 'change' }], mediaUrl: [{ required: true, message: '请选择视频', trigger: 'change' }],
productUrl: [{ required: true, message: '请上传产品主图', trigger: 'change' }], productUrl: [{ required: true, message: '请上传产品主图', trigger: 'change' }],
...@@ -310,7 +314,7 @@ export default { ...@@ -310,7 +314,7 @@ export default {
label: '频道卡片主标题', label: '频道卡片主标题',
name: 'topicTitle', name: 'topicTitle',
type: 'input', type: 'input',
maxlength: 6, maxlength: 4,
filter: '1,2,3' filter: '1,2,3'
}, },
{ {
...@@ -456,13 +460,6 @@ export default { ...@@ -456,13 +460,6 @@ export default {
value: text value: text
}) })
}) })
// if (!publicPraiseArr.length) {
// this.$message({
// message: '请输入口碑文案',
// type: 'error'
// })
// return
// }
contentList.push({ contentList.push({
activityDetails: item.pageContentItem, activityDetails: item.pageContentItem,
...item, ...item,
...@@ -492,9 +489,10 @@ export default { ...@@ -492,9 +489,10 @@ export default {
this.editForm.mediaUrlArr.push(item.mediaUrl) this.editForm.mediaUrlArr.push(item.mediaUrl)
this.editForm.productUrl = item.mediaUrl this.editForm.productUrl = item.mediaUrl
}) })
this.editForm.productPrice = this.editForm.activityDetails.contentPrice this.editForm.productPrice = this.editForm.pagePathType == 2 ? this.editForm.activityDetails.contentPrice : Number(this.editForm.activityDetails.contentPrice) / 100
this.editForm.activityPrice = this.editForm.activityDetails.activityPrice this.editForm.activityPrice = this.editForm.pagePathType == 2 ? this.editForm.activityDetails.activityPrice : Number(this.editForm.activityDetails.activityPrice) / 100
this.isFlag = true this.isFlag = true
console.log(this.editForm)
this.initParams() this.initParams()
this.diffChannelStyle() this.diffChannelStyle()
} }
...@@ -524,9 +522,15 @@ export default { ...@@ -524,9 +522,15 @@ export default {
return `https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/discover/${name}${this.channelStyle}.png` return `https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/discover/${name}${this.channelStyle}.png`
}, },
handleDelePraise(index) { handleDelePraise(index) {
if (this.editForm.contentList[0].publicPraise.length == 1) {
return
}
this.editForm.contentList[0].publicPraise.splice(index, 1) this.editForm.contentList[0].publicPraise.splice(index, 1)
}, },
delectContent(index) { delectContent(index) {
if (this.editForm.contentList.length == 1) {
return
}
this.editForm.contentList.splice(index, 1) this.editForm.contentList.splice(index, 1)
}, },
//上传类型 //上传类型
...@@ -551,7 +555,6 @@ export default { ...@@ -551,7 +555,6 @@ export default {
] ]
}, },
handleSave() { handleSave() {
console.log(this.editForm)
let form1 = '' let form1 = ''
let form2 = '' let form2 = ''
...@@ -564,6 +567,7 @@ export default { ...@@ -564,6 +567,7 @@ export default {
}) })
if (this.editForm.topicStyle != 3) { if (this.editForm.topicStyle != 3) {
// this.$refs.ruleForm.clearValidate()
form2 = new Promise((resolve, reject) => { form2 = new Promise((resolve, reject) => {
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
if (valid) { if (valid) {
...@@ -572,6 +576,14 @@ export default { ...@@ -572,6 +576,14 @@ export default {
}) })
}) })
} }
//判断口碑文案是否未空
if (this.editForm.topicStyle == 2) {
this.publicPraiseFlag = false
if (!this.editForm.contentList[0].publicPraise.some(item => item.value != '')) {
this.publicPraiseFlag = true
return
}
}
let promiseArr let promiseArr
if (this.editForm.topicStyle == 3) { if (this.editForm.topicStyle == 3) {
...@@ -637,6 +649,7 @@ export default { ...@@ -637,6 +649,7 @@ export default {
backgroundType: 1, backgroundType: 1,
contentList contentList
} }
console.log(params)
if (this.topicId) params.id = this.topicId if (this.topicId) params.id = this.topicId
this.loading = true this.loading = true
this.addChannelTopic({ this.addChannelTopic({
...@@ -776,12 +789,10 @@ export default { ...@@ -776,12 +789,10 @@ export default {
}) })
}, },
changeChannelImg(val) { changeChannelImg(val) {
console.log(val)
if (val.index != -1) { if (val.index != -1) {
this.editForm.contentList[val.index][val.key] = val.arr[0] this.editForm.contentList[val.index][val.key] = val.arr[0]
} else { } else {
this.editForm[val.key] = val.arr[0] this.editForm[val.key] = val.arr[0]
console.log(this.editForm[val.key], '9999999')
} }
if (this.editForm.topicStyle == 3 || val.index == -1) { if (this.editForm.topicStyle == 3 || val.index == -1) {
this.$refs.editFormRef.$refs[this.editChildRef].clearValidate(val.key) this.$refs.editFormRef.$refs[this.editChildRef].clearValidate(val.key)
...@@ -885,6 +896,15 @@ export default { ...@@ -885,6 +896,15 @@ export default {
background: #f9f9f9; background: #f9f9f9;
padding: 20px 0 20px 20px; padding: 20px 0 20px 20px;
box-sizing: border-box; box-sizing: border-box;
/deep/.el-form-item-public {
color: #f56c6c;
font-size: 12px;
line-height: 1;
padding-top: 4px;
position: absolute;
bottom: -30px;
left: 154px;
}
} }
.preview { .preview {
font-weight: 400; font-weight: 400;
...@@ -903,7 +923,7 @@ export default { ...@@ -903,7 +923,7 @@ export default {
cursor: pointer; cursor: pointer;
padding: 0; padding: 0;
font-size: 12px; font-size: 12px;
width: 200px; width: 105px;
} }
.icon-add { .icon-add {
width: 20px; width: 20px;
...@@ -911,7 +931,7 @@ export default { ...@@ -911,7 +931,7 @@ export default {
margin-right: 6px; margin-right: 6px;
} }
.publicPraise-box { .publicPraise-box {
margin-top: -10px; margin-top: -7px;
/deep/ .el-form-item__label { /deep/ .el-form-item__label {
color: #fff; color: #fff;
} }
......
...@@ -82,17 +82,19 @@ export default { ...@@ -82,17 +82,19 @@ export default {
watch: { watch: {
topicDetail: { topicDetail: {
handler(data) { handler(data) {
this.membraneForm = { if (data) {
...data.contentList[0].mediaList[0], this.membraneForm = {
mediaCoverArr: [], ...data.contentList[0].mediaList[0],
mediaUrlArr: [], mediaCoverArr: [],
promotion: data.contentList[0].promotion mediaUrlArr: [],
promotion: data.contentList[0].promotion
}
this.membraneForm.mediaCoverArr.push(this.membraneForm.mediaCover)
data.contentList[0].mediaList.forEach(item => {
this.membraneForm.mediaUrlArr.push(item.mediaUrl)
})
this.membraneForm.picUrl = this.membraneForm.mediaUrlArr[0]
} }
this.membraneForm.mediaCoverArr.push(this.membraneForm.mediaCover)
data.contentList[0].mediaList.forEach(item => {
this.membraneForm.mediaUrlArr.push(item.mediaUrl)
})
this.membraneForm.picUrl = this.membraneForm.mediaUrlArr[0]
}, },
immediate: true, immediate: true,
deep: true deep: true
......
...@@ -191,7 +191,7 @@ export default { ...@@ -191,7 +191,7 @@ export default {
} }
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' } pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }
} }
}, },
created() {}, created() {},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!