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
<template>
  <view class="content">
    <textarea class="text-area" placeholder="写下您的意见" v-model="content"></textarea>
    <button class="button button-submit" :loading="loading.submit" @click="submit">提交</button>
  </view>
</template>
 
<script>
  export default {
    data() {
      return {
        loading:{
          submit:false
        },
        content:""
      };
    },
    methods:{
      submit(){
        if(!this.content) {
          this.$toast("请输入内容")
          return
        }
        if(!this.loading.submit){
          this.loading.submit = true
          this.$apis.user.FeedbackSave({content:this.content}).then(res=>{
            this.loading.submit = false
            this.content = ''
            this.$toast('已提交,感谢您的反馈')
          })
        }
      }
    }
  }
</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>