captain-order-coupon
Advanced tools
Comparing version 0.1.1 to 0.1.2
727
lib/index.js
@@ -46,5 +46,2 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ | ||
/******/ // identity function for calling harmony imports with the correct context | ||
/******/ __webpack_require__.i = function(value) { return value; }; | ||
/******/ | ||
/******/ // define getter function for harmony exports | ||
@@ -77,3 +74,3 @@ /******/ __webpack_require__.d = function(exports, name, getter) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 531); | ||
/******/ return __webpack_require__(__webpack_require__.s = 799); | ||
/******/ }) | ||
@@ -101,3 +98,3 @@ /************************************************************************/ | ||
/***/ 107: | ||
/***/ 109: | ||
/***/ (function(module, exports) { | ||
@@ -189,2 +186,9 @@ | ||
/***/ 139: | ||
/***/ (function(module, exports) { | ||
// removed by extract-text-webpack-plugin | ||
/***/ }), | ||
/***/ 14: | ||
@@ -216,3 +220,3 @@ /***/ (function(module, exports, __webpack_require__) { | ||
/***/ 144: | ||
/***/ 140: | ||
/***/ (function(module, exports) { | ||
@@ -224,3 +228,3 @@ | ||
/***/ 145: | ||
/***/ 148: | ||
/***/ (function(module, exports) { | ||
@@ -232,9 +236,2 @@ | ||
/***/ 146: | ||
/***/ (function(module, exports) { | ||
// removed by extract-text-webpack-plugin | ||
/***/ }), | ||
/***/ 17: | ||
@@ -264,2 +261,15 @@ /***/ (function(module, exports) { | ||
/***/ 19: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var isObject = __webpack_require__(8) | ||
, document = __webpack_require__(0).document | ||
// in old IE typeof document.createElement is 'object' | ||
, is = isObject(document) && isObject(document.createElement); | ||
module.exports = function(it){ | ||
return is ? document.createElement(it) : {}; | ||
}; | ||
/***/ }), | ||
/***/ 2: | ||
@@ -363,20 +373,7 @@ /***/ (function(module, exports) { | ||
/***/ 20: | ||
/***/ 29: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var isObject = __webpack_require__(7) | ||
, document = __webpack_require__(0).document | ||
// in old IE typeof document.createElement is 'object' | ||
, is = isObject(document) && isObject(document.createElement); | ||
module.exports = function(it){ | ||
return is ? document.createElement(it) : {}; | ||
}; | ||
/***/ }), | ||
/***/ 31: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// 7.1.1 ToPrimitive(input [, PreferredType]) | ||
var isObject = __webpack_require__(7); | ||
var isObject = __webpack_require__(8); | ||
// instead of the ES6 spec version, we didn't implement @@toPrimitive case | ||
@@ -395,26 +392,2 @@ // and the second argument - flag - preferred type is a string | ||
/***/ 332: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function injectStyle (ssrContext) { | ||
__webpack_require__(593) | ||
} | ||
var Component = __webpack_require__(2)( | ||
/* script */ | ||
__webpack_require__(451), | ||
/* template */ | ||
__webpack_require__(735), | ||
/* styles */ | ||
injectStyle, | ||
/* scopeId */ | ||
null, | ||
/* moduleIdentifier (server only) */ | ||
null | ||
) | ||
module.exports = Component.exports | ||
/***/ }), | ||
/***/ 35: | ||
@@ -424,3 +397,3 @@ /***/ (function(module, exports, __webpack_require__) { | ||
module.exports = !__webpack_require__(4) && !__webpack_require__(12)(function(){ | ||
return Object.defineProperty(__webpack_require__(20)('div'), 'a', {get: function(){ return 7; }}).a != 7; | ||
return Object.defineProperty(__webpack_require__(19)('div'), 'a', {get: function(){ return 7; }}).a != 7; | ||
}); | ||
@@ -430,12 +403,15 @@ | ||
/***/ 384: | ||
/***/ 354: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function injectStyle (ssrContext) { | ||
__webpack_require__(802) | ||
} | ||
var Component = __webpack_require__(2)( | ||
/* script */ | ||
__webpack_require__(452), | ||
__webpack_require__(803), | ||
/* template */ | ||
__webpack_require__(780), | ||
__webpack_require__(808), | ||
/* styles */ | ||
null, | ||
injectStyle, | ||
/* scopeId */ | ||
@@ -462,75 +438,54 @@ null, | ||
/***/ 450: | ||
/***/ 5: | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_5__; | ||
/***/ }), | ||
/***/ 6: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var isObject = __webpack_require__(8); | ||
module.exports = function(it){ | ||
if(!isObject(it))throw TypeError(it + ' is not an object!'); | ||
return it; | ||
}; | ||
/***/ }), | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
/***/ 63: | ||
/***/ (function(module, exports) { | ||
var _defineProperty2 = __webpack_require__(63); | ||
// removed by extract-text-webpack-plugin | ||
var _defineProperty3 = _interopRequireDefault(_defineProperty2); | ||
/***/ }), | ||
var _vant = __webpack_require__(5); | ||
/***/ 66: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(107); | ||
"use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
exports.__esModule = true; | ||
exports.default = { | ||
name: 'cap-order-coupon-card', | ||
var _defineProperty = __webpack_require__(71); | ||
components: (0, _defineProperty3.default)({}, _vant.Icon.name, _vant.Icon), | ||
var _defineProperty2 = _interopRequireDefault(_defineProperty); | ||
props: { | ||
data: Object, | ||
chosen: Boolean, | ||
disabled: Boolean | ||
}, | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
computed: { | ||
validPeriod: function validPeriod() { | ||
return this.getDate(this.data.start_at) + '-' + this.getDate(this.data.end_at); | ||
}, | ||
faceAmount: function faceAmount() { | ||
return this.data.denominations !== 0 ? '<span>\xA5</span> ' + (this.data.denominations / 100).toFixed(2) : this.data.discount !== 0 ? (this.data.discount / 10).toFixed(1) + '\u6298' : ''; | ||
}, | ||
conditionMessage: function conditionMessage() { | ||
return this.data.origin_condition === 0 ? '无使用门槛' : '\u6EE1' + this.data.origin_condition + '\u5143\u53EF\u7528'; | ||
} | ||
}, | ||
exports.default = function (obj, key, value) { | ||
if (key in obj) { | ||
(0, _defineProperty2.default)(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
methods: { | ||
getDate: function getDate(timeStamp) { | ||
var date = new Date(timeStamp * 1000); | ||
return date.getFullYear() + '.' + this.padZero(date.getMonth() + 1) + '.' + this.padZero(date.getDate()); | ||
}, | ||
padZero: function padZero(num) { | ||
return (num < 0 ? '0' : '') + num; | ||
} | ||
} | ||
return obj; | ||
}; | ||
@@ -540,120 +495,83 @@ | ||
/***/ 451: | ||
/***/ 7: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var anObject = __webpack_require__(6) | ||
, IE8_DOM_DEFINE = __webpack_require__(35) | ||
, toPrimitive = __webpack_require__(29) | ||
, dP = Object.defineProperty; | ||
exports.f = __webpack_require__(4) ? Object.defineProperty : function defineProperty(O, P, Attributes){ | ||
anObject(O); | ||
P = toPrimitive(P, true); | ||
anObject(Attributes); | ||
if(IE8_DOM_DEFINE)try { | ||
return dP(O, P, Attributes); | ||
} catch(e){ /* empty */ } | ||
if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); | ||
if('value' in Attributes)O[P] = Attributes.value; | ||
return O; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
/***/ }), | ||
var _defineProperty2 = __webpack_require__(63); | ||
/***/ 71: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var _defineProperty3 = _interopRequireDefault(_defineProperty2); | ||
module.exports = { "default": __webpack_require__(75), __esModule: true }; | ||
var _components; // | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
/***/ }), | ||
var _vant = __webpack_require__(5); | ||
/***/ 75: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var _card = __webpack_require__(695); | ||
__webpack_require__(76); | ||
var $Object = __webpack_require__(1).Object; | ||
module.exports = function defineProperty(it, key, desc){ | ||
return $Object.defineProperty(it, key, desc); | ||
}; | ||
var _card2 = _interopRequireDefault(_card); | ||
/***/ }), | ||
__webpack_require__(144); | ||
/***/ 76: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(65); | ||
var $export = __webpack_require__(13); | ||
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) | ||
$export($export.S + $export.F * !__webpack_require__(4), 'Object', {defineProperty: __webpack_require__(7).f}); | ||
__webpack_require__(145); | ||
/***/ }), | ||
__webpack_require__(146); | ||
/***/ 799: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
"use strict"; | ||
exports.default = { | ||
name: 'cap-order-coupon-popup', | ||
components: (_components = {}, (0, _defineProperty3.default)(_components, _vant.Button.name, _vant.Button), (0, _defineProperty3.default)(_components, _vant.Cell.name, _vant.Cell), (0, _defineProperty3.default)(_components, _vant.CellGroup.name, _vant.CellGroup), (0, _defineProperty3.default)(_components, _vant.Field.name, _vant.Field), (0, _defineProperty3.default)(_components, _vant.Popup.name, _vant.Popup), (0, _defineProperty3.default)(_components, _card2.default.name, _card2.default), _components), | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.OrderCouponPopup = exports.OrderCoupon = undefined; | ||
model: { | ||
prop: 'show' | ||
}, | ||
var _main = __webpack_require__(800); | ||
props: { | ||
show: Boolean, | ||
chosenCoupon: Number, | ||
couponList: Array, | ||
disabledCouponList: Array, | ||
exchangeButtonText: String, | ||
exchangeButtonDisabled: Boolean, | ||
displayedCouponIndex: Number | ||
}, | ||
var _main2 = _interopRequireDefault(_main); | ||
watch: { | ||
show: function show(val) { | ||
this.showPopup = val; | ||
}, | ||
showPopup: function showPopup(val) { | ||
this.$emit('input', val); | ||
val && this.scrollToShowCoupon(this.chosenCoupon); | ||
}, | ||
displayedCouponIndex: function displayedCouponIndex(val) { | ||
this.scrollToShowCoupon(val); | ||
} | ||
}, | ||
var _popup = __webpack_require__(354); | ||
data: function data() { | ||
return { | ||
exchangeCode: '', | ||
showPopup: this.show | ||
}; | ||
}, | ||
var _popup2 = _interopRequireDefault(_popup); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
methods: { | ||
onClickNotUse: function onClickNotUse() { | ||
this.showPopup = false; | ||
this.$emit('changeCoupon', -1); | ||
}, | ||
onClickCoupon: function onClickCoupon(index) { | ||
this.showPopup = false; | ||
this.$emit('changeCoupon', index); | ||
}, | ||
onClickExchangeButton: function onClickExchangeButton() { | ||
this.$emit('exchangeCoupon', this.exchangeCode); | ||
this.exchangeCode = ''; | ||
}, | ||
exports.default = _main2.default; | ||
exports.OrderCoupon = _main2.default; | ||
exports.OrderCouponPopup = _popup2.default; | ||
// 滚动到特定优惠券的位置 | ||
scrollToShowCoupon: function scrollToShowCoupon(index) { | ||
var _this = this; | ||
/***/ }), | ||
this.$nextTick(function () { | ||
var _$refs = _this.$refs, | ||
card = _$refs.card, | ||
list = _$refs.list; | ||
/***/ 8: | ||
/***/ (function(module, exports) { | ||
if (list && card && card[index]) { | ||
var cardEl = card[index].$el; | ||
if ('scrollTop' in list && 'offsetTop' in cardEl) { | ||
list.scrollTop = cardEl.offsetTop - 100; | ||
} | ||
} | ||
}); | ||
} | ||
} | ||
module.exports = function(it){ | ||
return typeof it === 'object' ? it !== null : typeof it === 'function'; | ||
}; | ||
@@ -663,5 +581,26 @@ | ||
/***/ 452: | ||
/***/ 800: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var Component = __webpack_require__(2)( | ||
/* script */ | ||
__webpack_require__(801), | ||
/* template */ | ||
__webpack_require__(809), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* moduleIdentifier (server only) */ | ||
null | ||
) | ||
module.exports = Component.exports | ||
/***/ }), | ||
/***/ 801: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
@@ -674,3 +613,3 @@ | ||
var _defineProperty2 = __webpack_require__(63); | ||
var _defineProperty2 = __webpack_require__(66); | ||
@@ -707,7 +646,7 @@ var _defineProperty3 = _interopRequireDefault(_defineProperty2); | ||
var _popup = __webpack_require__(332); | ||
var _popup = __webpack_require__(354); | ||
var _popup2 = _interopRequireDefault(_popup); | ||
__webpack_require__(65); | ||
__webpack_require__(63); | ||
@@ -793,10 +732,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/***/ 5: | ||
/***/ 802: | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_5__; | ||
// removed by extract-text-webpack-plugin | ||
/***/ }), | ||
/***/ 531: | ||
/***/ 803: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -810,72 +749,123 @@ | ||
}); | ||
exports.OrderCouponPopup = exports.OrderCoupon = undefined; | ||
var _main = __webpack_require__(384); | ||
var _defineProperty2 = __webpack_require__(66); | ||
var _main2 = _interopRequireDefault(_main); | ||
var _defineProperty3 = _interopRequireDefault(_defineProperty2); | ||
var _popup = __webpack_require__(332); | ||
var _components; // | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
var _popup2 = _interopRequireDefault(_popup); | ||
var _vant = __webpack_require__(5); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _card = __webpack_require__(804); | ||
exports.default = _main2.default; | ||
exports.OrderCoupon = _main2.default; | ||
exports.OrderCouponPopup = _popup2.default; | ||
var _card2 = _interopRequireDefault(_card); | ||
/***/ }), | ||
__webpack_require__(148); | ||
/***/ 593: | ||
/***/ (function(module, exports) { | ||
__webpack_require__(63); | ||
// removed by extract-text-webpack-plugin | ||
__webpack_require__(140); | ||
/***/ }), | ||
__webpack_require__(139); | ||
/***/ 6: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var isObject = __webpack_require__(7); | ||
module.exports = function(it){ | ||
if(!isObject(it))throw TypeError(it + ' is not an object!'); | ||
return it; | ||
}; | ||
exports.default = { | ||
name: 'cap-order-coupon-popup', | ||
/***/ }), | ||
components: (_components = {}, (0, _defineProperty3.default)(_components, _vant.Button.name, _vant.Button), (0, _defineProperty3.default)(_components, _vant.Cell.name, _vant.Cell), (0, _defineProperty3.default)(_components, _vant.CellGroup.name, _vant.CellGroup), (0, _defineProperty3.default)(_components, _vant.Field.name, _vant.Field), (0, _defineProperty3.default)(_components, _vant.Popup.name, _vant.Popup), (0, _defineProperty3.default)(_components, _card2.default.name, _card2.default), _components), | ||
/***/ 615: | ||
/***/ (function(module, exports) { | ||
model: { | ||
prop: 'show' | ||
}, | ||
// removed by extract-text-webpack-plugin | ||
props: { | ||
show: Boolean, | ||
chosenCoupon: Number, | ||
couponList: Array, | ||
disabledCouponList: Array, | ||
exchangeButtonText: String, | ||
exchangeButtonDisabled: Boolean, | ||
displayedCouponIndex: Number | ||
}, | ||
/***/ }), | ||
watch: { | ||
show: function show(val) { | ||
this.showPopup = val; | ||
}, | ||
showPopup: function showPopup(val) { | ||
this.$emit('input', val); | ||
val && this.scrollToShowCoupon(this.chosenCoupon); | ||
}, | ||
displayedCouponIndex: function displayedCouponIndex(val) { | ||
this.scrollToShowCoupon(val); | ||
} | ||
}, | ||
/***/ 63: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
data: function data() { | ||
return { | ||
exchangeCode: '', | ||
showPopup: this.show | ||
}; | ||
}, | ||
"use strict"; | ||
methods: { | ||
onClickNotUse: function onClickNotUse() { | ||
this.showPopup = false; | ||
this.$emit('changeCoupon', -1); | ||
}, | ||
onClickCoupon: function onClickCoupon(index) { | ||
this.showPopup = false; | ||
this.$emit('changeCoupon', index); | ||
}, | ||
onClickExchangeButton: function onClickExchangeButton() { | ||
this.$emit('exchangeCoupon', this.exchangeCode); | ||
this.exchangeCode = ''; | ||
}, | ||
exports.__esModule = true; | ||
// 滚动到特定优惠券的位置 | ||
scrollToShowCoupon: function scrollToShowCoupon(index) { | ||
var _this = this; | ||
var _defineProperty = __webpack_require__(71); | ||
this.$nextTick(function () { | ||
var _$refs = _this.$refs, | ||
card = _$refs.card, | ||
list = _$refs.list; | ||
var _defineProperty2 = _interopRequireDefault(_defineProperty); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = function (obj, key, value) { | ||
if (key in obj) { | ||
(0, _defineProperty2.default)(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
if (list && card && card[index]) { | ||
var cardEl = card[index].$el; | ||
if ('scrollTop' in list && 'offsetTop' in cardEl) { | ||
list.scrollTop = cardEl.offsetTop - 100; | ||
} | ||
} | ||
}); | ||
} | ||
} | ||
return obj; | ||
}; | ||
@@ -885,20 +875,13 @@ | ||
/***/ 65: | ||
/***/ (function(module, exports) { | ||
// removed by extract-text-webpack-plugin | ||
/***/ }), | ||
/***/ 695: | ||
/***/ 804: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function injectStyle (ssrContext) { | ||
__webpack_require__(615) | ||
__webpack_require__(805) | ||
} | ||
var Component = __webpack_require__(2)( | ||
/* script */ | ||
__webpack_require__(450), | ||
__webpack_require__(806), | ||
/* template */ | ||
__webpack_require__(760), | ||
__webpack_require__(807), | ||
/* styles */ | ||
@@ -917,22 +900,123 @@ injectStyle, | ||
/***/ 7: | ||
/***/ 805: | ||
/***/ (function(module, exports) { | ||
module.exports = function(it){ | ||
return typeof it === 'object' ? it !== null : typeof it === 'function'; | ||
}; | ||
// removed by extract-text-webpack-plugin | ||
/***/ }), | ||
/***/ 71: | ||
/***/ 806: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = { "default": __webpack_require__(81), __esModule: true }; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _defineProperty2 = __webpack_require__(66); | ||
var _defineProperty3 = _interopRequireDefault(_defineProperty2); | ||
var _vant = __webpack_require__(5); | ||
__webpack_require__(109); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
exports.default = { | ||
name: 'cap-order-coupon-card', | ||
components: (0, _defineProperty3.default)({}, _vant.Icon.name, _vant.Icon), | ||
props: { | ||
data: Object, | ||
chosen: Boolean, | ||
disabled: Boolean | ||
}, | ||
computed: { | ||
validPeriod: function validPeriod() { | ||
return this.getDate(this.data.start_at) + '-' + this.getDate(this.data.end_at); | ||
}, | ||
faceAmount: function faceAmount() { | ||
return this.data.denominations !== 0 ? '<span>\xA5</span> ' + (this.data.denominations / 100).toFixed(2) : this.data.discount !== 0 ? (this.data.discount / 10).toFixed(1) + '\u6298' : ''; | ||
}, | ||
conditionMessage: function conditionMessage() { | ||
var condition = this.data.origin_condition; | ||
condition = condition % 100 === 0 ? Math.round(condition / 100) : (condition / 100).toFixed(2); | ||
return this.data.origin_condition === 0 ? '无使用门槛' : '\u6EE1' + condition + '\u5143\u53EF\u7528'; | ||
} | ||
}, | ||
methods: { | ||
getDate: function getDate(timeStamp) { | ||
var date = new Date(timeStamp * 1000); | ||
return date.getFullYear() + '.' + this.padZero(date.getMonth() + 1) + '.' + this.padZero(date.getDate()); | ||
}, | ||
padZero: function padZero(num) { | ||
return (num < 0 ? '0' : '') + num; | ||
} | ||
} | ||
}; | ||
/***/ }), | ||
/***/ 735: | ||
/***/ 807: | ||
/***/ (function(module, exports) { | ||
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; | ||
return _c('div', { | ||
class: ['cap-order-coupon-card', { | ||
'cap-order-coupon-card--disabled': _vm.disabled | ||
}] | ||
}, [_c('div', { | ||
staticClass: "cap-order-coupon-card__head" | ||
}, [_c('div', { | ||
staticClass: "cap-order-coupon-card__lines" | ||
}), _c('div', { | ||
staticClass: "cap-order-coupon-card__gradient" | ||
}, [_c('h2', { | ||
domProps: { | ||
"innerHTML": _vm._s(_vm.faceAmount) | ||
} | ||
}), _c('p', [_vm._v(_vm._s(_vm.conditionMessage))])])]), _c('div', { | ||
staticClass: "cap-order-coupon-card__body" | ||
}, [_c('h2', [_vm._v(_vm._s(_vm.data.name))]), _c('span', [_vm._v(_vm._s(_vm.validPeriod))]), (_vm.disabled && _vm.data.reason) ? _c('p', [_vm._v(_vm._s(_vm.data.reason))]) : _vm._e(), (_vm.chosen) ? _c('div', { | ||
staticClass: "cap-order-coupon-card__corner" | ||
}, [_c('van-icon', { | ||
attrs: { | ||
"name": "success" | ||
} | ||
})], 1) : _vm._e()])]) | ||
},staticRenderFns: []} | ||
/***/ }), | ||
/***/ 808: | ||
/***/ (function(module, exports) { | ||
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; | ||
return _c('van-popup', { | ||
@@ -979,2 +1063,3 @@ staticClass: "cap-order-coupon-popup", | ||
return _c('cap-order-coupon-card', { | ||
key: item.id || item.name, | ||
ref: "card", | ||
@@ -994,5 +1079,6 @@ refInFor: true, | ||
return _c('cap-order-coupon-card', { | ||
key: item.id || item.name, | ||
attrs: { | ||
"data": item, | ||
"disabled": "" | ||
"disabled": "", | ||
"data": item | ||
} | ||
@@ -1010,3 +1096,3 @@ }) | ||
/***/ 760: | ||
/***/ 809: | ||
/***/ (function(module, exports) { | ||
@@ -1016,33 +1102,2 @@ | ||
return _c('div', { | ||
class: ['cap-order-coupon-card', { | ||
'cap-order-coupon-card--disabled': _vm.disabled | ||
}] | ||
}, [_c('div', { | ||
staticClass: "cap-order-coupon-card__head" | ||
}, [_c('div', { | ||
staticClass: "cap-order-coupon-card__lines" | ||
}), _c('div', { | ||
staticClass: "cap-order-coupon-card__gradient" | ||
}, [_c('h2', { | ||
domProps: { | ||
"innerHTML": _vm._s(_vm.faceAmount) | ||
} | ||
}), _c('p', [_vm._v(_vm._s(_vm.conditionMessage))])])]), _c('div', { | ||
staticClass: "cap-order-coupon-card__body" | ||
}, [_c('h2', [_vm._v(_vm._s(_vm.data.name))]), _c('span', [_vm._v(_vm._s(_vm.validPeriod))]), (_vm.disabled && _vm.data.reason) ? _c('p', [_vm._v(_vm._s(_vm.data.reason))]) : _vm._e(), (_vm.chosen) ? _c('div', { | ||
staticClass: "cap-order-coupon-card__corner" | ||
}, [_c('van-icon', { | ||
attrs: { | ||
"name": "success" | ||
} | ||
})], 1) : _vm._e()])]) | ||
},staticRenderFns: []} | ||
/***/ }), | ||
/***/ 780: | ||
/***/ (function(module, exports) { | ||
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; | ||
return _c('div', { | ||
staticClass: "cap-order-coupon" | ||
@@ -1088,39 +1143,6 @@ }, [_c('van-cell-group', [_c('van-cell', { | ||
/***/ 8: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var anObject = __webpack_require__(6) | ||
, IE8_DOM_DEFINE = __webpack_require__(35) | ||
, toPrimitive = __webpack_require__(31) | ||
, dP = Object.defineProperty; | ||
exports.f = __webpack_require__(4) ? Object.defineProperty : function defineProperty(O, P, Attributes){ | ||
anObject(O); | ||
P = toPrimitive(P, true); | ||
anObject(Attributes); | ||
if(IE8_DOM_DEFINE)try { | ||
return dP(O, P, Attributes); | ||
} catch(e){ /* empty */ } | ||
if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); | ||
if('value' in Attributes)O[P] = Attributes.value; | ||
return O; | ||
}; | ||
/***/ }), | ||
/***/ 81: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(95); | ||
var $Object = __webpack_require__(1).Object; | ||
module.exports = function defineProperty(it, key, desc){ | ||
return $Object.defineProperty(it, key, desc); | ||
}; | ||
/***/ }), | ||
/***/ 9: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var dP = __webpack_require__(8) | ||
var dP = __webpack_require__(7) | ||
, createDesc = __webpack_require__(17); | ||
@@ -1134,11 +1156,2 @@ module.exports = __webpack_require__(4) ? function(object, key, value){ | ||
/***/ }), | ||
/***/ 95: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var $export = __webpack_require__(13); | ||
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) | ||
$export($export.S + $export.F * !__webpack_require__(4), 'Object', {defineProperty: __webpack_require__(8).f}); | ||
/***/ }) | ||
@@ -1145,0 +1158,0 @@ |
{ | ||
"name": "captain-order-coupon", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "下单页优惠券组件", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
56857
931