UserInfo.js 514 Bytes
// components/UserInfo/UserInfo.js
import { componentsMixin } from '../../mixins/index'
Component({
  behaviors:[componentsMixin],
  /**
   * 组件的属性列表
   */
  properties: {
  },
 
  /**
   * 组件的初始数据
   */
  data: {
    showWechant: false
  },

  /**
   * 组件的方法列表
   */
  methods: {
    addWechat() {
      console.log(112, this.data.showWechant)
      this.setData({
        showWechant: !this.data.showWechant
      })
      console.log(this.data.showWechant)
    }
  }
})