vue移动端项目 (二级反馈数据出现,取消按钮换成‘返回‘)

效果及目标:

把二级目标如何换成返回

 底部按钮的实现,需要动态绑定,以及绑定事件

在data 里把bottimText 上赋予字符串的文字 为"取消"

在methods 的方法里触发按钮的点击事件

  //底部按钮的点击事件
  cancelFn(){
   if(this.bottomText==='返回'){
      this.show=true   //强制让他回来
      this.actions=firstActions
      this.bottomText='取消'
   }

猜你喜欢

转载自blog.csdn.net/weixin_59519449/article/details/123942710