about-me.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="about-box">
  3. <en-nav title="关于我" :title-color="'#333'" :right-show="true" :right-type="2" >
  4. <template v-slot:right>
  5. <text class="nav-right sys-weight-600 sys-color-white" @click="setNextStep">保存</text>
  6. </template>
  7. </en-nav>
  8. <view class="about-data">
  9. <view>
  10. <textarea class="about-text sys-color-black" @blur="bindTextAreaBlur" :maxlength="100" placeholder="来写个性宣言,完成你的社交第一步" />
  11. </view>
  12. <view class="about-operation">
  13. <view class="operation-item">
  14. <text class="iconfont"> &#xe63d;</text>
  15. <!-- <text class="iconfont"> &#xe63e;</text>-->
  16. <text>更新生成动态</text>
  17. </view>
  18. <view class="operation-item">
  19. <text>0/100</text>
  20. </view>
  21. </view>
  22. <view class="describe">
  23. <view class="describe-title sys-weight-600 sys-color-gray-9">怎样更好的介绍自己呢?</view>
  24. <view class="describe-text sys-weight-400 sys-color-gray-6">不爱主动,但是超期待你和我聊天der~喜欢温柔的朋 友,我可以和你聊音乐,聊电影,也可以和你一-起开黑 打游戏,任何游戏没在怕的!</view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import tools from "@/service/tools";
  31. import EnNav from "@/components/en-utils/en-nav/en-nav";
  32. export default {
  33. components: {EnNav},
  34. data() {
  35. return {
  36. 'weChat':'',
  37. 'isShakeBut':false
  38. }
  39. },
  40. methods: {
  41. bindTextAreaBlur(e){
  42. console.log(e)
  43. },
  44. setNextStep() {
  45. if (this.isOK) {
  46. uni.navigateBack()
  47. } else {
  48. tools.error('请输入微信号')
  49. this.isShakeBut = true
  50. setTimeout(() => {
  51. this.isShakeBut = false
  52. }, 500)
  53. }
  54. },
  55. verifyIsOK() {
  56. this.isOK = this.weChat !== '';
  57. },
  58. }
  59. }
  60. </script>
  61. <style scoped lang="scss">
  62. @import "/static/css/shake.css";
  63. .about-box{
  64. padding: 32rpx;
  65. .about-data{
  66. .about-text{
  67. height: 222rpx;
  68. line-height: 44rpx;
  69. }
  70. .about-text::placeholder{
  71. color: #CCCCCC;
  72. }
  73. .about-operation{
  74. border-bottom: 1px solid #F2F2F2;
  75. padding-bottom: 34rpx;
  76. display: flex;
  77. justify-content: space-between;
  78. .operation-item{
  79. .iconfont{
  80. margin-right: 10rpx;
  81. }
  82. text{
  83. color: #ccc;
  84. font-size: 24rpx;
  85. line-height: 44rpx;
  86. }
  87. }
  88. }
  89. .describe{
  90. margin-top: 28rpx;
  91. border-radius: 20rpx;
  92. background: #F9F9F9;
  93. padding: 32rpx;
  94. .describe-title{
  95. font-size: 28rpx;
  96. line-height: 44rpx;
  97. }
  98. .describe-text{
  99. margin-top: 24rpx;
  100. font-size: 26rpx;
  101. line-height: 44rpx;
  102. }
  103. }
  104. }
  105. }
  106. </style>