|
|
@@ -84,8 +84,9 @@
|
|
|
class="sig-btn-base" @click="openY(item)">
|
|
|
签约
|
|
|
</view>
|
|
|
- <view class="sig-btn-base" v-if="userInfo.uid == item.uid && item.status == 1 && !item.comment"
|
|
|
- @click="pj(item)">
|
|
|
+ <!-- <view class="sig-btn-base" -->
|
|
|
+ <!-- userInfo.uid == item.uid && -->
|
|
|
+ <view class="sig-btn-base" v-if="userInfo.uid == item.uid && item.status == 1 && !item.comment" @click="pj(item)">
|
|
|
评价
|
|
|
</view>
|
|
|
<view class="sig-btn-base" v-if="userInfo.uid == item.to_uid && item.status == 1"
|
|
|
@@ -204,8 +205,6 @@
|
|
|
</signInput>
|
|
|
</view>
|
|
|
</template>
|
|
|
-
|
|
|
-
|
|
|
<view class="btn" @click="goYqy">
|
|
|
提交
|
|
|
</view>
|
|
|
@@ -216,8 +215,23 @@
|
|
|
</uni-popup>
|
|
|
<uni-popup ref="pjPopup" type="center">
|
|
|
<view class="listBox" style="padding-top: 40rpx;">
|
|
|
+ <view class="pj-tit ">
|
|
|
+ 评价内容
|
|
|
+ </view>
|
|
|
<textarea name="" id="" cols="30" rows="10" placeholder="请输入您的评价" v-model="pjs" maxlength="200"
|
|
|
class="pj-wrap"></textarea>
|
|
|
+ <view class="pj-tit ">
|
|
|
+ 评价图片
|
|
|
+ </view>
|
|
|
+ <view class="image-list flex">
|
|
|
+ <view class="pj-img" v-for="item,index in pjImg" :key="'pj' + index">
|
|
|
+ <image :src="item" mode="" class="pj-img" @click="imgsub(index)"></image>
|
|
|
+ <image src="/static/icon/goodsExit.png" mode="" class="scbtn" @click.stop="scPjImg(index)">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <image src="/static/image/upImg.png" mode="" class="pj-img" @click="imgsub(pjImg.length)"
|
|
|
+ v-if="pjImg.length < 3"></image>
|
|
|
+ </view>
|
|
|
<view class="btn" @click="goPj">
|
|
|
提交
|
|
|
</view>
|
|
|
@@ -230,13 +244,21 @@
|
|
|
</view>
|
|
|
<textarea name="" id="" cols="30" rows="10" v-model="checkItem.comment.content" maxlength="200"
|
|
|
class="pj-wrap" disabled></textarea>
|
|
|
+ <view class="image-list flex">
|
|
|
+ <image mode="" v-for="item,index in checkItem.comment.imgs" class="pj-img"
|
|
|
+ :src="item" @click="lookImg(item)"></image>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import {
|
|
|
+ upload
|
|
|
+ } from '@/api/set.js';
|
|
|
import signInput from "@/components/am-sign-input/am-sign-input.vue"
|
|
|
import empty from '@/components/empty/empty.vue'
|
|
|
import {
|
|
|
@@ -270,6 +292,8 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ zzYy: '',
|
|
|
+ pjImg: [],
|
|
|
pjs: '',
|
|
|
partyB: {
|
|
|
address: '',
|
|
|
@@ -337,6 +361,22 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ lookImg(url) {
|
|
|
+ uni.previewImage({
|
|
|
+ urls: [url],
|
|
|
+ current:url
|
|
|
+ })
|
|
|
+ },
|
|
|
+ imgsub(index) {
|
|
|
+ upload({
|
|
|
+ filename: ''
|
|
|
+ }).then(data => {
|
|
|
+ this.$set(this.pjImg, index, data[0].img)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ scPjImg(index) {
|
|
|
+ this.pjImg.splice(index, 1)
|
|
|
+ },
|
|
|
showTimes(val) {
|
|
|
let date = new Date(val * 1000)
|
|
|
const year = date.getFullYear();
|
|
|
@@ -348,10 +388,10 @@
|
|
|
this.$refs.popup.close()
|
|
|
},
|
|
|
lookHt(item) {
|
|
|
- let that= this
|
|
|
- console.log(item,'item----------------------------');
|
|
|
+ let that = this
|
|
|
+ console.log(item, 'item----------------------------');
|
|
|
// return
|
|
|
- console.log('item.template_iditem.template_iditem.template_id',item.template_id);
|
|
|
+ console.log('item.template_iditem.template_iditem.template_id', item.template_id);
|
|
|
if (item.template_id && item.template_id > 1) {
|
|
|
uni.setStorageSync('htDetail', item)
|
|
|
uni.navigateTo({
|
|
|
@@ -363,42 +403,44 @@
|
|
|
}).then(res => {
|
|
|
let jsonAr = res.data.content.jsonAr.map(i => {
|
|
|
i.value = item[i.code] || ''
|
|
|
- if(i.type == 'date') {
|
|
|
+ if (i.type == 'date') {
|
|
|
i.value = that.showTimes(i.value)
|
|
|
}
|
|
|
return i
|
|
|
})
|
|
|
let jsonBr = res.data.content.jsonBr.map(j => {
|
|
|
if (j.code.indexOf('to_') != -1) {
|
|
|
- console.log(item[j.code],j.code);
|
|
|
+ console.log(item[j.code], j.code);
|
|
|
j.value = item[j.code]
|
|
|
} else {
|
|
|
j.value = item['to_' + j.code]
|
|
|
}
|
|
|
- if(j.type == 'date') {
|
|
|
+ if (j.type == 'date') {
|
|
|
j.value = that.showTimes(item[j.code])
|
|
|
}
|
|
|
return j
|
|
|
})
|
|
|
- console.log(jsonBr,'jsonBr');
|
|
|
+ console.log(jsonBr, 'jsonBr');
|
|
|
uni.setStorageSync('htDetails', {
|
|
|
imgs: res.data.imgs,
|
|
|
content: {
|
|
|
- jsonAr,
|
|
|
- jsonBr
|
|
|
- }
|
|
|
+ jsonAr,
|
|
|
+ jsonBr
|
|
|
+ }
|
|
|
})
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/user/signing/ht?hid=2'
|
|
|
})
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
},
|
|
|
dk(item) {
|
|
|
- let addr = {value: ''}
|
|
|
- if(item.content && item.content.jsonAr) {
|
|
|
+ let addr = {
|
|
|
+ value: ''
|
|
|
+ }
|
|
|
+ if (item.content && item.content.jsonAr) {
|
|
|
addr = item.content.jsonAr.find(i => i.code == 'address')
|
|
|
}
|
|
|
uni.navigateTo({
|
|
|
@@ -514,6 +556,13 @@
|
|
|
},
|
|
|
lookPj(item) {
|
|
|
this.checkItem = item
|
|
|
+ if (this.checkItem.comment && this.checkItem.comment.imgs) {
|
|
|
+ console.log(this.checkItem.comment.imgs,typeof(this.checkItem.comment.imgs));
|
|
|
+ if(typeof(this.checkItem.comment.imgs) == 'string') {
|
|
|
+
|
|
|
+ this.checkItem.comment.imgs = this.checkItem.comment.imgs.split(',')
|
|
|
+ }
|
|
|
+ }
|
|
|
this.$refs.lookPjPopup.open()
|
|
|
},
|
|
|
goPj() {
|
|
|
@@ -528,7 +577,9 @@
|
|
|
this.loading = true
|
|
|
goPj({
|
|
|
contract_id: this.checkItem.id,
|
|
|
- content: this.pjs
|
|
|
+ content: this.pjs,
|
|
|
+ imgs: this.pjImg,
|
|
|
+ uid: this.userInfo.uid
|
|
|
}).then(res => {
|
|
|
|
|
|
this.$refs.pjPopup.close()
|
|
|
@@ -537,12 +588,18 @@
|
|
|
duration: 2000
|
|
|
});
|
|
|
this.loading = false
|
|
|
+ this.getList('re')
|
|
|
}).catch(err => {
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|
|
|
openY(item) {
|
|
|
this.checkItem = item
|
|
|
+ if (this.checkItem.comment && this.checkItem.comment.imgs) {
|
|
|
+ if(typeof(this.checkItem.comment.imgs) == 'string') {
|
|
|
+ this.checkItem.comment.imgs = this.checkItem.comment.imgs.split(',')
|
|
|
+ }
|
|
|
+ }
|
|
|
this.$refs.popup.open()
|
|
|
},
|
|
|
check(item) {
|
|
|
@@ -577,7 +634,7 @@
|
|
|
let content = that.checkItem.content || {}
|
|
|
|
|
|
if (that.userInfo.uid == that.checkItem.uid) {
|
|
|
- // if (that.userInfo.uid != that.checkItem.uid) {
|
|
|
+ // if (that.userInfo.uid != that.checkItem.uid) {
|
|
|
console.log('jiafang');
|
|
|
qy = Jcheck
|
|
|
data = {
|
|
|
@@ -628,7 +685,7 @@
|
|
|
}
|
|
|
return item
|
|
|
})
|
|
|
- console.log(content.jsonBr,'content.jsonBr---------------------------------');
|
|
|
+ console.log(content.jsonBr, 'content.jsonBr---------------------------------');
|
|
|
data.content = JSON.stringify(content)
|
|
|
console.log(data, '结束data');
|
|
|
} else {
|
|
|
@@ -830,6 +887,12 @@
|
|
|
font-size: 26rpx;
|
|
|
color: #999;
|
|
|
}
|
|
|
+ &-cancels {
|
|
|
+ background: #fff;
|
|
|
+ border: 2rpx solid #FC4564;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #FC4564;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -967,4 +1030,26 @@
|
|
|
color: #000;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
+
|
|
|
+ .image-list {
|
|
|
+ padding: 20rpx 40rpx;
|
|
|
+ justify-content: flex-start;
|
|
|
+ }
|
|
|
+
|
|
|
+ .pj-img {
|
|
|
+ width: 150rpx;
|
|
|
+ height: 150rpx;
|
|
|
+ margin-right: 20rpx;
|
|
|
+ border: 1rpx solid #eee;
|
|
|
+ position: relative;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .scbtn {
|
|
|
+ width: 30rpx;
|
|
|
+ height: 30rpx;
|
|
|
+ position: absolute;
|
|
|
+ top: -15rpx;
|
|
|
+ right: -15rpx;
|
|
|
+ }
|
|
|
</style>
|