This commit is contained in:
lmj
2022-11-16 19:27:25 +08:00
parent 23979a3c7a
commit 015432c53c
2 changed files with 21 additions and 6 deletions

View File

@@ -240,7 +240,10 @@
.delAnswer(item.answerid) .delAnswer(item.answerid)
.then(res => { .then(res => {
if (res.status == 200) { if (res.status == 200) {
$this.$refs.articleToast.show({message:'删除成功',type:'success'}); uni.showToast({
title:'删除成功'
})
// $this.$refs.articleToast.show({message:'删除成功',type:'success'});
$this.findAnData(true); $this.findAnData(true);
} else { } else {
$this.$refs.articleToast.show({message:'删除失败,请稍后再试',type:'error'}); $this.$refs.articleToast.show({message:'删除失败,请稍后再试',type:'error'});
@@ -281,7 +284,10 @@
if (res.confirm) { if (res.confirm) {
apiQa.del(item.id).then(res=>{ apiQa.del(item.id).then(res=>{
if(res.status=200){ if(res.status=200){
$this.$refs.articleToast.show({message:'删除成功',type:'success'}); uni.showToast({
title:'删除成功'
})
// $this.$refs.articleToast.show({message:'删除成功',type:'success'});
let event = { let event = {
key: "DeleteQuestion",// key: "DeleteQuestion",//
title: "删除提问",//事件的标题 title: "删除提问",//事件的标题

View File

@@ -12,10 +12,11 @@
<view class="content"> <view class="content">
<view class="big-box-content"> <view class="big-box-content">
<view class="row row-lin"> <view class="row row-lin">
<u--input placeholder="请输入标题" placeholder-style="font-size:42upx;color:#c1c1c1;font-weight: normal;" maxlength="30" class="row-input" border="surround" v-model="qa.title" @change="change"></u--input> <u--input placeholder="请输入标题" placeholder-style="font-size:42upx;color:#c1c1c1;display:inline-block;white-space: pre-wrap; word-wrap: break-word;height: auto;
" maxlength="30" class="row-input" border="surround" v-model="qa.title" @change="change"></u--input>
</view> </view>
<view class="row "> <view class="row ">
<u--textarea class="row-input row-text" placeholder-style="font-size:42upx;color:#c1c1c1;font-weight: normal;" :height="300" count maxlength="500" v-model="qa.content" placeholder="请输入正文"></u--textarea> <u--textarea class="row-input row-text" placeholder-style="font-size:42upx;color:#666;font-weight: normal;" :height="300" count maxlength="500" v-model="qa.content" placeholder="请输入正文"></u--textarea>
</view> </view>
<view class="row"> <view class="row">
<u-upload uploadIcon="plus" :fileList="fileList" multiple @afterRead="afterRead" @delete="deletePic" name="coverImg" :maxCount="5"> <u-upload uploadIcon="plus" :fileList="fileList" multiple @afterRead="afterRead" @delete="deletePic" name="coverImg" :maxCount="5">
@@ -125,6 +126,14 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .uni-textarea-textarea{
color: #666 !important;
}
::v-deep .uni-input-input{
font-size: 36upx !important;
font-weight: 500 !important;
color: #333333 !important;
}
.sub-box{ .sub-box{
padding: 20rpx; padding: 20rpx;
@@ -200,8 +209,8 @@
.bar-go{ .bar-go{
// position: absolute; // position: absolute;
// right: 18rpx; // right: 18rpx;
color: #588AFC; color: #387DF7;
font-size: 30rpx; font-size: 32rpx;
font-family: Source Han Sans CN; font-family: Source Han Sans CN;
font-weight: bold; font-weight: bold;
line-height: 36rpx; line-height: 36rpx;