Logo white

wxd / MShopWeApp

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • MShopWeApp
  • components
  • share
  • share.js
  • 分享组件修改
    e211cddc
    taiyuan authored
    2021-07-09 11:10:07 +0800  
    Browse Code »
share.js 413 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Component({
  /*** 页面的初始数据***/
  data: {
	  type:0,//  0默认情况发送好友和海报   1只有发送好友
  },
  methods: {
		cancel() {
			this.triggerEvent('cancel',{},{bubbles: true});
		},
		share_img(){
			this.triggerEvent('share_img',{},{bubbles: true});
		},
		set_type(type){
			this.setData({type:type})
		},
		send() {
			this.triggerEvent('send',{},{bubbles: true});
		},
		
  }
})