cms-chenhj-ui 2.0.18 → 2.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms-chenhj-ui.common.js +395 -392
- package/cms-chenhj-ui.common.js.map +1 -1
- package/cms-chenhj-ui.css +1 -1
- package/cms-chenhj-ui.umd.js +672 -669
- package/cms-chenhj-ui.umd.js.map +1 -1
- package/cms-chenhj-ui.umd.min.js +2 -2
- package/cms-chenhj-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
package/cms-chenhj-ui.umd.js
CHANGED
|
@@ -20648,8 +20648,8 @@ var map = {
|
|
|
20648
20648
|
"./cms-servePlan-text/index.js": 2520,
|
|
20649
20649
|
"./cms-stored-value-card": 9320,
|
|
20650
20650
|
"./cms-stored-value-card/": 9320,
|
|
20651
|
-
"./cms-stored-value-card/View":
|
|
20652
|
-
"./cms-stored-value-card/View.vue":
|
|
20651
|
+
"./cms-stored-value-card/View": 4579,
|
|
20652
|
+
"./cms-stored-value-card/View.vue": 4579,
|
|
20653
20653
|
"./cms-stored-value-card/index": 9320,
|
|
20654
20654
|
"./cms-stored-value-card/index.js": 9320,
|
|
20655
20655
|
"./cms-termsAndConditions": 8806,
|
|
@@ -21130,7 +21130,72 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
21130
21130
|
|
|
21131
21131
|
/***/ }),
|
|
21132
21132
|
|
|
21133
|
-
/***/
|
|
21133
|
+
/***/ 1683:
|
|
21134
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21135
|
+
|
|
21136
|
+
var map = {
|
|
21137
|
+
"./india.js": 3402
|
|
21138
|
+
};
|
|
21139
|
+
|
|
21140
|
+
|
|
21141
|
+
function webpackContext(req) {
|
|
21142
|
+
var id = webpackContextResolve(req);
|
|
21143
|
+
return __webpack_require__(id);
|
|
21144
|
+
}
|
|
21145
|
+
function webpackContextResolve(req) {
|
|
21146
|
+
if(!__webpack_require__.o(map, req)) {
|
|
21147
|
+
var e = new Error("Cannot find module '" + req + "'");
|
|
21148
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
21149
|
+
throw e;
|
|
21150
|
+
}
|
|
21151
|
+
return map[req];
|
|
21152
|
+
}
|
|
21153
|
+
webpackContext.keys = function webpackContextKeys() {
|
|
21154
|
+
return Object.keys(map);
|
|
21155
|
+
};
|
|
21156
|
+
webpackContext.resolve = webpackContextResolve;
|
|
21157
|
+
module.exports = webpackContext;
|
|
21158
|
+
webpackContext.id = 1683;
|
|
21159
|
+
|
|
21160
|
+
/***/ }),
|
|
21161
|
+
|
|
21162
|
+
/***/ 1698:
|
|
21163
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
21164
|
+
|
|
21165
|
+
"use strict";
|
|
21166
|
+
|
|
21167
|
+
var $ = __webpack_require__(6518);
|
|
21168
|
+
var union = __webpack_require__(4204);
|
|
21169
|
+
var setMethodAcceptSetLike = __webpack_require__(4916);
|
|
21170
|
+
|
|
21171
|
+
// `Set.prototype.union` method
|
|
21172
|
+
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
21173
|
+
$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
|
|
21174
|
+
union: union
|
|
21175
|
+
});
|
|
21176
|
+
|
|
21177
|
+
|
|
21178
|
+
/***/ }),
|
|
21179
|
+
|
|
21180
|
+
/***/ 1701:
|
|
21181
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
21182
|
+
|
|
21183
|
+
"use strict";
|
|
21184
|
+
|
|
21185
|
+
var $ = __webpack_require__(6518);
|
|
21186
|
+
var map = __webpack_require__(713);
|
|
21187
|
+
var IS_PURE = __webpack_require__(6395);
|
|
21188
|
+
|
|
21189
|
+
// `Iterator.prototype.map` method
|
|
21190
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.map
|
|
21191
|
+
$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
|
21192
|
+
map: map
|
|
21193
|
+
});
|
|
21194
|
+
|
|
21195
|
+
|
|
21196
|
+
/***/ }),
|
|
21197
|
+
|
|
21198
|
+
/***/ 1716:
|
|
21134
21199
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21135
21200
|
|
|
21136
21201
|
"use strict";
|
|
@@ -21142,7 +21207,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
21142
21207
|
"default": function() { return /* binding */ View; }
|
|
21143
21208
|
});
|
|
21144
21209
|
|
|
21145
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-
|
|
21210
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineFive/View.vue?vue&type=template&id=6857d858&scoped=true
|
|
21146
21211
|
var render = function render() {
|
|
21147
21212
|
var _vm = this,
|
|
21148
21213
|
_c = _vm._self._c;
|
|
@@ -21159,499 +21224,47 @@ var render = function render() {
|
|
|
21159
21224
|
}, 'BaseComp', _vm.$attrs, false), [_c('section', {
|
|
21160
21225
|
staticClass: "cmhk-home_main"
|
|
21161
21226
|
}, [_c('div', {
|
|
21162
|
-
staticClass: "
|
|
21163
|
-
},
|
|
21164
|
-
ref: "cardList",
|
|
21165
|
-
staticClass: "cardList"
|
|
21166
|
-
}, [_vm.configList.length === 0 ? [_c('div', {
|
|
21167
|
-
staticClass: "card-box"
|
|
21168
|
-
}, [_c('div', {
|
|
21169
|
-
staticClass: "card"
|
|
21170
|
-
}, [_c('div', {
|
|
21171
|
-
staticClass: "img-box"
|
|
21172
|
-
}, [_c('div', {
|
|
21173
|
-
staticClass: "card-img",
|
|
21174
|
-
class: {
|
|
21175
|
-
'is-cms': _vm.$EventBus
|
|
21176
|
-
}
|
|
21177
|
-
}, [_c('img', {
|
|
21178
|
-
staticStyle: {
|
|
21179
|
-
"height": "200px"
|
|
21180
|
-
},
|
|
21181
|
-
attrs: {
|
|
21182
|
-
"src": _vm.placeholderImg,
|
|
21183
|
-
"alt": ""
|
|
21184
|
-
}
|
|
21185
|
-
})])]), _c('div', {
|
|
21186
|
-
staticClass: "content-box"
|
|
21187
|
-
}, [_c('div', {
|
|
21188
|
-
staticClass: "card-name"
|
|
21189
|
-
}, [_vm._v(_vm._s(_vm.langText.productName))]), _c('div', {
|
|
21190
|
-
staticClass: "text-box"
|
|
21191
|
-
}, [_c('div', {
|
|
21192
|
-
staticClass: "card-refPrice"
|
|
21193
|
-
}, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$XXXX ")]), _c('div', {
|
|
21194
|
-
staticClass: "card-pice-text"
|
|
21195
|
-
}, [_vm._v(_vm._s(_vm.langText.onlinePrice))])]), _c('div', {
|
|
21196
|
-
staticClass: "card-pice"
|
|
21197
|
-
}, [_c('span', [_vm._v("HK$")]), _vm._v("XXXX")]), _c('div', {
|
|
21198
|
-
staticClass: "card-btn"
|
|
21199
|
-
}, [_vm._v(_vm._s(_vm.langText.buyNow))])])])])] : _vm._e(), _vm._l(_vm.viewList, function (item, index) {
|
|
21227
|
+
staticClass: "flex-wapper layout5to2 sper-32 mobile-sper8"
|
|
21228
|
+
}, _vm._l(_vm.configList, function (item, index) {
|
|
21200
21229
|
return _c('div', {
|
|
21201
|
-
key: `${index}
|
|
21202
|
-
staticClass: "
|
|
21203
|
-
}, [_c('div', {
|
|
21204
|
-
staticClass: "card"
|
|
21205
|
-
}, [_c('div', {
|
|
21206
|
-
staticClass: "tag-box-left"
|
|
21207
|
-
}, [_vm._l(item.malltCommodityLeft, function (ele, i) {
|
|
21208
|
-
return [_c('img', {
|
|
21209
|
-
key: i,
|
|
21210
|
-
attrs: {
|
|
21211
|
-
"src": _vm.compBaseUrl + ele.pictureUrl,
|
|
21212
|
-
"alt": ""
|
|
21213
|
-
}
|
|
21214
|
-
})];
|
|
21215
|
-
})], 2), _c('div', {
|
|
21216
|
-
staticClass: "tag-box-right"
|
|
21217
|
-
}, [_vm._l(item.malltCommodityRight, function (ele, i) {
|
|
21218
|
-
return [_c('img', {
|
|
21219
|
-
key: i,
|
|
21220
|
-
attrs: {
|
|
21221
|
-
"src": _vm.compBaseUrl + ele.pictureUrl,
|
|
21222
|
-
"alt": ""
|
|
21223
|
-
}
|
|
21224
|
-
})];
|
|
21225
|
-
})], 2), _c('div', {
|
|
21226
|
-
staticClass: "img-box"
|
|
21227
|
-
}, [_vm.isNotActive(item) ? _c('div', {
|
|
21228
|
-
staticClass: "mask"
|
|
21229
|
-
}, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? _vm.langText.comingSoon : _vm.langText.expired) + " ")]) : _vm._e(), _c('div', {
|
|
21230
|
-
staticClass: "card-img",
|
|
21231
|
-
class: {
|
|
21232
|
-
'is-cms': _vm.$EventBus
|
|
21233
|
-
}
|
|
21234
|
-
}, [_c('img', {
|
|
21235
|
-
attrs: {
|
|
21236
|
-
"src": _vm.compBaseUrl + item.maxPicId,
|
|
21237
|
-
"alt": ""
|
|
21238
|
-
}
|
|
21239
|
-
})])]), _c('div', {
|
|
21240
|
-
staticClass: "content-box"
|
|
21241
|
-
}, [_vm.isNotActive(item) ? _c('div', {
|
|
21242
|
-
staticClass: "content-mask"
|
|
21243
|
-
}) : _vm._e(), _c('div', {
|
|
21244
|
-
staticClass: "card-name"
|
|
21245
|
-
}, [_vm._v(_vm._s(item.commodityName))]), _c('div', {
|
|
21246
|
-
staticClass: "text-box"
|
|
21247
|
-
}, [item.price !== item.refPrice ? _c('div', {
|
|
21248
|
-
staticClass: "card-refPrice"
|
|
21249
|
-
}, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$" + _vm._s(_vm.convertCentsToYuan(item.refPrice)) + " ")]) : _c('div', {
|
|
21250
|
-
staticClass: "card-refPrice"
|
|
21251
|
-
}), _c('div', {
|
|
21252
|
-
staticClass: "card-pice-text"
|
|
21253
|
-
}, [_vm._v(" " + _vm._s(item.price !== item.refPrice ? _vm.langText.onlinePrice : _vm.langText.Price) + " ")])]), _c('div', {
|
|
21254
|
-
staticClass: "card-pice spc-font"
|
|
21255
|
-
}, [_c('span', [_vm._v("HK$")]), _vm._v(_vm._s(_vm.convertCentsToYuan(item.price)) + " ")]), _vm.isActive(item) ? _c('div', {
|
|
21256
|
-
staticClass: "card-btn",
|
|
21230
|
+
key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
|
|
21231
|
+
staticClass: "flex-wapper_item",
|
|
21257
21232
|
on: {
|
|
21258
21233
|
"click": function ($event) {
|
|
21259
|
-
return _vm.
|
|
21234
|
+
return _vm.decodeJumpUrl(item.jumpUrl);
|
|
21260
21235
|
}
|
|
21261
21236
|
}
|
|
21262
|
-
}, [
|
|
21237
|
+
}, [_c('div', {
|
|
21238
|
+
staticClass: "card-input"
|
|
21239
|
+
}, [_c('div', {
|
|
21240
|
+
staticClass: "card-input_wapper"
|
|
21241
|
+
}, [_c('img', {
|
|
21242
|
+
staticClass: "card-input_image mobile-show",
|
|
21263
21243
|
attrs: {
|
|
21264
|
-
"src":
|
|
21244
|
+
"src": item.uploadImageH5,
|
|
21245
|
+
"alt": item.imageH5ATL
|
|
21265
21246
|
}
|
|
21266
|
-
})
|
|
21267
|
-
staticClass: "card-
|
|
21268
|
-
|
|
21269
|
-
|
|
21270
|
-
|
|
21271
|
-
staticClass: "seeMore",
|
|
21272
|
-
on: {
|
|
21273
|
-
"click": function ($event) {
|
|
21274
|
-
_vm.seeMore = true;
|
|
21247
|
+
}), _c('img', {
|
|
21248
|
+
staticClass: "card-input_image pc-show",
|
|
21249
|
+
attrs: {
|
|
21250
|
+
"src": item.uploadImagePC,
|
|
21251
|
+
"alt": item.imagePcATL
|
|
21275
21252
|
}
|
|
21276
|
-
}
|
|
21277
|
-
|
|
21278
|
-
|
|
21279
|
-
|
|
21280
|
-
|
|
21281
|
-
|
|
21282
|
-
}), _c('img', {
|
|
21283
|
-
staticClass: "hover",
|
|
21284
|
-
attrs: {
|
|
21285
|
-
"src": _vm.arrowHoverImg
|
|
21286
|
-
}
|
|
21287
|
-
}), _c('img', {
|
|
21288
|
-
staticClass: "active",
|
|
21289
|
-
attrs: {
|
|
21290
|
-
"src": _vm.arrowActiveImg
|
|
21291
|
-
}
|
|
21292
|
-
})]) : _vm._e()])])]);
|
|
21253
|
+
}), item !== null && item !== void 0 && item.input1 ? _c('p', {
|
|
21254
|
+
staticClass: "title"
|
|
21255
|
+
}, [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.input1))]) : _vm._e(), item !== null && item !== void 0 && item.input2 ? _c('p', {
|
|
21256
|
+
staticClass: "sub-title"
|
|
21257
|
+
}, [_vm._v(" " + _vm._s(item === null || item === void 0 ? void 0 : item.input2) + " ")]) : _vm._e()])])]);
|
|
21258
|
+
}), 0)])]);
|
|
21293
21259
|
};
|
|
21294
21260
|
var staticRenderFns = [];
|
|
21295
21261
|
|
|
21296
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
21297
|
-
var es_iterator_constructor = __webpack_require__(8111);
|
|
21298
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
|
|
21299
|
-
var es_iterator_filter = __webpack_require__(2489);
|
|
21300
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
21301
|
-
var es_iterator_for_each = __webpack_require__(7588);
|
|
21302
21262
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
21303
21263
|
var baseComp = __webpack_require__(7976);
|
|
21304
|
-
|
|
21305
|
-
var api = __webpack_require__(2842);
|
|
21306
|
-
// EXTERNAL MODULE: ./node_modules/qs/lib/index.js
|
|
21307
|
-
var lib = __webpack_require__(7087);
|
|
21308
|
-
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
21309
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=script&lang=js
|
|
21310
|
-
|
|
21311
|
-
|
|
21312
|
-
|
|
21313
|
-
|
|
21314
|
-
|
|
21315
|
-
|
|
21316
|
-
|
|
21317
|
-
|
|
21264
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineFive/View.vue?vue&type=script&lang=js
|
|
21318
21265
|
|
|
21319
21266
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
21320
|
-
name: "cms-
|
|
21321
|
-
components: {
|
|
21322
|
-
BaseComp: baseComp["default"]
|
|
21323
|
-
},
|
|
21324
|
-
props: {
|
|
21325
|
-
data: {
|
|
21326
|
-
type: Object,
|
|
21327
|
-
default: () => {
|
|
21328
|
-
return {};
|
|
21329
|
-
}
|
|
21330
|
-
},
|
|
21331
|
-
nowCompId: {
|
|
21332
|
-
type: [String, Number],
|
|
21333
|
-
default: ""
|
|
21334
|
-
},
|
|
21335
|
-
isOpcacity: {
|
|
21336
|
-
type: Boolean,
|
|
21337
|
-
default: true
|
|
21338
|
-
},
|
|
21339
|
-
lang: {
|
|
21340
|
-
type: String,
|
|
21341
|
-
default: "zh-HK"
|
|
21342
|
-
}
|
|
21343
|
-
},
|
|
21344
|
-
data() {
|
|
21345
|
-
return {
|
|
21346
|
-
langConfig: {
|
|
21347
|
-
"zh-HK": {
|
|
21348
|
-
productName: "產品名稱",
|
|
21349
|
-
Price: "建議零售價",
|
|
21350
|
-
onlinePrice: "網上優惠價",
|
|
21351
|
-
buyNow: "立即選購",
|
|
21352
|
-
comingSoon: "即將推出",
|
|
21353
|
-
expired: "優惠已過期",
|
|
21354
|
-
more: "查看更多",
|
|
21355
|
-
launch: "NNN 上線",
|
|
21356
|
-
Offer: "優惠即將推出"
|
|
21357
|
-
},
|
|
21358
|
-
"zh-CN": {
|
|
21359
|
-
productName: "产品名称",
|
|
21360
|
-
Price: "建议零售价",
|
|
21361
|
-
onlinePrice: "网上优惠价",
|
|
21362
|
-
buyNow: "立即选购",
|
|
21363
|
-
comingSoon: "即将推出",
|
|
21364
|
-
expired: "优惠已过期",
|
|
21365
|
-
more: "查看更多",
|
|
21366
|
-
launch: "NNN 上线",
|
|
21367
|
-
Offer: "优惠即将推出"
|
|
21368
|
-
},
|
|
21369
|
-
"en-US": {
|
|
21370
|
-
productName: "Product Name",
|
|
21371
|
-
Price: "RRP",
|
|
21372
|
-
onlinePrice: "Online Price",
|
|
21373
|
-
buyNow: "Buy Now",
|
|
21374
|
-
comingSoon: "Coming Soon",
|
|
21375
|
-
expired: "Expired",
|
|
21376
|
-
more: "See more",
|
|
21377
|
-
launch: "Launch at NNN",
|
|
21378
|
-
Offer: "Offer Coming"
|
|
21379
|
-
}
|
|
21380
|
-
},
|
|
21381
|
-
configList: [],
|
|
21382
|
-
seeMore: false,
|
|
21383
|
-
nowTs: Date.now(),
|
|
21384
|
-
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
|
|
21385
|
-
// images
|
|
21386
|
-
placeholderImg: __webpack_require__(5335),
|
|
21387
|
-
arrowRightImg: __webpack_require__(4860),
|
|
21388
|
-
arrowDownImg: __webpack_require__(1861),
|
|
21389
|
-
arrowHoverImg: __webpack_require__(4116),
|
|
21390
|
-
arrowActiveImg: __webpack_require__(9670),
|
|
21391
|
-
shopList: []
|
|
21392
|
-
};
|
|
21393
|
-
},
|
|
21394
|
-
computed: {
|
|
21395
|
-
langText() {
|
|
21396
|
-
return this.config && this.langConfig && this.langConfig[this.lang] || this.langConfig["zh-HK"];
|
|
21397
|
-
},
|
|
21398
|
-
viewList() {
|
|
21399
|
-
if (this.seeMore) return this.shopList;
|
|
21400
|
-
return this.shopList.slice(0, 9);
|
|
21401
|
-
}
|
|
21402
|
-
},
|
|
21403
|
-
mounted() {
|
|
21404
|
-
if (!this.$EventBus) {
|
|
21405
|
-
if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
|
|
21406
|
-
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
21407
|
-
} else {
|
|
21408
|
-
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
21409
|
-
}
|
|
21410
|
-
}
|
|
21411
|
-
},
|
|
21412
|
-
beforeDestroy() {},
|
|
21413
|
-
methods: {
|
|
21414
|
-
getConfigData(configData) {
|
|
21415
|
-
this.configList = configData.configList;
|
|
21416
|
-
console.log("getConfigData", this.configList);
|
|
21417
|
-
this.getValue();
|
|
21418
|
-
},
|
|
21419
|
-
async getValue() {
|
|
21420
|
-
await this.getCommodityDetails();
|
|
21421
|
-
},
|
|
21422
|
-
// 拉取已选商品详情
|
|
21423
|
-
async getCommodityDetails() {
|
|
21424
|
-
// try {
|
|
21425
|
-
let req = {
|
|
21426
|
-
busInfo: JSON.stringify({
|
|
21427
|
-
commodityIds: [...this.configList],
|
|
21428
|
-
commodityTypes: ["604", "605"]
|
|
21429
|
-
})
|
|
21430
|
-
};
|
|
21431
|
-
req = lib_default().stringify(req);
|
|
21432
|
-
const json = await (0,api/* getCommodityDetails */.yX)(req, {
|
|
21433
|
-
lang_sc: "zh-CN",
|
|
21434
|
-
lang_tc: "zh-HK",
|
|
21435
|
-
lang_en: "en-US"
|
|
21436
|
-
}[this.lang]);
|
|
21437
|
-
let dataResult = json && json.busiResp && json.busiResp.busiDataResp;
|
|
21438
|
-
if (Array.isArray(dataResult)) {
|
|
21439
|
-
dataResult.forEach(item => {
|
|
21440
|
-
if (Array.isArray(item.malltCommodityTags)) {
|
|
21441
|
-
const left = item.malltCommodityTags.filter(ele => ele.tagType == 5001).sort((a, b) => a.sort - b.sort);
|
|
21442
|
-
const right = item.malltCommodityTags.filter(ele => ele.tagType == 5002).sort((a, b) => a.sort - b.sort);
|
|
21443
|
-
item.malltCommodityLeft = left.slice(0, 2);
|
|
21444
|
-
item.malltCommodityRight = right.slice(0, 4);
|
|
21445
|
-
} else {
|
|
21446
|
-
item.malltCommodityLeft = [];
|
|
21447
|
-
item.malltCommodityRight = [];
|
|
21448
|
-
}
|
|
21449
|
-
});
|
|
21450
|
-
// 按选择顺序排序
|
|
21451
|
-
this.shopList = dataResult.sort((a, b) => {
|
|
21452
|
-
return this.configList.indexOf(a.commodityId) - this.configList.indexOf(b.commodityId);
|
|
21453
|
-
});
|
|
21454
|
-
} else {
|
|
21455
|
-
this.shopList = [];
|
|
21456
|
-
}
|
|
21457
|
-
// } catch (e) {
|
|
21458
|
-
// this.shopList = [];
|
|
21459
|
-
// }
|
|
21460
|
-
},
|
|
21461
|
-
isActive(item) {
|
|
21462
|
-
const now = Date.now();
|
|
21463
|
-
return new Date(item.upTime).getTime() < now && new Date(item.downTime).getTime() > now;
|
|
21464
|
-
},
|
|
21465
|
-
isNotActive(item) {
|
|
21466
|
-
const now = Date.now();
|
|
21467
|
-
return new Date(item.upTime).getTime() > now || new Date(item.downTime).getTime() < now;
|
|
21468
|
-
},
|
|
21469
|
-
convertCentsToYuan(cents) {
|
|
21470
|
-
const yuan = (Number(cents || 0) / 100).toFixed(2);
|
|
21471
|
-
return parseFloat(yuan);
|
|
21472
|
-
},
|
|
21473
|
-
goDetail(item) {
|
|
21474
|
-
const base = this.$EventBus ? this.compBaseUrl : window.location.origin;
|
|
21475
|
-
if (item.commodityType === "604") {
|
|
21476
|
-
if ((item.commodityName || "").includes("MySIM")) {
|
|
21477
|
-
window.parent.location.href = `${base}/${this.lang}/home/prepaid-card/mysim/detail?commodityId=${item.commodityId}&mysim=${item.commodityName}`;
|
|
21478
|
-
} else {
|
|
21479
|
-
window.parent.location.href = `${base}/${this.lang}/home/prepaid-card/detail?commodityId=${item.commodityId}&commodityType=604&commodityName=${item.commodityName}`;
|
|
21480
|
-
}
|
|
21481
|
-
} else if (item.commodityType === "605") {
|
|
21482
|
-
window.parent.location.href = `${base}/${this.lang}/home/prepaid/refill-voucher/detail?commodityId=${item.commodityId}&commodityType=605&commodityName=${item.commodityName}`;
|
|
21483
|
-
}
|
|
21484
|
-
}
|
|
21485
|
-
}
|
|
21486
|
-
});
|
|
21487
|
-
;// ./package/cms-stored-value-card/View.vue?vue&type=script&lang=js
|
|
21488
|
-
/* harmony default export */ var cms_stored_value_card_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
21489
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=style&index=0&id=5dba4ef6&prod&lang=scss&scoped=true
|
|
21490
|
-
// extracted by mini-css-extract-plugin
|
|
21491
|
-
|
|
21492
|
-
;// ./package/cms-stored-value-card/View.vue?vue&type=style&index=0&id=5dba4ef6&prod&lang=scss&scoped=true
|
|
21493
|
-
|
|
21494
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
21495
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
21496
|
-
;// ./package/cms-stored-value-card/View.vue
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
|
|
21500
|
-
;
|
|
21501
|
-
|
|
21502
|
-
|
|
21503
|
-
/* normalize component */
|
|
21504
|
-
|
|
21505
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
21506
|
-
cms_stored_value_card_Viewvue_type_script_lang_js,
|
|
21507
|
-
render,
|
|
21508
|
-
staticRenderFns,
|
|
21509
|
-
false,
|
|
21510
|
-
null,
|
|
21511
|
-
"5dba4ef6",
|
|
21512
|
-
null
|
|
21513
|
-
|
|
21514
|
-
)
|
|
21515
|
-
|
|
21516
|
-
/* harmony default export */ var View = (component.exports);
|
|
21517
|
-
|
|
21518
|
-
/***/ }),
|
|
21519
|
-
|
|
21520
|
-
/***/ 1683:
|
|
21521
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21522
|
-
|
|
21523
|
-
var map = {
|
|
21524
|
-
"./india.js": 3402
|
|
21525
|
-
};
|
|
21526
|
-
|
|
21527
|
-
|
|
21528
|
-
function webpackContext(req) {
|
|
21529
|
-
var id = webpackContextResolve(req);
|
|
21530
|
-
return __webpack_require__(id);
|
|
21531
|
-
}
|
|
21532
|
-
function webpackContextResolve(req) {
|
|
21533
|
-
if(!__webpack_require__.o(map, req)) {
|
|
21534
|
-
var e = new Error("Cannot find module '" + req + "'");
|
|
21535
|
-
e.code = 'MODULE_NOT_FOUND';
|
|
21536
|
-
throw e;
|
|
21537
|
-
}
|
|
21538
|
-
return map[req];
|
|
21539
|
-
}
|
|
21540
|
-
webpackContext.keys = function webpackContextKeys() {
|
|
21541
|
-
return Object.keys(map);
|
|
21542
|
-
};
|
|
21543
|
-
webpackContext.resolve = webpackContextResolve;
|
|
21544
|
-
module.exports = webpackContext;
|
|
21545
|
-
webpackContext.id = 1683;
|
|
21546
|
-
|
|
21547
|
-
/***/ }),
|
|
21548
|
-
|
|
21549
|
-
/***/ 1698:
|
|
21550
|
-
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
21551
|
-
|
|
21552
|
-
"use strict";
|
|
21553
|
-
|
|
21554
|
-
var $ = __webpack_require__(6518);
|
|
21555
|
-
var union = __webpack_require__(4204);
|
|
21556
|
-
var setMethodAcceptSetLike = __webpack_require__(4916);
|
|
21557
|
-
|
|
21558
|
-
// `Set.prototype.union` method
|
|
21559
|
-
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
21560
|
-
$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
|
|
21561
|
-
union: union
|
|
21562
|
-
});
|
|
21563
|
-
|
|
21564
|
-
|
|
21565
|
-
/***/ }),
|
|
21566
|
-
|
|
21567
|
-
/***/ 1701:
|
|
21568
|
-
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
21569
|
-
|
|
21570
|
-
"use strict";
|
|
21571
|
-
|
|
21572
|
-
var $ = __webpack_require__(6518);
|
|
21573
|
-
var map = __webpack_require__(713);
|
|
21574
|
-
var IS_PURE = __webpack_require__(6395);
|
|
21575
|
-
|
|
21576
|
-
// `Iterator.prototype.map` method
|
|
21577
|
-
// https://tc39.es/ecma262/#sec-iterator.prototype.map
|
|
21578
|
-
$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
|
21579
|
-
map: map
|
|
21580
|
-
});
|
|
21581
|
-
|
|
21582
|
-
|
|
21583
|
-
/***/ }),
|
|
21584
|
-
|
|
21585
|
-
/***/ 1716:
|
|
21586
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21587
|
-
|
|
21588
|
-
"use strict";
|
|
21589
|
-
// ESM COMPAT FLAG
|
|
21590
|
-
__webpack_require__.r(__webpack_exports__);
|
|
21591
|
-
|
|
21592
|
-
// EXPORTS
|
|
21593
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
21594
|
-
"default": function() { return /* binding */ View; }
|
|
21595
|
-
});
|
|
21596
|
-
|
|
21597
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineFive/View.vue?vue&type=template&id=6857d858&scoped=true
|
|
21598
|
-
var render = function render() {
|
|
21599
|
-
var _vm = this,
|
|
21600
|
-
_c = _vm._self._c;
|
|
21601
|
-
return _c('BaseComp', _vm._b({
|
|
21602
|
-
attrs: {
|
|
21603
|
-
"data": _vm.data,
|
|
21604
|
-
"nowCompId": _vm.nowCompId,
|
|
21605
|
-
"isOpcacity": _vm.isOpcacity,
|
|
21606
|
-
"lang": _vm.lang
|
|
21607
|
-
},
|
|
21608
|
-
on: {
|
|
21609
|
-
"getConfigData": _vm.getConfigData
|
|
21610
|
-
}
|
|
21611
|
-
}, 'BaseComp', _vm.$attrs, false), [_c('section', {
|
|
21612
|
-
staticClass: "cmhk-home_main"
|
|
21613
|
-
}, [_c('div', {
|
|
21614
|
-
staticClass: "flex-wapper layout5to2 sper-32 mobile-sper8"
|
|
21615
|
-
}, _vm._l(_vm.configList, function (item, index) {
|
|
21616
|
-
return _c('div', {
|
|
21617
|
-
key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
|
|
21618
|
-
staticClass: "flex-wapper_item",
|
|
21619
|
-
on: {
|
|
21620
|
-
"click": function ($event) {
|
|
21621
|
-
return _vm.decodeJumpUrl(item.jumpUrl);
|
|
21622
|
-
}
|
|
21623
|
-
}
|
|
21624
|
-
}, [_c('div', {
|
|
21625
|
-
staticClass: "card-input"
|
|
21626
|
-
}, [_c('div', {
|
|
21627
|
-
staticClass: "card-input_wapper"
|
|
21628
|
-
}, [_c('img', {
|
|
21629
|
-
staticClass: "card-input_image mobile-show",
|
|
21630
|
-
attrs: {
|
|
21631
|
-
"src": item.uploadImageH5,
|
|
21632
|
-
"alt": item.imageH5ATL
|
|
21633
|
-
}
|
|
21634
|
-
}), _c('img', {
|
|
21635
|
-
staticClass: "card-input_image pc-show",
|
|
21636
|
-
attrs: {
|
|
21637
|
-
"src": item.uploadImagePC,
|
|
21638
|
-
"alt": item.imagePcATL
|
|
21639
|
-
}
|
|
21640
|
-
}), item !== null && item !== void 0 && item.input1 ? _c('p', {
|
|
21641
|
-
staticClass: "title"
|
|
21642
|
-
}, [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.input1))]) : _vm._e(), item !== null && item !== void 0 && item.input2 ? _c('p', {
|
|
21643
|
-
staticClass: "sub-title"
|
|
21644
|
-
}, [_vm._v(" " + _vm._s(item === null || item === void 0 ? void 0 : item.input2) + " ")]) : _vm._e()])])]);
|
|
21645
|
-
}), 0)])]);
|
|
21646
|
-
};
|
|
21647
|
-
var staticRenderFns = [];
|
|
21648
|
-
|
|
21649
|
-
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
21650
|
-
var baseComp = __webpack_require__(7976);
|
|
21651
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-lineFive/View.vue?vue&type=script&lang=js
|
|
21652
|
-
|
|
21653
|
-
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
21654
|
-
name: "cms-lineFive",
|
|
21267
|
+
name: "cms-lineFive",
|
|
21655
21268
|
components: {
|
|
21656
21269
|
BaseComp: baseComp["default"]
|
|
21657
21270
|
},
|
|
@@ -36131,46 +35744,312 @@ exports.A = {
|
|
|
36131
35744
|
description: 'No Data'
|
|
36132
35745
|
}
|
|
36133
35746
|
}
|
|
36134
|
-
};
|
|
35747
|
+
};
|
|
35748
|
+
|
|
35749
|
+
/***/ }),
|
|
35750
|
+
|
|
35751
|
+
/***/ 4527:
|
|
35752
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
35753
|
+
|
|
35754
|
+
"use strict";
|
|
35755
|
+
|
|
35756
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
35757
|
+
var isArray = __webpack_require__(4376);
|
|
35758
|
+
|
|
35759
|
+
var $TypeError = TypeError;
|
|
35760
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
35761
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
35762
|
+
|
|
35763
|
+
// Safari < 13 does not throw an error in this case
|
|
35764
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
35765
|
+
// makes no sense without proper strict mode support
|
|
35766
|
+
if (this !== undefined) return true;
|
|
35767
|
+
try {
|
|
35768
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
35769
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
35770
|
+
} catch (error) {
|
|
35771
|
+
return error instanceof TypeError;
|
|
35772
|
+
}
|
|
35773
|
+
}();
|
|
35774
|
+
|
|
35775
|
+
module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
35776
|
+
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
35777
|
+
throw new $TypeError('Cannot set read only .length');
|
|
35778
|
+
} return O.length = length;
|
|
35779
|
+
} : function (O, length) {
|
|
35780
|
+
return O.length = length;
|
|
35781
|
+
};
|
|
35782
|
+
|
|
35783
|
+
|
|
35784
|
+
/***/ }),
|
|
35785
|
+
|
|
35786
|
+
/***/ 4539:
|
|
35787
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
35788
|
+
|
|
35789
|
+
"use strict";
|
|
35790
|
+
// ESM COMPAT FLAG
|
|
35791
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35792
|
+
|
|
35793
|
+
// EXPORTS
|
|
35794
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
35795
|
+
"default": function() { return /* binding */ View; }
|
|
35796
|
+
});
|
|
35797
|
+
|
|
35798
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-activityCountdown/View.vue?vue&type=template&id=20b00190&scoped=true
|
|
35799
|
+
var render = function render() {
|
|
35800
|
+
var _vm = this,
|
|
35801
|
+
_c = _vm._self._c;
|
|
35802
|
+
return _c('BaseComp', _vm._b({
|
|
35803
|
+
attrs: {
|
|
35804
|
+
"data": _vm.data,
|
|
35805
|
+
"nowCompId": _vm.nowCompId,
|
|
35806
|
+
"isOpcacity": _vm.isOpcacity,
|
|
35807
|
+
"lang": _vm.lang
|
|
35808
|
+
},
|
|
35809
|
+
on: {
|
|
35810
|
+
"getConfigData": _vm.getConfigData
|
|
35811
|
+
}
|
|
35812
|
+
}, 'BaseComp', _vm.$attrs, false), [_c('div', {
|
|
35813
|
+
staticClass: "family"
|
|
35814
|
+
}, [_c('section', {
|
|
35815
|
+
staticClass: "cmhk-home_main"
|
|
35816
|
+
}, [_c('div', {
|
|
35817
|
+
class: ['broadband-activity', 'pdr-0']
|
|
35818
|
+
}, [_c('div', {
|
|
35819
|
+
staticClass: "activity-main"
|
|
35820
|
+
}, [_vm.configData.input1 ? _c('div', {
|
|
35821
|
+
staticClass: "pro-discounts_tag"
|
|
35822
|
+
}, [_c('div', {
|
|
35823
|
+
staticClass: "pro-discounts_tag_inner"
|
|
35824
|
+
}, [_vm._v(" " + _vm._s(_vm.configData.input1) + " ")])]) : _vm._e(), _c('a', {
|
|
35825
|
+
attrs: {
|
|
35826
|
+
"href": _vm.configData.jumpUrl,
|
|
35827
|
+
"target": "_self"
|
|
35828
|
+
}
|
|
35829
|
+
}, [_c('img', {
|
|
35830
|
+
staticClass: "activity-img",
|
|
35831
|
+
attrs: {
|
|
35832
|
+
"src": _vm.configData.uploadImagePC,
|
|
35833
|
+
"alt": _vm.configData.imagePcATL
|
|
35834
|
+
}
|
|
35835
|
+
})]), _c('div', [_c('h4', {
|
|
35836
|
+
staticClass: "activity-title"
|
|
35837
|
+
}, [_vm._v(" " + _vm._s(_vm.configData.input2) + " ")]), _c('p', {
|
|
35838
|
+
staticClass: "activity-time layout-pc"
|
|
35839
|
+
}, [_vm._v(" " + _vm._s(_vm.configData.input3) + " ")]), _c('p', {
|
|
35840
|
+
staticClass: "act-mobile_des",
|
|
35841
|
+
domProps: {
|
|
35842
|
+
"innerHTML": _vm._s(_vm.escape2Html(_vm.configData.input4))
|
|
35843
|
+
}
|
|
35844
|
+
}), _c('div', {
|
|
35845
|
+
staticClass: "activity-time2"
|
|
35846
|
+
}, [_c('div', [_c('h6', [_vm._v(_vm._s(_vm.$t("cmhkHeader.days")))]), _c('p', [_vm._v(_vm._s(_vm.days))])]), _c('div', [_c('h6', [_vm._v(_vm._s(_vm.$t("cmhkHeader.hours")))]), _c('p', [_vm._v(_vm._s(_vm.hours))])]), _c('div', [_c('h6', [_vm._v(_vm._s(_vm.$t("cmhkHeader.minutes")))]), _c('p', [_vm._v(_vm._s(_vm.minutes))])]), _c('div', [_c('h6', [_vm._v(_vm._s(_vm.$t("cmhkHeader.seconds")))]), _c('p', [_vm._v(_vm._s(_vm.seconds))])]), _c('span', [_vm._v(_vm._s(_vm.$t("cmhkHeader.theEnd")))])]), _c('p', {
|
|
35847
|
+
staticClass: "activity-des",
|
|
35848
|
+
domProps: {
|
|
35849
|
+
"innerHTML": _vm._s(_vm.escape2Html(_vm.configData.input4))
|
|
35850
|
+
}
|
|
35851
|
+
})])])])])])]);
|
|
35852
|
+
};
|
|
35853
|
+
var staticRenderFns = [];
|
|
35854
|
+
|
|
35855
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
35856
|
+
var baseComp = __webpack_require__(7976);
|
|
35857
|
+
// EXTERNAL MODULE: ./src/utils/request.js + 2 modules
|
|
35858
|
+
var utils_request = __webpack_require__(9688);
|
|
35859
|
+
;// ./src/api/servePlan.js
|
|
35860
|
+
|
|
35861
|
+
|
|
35862
|
+
//查询栏目
|
|
35863
|
+
function getShopCategory(data) {
|
|
35864
|
+
return request({
|
|
35865
|
+
url: '/api/ecosp-emall/itemRest/shopCategory/query',
|
|
35866
|
+
method: 'post',
|
|
35867
|
+
data
|
|
35868
|
+
});
|
|
35869
|
+
}
|
|
35870
|
+
// 商品栏目查询
|
|
35871
|
+
function columnQuery(params) {
|
|
35872
|
+
return request({
|
|
35873
|
+
method: 'post',
|
|
35874
|
+
url: '/ecosp-console/columnCategory/query',
|
|
35875
|
+
data: params
|
|
35876
|
+
});
|
|
35877
|
+
}
|
|
35878
|
+
function queryCountdown(params) {
|
|
35879
|
+
return (0,utils_request/* default */.A)({
|
|
35880
|
+
method: 'post',
|
|
35881
|
+
url: '/api/omni-channel-service-portal/rest/channelAdvert/queryCountdown',
|
|
35882
|
+
data: params
|
|
35883
|
+
});
|
|
35884
|
+
}
|
|
35885
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-activityCountdown/View.vue?vue&type=script&lang=js
|
|
35886
|
+
|
|
35887
|
+
|
|
35888
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
35889
|
+
name: "cms-activityCountdown",
|
|
35890
|
+
components: {
|
|
35891
|
+
BaseComp: baseComp["default"]
|
|
35892
|
+
},
|
|
35893
|
+
props: {
|
|
35894
|
+
data: {
|
|
35895
|
+
type: Object,
|
|
35896
|
+
default: () => {
|
|
35897
|
+
return {};
|
|
35898
|
+
}
|
|
35899
|
+
},
|
|
35900
|
+
nowCompId: {
|
|
35901
|
+
type: [String, Number],
|
|
35902
|
+
default: ""
|
|
35903
|
+
},
|
|
35904
|
+
isOpcacity: {
|
|
35905
|
+
type: Boolean,
|
|
35906
|
+
default: true
|
|
35907
|
+
},
|
|
35908
|
+
lang: {
|
|
35909
|
+
type: String,
|
|
35910
|
+
default: "zh-HK"
|
|
35911
|
+
}
|
|
35912
|
+
},
|
|
35913
|
+
data() {
|
|
35914
|
+
return {
|
|
35915
|
+
configData: {},
|
|
35916
|
+
messFold: false,
|
|
35917
|
+
remainingTime: 0,
|
|
35918
|
+
// 剩余时间
|
|
35919
|
+
days: null,
|
|
35920
|
+
hours: null,
|
|
35921
|
+
minutes: null,
|
|
35922
|
+
seconds: null,
|
|
35923
|
+
intervalId: null
|
|
35924
|
+
};
|
|
35925
|
+
},
|
|
35926
|
+
mounted() {
|
|
35927
|
+
this.$nextTick(() => {
|
|
35928
|
+
this.configData.dateTime && this.queryCountdown(this.configData.dateTime);
|
|
35929
|
+
});
|
|
35930
|
+
},
|
|
35931
|
+
watch: {},
|
|
35932
|
+
methods: {
|
|
35933
|
+
getConfigData(configData) {
|
|
35934
|
+
this.configData = configData;
|
|
35935
|
+
},
|
|
35936
|
+
async queryCountdown(dateTime) {
|
|
35937
|
+
let res = await queryCountdown({
|
|
35938
|
+
endTime: dateTime
|
|
35939
|
+
});
|
|
35940
|
+
if (+res.code === 0) {
|
|
35941
|
+
let remainingTime = res.data || 0;
|
|
35942
|
+
if (remainingTime > 0) {
|
|
35943
|
+
// 接口返回的是毫秒值,因此要换算成秒
|
|
35944
|
+
this.remainingTime = remainingTime / 1000;
|
|
35945
|
+
// 更新倒计时并每秒钟刷新一次
|
|
35946
|
+
this.countdown();
|
|
35947
|
+
this.intervalId = window.setInterval(this.countdown, 1000);
|
|
35948
|
+
} else {
|
|
35949
|
+
this.remainingTime = 0;
|
|
35950
|
+
this.days = 0;
|
|
35951
|
+
this.hours = 0;
|
|
35952
|
+
this.minutes = 0;
|
|
35953
|
+
this.seconds = 0;
|
|
35954
|
+
}
|
|
35955
|
+
}
|
|
35956
|
+
},
|
|
35957
|
+
countdown() {
|
|
35958
|
+
this.remainingTime--;
|
|
35959
|
+
// 如果剩余时间小于等于0,倒计时结束
|
|
35960
|
+
if (this.remainingTime <= 0) {
|
|
35961
|
+
window.clearInterval(this.intervalId);
|
|
35962
|
+
console.log("倒计时结束");
|
|
35963
|
+
return;
|
|
35964
|
+
}
|
|
35965
|
+
this.days = Math.floor(this.remainingTime / (24 * 60 * 60));
|
|
35966
|
+
this.hours = Math.floor(this.remainingTime % (24 * 60 * 60) / (60 * 60));
|
|
35967
|
+
this.minutes = Math.floor(this.remainingTime % (60 * 60) / 60);
|
|
35968
|
+
this.seconds = Math.floor(this.remainingTime % 60);
|
|
35969
|
+
},
|
|
35970
|
+
foldMessText() {
|
|
35971
|
+
this.messFold = !this.messFold;
|
|
35972
|
+
},
|
|
35973
|
+
decodeJumpUrl(url) {
|
|
35974
|
+
if (!url) return;
|
|
35975
|
+
top.location.href = url;
|
|
35976
|
+
},
|
|
35977
|
+
escape2Html(str) {
|
|
35978
|
+
if (str) {
|
|
35979
|
+
var arrEntities = {
|
|
35980
|
+
lt: "<",
|
|
35981
|
+
gt: ">",
|
|
35982
|
+
nbsp: " ",
|
|
35983
|
+
amp: "&",
|
|
35984
|
+
quot: '"'
|
|
35985
|
+
};
|
|
35986
|
+
return str.replace(/&(lt|gt|nbsp|amp|quot);/gi, function (all, t) {
|
|
35987
|
+
return arrEntities[t];
|
|
35988
|
+
});
|
|
35989
|
+
} else {
|
|
35990
|
+
return "";
|
|
35991
|
+
}
|
|
35992
|
+
}
|
|
35993
|
+
}
|
|
35994
|
+
});
|
|
35995
|
+
;// ./package/cms-activityCountdown/View.vue?vue&type=script&lang=js
|
|
35996
|
+
/* harmony default export */ var cms_activityCountdown_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
35997
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-activityCountdown/View.vue?vue&type=style&index=0&id=20b00190&prod&lang=scss&scoped=true
|
|
35998
|
+
// extracted by mini-css-extract-plugin
|
|
36135
35999
|
|
|
36136
|
-
|
|
36000
|
+
;// ./package/cms-activityCountdown/View.vue?vue&type=style&index=0&id=20b00190&prod&lang=scss&scoped=true
|
|
36137
36001
|
|
|
36138
|
-
|
|
36139
|
-
|
|
36002
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
36003
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
36004
|
+
;// ./package/cms-activityCountdown/View.vue
|
|
36140
36005
|
|
|
36141
|
-
"use strict";
|
|
36142
36006
|
|
|
36143
|
-
var DESCRIPTORS = __webpack_require__(3724);
|
|
36144
|
-
var isArray = __webpack_require__(4376);
|
|
36145
36007
|
|
|
36146
|
-
|
|
36147
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
36148
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
36008
|
+
;
|
|
36149
36009
|
|
|
36150
|
-
// Safari < 13 does not throw an error in this case
|
|
36151
|
-
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
36152
|
-
// makes no sense without proper strict mode support
|
|
36153
|
-
if (this !== undefined) return true;
|
|
36154
|
-
try {
|
|
36155
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
36156
|
-
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
36157
|
-
} catch (error) {
|
|
36158
|
-
return error instanceof TypeError;
|
|
36159
|
-
}
|
|
36160
|
-
}();
|
|
36161
36010
|
|
|
36162
|
-
|
|
36163
|
-
|
|
36164
|
-
|
|
36165
|
-
|
|
36166
|
-
|
|
36167
|
-
|
|
36011
|
+
/* normalize component */
|
|
36012
|
+
|
|
36013
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
36014
|
+
cms_activityCountdown_Viewvue_type_script_lang_js,
|
|
36015
|
+
render,
|
|
36016
|
+
staticRenderFns,
|
|
36017
|
+
false,
|
|
36018
|
+
null,
|
|
36019
|
+
"20b00190",
|
|
36020
|
+
null
|
|
36021
|
+
|
|
36022
|
+
)
|
|
36023
|
+
|
|
36024
|
+
/* harmony default export */ var View = (component.exports);
|
|
36025
|
+
|
|
36026
|
+
/***/ }),
|
|
36027
|
+
|
|
36028
|
+
/***/ 4576:
|
|
36029
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
36030
|
+
|
|
36031
|
+
"use strict";
|
|
36032
|
+
|
|
36033
|
+
var check = function (it) {
|
|
36034
|
+
return it && it.Math === Math && it;
|
|
36168
36035
|
};
|
|
36169
36036
|
|
|
36037
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
36038
|
+
module.exports =
|
|
36039
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
36040
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
36041
|
+
check(typeof window == 'object' && window) ||
|
|
36042
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
36043
|
+
check(typeof self == 'object' && self) ||
|
|
36044
|
+
check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
|
|
36045
|
+
check(typeof this == 'object' && this) ||
|
|
36046
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
36047
|
+
(function () { return this; })() || Function('return this')();
|
|
36048
|
+
|
|
36170
36049
|
|
|
36171
36050
|
/***/ }),
|
|
36172
36051
|
|
|
36173
|
-
/***/
|
|
36052
|
+
/***/ 4579:
|
|
36174
36053
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
36175
36054
|
|
|
36176
36055
|
"use strict";
|
|
@@ -36182,7 +36061,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36182
36061
|
"default": function() { return /* binding */ View; }
|
|
36183
36062
|
});
|
|
36184
36063
|
|
|
36185
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-
|
|
36064
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=template&id=ae178d02&scoped=true
|
|
36186
36065
|
var render = function render() {
|
|
36187
36066
|
var _vm = this,
|
|
36188
36067
|
_c = _vm._self._c;
|
|
@@ -36196,84 +36075,168 @@ var render = function render() {
|
|
|
36196
36075
|
on: {
|
|
36197
36076
|
"getConfigData": _vm.getConfigData
|
|
36198
36077
|
}
|
|
36199
|
-
}, 'BaseComp', _vm.$attrs, false), [_c('
|
|
36200
|
-
staticClass: "family"
|
|
36201
|
-
}, [_c('section', {
|
|
36078
|
+
}, 'BaseComp', _vm.$attrs, false), [_c('section', {
|
|
36202
36079
|
staticClass: "cmhk-home_main"
|
|
36203
36080
|
}, [_c('div', {
|
|
36204
|
-
|
|
36081
|
+
staticClass: "wrap"
|
|
36205
36082
|
}, [_c('div', {
|
|
36206
|
-
|
|
36207
|
-
|
|
36208
|
-
|
|
36083
|
+
ref: "cardList",
|
|
36084
|
+
staticClass: "cardList"
|
|
36085
|
+
}, [_vm.configList.length === 0 ? [_c('div', {
|
|
36086
|
+
staticClass: "card-box"
|
|
36209
36087
|
}, [_c('div', {
|
|
36210
|
-
staticClass: "
|
|
36211
|
-
}, [
|
|
36212
|
-
|
|
36213
|
-
|
|
36214
|
-
|
|
36088
|
+
staticClass: "card"
|
|
36089
|
+
}, [_c('div', {
|
|
36090
|
+
staticClass: "img-box"
|
|
36091
|
+
}, [_c('div', {
|
|
36092
|
+
staticClass: "card-img",
|
|
36093
|
+
class: {
|
|
36094
|
+
'is-cms': _vm.$EventBus
|
|
36215
36095
|
}
|
|
36216
36096
|
}, [_c('img', {
|
|
36217
|
-
|
|
36097
|
+
staticStyle: {
|
|
36098
|
+
"height": "200px"
|
|
36099
|
+
},
|
|
36218
36100
|
attrs: {
|
|
36219
|
-
"src": _vm.
|
|
36220
|
-
"alt":
|
|
36101
|
+
"src": _vm.placeholderImg,
|
|
36102
|
+
"alt": ""
|
|
36221
36103
|
}
|
|
36222
|
-
})]), _c('div',
|
|
36223
|
-
staticClass: "
|
|
36224
|
-
}, [
|
|
36225
|
-
staticClass: "
|
|
36226
|
-
}, [_vm._v(
|
|
36227
|
-
staticClass: "
|
|
36228
|
-
|
|
36229
|
-
|
|
36104
|
+
})])]), _c('div', {
|
|
36105
|
+
staticClass: "content-box"
|
|
36106
|
+
}, [_c('div', {
|
|
36107
|
+
staticClass: "card-name"
|
|
36108
|
+
}, [_vm._v(_vm._s(_vm.langText.productName))]), _c('div', {
|
|
36109
|
+
staticClass: "text-box"
|
|
36110
|
+
}, [_c('div', {
|
|
36111
|
+
staticClass: "card-refPrice"
|
|
36112
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$XXXX ")]), _c('div', {
|
|
36113
|
+
staticClass: "card-pice-text"
|
|
36114
|
+
}, [_vm._v(_vm._s(_vm.langText.onlinePrice))])]), _c('div', {
|
|
36115
|
+
staticClass: "card-pice"
|
|
36116
|
+
}, [_c('span', [_vm._v("HK$")]), _vm._v("XXXX")]), _c('div', {
|
|
36117
|
+
staticClass: "card-btn"
|
|
36118
|
+
}, [_vm._v(_vm._s(_vm.langText.buyNow))])])])])] : _vm._e(), _vm._l(_vm.viewList, function (item, index) {
|
|
36119
|
+
return _c('div', {
|
|
36120
|
+
key: `${index}-${item.commodityId || index}`,
|
|
36121
|
+
staticClass: "card-box"
|
|
36122
|
+
}, [_c('div', {
|
|
36123
|
+
staticClass: "card"
|
|
36124
|
+
}, [_c('div', {
|
|
36125
|
+
staticClass: "tag-box-left"
|
|
36126
|
+
}, [_vm._l(item.malltCommodityLeft, function (ele, i) {
|
|
36127
|
+
return [_c('img', {
|
|
36128
|
+
key: i,
|
|
36129
|
+
attrs: {
|
|
36130
|
+
"src": _vm.compBaseUrl + ele.pictureUrl,
|
|
36131
|
+
"alt": ""
|
|
36132
|
+
}
|
|
36133
|
+
})];
|
|
36134
|
+
})], 2), _c('div', {
|
|
36135
|
+
staticClass: "tag-box-right"
|
|
36136
|
+
}, [_vm._l(item.malltCommodityRight, function (ele, i) {
|
|
36137
|
+
return [_c('img', {
|
|
36138
|
+
key: i,
|
|
36139
|
+
attrs: {
|
|
36140
|
+
"src": _vm.compBaseUrl + ele.pictureUrl,
|
|
36141
|
+
"alt": ""
|
|
36142
|
+
}
|
|
36143
|
+
})];
|
|
36144
|
+
})], 2), _c('div', {
|
|
36145
|
+
staticClass: "img-box"
|
|
36146
|
+
}, [_vm.isNotActive(item) ? _c('div', {
|
|
36147
|
+
staticClass: "mask"
|
|
36148
|
+
}, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? _vm.langText.comingSoon : _vm.langText.expired) + " ")]) : _vm._e(), _c('div', {
|
|
36149
|
+
staticClass: "card-img",
|
|
36150
|
+
class: {
|
|
36151
|
+
'is-cms': _vm.$EventBus
|
|
36152
|
+
}
|
|
36153
|
+
}, [_c('img', {
|
|
36154
|
+
attrs: {
|
|
36155
|
+
"src": _vm.compBaseUrl + item.maxPicId,
|
|
36156
|
+
"alt": ""
|
|
36157
|
+
}
|
|
36158
|
+
})])]), _c('div', {
|
|
36159
|
+
staticClass: "content-box"
|
|
36160
|
+
}, [_vm.isNotActive(item) ? _c('div', {
|
|
36161
|
+
staticClass: "content-mask"
|
|
36162
|
+
}) : _vm._e(), _c('div', {
|
|
36163
|
+
staticClass: "card-name"
|
|
36164
|
+
}, [_vm._v(_vm._s(item.commodityName))]), _c('div', {
|
|
36165
|
+
staticClass: "text-box"
|
|
36166
|
+
}, [item.price !== item.refPrice ? _c('div', {
|
|
36167
|
+
staticClass: "card-refPrice"
|
|
36168
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$" + _vm._s(_vm.convertCentsToYuan(item.refPrice)) + " ")]) : _c('div', {
|
|
36169
|
+
staticClass: "card-refPrice"
|
|
36170
|
+
}), _c('div', {
|
|
36171
|
+
staticClass: "card-pice-text"
|
|
36172
|
+
}, [_vm._v(" " + _vm._s(item.price !== item.refPrice ? _vm.langText.onlinePrice : _vm.langText.Price) + " ")])]), _c('div', {
|
|
36173
|
+
staticClass: "card-pice spc-font"
|
|
36174
|
+
}, [_c('span', [_vm._v("HK$")]), _vm._v(_vm._s(_vm.convertCentsToYuan(item.price)) + " ")]), _vm.isActive(item) ? _c('div', {
|
|
36175
|
+
staticClass: "card-btn",
|
|
36176
|
+
on: {
|
|
36177
|
+
"click": function ($event) {
|
|
36178
|
+
return _vm.goDetail(item);
|
|
36179
|
+
}
|
|
36180
|
+
}
|
|
36181
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.buyNow)), _c('img', {
|
|
36182
|
+
attrs: {
|
|
36183
|
+
"src": _vm.arrowRightImg
|
|
36184
|
+
}
|
|
36185
|
+
})]) : _c('div', {
|
|
36186
|
+
staticClass: "card-btn"
|
|
36187
|
+
}, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? (_vm.langText.launch || "").replace("NNN", item.upTime) : _vm.langText.Offer) + " ")])])])]);
|
|
36188
|
+
})], 2), !_vm.seeMore && _vm.configList.length > 9 ? _c('div', {
|
|
36189
|
+
ref: "seeMoreRef",
|
|
36190
|
+
staticClass: "seeMore",
|
|
36191
|
+
on: {
|
|
36192
|
+
"click": function ($event) {
|
|
36193
|
+
_vm.seeMore = true;
|
|
36194
|
+
}
|
|
36230
36195
|
}
|
|
36231
|
-
}), _c('
|
|
36232
|
-
staticClass: "
|
|
36233
|
-
|
|
36234
|
-
|
|
36235
|
-
domProps: {
|
|
36236
|
-
"innerHTML": _vm._s(_vm.escape2Html(_vm.configData.input4))
|
|
36196
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.more) + " "), _c('img', {
|
|
36197
|
+
staticClass: "btm",
|
|
36198
|
+
attrs: {
|
|
36199
|
+
"src": _vm.arrowDownImg
|
|
36237
36200
|
}
|
|
36238
|
-
})
|
|
36201
|
+
}), _c('img', {
|
|
36202
|
+
staticClass: "hover",
|
|
36203
|
+
attrs: {
|
|
36204
|
+
"src": _vm.arrowHoverImg
|
|
36205
|
+
}
|
|
36206
|
+
}), _c('img', {
|
|
36207
|
+
staticClass: "active",
|
|
36208
|
+
attrs: {
|
|
36209
|
+
"src": _vm.arrowActiveImg
|
|
36210
|
+
}
|
|
36211
|
+
})]) : _vm._e()])])]);
|
|
36239
36212
|
};
|
|
36240
36213
|
var staticRenderFns = [];
|
|
36241
36214
|
|
|
36242
|
-
// EXTERNAL MODULE: ./
|
|
36243
|
-
var
|
|
36244
|
-
// EXTERNAL MODULE: ./
|
|
36245
|
-
var
|
|
36246
|
-
|
|
36215
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
36216
|
+
var es_iterator_constructor = __webpack_require__(8111);
|
|
36217
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
|
|
36218
|
+
var es_iterator_filter = __webpack_require__(2489);
|
|
36219
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
36220
|
+
var es_iterator_for_each = __webpack_require__(7588);
|
|
36221
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
36222
|
+
var baseComp = __webpack_require__(7976);
|
|
36223
|
+
// EXTERNAL MODULE: ./src/api/index.js
|
|
36224
|
+
var api = __webpack_require__(2842);
|
|
36225
|
+
// EXTERNAL MODULE: ./node_modules/qs/lib/index.js
|
|
36226
|
+
var lib = __webpack_require__(7087);
|
|
36227
|
+
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
36228
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=script&lang=js
|
|
36229
|
+
|
|
36230
|
+
|
|
36231
|
+
|
|
36232
|
+
|
|
36233
|
+
|
|
36247
36234
|
|
|
36248
36235
|
|
|
36249
|
-
//查询栏目
|
|
36250
|
-
function getShopCategory(data) {
|
|
36251
|
-
return request({
|
|
36252
|
-
url: '/api/ecosp-emall/itemRest/shopCategory/query',
|
|
36253
|
-
method: 'post',
|
|
36254
|
-
data
|
|
36255
|
-
});
|
|
36256
|
-
}
|
|
36257
|
-
// 商品栏目查询
|
|
36258
|
-
function columnQuery(params) {
|
|
36259
|
-
return request({
|
|
36260
|
-
method: 'post',
|
|
36261
|
-
url: '/ecosp-console/columnCategory/query',
|
|
36262
|
-
data: params
|
|
36263
|
-
});
|
|
36264
|
-
}
|
|
36265
|
-
function queryCountdown(params) {
|
|
36266
|
-
return (0,utils_request/* default */.A)({
|
|
36267
|
-
method: 'post',
|
|
36268
|
-
url: '/api/omni-channel-service-portal/rest/channelAdvert/queryCountdown',
|
|
36269
|
-
data: params
|
|
36270
|
-
});
|
|
36271
|
-
}
|
|
36272
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-activityCountdown/View.vue?vue&type=script&lang=js
|
|
36273
36236
|
|
|
36274
36237
|
|
|
36275
36238
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
36276
|
-
name: "cms-
|
|
36239
|
+
name: "cms-stored-value-card",
|
|
36277
36240
|
components: {
|
|
36278
36241
|
BaseComp: baseComp["default"]
|
|
36279
36242
|
},
|
|
@@ -36299,96 +36262,159 @@ function queryCountdown(params) {
|
|
|
36299
36262
|
},
|
|
36300
36263
|
data() {
|
|
36301
36264
|
return {
|
|
36302
|
-
|
|
36303
|
-
|
|
36304
|
-
|
|
36305
|
-
|
|
36306
|
-
|
|
36307
|
-
|
|
36308
|
-
|
|
36309
|
-
|
|
36310
|
-
|
|
36265
|
+
langConfig: {
|
|
36266
|
+
"zh-HK": {
|
|
36267
|
+
productName: "產品名稱",
|
|
36268
|
+
Price: "建議零售價",
|
|
36269
|
+
onlinePrice: "網上優惠價",
|
|
36270
|
+
buyNow: "立即選購",
|
|
36271
|
+
comingSoon: "即將推出",
|
|
36272
|
+
expired: "優惠已過期",
|
|
36273
|
+
more: "查看更多",
|
|
36274
|
+
launch: "NNN 上線",
|
|
36275
|
+
Offer: "優惠即將推出"
|
|
36276
|
+
},
|
|
36277
|
+
"zh-CN": {
|
|
36278
|
+
productName: "产品名称",
|
|
36279
|
+
Price: "建议零售价",
|
|
36280
|
+
onlinePrice: "网上优惠价",
|
|
36281
|
+
buyNow: "立即选购",
|
|
36282
|
+
comingSoon: "即将推出",
|
|
36283
|
+
expired: "优惠已过期",
|
|
36284
|
+
more: "查看更多",
|
|
36285
|
+
launch: "NNN 上线",
|
|
36286
|
+
Offer: "优惠即将推出"
|
|
36287
|
+
},
|
|
36288
|
+
"en-US": {
|
|
36289
|
+
productName: "Product Name",
|
|
36290
|
+
Price: "RRP",
|
|
36291
|
+
onlinePrice: "Online Price",
|
|
36292
|
+
buyNow: "Buy Now",
|
|
36293
|
+
comingSoon: "Coming Soon",
|
|
36294
|
+
expired: "Expired",
|
|
36295
|
+
more: "See more",
|
|
36296
|
+
launch: "Launch at NNN",
|
|
36297
|
+
Offer: "Offer Coming"
|
|
36298
|
+
}
|
|
36299
|
+
},
|
|
36300
|
+
configList: [],
|
|
36301
|
+
seeMore: false,
|
|
36302
|
+
nowTs: Date.now(),
|
|
36303
|
+
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
|
|
36304
|
+
// images
|
|
36305
|
+
placeholderImg: __webpack_require__(5335),
|
|
36306
|
+
arrowRightImg: __webpack_require__(4860),
|
|
36307
|
+
arrowDownImg: __webpack_require__(1861),
|
|
36308
|
+
arrowHoverImg: __webpack_require__(4116),
|
|
36309
|
+
arrowActiveImg: __webpack_require__(9670),
|
|
36310
|
+
shopList: []
|
|
36311
36311
|
};
|
|
36312
36312
|
},
|
|
36313
|
+
computed: {
|
|
36314
|
+
langText() {
|
|
36315
|
+
return this.config && this.langConfig && this.langConfig[this.lang] || this.langConfig["zh-HK"];
|
|
36316
|
+
},
|
|
36317
|
+
viewList() {
|
|
36318
|
+
if (this.seeMore) return this.shopList;
|
|
36319
|
+
return this.shopList.slice(0, 9);
|
|
36320
|
+
}
|
|
36321
|
+
},
|
|
36313
36322
|
mounted() {
|
|
36314
|
-
this.$
|
|
36315
|
-
|
|
36316
|
-
|
|
36323
|
+
if (!this.$EventBus) {
|
|
36324
|
+
if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
|
|
36325
|
+
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
36326
|
+
} else {
|
|
36327
|
+
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
36328
|
+
}
|
|
36329
|
+
}
|
|
36317
36330
|
},
|
|
36318
|
-
|
|
36331
|
+
beforeDestroy() {},
|
|
36319
36332
|
methods: {
|
|
36320
36333
|
getConfigData(configData) {
|
|
36321
|
-
this.
|
|
36334
|
+
this.configList = configData.configList;
|
|
36335
|
+
console.log("getConfigData", this.configList);
|
|
36336
|
+
this.getValue();
|
|
36322
36337
|
},
|
|
36323
|
-
async
|
|
36324
|
-
|
|
36325
|
-
endTime: dateTime
|
|
36326
|
-
});
|
|
36327
|
-
if (+res.code === 0) {
|
|
36328
|
-
let remainingTime = res.data || 0;
|
|
36329
|
-
if (remainingTime > 0) {
|
|
36330
|
-
// 接口返回的是毫秒值,因此要换算成秒
|
|
36331
|
-
this.remainingTime = remainingTime / 1000;
|
|
36332
|
-
// 更新倒计时并每秒钟刷新一次
|
|
36333
|
-
this.countdown();
|
|
36334
|
-
this.intervalId = window.setInterval(this.countdown, 1000);
|
|
36335
|
-
} else {
|
|
36336
|
-
this.remainingTime = 0;
|
|
36337
|
-
this.days = 0;
|
|
36338
|
-
this.hours = 0;
|
|
36339
|
-
this.minutes = 0;
|
|
36340
|
-
this.seconds = 0;
|
|
36341
|
-
}
|
|
36342
|
-
}
|
|
36338
|
+
async getValue() {
|
|
36339
|
+
await this.getCommodityDetails();
|
|
36343
36340
|
},
|
|
36344
|
-
|
|
36345
|
-
|
|
36346
|
-
//
|
|
36347
|
-
|
|
36348
|
-
|
|
36349
|
-
|
|
36350
|
-
|
|
36341
|
+
// 拉取已选商品详情
|
|
36342
|
+
async getCommodityDetails() {
|
|
36343
|
+
// try {
|
|
36344
|
+
let req = {
|
|
36345
|
+
busInfo: JSON.stringify({
|
|
36346
|
+
commodityIds: [...this.configList],
|
|
36347
|
+
commodityTypes: ["604", "605"]
|
|
36348
|
+
})
|
|
36349
|
+
};
|
|
36350
|
+
req = lib_default().stringify(req);
|
|
36351
|
+
const json = await (0,api/* getCommodityDetails */.yX)(req, this.lang);
|
|
36352
|
+
let dataResult = json && json.busiResp && json.busiResp.busiDataResp;
|
|
36353
|
+
if (Array.isArray(dataResult)) {
|
|
36354
|
+
dataResult.forEach(item => {
|
|
36355
|
+
if (Array.isArray(item.malltCommodityTags)) {
|
|
36356
|
+
const left = item.malltCommodityTags.filter(ele => ele.tagType == 5001).sort((a, b) => a.sort - b.sort);
|
|
36357
|
+
const right = item.malltCommodityTags.filter(ele => ele.tagType == 5002).sort((a, b) => a.sort - b.sort);
|
|
36358
|
+
item.malltCommodityLeft = left.slice(0, 2);
|
|
36359
|
+
item.malltCommodityRight = right.slice(0, 4);
|
|
36360
|
+
} else {
|
|
36361
|
+
item.malltCommodityLeft = [];
|
|
36362
|
+
item.malltCommodityRight = [];
|
|
36363
|
+
}
|
|
36364
|
+
});
|
|
36365
|
+
// 按选择顺序排序
|
|
36366
|
+
this.shopList = dataResult.sort((a, b) => {
|
|
36367
|
+
return this.configList.indexOf(a.commodityId) - this.configList.indexOf(b.commodityId);
|
|
36368
|
+
});
|
|
36369
|
+
} else {
|
|
36370
|
+
this.shopList = [];
|
|
36351
36371
|
}
|
|
36352
|
-
|
|
36353
|
-
this.
|
|
36354
|
-
|
|
36355
|
-
this.seconds = Math.floor(this.remainingTime % 60);
|
|
36372
|
+
// } catch (e) {
|
|
36373
|
+
// this.shopList = [];
|
|
36374
|
+
// }
|
|
36356
36375
|
},
|
|
36357
|
-
|
|
36358
|
-
|
|
36376
|
+
isActive(item) {
|
|
36377
|
+
const now = Date.now();
|
|
36378
|
+
return new Date(item.upTime).getTime() < now && new Date(item.downTime).getTime() > now;
|
|
36359
36379
|
},
|
|
36360
|
-
|
|
36361
|
-
|
|
36362
|
-
|
|
36380
|
+
isNotActive(item) {
|
|
36381
|
+
const now = Date.now();
|
|
36382
|
+
return new Date(item.upTime).getTime() > now || new Date(item.downTime).getTime() < now;
|
|
36363
36383
|
},
|
|
36364
|
-
|
|
36365
|
-
|
|
36366
|
-
|
|
36367
|
-
|
|
36368
|
-
|
|
36369
|
-
|
|
36370
|
-
|
|
36371
|
-
|
|
36372
|
-
|
|
36373
|
-
|
|
36374
|
-
|
|
36375
|
-
|
|
36376
|
-
|
|
36377
|
-
|
|
36384
|
+
convertCentsToYuan(cents) {
|
|
36385
|
+
const yuan = (Number(cents || 0) / 100).toFixed(2);
|
|
36386
|
+
return parseFloat(yuan);
|
|
36387
|
+
},
|
|
36388
|
+
goDetail(item) {
|
|
36389
|
+
const base = this.$EventBus ? this.compBaseUrl : window.location.origin;
|
|
36390
|
+
const langMap = {
|
|
36391
|
+
"zh-CN": "sc",
|
|
36392
|
+
"zh-HK": "tc",
|
|
36393
|
+
"en-US": "en"
|
|
36394
|
+
};
|
|
36395
|
+
const routeLang = langMap[this.lang];
|
|
36396
|
+
if (item.commodityType === "604") {
|
|
36397
|
+
if ((item.commodityName || "").includes("MySIM")) {
|
|
36398
|
+
window.parent.location.href = `${base}/${routeLang}/home/prepaid-card/mysim/detail?commodityId=${item.commodityId}&mysim=${item.commodityName}`;
|
|
36399
|
+
} else {
|
|
36400
|
+
window.parent.location.href = `${base}/${routeLang}/home/prepaid-card/detail?commodityId=${item.commodityId}&commodityType=604&commodityName=${item.commodityName}`;
|
|
36401
|
+
}
|
|
36402
|
+
} else if (item.commodityType === "605") {
|
|
36403
|
+
window.parent.location.href = `${base}/${routeLang}/home/prepaid/refill-voucher/detail?commodityId=${item.commodityId}&commodityType=605&commodityName=${item.commodityName}`;
|
|
36378
36404
|
}
|
|
36379
36405
|
}
|
|
36380
36406
|
}
|
|
36381
36407
|
});
|
|
36382
|
-
;// ./package/cms-
|
|
36383
|
-
/* harmony default export */ var
|
|
36384
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-
|
|
36408
|
+
;// ./package/cms-stored-value-card/View.vue?vue&type=script&lang=js
|
|
36409
|
+
/* harmony default export */ var cms_stored_value_card_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
36410
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=style&index=0&id=ae178d02&prod&lang=scss&scoped=true
|
|
36385
36411
|
// extracted by mini-css-extract-plugin
|
|
36386
36412
|
|
|
36387
|
-
;// ./package/cms-
|
|
36413
|
+
;// ./package/cms-stored-value-card/View.vue?vue&type=style&index=0&id=ae178d02&prod&lang=scss&scoped=true
|
|
36388
36414
|
|
|
36389
36415
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
36390
36416
|
var componentNormalizer = __webpack_require__(1656);
|
|
36391
|
-
;// ./package/cms-
|
|
36417
|
+
;// ./package/cms-stored-value-card/View.vue
|
|
36392
36418
|
|
|
36393
36419
|
|
|
36394
36420
|
|
|
@@ -36398,42 +36424,18 @@ var componentNormalizer = __webpack_require__(1656);
|
|
|
36398
36424
|
/* normalize component */
|
|
36399
36425
|
|
|
36400
36426
|
var component = (0,componentNormalizer/* default */.A)(
|
|
36401
|
-
|
|
36427
|
+
cms_stored_value_card_Viewvue_type_script_lang_js,
|
|
36402
36428
|
render,
|
|
36403
36429
|
staticRenderFns,
|
|
36404
36430
|
false,
|
|
36405
36431
|
null,
|
|
36406
|
-
"
|
|
36432
|
+
"ae178d02",
|
|
36407
36433
|
null
|
|
36408
36434
|
|
|
36409
36435
|
)
|
|
36410
36436
|
|
|
36411
36437
|
/* harmony default export */ var View = (component.exports);
|
|
36412
36438
|
|
|
36413
|
-
/***/ }),
|
|
36414
|
-
|
|
36415
|
-
/***/ 4576:
|
|
36416
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
36417
|
-
|
|
36418
|
-
"use strict";
|
|
36419
|
-
|
|
36420
|
-
var check = function (it) {
|
|
36421
|
-
return it && it.Math === Math && it;
|
|
36422
|
-
};
|
|
36423
|
-
|
|
36424
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
36425
|
-
module.exports =
|
|
36426
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
36427
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
36428
|
-
check(typeof window == 'object' && window) ||
|
|
36429
|
-
// eslint-disable-next-line no-restricted-globals -- safe
|
|
36430
|
-
check(typeof self == 'object' && self) ||
|
|
36431
|
-
check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
|
|
36432
|
-
check(typeof this == 'object' && this) ||
|
|
36433
|
-
// eslint-disable-next-line no-new-func -- fallback
|
|
36434
|
-
(function () { return this; })() || Function('return this')();
|
|
36435
|
-
|
|
36436
|
-
|
|
36437
36439
|
/***/ }),
|
|
36438
36440
|
|
|
36439
36441
|
/***/ 4581:
|
|
@@ -38257,7 +38259,7 @@ var map = {
|
|
|
38257
38259
|
"./cms-richText/View.vue": 5713,
|
|
38258
38260
|
"./cms-servePlan-tab/View.vue": 330,
|
|
38259
38261
|
"./cms-servePlan-text/View.vue": 4726,
|
|
38260
|
-
"./cms-stored-value-card/View.vue":
|
|
38262
|
+
"./cms-stored-value-card/View.vue": 4579,
|
|
38261
38263
|
"./cms-termsAndConditions/View.vue": 7060,
|
|
38262
38264
|
"./cms-text/View.vue": 7326,
|
|
38263
38265
|
"./cms-threeScroll/View.vue": 8687,
|
|
@@ -53313,7 +53315,7 @@ $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
|
|
53313
53315
|
__webpack_require__.r(__webpack_exports__);
|
|
53314
53316
|
/* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2128);
|
|
53315
53317
|
|
|
53316
|
-
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__,
|
|
53318
|
+
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 4579));
|
|
53317
53319
|
const langData = {
|
|
53318
53320
|
configList: [
|
|
53319
53321
|
// {
|
|
@@ -53377,7 +53379,8 @@ const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSc
|
|
|
53377
53379
|
settings: cmsCompName => {
|
|
53378
53380
|
return (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getInitCompData)({
|
|
53379
53381
|
cmsCompName,
|
|
53380
|
-
langData
|
|
53382
|
+
langData,
|
|
53383
|
+
isLangAll: true
|
|
53381
53384
|
});
|
|
53382
53385
|
}
|
|
53383
53386
|
});
|