mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
Merge branch 'stat' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/mobile into stat
This commit is contained in:
@@ -29,10 +29,12 @@
|
||||
|
||||
</view>
|
||||
<u-modal :show="modalShow" @confirm="confirm" @cancel="cancel" :showCancelButton="true" confirmText="删除" ref="uModal" :content='content'></u-modal>
|
||||
<view class="information_bottom" v-show="flag">
|
||||
<view class="del" @click="delfirm()">删除</view>
|
||||
<view class="qux" @click="flag = false">取消</view>
|
||||
</view>
|
||||
<u-popup :show="flag" @close="flag = false" :overlayStyle="{background: 'rgba(245, 245, 245, 0.1)'}" :closeOnClickOverlay="true">
|
||||
<view class="information_bottom">
|
||||
<view class="del" @click="delfirm()">删除</view>
|
||||
<view class="qux" @click="flag = false">取消</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="my-medal">
|
||||
<view class="medal-img">
|
||||
<u-avatar style="margin: 0 auto;" v-if="userInfo.avatar && userInfo.avatar!=''" shape="circle" :size="76" :src="fileBaseUrl + userInfo.avatar" ></u-avatar>
|
||||
<u-avatar style="margin: 0 auto;" v-if="userInfo.avatar && userInfo.avatar!=''" shape="circle" :size="76" :src="userInfo.avatar" ></u-avatar>
|
||||
<view v-else>
|
||||
<view v-if="userInfo.sex == null" class="peo"></view>
|
||||
<view v-else>
|
||||
|
||||
@@ -240,7 +240,10 @@
|
||||
.delAnswer(item.answerid)
|
||||
.then(res => {
|
||||
if (res.status == 200) {
|
||||
$this.$refs.articleToast.show({message:'删除成功',type:'success'});
|
||||
uni.showToast({
|
||||
title:'删除成功'
|
||||
})
|
||||
// $this.$refs.articleToast.show({message:'删除成功',type:'success'});
|
||||
$this.findAnData(true);
|
||||
} else {
|
||||
$this.$refs.articleToast.show({message:'删除失败,请稍后再试',type:'error'});
|
||||
@@ -281,7 +284,10 @@
|
||||
if (res.confirm) {
|
||||
apiQa.del(item.id).then(res=>{
|
||||
if(res.status=200){
|
||||
$this.$refs.articleToast.show({message:'删除成功',type:'success'});
|
||||
uni.showToast({
|
||||
title:'删除成功'
|
||||
})
|
||||
// $this.$refs.articleToast.show({message:'删除成功',type:'success'});
|
||||
let event = {
|
||||
key: "DeleteQuestion",//
|
||||
title: "删除提问",//事件的标题
|
||||
|
||||
@@ -12,10 +12,11 @@
|
||||
<view class="content">
|
||||
<view class="big-box-content">
|
||||
<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 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 class="row">
|
||||
<u-upload uploadIcon="plus" :fileList="fileList" multiple @afterRead="afterRead" @delete="deletePic" name="coverImg" :maxCount="5">
|
||||
@@ -125,6 +126,14 @@
|
||||
</script>
|
||||
|
||||
<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{
|
||||
padding: 20rpx;
|
||||
|
||||
@@ -200,8 +209,8 @@
|
||||
.bar-go{
|
||||
// position: absolute;
|
||||
// right: 18rpx;
|
||||
color: #588AFC;
|
||||
font-size: 30rpx;
|
||||
color: #387DF7;
|
||||
font-size: 32rpx;
|
||||
font-family: Source Han Sans CN;
|
||||
font-weight: bold;
|
||||
line-height: 36rpx;
|
||||
|
||||
Reference in New Issue
Block a user