Commit 09c04b78 authored by zhengke's avatar zhengke

修改

parent 2610bd18
......@@ -40,7 +40,10 @@
</el-tag>
</template>
</el-table-column>
<el-table-column prop="MaterialInfo" label="发圈文案" width="300">
<el-table-column label="发圈文案" width="300">
<template slot-scope="scope">
{{scope.row.MaterialInfo}}<img @click="getMaterInfo(scope.row)" style="margin-left:3px;" src="../../assets/img/userman/edit1.png" alt="">
</template>
</el-table-column>
<el-table-column prop="MaterialImg" label="图片视频" width="300">
<template slot-scope="scope">
......@@ -58,7 +61,7 @@
<div v-if="sort_goods_id != scope.row.Id" flex="dir:left cross:center">
<span>{{scope.row.SortNum}}</span>
<el-button class="edit-sort" type="text" @click="sort_goods_id=scope.row.Id">
<img src="../../assets/img/userman/edit.png" alt="">
<img style="margin-left:3px;" src="../../assets/img/userman/edit1.png" alt="">
</el-button>
</div>
<div style="display: flex;align-items: center" v-else>
......@@ -108,7 +111,7 @@
<div class="conten_indder">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="150px">
<el-form-item label="选择商品">
<el-button type="text">({{addMsg.GoodsId}}){{goodsName}}</el-button>
<el-button type="text">({{addMsg.GoodsId}}){{addMsg.GoodsName}}</el-button>
<el-button type="text" @click="isShowGoods=true">选择商品</el-button>
</el-form-item>
<el-form-item label="动态文案" prop="MaterialInfo">
......@@ -202,7 +205,18 @@
<el-button size="small" type="danger" @click="getGoodsChoice()">确 定</el-button>
</span>
</el-dialog>
<!-- 修改发圈文案 -->
<el-dialog title="编辑发圈文案" :visible.sync="isShowText" width="800px">
<el-form label-width="80px">
<el-form-item label="文案内容">
<el-input type="textarea" v-model="updateTextInfo.MaterialInfo" :rows="10"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="isShowText=false">取 消</el-button>
<el-button size="small" type="danger" @click="updateMaterialInfo()">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
......@@ -237,7 +251,7 @@
CateId: 0, //分类编号
GoodsId: 0, //商品编号
CoverImg: "", //封面图
GoodsName:'',
MaterialInfo: "", //素材文案
LinkUrl: "", //链接地址
IsTop: 0, //是否置顶
......@@ -258,7 +272,11 @@
isSearch:-1, //判断选择查询还是新增的
isShowGoods:false, //选择商品弹窗
goodsName:'', //商品名称
isShowText:false , //发圈文案弹窗
updateTextInfo:{
Id:0,
MaterialInfo:''
}
};
},
methods: {
......@@ -417,16 +435,22 @@
null
);
},
getMaterInfo(item){
this.isShowText=true;
this.updateTextInfo.Id = item.Id;
this.updateTextInfo.MaterialInfo = item.MaterialInfo;
},
//更新文案
updateMaterialInfo(item) {
this.apipost("/api/Share/SetShareFriendMaterialInfo", {
Id: item.Id,
MaterialInfo: item.MaterialInfo
},
updateMaterialInfo() {
if(this.updateTextInfo.MaterialInfo==''){
this.Error('请输入文案内容');
}
this.apipost("/api/Share/SetShareFriendMaterialInfo", this.updateTextInfo,
res => {
if (res.data.resultCode === 1) {
this.Success(res.data.message);
this.getList();
this.isShowText=false;
} else {
this.Error(res.data.message);
}
......@@ -483,7 +507,7 @@
this.addMsg.ImgList.push(x.Path);
})
}
this.goodsName = chooseGoods[0].Name;
this.GoodsName = chooseGoods[0].Name;
this.addMsg.GoodsId = chooseGoods[0].Id
this.isShowGoods = false;
this.$refs.choiceGood.toggleSelection();
......
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