通告功能
This commit is contained in:
parent
b5a9bdbac1
commit
cb254d4baa
@ -160,4 +160,12 @@ export function queryListByUserId(params) {
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export function evaluateAdd(data) {
|
||||
return request({
|
||||
url: '/busi/evaluate',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
@ -7,9 +7,9 @@
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view>
|
||||
<!-- <view>
|
||||
<input class="input-tag" v-model="inputzy" type="text" :placeholder="placeholder" @confirm="confirm">
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
@ -138,4 +138,4 @@
|
||||
line-height: 50upx;
|
||||
font-size: 28upx;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
@ -16,7 +16,6 @@
|
||||
<view class="opt-item" v-if="item.approvalStatus=='2'" @click="updateStatus(1,item.id)">重启</view>
|
||||
<view class="opt-item" @click="goDetail(item.id)">查看详情</view>
|
||||
<view class="opt-item" @click="publish(item)">发类似</view>
|
||||
<view class="opt-item" @click="evaluate(item)">评价(demo)</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -46,9 +45,9 @@
|
||||
publish(item) {
|
||||
this.$tab.navigateTo('/pages/notice/public-notice?sameId=' + item.id)
|
||||
},
|
||||
evaluate(){
|
||||
this.$tab.navigateTo('/pages/mine/set/evaluate')
|
||||
},
|
||||
evaluate() {
|
||||
this.$tab.navigateTo('/pages/mine/set/evaluate')
|
||||
},
|
||||
updateStatus(status, id) {
|
||||
let data = {
|
||||
publishTakeDown: status,
|
||||
|
@ -8,7 +8,7 @@
|
||||
你觉得参与本次通告体验如何?<text>(1-10分)</text>
|
||||
</view>
|
||||
<view class="item-value">
|
||||
<uni-rate :max="10" :value="dataObj.rate" />
|
||||
<uni-rate :max="10" :value="dataObj.score" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-field">
|
||||
@ -19,17 +19,18 @@
|
||||
<biner-input-tags @change="change" :selectlist='selectlist' :disabled='disabled'
|
||||
:placeholder='placeholder'></biner-input-tags>
|
||||
<view class="item-dom-box">
|
||||
<view class="item-dom" v-for="(item,index) in tips" @click="chooseObj(item)">{{item}}</view>
|
||||
<view class="item-dom" v-for="(item,index) in tips" @click="chooseObj(item)">{{item.title}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="line-row-bottom">
|
||||
<uni-data-checkbox @change="chooseBoxFun($event,'isRead')" multiple :localdata="readBookList" />
|
||||
<uni-data-checkbox @change="changeAnonymous" multiple :localdata="readBookList" />
|
||||
<text class="text-red">你的头像和昵称将在评价中隐藏</text>
|
||||
</view>
|
||||
<view class="item-field" style="align-items: center;">
|
||||
<view class="submit-box" @click="submitForm">提交</view>
|
||||
<view class="submit-box" @click="evaluateAddFun">提交</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -40,6 +41,12 @@
|
||||
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||
// 引入biner-input-tags
|
||||
import binerInputTags from '@/components/biner-input-tags/biner-input-tags'
|
||||
import {
|
||||
evaluateAdd
|
||||
} from '@/api/business/notice';
|
||||
import {
|
||||
getCatgByCode
|
||||
} from '@/api/system/config.js'
|
||||
export default {
|
||||
components: {
|
||||
navigationBarVue,
|
||||
@ -49,28 +56,85 @@
|
||||
return {
|
||||
disabled: false, //不禁用
|
||||
// 默认的数组 不填默认的是空数组
|
||||
selectlist: [{
|
||||
title: '专业'
|
||||
}],
|
||||
selectlist: [],
|
||||
// 默认提示
|
||||
placeholder: '请输入评价',
|
||||
dataObj: {
|
||||
rate: 0,
|
||||
score: 0,
|
||||
toUserId: null,
|
||||
userType: null,
|
||||
isAnonymous: '0'
|
||||
},
|
||||
tips: ["定人快", "审稿快", "提现快"],
|
||||
tips: [],
|
||||
readBookList: [{
|
||||
text: '匿名评价',
|
||||
value: true
|
||||
value: '1'
|
||||
}],
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.dataObj.toUserId = option.toUserId
|
||||
this.dataObj.userType = option.userType
|
||||
this.initData("plfl", "tips")
|
||||
},
|
||||
methods: {
|
||||
|
||||
changeAnonymous(data) {
|
||||
console.log(data, 82);
|
||||
if (data.detail.data && data.detail.data.length > 0) {
|
||||
this.dataObj.isAnonymous = '1'
|
||||
} else {
|
||||
this.dataObj.isAnonymous = '0'
|
||||
}
|
||||
|
||||
},
|
||||
/**
|
||||
* 初始化数据
|
||||
* @param {Object} code
|
||||
* @param {Object} dataObj
|
||||
*/
|
||||
initData(code, dataObj) {
|
||||
let that = this
|
||||
getCatgByCode({
|
||||
code: code
|
||||
}).then(res => {
|
||||
if (res.code == 200) {
|
||||
this[dataObj] = res.data
|
||||
}
|
||||
}).catch((e) => {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
duration: 2000,
|
||||
title: e
|
||||
});
|
||||
})
|
||||
},
|
||||
evaluateAddFun() {
|
||||
this.dataObj.evaluate = ''
|
||||
if (this.selectlist && this.selectlist.length > 0) {
|
||||
this.selectlist.forEach(it => {
|
||||
this.dataObj.evaluate = this.dataObj.evaluate + it.title + ','
|
||||
})
|
||||
this.dataObj.evaluate = this.dataObj.evaluate.slice(0, -1);
|
||||
}
|
||||
|
||||
|
||||
evaluateAdd(this.dataObj).then(res => {
|
||||
uni.showToast({
|
||||
title: '评价成功',
|
||||
icon: 'success',
|
||||
duration: 1000
|
||||
});
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 1000)
|
||||
|
||||
})
|
||||
},
|
||||
// 监听变化的数据
|
||||
change(arr) {
|
||||
this.selectlist = arr
|
||||
},
|
||||
/**提交*/
|
||||
submitForm() {},
|
||||
/**
|
||||
* 去我的建议列表
|
||||
*/
|
||||
@ -79,7 +143,8 @@
|
||||
},
|
||||
chooseObj(item) {
|
||||
this.selectlist.push({
|
||||
title: item
|
||||
title: item.title,
|
||||
code: item.code
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -213,4 +278,4 @@
|
||||
.checklist-box {
|
||||
margin-right: 10rpx !important;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
@ -16,10 +16,7 @@
|
||||
<text v-else-if="0==item.approvalStatus" style="color:#FC1F3E ;">审核中</text>
|
||||
<text v-else>未通过</text>
|
||||
</view> -->
|
||||
<view class="edit-text">
|
||||
<text v-if="!item.ifChecked" style="color:#F97A35;">待定</text>
|
||||
<text v-else style="color:#5986F2 ;" @click="chooseOk(item)">合适</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="card-content">
|
||||
<view class="card-person-info">
|
||||
@ -42,6 +39,8 @@
|
||||
</view>
|
||||
<view v-if="status==0" :class="['edit-dom']" @click="chooseCardVal(item.id)">{{"合适"}}
|
||||
</view>
|
||||
<view v-else :class="['edit-dom']" @click="evaluate(item)">{{"评价"}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -77,6 +76,9 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
evaluate(item) {
|
||||
this.$tab.navigateTo('/pages/mine/set/evaluate?userType=02&toUserId=' + item.userId)
|
||||
},
|
||||
chooseItem() {
|
||||
console.log(this.dataList, "dataList")
|
||||
this.$emit("updateList", this.dataList)
|
||||
@ -91,7 +93,23 @@
|
||||
* 去名片所有者主页
|
||||
*/
|
||||
goIndex(item) {
|
||||
this.$emit("goIndex", item)
|
||||
uni.setClipboardData({
|
||||
data: item.indexUrl,
|
||||
success: function() {
|
||||
uni.showToast({
|
||||
title: '主页链接复制成功,请到应用中访问',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
},
|
||||
fail: function() {
|
||||
uni.showToast({
|
||||
title: '复制失败',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 将名片置为合适或不合适
|
||||
@ -243,4 +261,4 @@
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user