• This project
    • Loading...
  • Sign in

xt / xcx-book · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • xcx-book
  • miniprogram
  • components
  • coupon
  • coupon.js
  • 短信测试
    81c7ef61
    by Yolanda
    2021-03-30 11:17:33 +0800  
    Browse Files
coupon.js 401 Bytes
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 22 23 24 25 26 27
Component({
	properties:{
		mark:{
			type:String,
			value:'canuse'
		},
		item:Object
	},
	methods:{
		todetail(e){
			if(this.data.mark=='used'){
				wx.showToast({
					title:'该劵不能再使用',
					icon:'none',
					duration:2000
				})
			}else{
				let aid=e.currentTarget.dataset.id;
				console.log(aid)
				wx.navigateTo({
					url:'./coupon_detail?aid='+aid
				})	
			}
			
		}
	}
})