fix
13404089107
8 天以前 2e90f57e7d28d6a949247ef39b487d3e75b56683
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<template>
  <view class="content">
    <textarea class="text-area" placeholder="告诉我们为什么要注销账号" v-model="content"></textarea>
    <button class="button button-submit" :loading="loading.submit" @click="submit">提交</button>
    <u-modal :show="reportLostShow" confirmColor="#FF2729" width="590rpx" :zoom="false" @confirm="reportLostClose">
      <view class="reportLost-text">{{modalContent}}</view>
    </u-modal>
  </view>
</template>
 
<script>
  import {
    mapMutations
  } from 'vuex'
  export default {
    data() {
      return {
        loading:{
          submit:false
        },
        modalContent:"提交成功",
        reportLostShow:false,
        content:""
      };
    },
    methods:{
      ...mapMutations(['loginOut']),
      submit(){
        if(!this.content) {
          this.$toast("请输入内容")
          return
        }
        if(!this.loading.submit){
          this.loading.submit = true
          this.$apis.user.UserLogoutSave({content:this.content}).then(res=>{
            this.reportLostShow = true
          })
        }
      },
      reportLostClose(){
        this.reportLostShow = false
        this.loginOut()
      }
    }
  }
</script>
 
<style lang="scss">
.content{
  padding: 28rpx;
  .text-area{
    padding: 26rpx;
    width: 696rpx;
    height: 385rpx;
    background: #F4F4F4;
    border-radius: 15rpx;
    font-size: 27rpx;
    color: #000000;
    line-height: 38rpx;
    box-sizing: border-box;
  }
  .button-submit{
    margin: 0 auto;
    margin-top: 253rpx;
    width: 635rpx;
    height: 96rpx;
    background: #FF2729;
    border-radius: 58rpx;
    font-weight: 700;
    font-size: 35rpx;
    color: #FFFFFF;
    line-height: 35rpx;
  }
}
</style>