no message
This commit is contained in:
86
app.vue
86
app.vue
@@ -363,19 +363,18 @@
|
||||
<div class="respond-select-item" v-html="jointriposte(it)" @click="selectEomji(it, index)"></div>
|
||||
</template>
|
||||
<RespondAdd :riposteoptions="item.riposteoptions" @selectEomji="selectEomji" :index="index"></RespondAdd>
|
||||
|
||||
</div>
|
||||
<RespondAdd v-else :riposteoptions="item.riposteoptions" :index="index" @selectEomji="selectEomji"></RespondAdd>
|
||||
|
||||
<div class="respond-list-btn" v-if="item.ripostecount?.user > 0" @click="openRespondDetails(index)">
|
||||
共
|
||||
<span class="respond-list-btn-amount">{{ item.ripostecount?.user }}</span>
|
||||
人回应
|
||||
<img class="respond-list-btn-icon" src="@/img/arrowsRight.svg" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="respond-list-btn" v-if="item.ripostecount?.user > 0" @click="openRespondDetails(index)">
|
||||
共
|
||||
<span class="respond-list-btn-amount">{{ item.ripostecount?.user }}</span>
|
||||
人回应
|
||||
<img class="respond-list-btn-icon" src="@/img/arrowsRight.svg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- <template v-if="item['commentState']"> -->
|
||||
@@ -2932,7 +2931,6 @@ export default {
|
||||
|
||||
target["tab"] = key
|
||||
|
||||
console.log(answerList.value[index])
|
||||
if (key == "coin" && !answerList.value[index].config) {
|
||||
getCoinConfig(index)
|
||||
}
|
||||
@@ -3004,7 +3002,7 @@ export default {
|
||||
goLogin()
|
||||
return
|
||||
}
|
||||
console.log("riposteSubmitState", riposteSubmitState);
|
||||
|
||||
if (riposteSubmitState) return
|
||||
riposteSubmitState = true
|
||||
|
||||
@@ -3018,7 +3016,6 @@ export default {
|
||||
riposteSubmitState = false
|
||||
return
|
||||
}
|
||||
|
||||
riposteSubmit(code, target.token)
|
||||
.then(res => {
|
||||
const data = res.data
|
||||
@@ -3073,7 +3070,7 @@ export default {
|
||||
handleMsg("error", res["message"] || "报错了,请重试!!!")
|
||||
reject(res)
|
||||
} else {
|
||||
handleMsg("success", res["message"] || "回应成功")
|
||||
// handleMsg("success", res["message"] || "回应成功")
|
||||
resolve(res)
|
||||
}
|
||||
})
|
||||
@@ -3158,7 +3155,7 @@ export default {
|
||||
coinAmount.value = amount
|
||||
}
|
||||
|
||||
let postCoinSbmitState = false
|
||||
let postCoinSbmitState = false
|
||||
|
||||
// 提交投币
|
||||
const postCoinSbmit = () => {
|
||||
@@ -3168,40 +3165,42 @@ export default {
|
||||
}
|
||||
if (postCoinSbmitState) return
|
||||
postCoinSbmitState = true
|
||||
|
||||
|
||||
let targetInsert = insert.value
|
||||
$ajax("/api/operate/coinsubmit", {
|
||||
token: targetInsert.token,
|
||||
coinnum: coinAmount.value,
|
||||
message: coinMessage.value,
|
||||
}).then(res => {
|
||||
if (res.code != 200) {
|
||||
handleMsg("error", res?.message || "投币失败")
|
||||
return
|
||||
}
|
||||
|
||||
const data = res.data
|
||||
|
||||
answerList.value.forEach(element => {
|
||||
element.mybalance = data.mybalance
|
||||
})
|
||||
|
||||
let target = answerList.value[targetInsert.index || 0] || {}
|
||||
target.coinnum += data.coinnum
|
||||
|
||||
// 重新获取 投币列表
|
||||
getCoinranking(targetInsert.token).then(data => {
|
||||
target["ranklist"] = data
|
||||
})
|
||||
|
||||
// 如果 带有 message 那个 评论数量加等于一
|
||||
if (coinMessage.value) target["commentnum"] += 1
|
||||
|
||||
closeInsert()
|
||||
handleMsg("success", res?.message || "操作成功")
|
||||
}).finally(()=>{
|
||||
postCoinSbmitState = false
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code != 200) {
|
||||
handleMsg("error", res?.message || "投币失败")
|
||||
return
|
||||
}
|
||||
|
||||
const data = res.data
|
||||
|
||||
answerList.value.forEach(element => {
|
||||
element.mybalance = data.mybalance
|
||||
})
|
||||
|
||||
let target = answerList.value[targetInsert.index || 0] || {}
|
||||
target.coinnum += data.coinnum
|
||||
|
||||
// 重新获取 投币列表
|
||||
getCoinranking(targetInsert.token).then(data => {
|
||||
target["ranklist"] = data
|
||||
})
|
||||
|
||||
// 如果 带有 message 那个 评论数量加等于一
|
||||
if (coinMessage.value) target["commentnum"] += 1
|
||||
|
||||
closeInsert()
|
||||
handleMsg("success", res?.message || "操作成功")
|
||||
})
|
||||
.finally(() => {
|
||||
postCoinSbmitState = false
|
||||
})
|
||||
}
|
||||
|
||||
// 获取全部的投币 排行榜
|
||||
@@ -3218,6 +3217,9 @@ export default {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// const selectEomji = key => {}
|
||||
|
||||
return { handleLookOnly, zeroreply, replaceNumberObj, closeMyModel, myModelList, myModelState, listHeight, bottomTpsStyle, TAHomePage, sendMessage, avatarState, openUserInfo, isNeedLogin, handleInputYou, openListIAnswer, isListEmptyState, cutYourAnswerAnonymous, handleYourAnswer, yourAnswer, handleLogo, inTheEndState, setItemUrl, seo, originUrl, handleMenuState, reasonList, checkList, alertShow, alertText, selectRadio, alertSubmit, cutType, dialogSrc, answerPage, handleDetailsScroll, replaceState, copyText, boxClass, questionPlaceholderState, yourAnswerPlaceholderState, handleInput, handlePaste, itemStyle, listStyle, listBoxStyle, myType, type, pitchIndex, cut, list, keyword, keywordText, getList, total, typeList, typePitch, getDetails, detailsInfo, detailsIsanswered, detailsIscollection, detailsIsmyself, detailShare, detailLoading, answerList, operateLike, operateCollect, IAnswerState, IAnswerEditState, IAnswerInfo, amendIAnswer, openIAnswer, closeIAnswer, submitAnswer, openCommentState, submitAnswerComments, operateAnswerCommentsLike, openAnswerCommentsChild, closeAnswerCommentsChild, alsoCommentsData, handleAllComment, myCollectionList, myCollectionCount, myQuestionsList, myQuestionsCount, myAnswerList, myAnswerCount, cutAnswerPopupState, handleDate, handleCollectionScroll, handleAnswersScroll, handleQuestionsScroll, cancelCollection, getMyCollection, questionsSetp, questionsObj, cutAnonymous, cutQuestionsSetp, cutQuestionsPopupState, questionsTypeList, postingIssue, choosingTheme, handleMy, changeAnonymous, changeAnonymousQuestions, pageHeaderHeight, pageListHeight, questionsTransmitState, questionsTransmitMaskState, closeAllTransmitState, closeTransmitState, handleAnswerTransmitList, closeDetailMode, tabListFixeState, handleListScroll, historicalSearchState, historicalSearchList, searchFocus, searchBlur, searchClick, handleClickHistoricalItem, handleClickClear, isSearchMode, questionsInit, myCount, msg, myOpenDetails, handleAnswerText, getCurrentUrl, loading, showComments, jointriposte, randomEmojis, selectEomji, openRespondDetails, respondPopState, respondDetail, respondPopObj, closePopList, coinAmount, openInsert, insertcoinsState, insert, coinMessage, coinSelectAmountDispose, closeInsert, postCoinSbmit, cutOperate, insertcoinsNoState }
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user