components/guanggao/index.js

(完整代码) 967B

// components/formid_btn/formid_btn.js
let publicApi = require('../../PublicMethod/tagging/activityList');
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tempData: {
      type: Object,
      value: {}
    },
      step:{
        type:String
      }
    
  },
  /**
   * 组件的初始数据
   */
  data: {},
  ready(){
    var that=this
    console.log(that.properties.step);
    publicApi.guanggao('banner','wx',that.properties.step).then(res => {
      console.log('广告调用')
      console.log(that.properties.step);
      that.setData({
        guangago:res.data.msg
      })
    })
  },
  /**
   * 组件的方法列表
   */
  methods: {
    _formSubmit: function (e){
      // console.warn(e)
      // console.log(this.properties.tempData);
      e.currentTarget.dataset = this.properties.tempData
      this.triggerEvent('next', e)
    }
  },
  _hackBubble: function (e) {

  },
})

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。