|
@@ -20,10 +20,10 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="det">
|
|
|
|
|
|
|
+ <view class="det" v-if="config.IS_SHOW_COMMENT_CARD==1 || config.IS_UPLOAD_IMG_EVALUATE_CARD==1">
|
|
|
<view class="tits ddflex">我的评价<text>{{evaluateText.length}}/300</text></view>
|
|
<view class="tits ddflex">我的评价<text>{{evaluateText.length}}/300</text></view>
|
|
|
- <textarea v-model="evaluateText" maxlength="300" placeholder="评价描述" placeholder-class="placeholder" class="texts"></textarea>
|
|
|
|
|
- <view class="imgbox dflex">
|
|
|
|
|
|
|
+ <textarea v-if="config.IS_SHOW_COMMENT_CARD==1" v-model="evaluateText" maxlength="300" placeholder="评价描述" placeholder-class="placeholder" class="texts"></textarea>
|
|
|
|
|
+ <view class="imgbox dflex" v-if="config.IS_UPLOAD_IMG_EVALUATE_CARD==1">
|
|
|
<view class="imgs" v-for="(item,index) in picList" :key="index">
|
|
<view class="imgs" v-for="(item,index) in picList" :key="index">
|
|
|
<image :src="item" mode="aspectFill" class="img" @click="preview(picList,index)"></image>
|
|
<image :src="item" mode="aspectFill" class="img" @click="preview(picList,index)"></image>
|
|
|
<image src="../../static/pages/images/close3.png" class="clear" @click="delPic(index)"></image>
|
|
<image src="../../static/pages/images/close3.png" class="clear" @click="delPic(index)"></image>
|
|
@@ -56,15 +56,24 @@ export default {
|
|
|
musicScore: 0,
|
|
musicScore: 0,
|
|
|
evaluateText: '',
|
|
evaluateText: '',
|
|
|
picList: [],
|
|
picList: [],
|
|
|
- bindType: ''
|
|
|
|
|
|
|
+ bindType: '',
|
|
|
|
|
+ config:{}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
this.id = options.id;
|
|
this.id = options.id;
|
|
|
|
|
+ this.getAbout()
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getAbout() {
|
|
|
|
|
+ var _this = this;
|
|
|
|
|
+
|
|
|
|
|
+ req.getRequest('/api/other/config', {}, function(res) {
|
|
|
|
|
+ _this.config = res;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
addRecordScores(index) {
|
|
addRecordScores(index) {
|
|
|
this.recordScore = (parseInt(index) + 1)*2;
|
|
this.recordScore = (parseInt(index) + 1)*2;
|
|
|
},
|
|
},
|
|
@@ -135,7 +144,7 @@ export default {
|
|
|
if(!form.bindId) return req.msg('id不能为空')
|
|
if(!form.bindId) return req.msg('id不能为空')
|
|
|
if(!form.specialityScore) return req.msg('请进行专业评分')
|
|
if(!form.specialityScore) return req.msg('请进行专业评分')
|
|
|
if(!form.serveScore) return req.msg('请进行服务评分')
|
|
if(!form.serveScore) return req.msg('请进行服务评分')
|
|
|
- if(!form.content) return req.msg('请填写评价描述')
|
|
|
|
|
|
|
+ if(!form.content&&this.config.IS_SHOW_COMMENT_CARD==1) return req.msg('请填写评价描述')
|
|
|
|
|
|
|
|
req.postRequest('/api/evaluate/save', form, () => {
|
|
req.postRequest('/api/evaluate/save', form, () => {
|
|
|
req.msg('评价成功', () => {
|
|
req.msg('评价成功', () => {
|