1234567891011121314151617181920212223242526272829 |
- var t = require("../../utils/public");
- Component({
- properties: {
- goodsDetail: Object,
- goodsStatus: {
- type: Number,
- value: null
- },
- cartNum: {
- type: Number,
- value: 0,
- observer: function(t) {
- console.log(t);
- }
- }
- },
- methods: {
- addToCart: function(e) {
- (0, t.collectFormIds)(e.detail.formId), this.triggerEvent("on-addToCart");
- },
- balance: function() {
- this.triggerEvent("on-balance");
- },
- submit: function(e) {
- (0, t.collectFormIds)(e.detail.formId);
- }
- }
- });
|