// packageE/others/mycomponent/skin-circle.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    datas:{
      type:null
    },
    types:{
      type:null
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    setvalue:'',
    ageArr: ['10', '30', '50', '70', '90']
  },
  observers: {
    "datas":function(a){
      console.log(a);
      let value = '';
      if(a.value == 1){
        value = '15%';
      }else if(a.value == 2){
        value = '50%';
      }else{
        value = '80%';
      }
      this.setData({
        setvalue : value
      });
      console.log(this.data.setvalue);
    }
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
});
