Commit 5362cb6c authored by zhengke's avatar zhengke

增加传头像

parent 0c0723c2
...@@ -25,6 +25,18 @@ ...@@ -25,6 +25,18 @@
<el-form-item label="订单id"> <el-form-item label="订单id">
<el-input v-model="addMsg[0].OrderDetailId" size="small"></el-input> <el-input v-model="addMsg[0].OrderDetailId" size="small"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="用户头像">
<el-tooltip class="item" effect="dark" content="建议尺寸100*100" placement="top">
<el-button @click="openChangeDig(3)" size="small">选择文件</el-button>
</el-tooltip>
<div class="app-gallery-item" style="position: relative;width: 100px;margin-top: 10px;">
<img v-if="!userPath || userPath==''"
src="../../assets/img/default.png" style="width:80px;height:80px" alt="">
<img v-else style="width:80px;height:80px" :src="userPath"
alt="">
</div>
</el-form-item>
<el-form-item> <el-form-item>
<label slot="label"> <label slot="label">
<span style="color:red">*</span>商品 <span style="color:red">*</span>商品
...@@ -157,7 +169,8 @@ ...@@ -157,7 +169,8 @@
CommentImgList: [], //评论图片 CommentImgList: [], //评论图片
CommentScore: 5, //分数 CommentScore: 5, //分数
GuideId: 0, // 导游id(新增一条评论需新增2调数据,一个是对导游(车辆id=0)的一个是对车辆的(导游id=0),) GuideId: 0, // 导游id(新增一条评论需新增2调数据,一个是对导游(车辆id=0)的一个是对车辆的(导游id=0),)
CarId: '' CarId: '',
UserPhoto:0, //用户头像
}, { }, {
PlatformSource: 1, //用户来源 PlatformSource: 1, //用户来源
CreateDate: '', //评论日期 CreateDate: '', //评论日期
...@@ -168,7 +181,8 @@ ...@@ -168,7 +181,8 @@
CommentImgList: [], //评论图片 CommentImgList: [], //评论图片
CommentScore: 5, //分数 CommentScore: 5, //分数
GuideId: '', // 导游id(新增一条评论需新增2调数据,一个是对导游(车辆id=0)的一个是对车辆的(导游id=0),) GuideId: '', // 导游id(新增一条评论需新增2调数据,一个是对导游(车辆id=0)的一个是对车辆的(导游id=0),)
CarId: 0 CarId: 0,
UserPhoto:0, //用户头像
}], }],
msg: { msg: {
pageIndex: 1, pageIndex: 1,
...@@ -187,7 +201,7 @@ ...@@ -187,7 +201,7 @@
GuideList: [], //导游列表 GuideList: [], //导游列表
CarList: [], //导游列表 CarList: [], //导游列表
userPath:'', //用户头像
}; };
}, },
created() { created() {
...@@ -208,6 +222,12 @@ ...@@ -208,6 +222,12 @@
let url = this.getIconLink(msg.url) let url = this.getIconLink(msg.url)
this.addMsg[1].CommentImgList.push(url); this.addMsg[1].CommentImgList.push(url);
} }
if (this.imgType == 3) {
let url = this.getIconLink(msg.url);
this.userPath = url;
this.addMsg[0].UserPhoto=msg.selectId;
this.addMsg[1].UserPhoto=msg.selectId;
}
this.changeState = false; this.changeState = false;
}, },
//删除图片 //删除图片
......
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