UNPKG

lixin-web

Version:

vue and bootstrap

19 lines (18 loc) 487 B
import Will,{ajax} from '_Will' export default { methods:{ getReward(callback) { if(this.hasReceived) return; ajax('activity/get-reward?code=' + this.config.code, data => { Will.success('领取成功!') this.hasReceived = true callback && callback(data); }); }, getConfig(callback) { ajax('activity/get-config?code=' + this.config.code, data => { callback && callback(data); }); } } }