Logo white

wxd / MShopWeApp

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • MShopWeApp
  • components
  • promate_pop
  • promate_pop.js
  • 促销多活动的优化
    705201a2
    yvan.ni authored
    2023-04-12 10:57:39 +0800  
    Browse Code »
promate_pop.js 424 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Component({
  /*** 页面的初始数据***/
  data: {
	  type:0,     //0只显示再商品详情页面   1显示再有选择按钮
	  pro_pop:0,  //是否弹出
  },
  methods: {
	  //-- 初始化弹出框 --
	  set_init(type){
		 if(!type) type=0;

         this.setData({
			 type:type,pro_pop:1
		 })
	  },

	  /*----pop的开关---*/
	  close_pro_pop: async function (event) {
		this.setData({pro_pop: 0});
	  },
  }
})