commit
This commit is contained in:
@@ -110,7 +110,7 @@ layout("/mobile/platform.html"){
|
||||
</div>
|
||||
</div>
|
||||
<div slot="footer" style="margin-top: 10px;">
|
||||
<van-button @click="openEvaluate(item)" plain round size="small">评价商品
|
||||
<van-button v-if="item.evaId" @click="openEvaluate(item)" plain round size="small">评价商品
|
||||
</van-button>
|
||||
<van-button @click="openExpress(item)" plain round size="small"
|
||||
v-if="item.provideMode==3">
|
||||
@@ -424,17 +424,18 @@ layout("/mobile/platform.html"){
|
||||
|
||||
//打开评价
|
||||
async openEvaluate(item) {
|
||||
if (item.isChoose !== 1) {
|
||||
this.$modal.msg("选择后才能评价")
|
||||
return
|
||||
}
|
||||
|
||||
const resp = await this.getUserSelection(item.projectId)
|
||||
this.selectedOptions = resp.data
|
||||
if (this.selectedOptions && this.selectedOptions.length > 0) {
|
||||
await this.finOneWelfareEvaluate(item.id, this.selectedOptions[0].selectOptionId)
|
||||
}
|
||||
this.evaluatePopup = true
|
||||
pjaxReplace('/platform/h5/welfare/evaluate?id=' + item.evaId + '&type=welfare')
|
||||
// if (item.isChoose !== 1) {
|
||||
// this.$modal.msg("选择后才能评价")
|
||||
// return
|
||||
// }
|
||||
//
|
||||
// const resp = await this.getUserSelection(item.projectId)
|
||||
// this.selectedOptions = resp.data
|
||||
// if (this.selectedOptions && this.selectedOptions.length > 0) {
|
||||
// await this.finOneWelfareEvaluate(item.id, this.selectedOptions[0].selectOptionId)
|
||||
// }
|
||||
// this.evaluatePopup = true
|
||||
},
|
||||
async finOneWelfareEvaluate(projectId, optionId) {
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user