cms-chenhj-ui 2.0.15 → 2.0.17
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 +1324 -798
- package/cms-chenhj-ui.common.js.map +1 -1
- package/cms-chenhj-ui.css +1 -1
- package/cms-chenhj-ui.umd.js +1311 -785
- package/cms-chenhj-ui.umd.js.map +1 -1
- package/cms-chenhj-ui.umd.min.js +3 -3
- package/cms-chenhj-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
package/cms-chenhj-ui.common.js
CHANGED
|
@@ -1989,6 +1989,315 @@ module.exports = function (it) {
|
|
|
1989
1989
|
};
|
|
1990
1990
|
|
|
1991
1991
|
|
|
1992
|
+
/***/ }),
|
|
1993
|
+
|
|
1994
|
+
/***/ 929:
|
|
1995
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1996
|
+
|
|
1997
|
+
"use strict";
|
|
1998
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1999
|
+
/* harmony export */ WL: function() { return /* binding */ queryV1; },
|
|
2000
|
+
/* harmony export */ yX: function() { return /* binding */ getCommodityDetails; }
|
|
2001
|
+
/* harmony export */ });
|
|
2002
|
+
/* unused harmony exports saveInstance, queryInstanceConfig, queryCategoryInfo, queryCommodityList, listV1, queryMenuList, uploadImage, uploadVideo, queryDeptList, queryBreadCrumbsList, queryPageHfList, queryUrl, createPage, queryPageInfo, editPage, getPreDictonaryList, saveTemporaryInfo, getTemporaryInfo, queryApproveList, queryComponentByColumn, queryCollections, collectionComponent, syncComponentConfigure, queryComponentConfigure, queryOperateList, updateDefaultConfig, omniHeartbeat, emallHeartbeat, qryBtList */
|
|
2003
|
+
/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1564);
|
|
2004
|
+
|
|
2005
|
+
|
|
2006
|
+
// 页面配置保存接口
|
|
2007
|
+
function saveInstance(data) {
|
|
2008
|
+
return request({
|
|
2009
|
+
method: "post",
|
|
2010
|
+
url: "/omni-channel-service-console/rest/channelCmsCompInstance/saveInstance",
|
|
2011
|
+
data
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
// 页面组件配置信息查询接口
|
|
2016
|
+
function queryInstanceConfig(data) {
|
|
2017
|
+
return request({
|
|
2018
|
+
method: "post",
|
|
2019
|
+
url: "/omni-channel-service-console/rest/channelCmsCompInstance/queryInstanceConfig",
|
|
2020
|
+
data
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
2023
|
+
//B端25查询卡片组件下拉框
|
|
2024
|
+
function queryCategoryInfo(data) {
|
|
2025
|
+
return request({
|
|
2026
|
+
method: "post",
|
|
2027
|
+
url: "/ecosp-console/commodityCategory/queryCategoryList",
|
|
2028
|
+
data
|
|
2029
|
+
});
|
|
2030
|
+
}
|
|
2031
|
+
//B端25查询卡片
|
|
2032
|
+
function queryCommodityList(data) {
|
|
2033
|
+
return request({
|
|
2034
|
+
method: "post",
|
|
2035
|
+
url: "/ecosp-console/item/queryCommodityList",
|
|
2036
|
+
data
|
|
2037
|
+
});
|
|
2038
|
+
}
|
|
2039
|
+
function listV1(data, language) {
|
|
2040
|
+
return request({
|
|
2041
|
+
method: "post",
|
|
2042
|
+
url: "/api/ecosp-emall/itemRest/commodity/listV1",
|
|
2043
|
+
data,
|
|
2044
|
+
headers: {
|
|
2045
|
+
"Accept-Language": language || ""
|
|
2046
|
+
}
|
|
2047
|
+
});
|
|
2048
|
+
}
|
|
2049
|
+
//cmhk接口
|
|
2050
|
+
function queryV1(data, language) {
|
|
2051
|
+
return (0,_utils_request__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)({
|
|
2052
|
+
method: "post",
|
|
2053
|
+
url: "/api/ecosp-emall/itemRest/commodity/queryV1",
|
|
2054
|
+
data
|
|
2055
|
+
});
|
|
2056
|
+
}
|
|
2057
|
+
//cmhk接口
|
|
2058
|
+
function getCommodityDetails(data, language) {
|
|
2059
|
+
return (0,_utils_request__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)({
|
|
2060
|
+
method: "post",
|
|
2061
|
+
url: "/api/ecosp-emall/itemRest/commodity/getCommodityDetails",
|
|
2062
|
+
data
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
//查询menuList
|
|
2066
|
+
function queryMenuList(data) {
|
|
2067
|
+
return request({
|
|
2068
|
+
method: "post",
|
|
2069
|
+
url: "/api/omni-channel-service-portal/rest/overAllMenuConfig/queryMenuListNew",
|
|
2070
|
+
data
|
|
2071
|
+
});
|
|
2072
|
+
}
|
|
2073
|
+
function uploadImage(data) {
|
|
2074
|
+
return request({
|
|
2075
|
+
method: "post",
|
|
2076
|
+
url: "/omni-channel-service-console/rest/commonFile/image",
|
|
2077
|
+
data
|
|
2078
|
+
});
|
|
2079
|
+
}
|
|
2080
|
+
function uploadVideo(data) {
|
|
2081
|
+
return request({
|
|
2082
|
+
method: "post",
|
|
2083
|
+
url: "/omni-channel-service-console/rest/commonFile/video",
|
|
2084
|
+
data
|
|
2085
|
+
});
|
|
2086
|
+
}
|
|
2087
|
+
/**
|
|
2088
|
+
* 查询部门列表
|
|
2089
|
+
* @returns {Promise}
|
|
2090
|
+
*/
|
|
2091
|
+
function queryDeptList(data) {
|
|
2092
|
+
return request({
|
|
2093
|
+
method: "post",
|
|
2094
|
+
url: "/omni-channel-service-console/rest/workBench/queryDeptList",
|
|
2095
|
+
data
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
/**
|
|
2100
|
+
* 查询面包屑列表
|
|
2101
|
+
* @returns {Promise}
|
|
2102
|
+
*/
|
|
2103
|
+
function queryBreadCrumbsList(data) {
|
|
2104
|
+
return request({
|
|
2105
|
+
method: "post",
|
|
2106
|
+
url: "/omni-channel-service-console/rest/workBench/queryBreadCrumbsList",
|
|
2107
|
+
data
|
|
2108
|
+
});
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
/**
|
|
2112
|
+
* 查询页头页脚列表
|
|
2113
|
+
* @returns {Promise}
|
|
2114
|
+
*/
|
|
2115
|
+
function queryPageHfList(data) {
|
|
2116
|
+
return request({
|
|
2117
|
+
method: "post",
|
|
2118
|
+
url: "/omni-channel-service-console/rest/workBench/queryPageHfList",
|
|
2119
|
+
data
|
|
2120
|
+
});
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* 查询URL接口
|
|
2125
|
+
* @returns {Promise}
|
|
2126
|
+
*/
|
|
2127
|
+
function queryUrl(data) {
|
|
2128
|
+
return request({
|
|
2129
|
+
method: "post",
|
|
2130
|
+
url: "/omni-channel-service-console/rest/workBench/queryUrl",
|
|
2131
|
+
data
|
|
2132
|
+
});
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
/**
|
|
2136
|
+
* 创建页面
|
|
2137
|
+
* @param {Object} pageData 页面数据
|
|
2138
|
+
* @returns {Promise}
|
|
2139
|
+
*/
|
|
2140
|
+
function createPage(data) {
|
|
2141
|
+
return request({
|
|
2142
|
+
method: "post",
|
|
2143
|
+
url: "/omni-channel-service-console/rest/workBench/createPage",
|
|
2144
|
+
data
|
|
2145
|
+
});
|
|
2146
|
+
}
|
|
2147
|
+
/**
|
|
2148
|
+
* 查询页面信息
|
|
2149
|
+
* @returns {Promise}
|
|
2150
|
+
*/
|
|
2151
|
+
function queryPageInfo(data) {
|
|
2152
|
+
return request({
|
|
2153
|
+
method: "post",
|
|
2154
|
+
url: "/omni-channel-service-console/rest/workBench/queryPageInfo",
|
|
2155
|
+
data
|
|
2156
|
+
});
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
/**
|
|
2160
|
+
* 查询页面信息
|
|
2161
|
+
* @returns {Promise}
|
|
2162
|
+
*/
|
|
2163
|
+
function editPage(data) {
|
|
2164
|
+
return request({
|
|
2165
|
+
method: "post",
|
|
2166
|
+
url: "/omni-channel-service-console/rest/workBench/editPage",
|
|
2167
|
+
data
|
|
2168
|
+
});
|
|
2169
|
+
}
|
|
2170
|
+
/**
|
|
2171
|
+
* 字典值
|
|
2172
|
+
* @returns {Promise}
|
|
2173
|
+
*/
|
|
2174
|
+
function getPreDictonaryList(data) {
|
|
2175
|
+
return request({
|
|
2176
|
+
method: "post",
|
|
2177
|
+
url: "/omni-channel-service-console/rest/Dictionary/queryDictionaryList",
|
|
2178
|
+
data
|
|
2179
|
+
});
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* 无痕浏览
|
|
2184
|
+
* @returns {Promise}
|
|
2185
|
+
*/
|
|
2186
|
+
function saveTemporaryInfo(data) {
|
|
2187
|
+
return request({
|
|
2188
|
+
method: "post",
|
|
2189
|
+
url: "/omni-channel-service-console/rest/workBench/saveTempJson",
|
|
2190
|
+
data
|
|
2191
|
+
});
|
|
2192
|
+
}
|
|
2193
|
+
/**
|
|
2194
|
+
* 无痕浏览
|
|
2195
|
+
* @returns {Promise}
|
|
2196
|
+
*/
|
|
2197
|
+
function getTemporaryInfo(data) {
|
|
2198
|
+
return request({
|
|
2199
|
+
method: "post",
|
|
2200
|
+
url: "/omni-channel-service-console/rest/workBench/queryTempJson",
|
|
2201
|
+
data
|
|
2202
|
+
});
|
|
2203
|
+
}
|
|
2204
|
+
/**
|
|
2205
|
+
* 查询操作记录
|
|
2206
|
+
* @returns {Promise}
|
|
2207
|
+
*/
|
|
2208
|
+
function queryApproveList(data) {
|
|
2209
|
+
return request({
|
|
2210
|
+
method: "post",
|
|
2211
|
+
url: "/omni-channel-service-console/rest/workBench/queryApproveList",
|
|
2212
|
+
data
|
|
2213
|
+
});
|
|
2214
|
+
}
|
|
2215
|
+
/**
|
|
2216
|
+
* 通过栏目查询组件列表
|
|
2217
|
+
*/
|
|
2218
|
+
function queryComponentByColumn(data) {
|
|
2219
|
+
return request({
|
|
2220
|
+
method: "post",
|
|
2221
|
+
url: "/omni-channel-service-console/rest/component/queryComponentByColumn",
|
|
2222
|
+
data
|
|
2223
|
+
});
|
|
2224
|
+
}
|
|
2225
|
+
/**
|
|
2226
|
+
* 查询收藏组件列表
|
|
2227
|
+
*/
|
|
2228
|
+
function queryCollections(data) {
|
|
2229
|
+
return request({
|
|
2230
|
+
method: "post",
|
|
2231
|
+
url: "/omni-channel-service-console/rest/component/queryCollections",
|
|
2232
|
+
data
|
|
2233
|
+
});
|
|
2234
|
+
}
|
|
2235
|
+
/**
|
|
2236
|
+
* 收藏组件
|
|
2237
|
+
*/
|
|
2238
|
+
function collectionComponent(data) {
|
|
2239
|
+
return request({
|
|
2240
|
+
method: "post",
|
|
2241
|
+
url: "/omni-channel-service-console/rest/component/collectionComponent",
|
|
2242
|
+
data
|
|
2243
|
+
});
|
|
2244
|
+
}
|
|
2245
|
+
/**
|
|
2246
|
+
* 保存/删除/修改组件配置
|
|
2247
|
+
*/
|
|
2248
|
+
function syncComponentConfigure(data) {
|
|
2249
|
+
return request({
|
|
2250
|
+
method: "post",
|
|
2251
|
+
url: "/omni-channel-service-console/rest/component/syncComponentConfigure",
|
|
2252
|
+
data
|
|
2253
|
+
});
|
|
2254
|
+
}
|
|
2255
|
+
/**
|
|
2256
|
+
* 查询已保存组件列表
|
|
2257
|
+
*/
|
|
2258
|
+
function queryComponentConfigure(data) {
|
|
2259
|
+
return request({
|
|
2260
|
+
method: "post",
|
|
2261
|
+
url: "/omni-channel-service-console/rest/component/queryComponentConfigure",
|
|
2262
|
+
data
|
|
2263
|
+
});
|
|
2264
|
+
}
|
|
2265
|
+
function queryOperateList(data) {
|
|
2266
|
+
return request({
|
|
2267
|
+
method: "post",
|
|
2268
|
+
url: "/omni-channel-service-console/rest/workBench/queryOperateList",
|
|
2269
|
+
data
|
|
2270
|
+
});
|
|
2271
|
+
}
|
|
2272
|
+
function updateDefaultConfig(data) {
|
|
2273
|
+
return request({
|
|
2274
|
+
method: "post",
|
|
2275
|
+
url: "/omni-channel-service-console/rest/workBench/updateDefaultConfig",
|
|
2276
|
+
data
|
|
2277
|
+
});
|
|
2278
|
+
}
|
|
2279
|
+
function omniHeartbeat(data) {
|
|
2280
|
+
return request({
|
|
2281
|
+
method: "post",
|
|
2282
|
+
url: "/omni-channel-service-console/rest/workBench/keepAlive",
|
|
2283
|
+
data
|
|
2284
|
+
});
|
|
2285
|
+
}
|
|
2286
|
+
function emallHeartbeat(data) {
|
|
2287
|
+
return request({
|
|
2288
|
+
method: "post",
|
|
2289
|
+
url: "/ecosp-console/workbench/keepAlive",
|
|
2290
|
+
data
|
|
2291
|
+
});
|
|
2292
|
+
}
|
|
2293
|
+
function qryBtList(data) {
|
|
2294
|
+
return request({
|
|
2295
|
+
method: "post",
|
|
2296
|
+
url: "/omni-channel-service-console/rest/component/qryBtList",
|
|
2297
|
+
data
|
|
2298
|
+
});
|
|
2299
|
+
}
|
|
2300
|
+
|
|
1992
2301
|
/***/ }),
|
|
1993
2302
|
|
|
1994
2303
|
/***/ 1012:
|
|
@@ -8889,9 +9198,9 @@ service.interceptors.request.use(config => {
|
|
|
8889
9198
|
const env_prod = window.location.origin.includes(".22:");
|
|
8890
9199
|
if (is_development) {
|
|
8891
9200
|
if (config.url.includes("/ecosp-console")) {
|
|
8892
|
-
document.cookie = "JSESSIONID=
|
|
9201
|
+
document.cookie = "JSESSIONID=31C253D4AB7D622317BE567A074A8D9F";
|
|
8893
9202
|
} else if (config.url.includes("omni-channel-service-console")) {
|
|
8894
|
-
document.cookie = "JSESSIONID=
|
|
9203
|
+
document.cookie = "JSESSIONID=330793238C3780C658EA1FB6D4EECA59";
|
|
8895
9204
|
}
|
|
8896
9205
|
} else {
|
|
8897
9206
|
if (config.url.includes("/api/") && is_cmsComp) {
|
|
@@ -9559,8 +9868,8 @@ var map = {
|
|
|
9559
9868
|
"./cms-column-card/index": 5340,
|
|
9560
9869
|
"./cms-column-card/index.js": 5340,
|
|
9561
9870
|
"./cms-column/": 3923,
|
|
9562
|
-
"./cms-column/View":
|
|
9563
|
-
"./cms-column/View.vue":
|
|
9871
|
+
"./cms-column/View": 2802,
|
|
9872
|
+
"./cms-column/View.vue": 2802,
|
|
9564
9873
|
"./cms-column/index": 3923,
|
|
9565
9874
|
"./cms-column/index.js": 3923,
|
|
9566
9875
|
"./cms-description": 1921,
|
|
@@ -9625,8 +9934,8 @@ var map = {
|
|
|
9625
9934
|
"./cms-lineTwo/index.js": 8123,
|
|
9626
9935
|
"./cms-proCard": 4338,
|
|
9627
9936
|
"./cms-proCard/": 4338,
|
|
9628
|
-
"./cms-proCard/View":
|
|
9629
|
-
"./cms-proCard/View.vue":
|
|
9937
|
+
"./cms-proCard/View": 7063,
|
|
9938
|
+
"./cms-proCard/View.vue": 7063,
|
|
9630
9939
|
"./cms-proCard/index": 4338,
|
|
9631
9940
|
"./cms-proCard/index.js": 4338,
|
|
9632
9941
|
"./cms-prodCustomization": 1685,
|
|
@@ -9665,6 +9974,12 @@ var map = {
|
|
|
9665
9974
|
"./cms-servePlan-text/View.vue": 9487,
|
|
9666
9975
|
"./cms-servePlan-text/index": 6501,
|
|
9667
9976
|
"./cms-servePlan-text/index.js": 6501,
|
|
9977
|
+
"./cms-stored-value-card": 2399,
|
|
9978
|
+
"./cms-stored-value-card/": 2399,
|
|
9979
|
+
"./cms-stored-value-card/View": 9673,
|
|
9980
|
+
"./cms-stored-value-card/View.vue": 9673,
|
|
9981
|
+
"./cms-stored-value-card/index": 2399,
|
|
9982
|
+
"./cms-stored-value-card/index.js": 2399,
|
|
9668
9983
|
"./cms-termsAndConditions": 9387,
|
|
9669
9984
|
"./cms-termsAndConditions/": 9387,
|
|
9670
9985
|
"./cms-termsAndConditions/View": 8073,
|
|
@@ -10313,6 +10628,14 @@ module.exports = function (object, names) {
|
|
|
10313
10628
|
};
|
|
10314
10629
|
|
|
10315
10630
|
|
|
10631
|
+
/***/ }),
|
|
10632
|
+
|
|
10633
|
+
/***/ 1861:
|
|
10634
|
+
/***/ (function(module) {
|
|
10635
|
+
|
|
10636
|
+
"use strict";
|
|
10637
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAwUlEQVRYR+2VQQ6EMAhF6ZxEN049hif3GFY305OowdTEGGqBLpwFXTbwefkF6uDl416uDwZgDpgD5sB/OtB9+x9uyI/bhhBCrNmW3vtm3dyIGss8tXct0oEE0ABArIG4FD+02AD3RA0EVyPbA1wB6nkkuY9NKBE6QaQ5xSmQCEpiT+AiAAZyhDkx1HOxAEoQ2uKoywbIQeB9mnPV2IoAKIhkq6q42IFMp+O1emGJHSAgqla2GqDmf7jmGoA5YA6YAzukPq8hQaCizgAAAABJRU5ErkJggg==";
|
|
10638
|
+
|
|
10316
10639
|
/***/ }),
|
|
10317
10640
|
|
|
10318
10641
|
/***/ 1866:
|
|
@@ -12293,6 +12616,84 @@ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind
|
|
|
12293
12616
|
|
|
12294
12617
|
/***/ }),
|
|
12295
12618
|
|
|
12619
|
+
/***/ 2399:
|
|
12620
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12621
|
+
|
|
12622
|
+
"use strict";
|
|
12623
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12624
|
+
/* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(649);
|
|
12625
|
+
|
|
12626
|
+
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 9673));
|
|
12627
|
+
const langData = {
|
|
12628
|
+
configList: [
|
|
12629
|
+
// {
|
|
12630
|
+
// id: Math.random().toString(),
|
|
12631
|
+
// pictureUrl:
|
|
12632
|
+
// "https://omniapi.hk.chinamobile.com/upload/images/omni-channel-service-console/preferential/2024-03-15/ORIGINAL_20240315172555_9XVGHwD4_600x348.png",
|
|
12633
|
+
// commodityId: "21202311071721797951533748224",
|
|
12634
|
+
// maxPicId: "",
|
|
12635
|
+
// commodityName: "",
|
|
12636
|
+
// refPrice: "",
|
|
12637
|
+
// price: "",
|
|
12638
|
+
// upTime: "",
|
|
12639
|
+
// malltCommodityRight: [],
|
|
12640
|
+
// malltCommodityLeft: [],
|
|
12641
|
+
// },
|
|
12642
|
+
]
|
|
12643
|
+
};
|
|
12644
|
+
const configDataType = {};
|
|
12645
|
+
// const configDataType = getLangDataType(langData, {
|
|
12646
|
+
// configList: {
|
|
12647
|
+
// label: "商品信息配置",
|
|
12648
|
+
// addWidgetType: "addProductCard",
|
|
12649
|
+
// value: [
|
|
12650
|
+
// {
|
|
12651
|
+
// id: { label: "" },
|
|
12652
|
+
// ImageUrl: { label: "商品图片", hidden: true },
|
|
12653
|
+
// commodityId: { label: "商品id" },
|
|
12654
|
+
// title: { label: "标题" },
|
|
12655
|
+
// input1: { label: "員工特惠價", hidden: true },
|
|
12656
|
+
// diyInput: { label: "自定义" },
|
|
12657
|
+
// input2: { label: "员工优惠" },
|
|
12658
|
+
// input3: { label: "市場零售價", hidden: true },
|
|
12659
|
+
// input4: { label: "市场优惠" },
|
|
12660
|
+
// input5: { label: "起", hidden: true },
|
|
12661
|
+
// colorBody: {
|
|
12662
|
+
// label: "色值配置",
|
|
12663
|
+
// maxNums: 4,
|
|
12664
|
+
// value: [
|
|
12665
|
+
// {
|
|
12666
|
+
// id: { label: "" },
|
|
12667
|
+
// color: {
|
|
12668
|
+
// label: "色值",
|
|
12669
|
+
// widgetType: "el-color-picker",
|
|
12670
|
+
// predefine: ["#2F85FF", "#f48427", "#52C41A", "#D6197F"],
|
|
12671
|
+
// },
|
|
12672
|
+
// },
|
|
12673
|
+
// ],
|
|
12674
|
+
// },
|
|
12675
|
+
// button: { label: "按钮文案" },
|
|
12676
|
+
// jumpUrl: { label: "跳转链接" },
|
|
12677
|
+
// },
|
|
12678
|
+
// ],
|
|
12679
|
+
// },
|
|
12680
|
+
// });
|
|
12681
|
+
const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSchema)(langData);
|
|
12682
|
+
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
12683
|
+
View,
|
|
12684
|
+
validateSchema,
|
|
12685
|
+
configDataType,
|
|
12686
|
+
langData,
|
|
12687
|
+
settings: cmsCompName => {
|
|
12688
|
+
return (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getInitCompData)({
|
|
12689
|
+
cmsCompName,
|
|
12690
|
+
langData
|
|
12691
|
+
});
|
|
12692
|
+
}
|
|
12693
|
+
});
|
|
12694
|
+
|
|
12695
|
+
/***/ }),
|
|
12696
|
+
|
|
12296
12697
|
/***/ 2404:
|
|
12297
12698
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12298
12699
|
|
|
@@ -25019,6 +25420,270 @@ var POLYFILL = isForced.POLYFILL = 'P';
|
|
|
25019
25420
|
module.exports = isForced;
|
|
25020
25421
|
|
|
25021
25422
|
|
|
25423
|
+
/***/ }),
|
|
25424
|
+
|
|
25425
|
+
/***/ 2802:
|
|
25426
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
25427
|
+
|
|
25428
|
+
"use strict";
|
|
25429
|
+
// ESM COMPAT FLAG
|
|
25430
|
+
__webpack_require__.r(__webpack_exports__);
|
|
25431
|
+
|
|
25432
|
+
// EXPORTS
|
|
25433
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
25434
|
+
"default": function() { return /* binding */ View; }
|
|
25435
|
+
});
|
|
25436
|
+
|
|
25437
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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-column/View.vue?vue&type=template&id=f2ba72e8&scoped=true
|
|
25438
|
+
var render = function render() {
|
|
25439
|
+
var _vm = this,
|
|
25440
|
+
_c = _vm._self._c;
|
|
25441
|
+
return _c('BaseComp', _vm._b({
|
|
25442
|
+
attrs: {
|
|
25443
|
+
"data": _vm.data,
|
|
25444
|
+
"nowCompId": _vm.nowCompId,
|
|
25445
|
+
"isOpcacity": _vm.isOpcacity,
|
|
25446
|
+
"isMask": false,
|
|
25447
|
+
"lang": _vm.lang
|
|
25448
|
+
},
|
|
25449
|
+
on: {
|
|
25450
|
+
"getConfigData": _vm.getConfigData
|
|
25451
|
+
},
|
|
25452
|
+
scopedSlots: _vm._u([{
|
|
25453
|
+
key: "default",
|
|
25454
|
+
fn: function (slotProps) {
|
|
25455
|
+
return [_c('section', {
|
|
25456
|
+
class: (_vm.configData.widthType === 'full' ? 'width-full' : 'cmhk-home_main', {
|
|
25457
|
+
hoverBorderClass: _vm.isConfigPage
|
|
25458
|
+
}),
|
|
25459
|
+
style: _vm.containerStyle
|
|
25460
|
+
}, [_c('div', {
|
|
25461
|
+
staticClass: "column-setting",
|
|
25462
|
+
class: [`layout-${_vm.configData.layoutType || 'default'}`, `${slotProps.isMobile && _vm.configData.mobileLayout === 'vertical' ? 'mobile-vertical' : 'mobile-horizontal'}`],
|
|
25463
|
+
style: _vm.columnStyle
|
|
25464
|
+
}, _vm._l(_vm.data.childList, function (item, index) {
|
|
25465
|
+
return _c('cms-column-card', _vm._b({
|
|
25466
|
+
key: item.componentId,
|
|
25467
|
+
class: _vm.getColumnItemClass(index),
|
|
25468
|
+
style: _vm.getColumnItemStyle(index),
|
|
25469
|
+
attrs: {
|
|
25470
|
+
"data": item,
|
|
25471
|
+
"nowCompId": _vm.nowCompId,
|
|
25472
|
+
"isOpcacity": _vm.isOpcacity,
|
|
25473
|
+
"isMask": false,
|
|
25474
|
+
"lang": _vm.lang,
|
|
25475
|
+
"isMobile": slotProps.isMobile,
|
|
25476
|
+
"mobileLayout": _vm.configData.mobileLayout
|
|
25477
|
+
}
|
|
25478
|
+
}, 'cms-column-card', _vm.$attrs, false));
|
|
25479
|
+
}), 1)])];
|
|
25480
|
+
}
|
|
25481
|
+
}])
|
|
25482
|
+
}, 'BaseComp', _vm.$attrs, false));
|
|
25483
|
+
};
|
|
25484
|
+
var staticRenderFns = [];
|
|
25485
|
+
|
|
25486
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
25487
|
+
var baseComp = __webpack_require__(5298);
|
|
25488
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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-column/View.vue?vue&type=script&lang=js
|
|
25489
|
+
|
|
25490
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
25491
|
+
name: "cms-column",
|
|
25492
|
+
components: {
|
|
25493
|
+
BaseComp: baseComp["default"]
|
|
25494
|
+
},
|
|
25495
|
+
props: {
|
|
25496
|
+
data: {
|
|
25497
|
+
type: Object,
|
|
25498
|
+
default: () => {
|
|
25499
|
+
return {};
|
|
25500
|
+
}
|
|
25501
|
+
},
|
|
25502
|
+
nowCompId: {
|
|
25503
|
+
type: [String, Number],
|
|
25504
|
+
default: ""
|
|
25505
|
+
},
|
|
25506
|
+
isOpcacity: {
|
|
25507
|
+
type: Boolean,
|
|
25508
|
+
default: true
|
|
25509
|
+
},
|
|
25510
|
+
lang: {
|
|
25511
|
+
type: String,
|
|
25512
|
+
default: "zh-HK"
|
|
25513
|
+
}
|
|
25514
|
+
},
|
|
25515
|
+
data() {
|
|
25516
|
+
return {
|
|
25517
|
+
configData: {},
|
|
25518
|
+
messFold: true,
|
|
25519
|
+
// 默认配置数据
|
|
25520
|
+
defaultConfig: {
|
|
25521
|
+
layoutType: "100",
|
|
25522
|
+
heightType: "auto",
|
|
25523
|
+
widthType: "auto",
|
|
25524
|
+
mobileLayout: "vertical",
|
|
25525
|
+
fixedHeight: 300,
|
|
25526
|
+
borderWidth: 0,
|
|
25527
|
+
borderStyle: "solid",
|
|
25528
|
+
borderColor: "",
|
|
25529
|
+
backgroundColor: "#FFF",
|
|
25530
|
+
backgroundImage: "",
|
|
25531
|
+
boxShadow: "",
|
|
25532
|
+
borderRadius: 0,
|
|
25533
|
+
columnGap: 0,
|
|
25534
|
+
rowGap: 0,
|
|
25535
|
+
title: "",
|
|
25536
|
+
description: "",
|
|
25537
|
+
input1: "",
|
|
25538
|
+
showTitle: true,
|
|
25539
|
+
showDescription: true,
|
|
25540
|
+
animationDuration: 300,
|
|
25541
|
+
responsiveBreakpoint: 768
|
|
25542
|
+
}
|
|
25543
|
+
};
|
|
25544
|
+
},
|
|
25545
|
+
mounted() {},
|
|
25546
|
+
watch: {
|
|
25547
|
+
configData: {
|
|
25548
|
+
handler() {
|
|
25549
|
+
this.updateStyles();
|
|
25550
|
+
},
|
|
25551
|
+
immediate: true,
|
|
25552
|
+
deep: true
|
|
25553
|
+
}
|
|
25554
|
+
},
|
|
25555
|
+
computed: {
|
|
25556
|
+
isConfigPage() {
|
|
25557
|
+
return this.$EventBus && this.isOpcacity;
|
|
25558
|
+
},
|
|
25559
|
+
// 容器样式
|
|
25560
|
+
containerStyle() {
|
|
25561
|
+
return {
|
|
25562
|
+
backgroundColor: this.configData.backgroundColor || this.defaultConfig.backgroundColor,
|
|
25563
|
+
backgroundImage: this.configData.backgroundImage ? `url(${this.configData.backgroundImage})` : "",
|
|
25564
|
+
backgroundSize: "cover",
|
|
25565
|
+
backgroundRepeat: "no-repeat",
|
|
25566
|
+
backgroundPosition: "center center",
|
|
25567
|
+
boxShadow: this.configData.boxShadow || this.defaultConfig.boxShadow,
|
|
25568
|
+
borderRadius: `${this.configData.borderRadius || this.defaultConfig.borderRadius}px`,
|
|
25569
|
+
minHeight: this.configData.heightType === "fixed" ? `${this.configData.fixedHeight}px` : "auto"
|
|
25570
|
+
};
|
|
25571
|
+
},
|
|
25572
|
+
// 分栏容器样式
|
|
25573
|
+
columnStyle() {
|
|
25574
|
+
// const gap = this.configData.rowGap || this.defaultConfig.rowGap;
|
|
25575
|
+
return {
|
|
25576
|
+
// gap: `${gap}px`,
|
|
25577
|
+
border: this.configData.borderWidth ? `${this.configData.borderWidth}px ${this.configData.borderStyle} ${this.configData.borderColor}` : "none"
|
|
25578
|
+
};
|
|
25579
|
+
}
|
|
25580
|
+
},
|
|
25581
|
+
methods: {
|
|
25582
|
+
// 获取配置数据
|
|
25583
|
+
getConfigData(configData) {
|
|
25584
|
+
this.configData = configData;
|
|
25585
|
+
this.updateStyles();
|
|
25586
|
+
},
|
|
25587
|
+
// 更新样式
|
|
25588
|
+
updateStyles() {
|
|
25589
|
+
this.$nextTick(() => {
|
|
25590
|
+
// 触发样式更新
|
|
25591
|
+
this.$forceUpdate();
|
|
25592
|
+
});
|
|
25593
|
+
},
|
|
25594
|
+
// 获取分栏项的类名
|
|
25595
|
+
getColumnItemClass(index) {
|
|
25596
|
+
const layoutType = this.configData.layoutType || this.defaultConfig.layoutType;
|
|
25597
|
+
return ["column-item", `column-item-${index}`, `layout-${layoutType}`, {
|
|
25598
|
+
"min-h": this.$EventBus && this.isOpcacity,
|
|
25599
|
+
"first-item": index === 0,
|
|
25600
|
+
"last-item": index === this.data.childList.length - 1
|
|
25601
|
+
}];
|
|
25602
|
+
},
|
|
25603
|
+
// 获取分栏项的样式
|
|
25604
|
+
getColumnItemStyle(index) {
|
|
25605
|
+
const layoutType = this.configData.layoutType || this.defaultConfig.layoutType;
|
|
25606
|
+
const gap = this.configData.rowGap || this.defaultConfig.rowGap;
|
|
25607
|
+
let flexBasis = "100%";
|
|
25608
|
+
let marginRight = "0";
|
|
25609
|
+
|
|
25610
|
+
// 根据布局类型设置宽度
|
|
25611
|
+
switch (layoutType) {
|
|
25612
|
+
case "50-50":
|
|
25613
|
+
flexBasis = `calc(50% - ${gap / 2}px)`;
|
|
25614
|
+
marginRight = index % 2 === 0 ? `${gap}px` : "0";
|
|
25615
|
+
break;
|
|
25616
|
+
case "33-66":
|
|
25617
|
+
flexBasis = index === 0 ? `calc(33.33% - ${gap / 2}px)` : `calc(66.67% - ${gap / 2}px)`;
|
|
25618
|
+
marginRight = index === 0 ? `${gap}px` : "0";
|
|
25619
|
+
break;
|
|
25620
|
+
case "66-33":
|
|
25621
|
+
flexBasis = index === 0 ? `calc(66.67% - ${gap / 2}px)` : `calc(33.33% - ${gap / 2}px)`;
|
|
25622
|
+
marginRight = index === 0 ? `${gap}px` : "0";
|
|
25623
|
+
break;
|
|
25624
|
+
case "33-33-33":
|
|
25625
|
+
flexBasis = `calc(33.33% - ${gap * 2 / 3}px)`;
|
|
25626
|
+
marginRight = index < 2 ? `${gap}px` : "0";
|
|
25627
|
+
break;
|
|
25628
|
+
case "25-50-25":
|
|
25629
|
+
if (index === 0 || index === 2) {
|
|
25630
|
+
flexBasis = `calc(25% - ${gap * 2 / 3}px)`;
|
|
25631
|
+
} else {
|
|
25632
|
+
flexBasis = `calc(50% - ${gap * 2 / 3}px)`;
|
|
25633
|
+
}
|
|
25634
|
+
marginRight = index < 2 ? `${gap}px` : "0";
|
|
25635
|
+
break;
|
|
25636
|
+
default:
|
|
25637
|
+
flexBasis = "100%";
|
|
25638
|
+
}
|
|
25639
|
+
return {
|
|
25640
|
+
flexBasis,
|
|
25641
|
+
marginRight,
|
|
25642
|
+
marginBottom: `${this.configData.columnGap || this.defaultConfig.columnGap}px`
|
|
25643
|
+
};
|
|
25644
|
+
},
|
|
25645
|
+
// 折叠/展开文本
|
|
25646
|
+
foldMessText() {
|
|
25647
|
+
this.messFold = !this.messFold;
|
|
25648
|
+
},
|
|
25649
|
+
// 处理跳转链接
|
|
25650
|
+
decodeJumpUrl(url) {
|
|
25651
|
+
if (!url) return;
|
|
25652
|
+
top.location.href = url;
|
|
25653
|
+
}
|
|
25654
|
+
}
|
|
25655
|
+
});
|
|
25656
|
+
;// ./package/cms-column/View.vue?vue&type=script&lang=js
|
|
25657
|
+
/* harmony default export */ var cms_column_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
25658
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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-column/View.vue?vue&type=style&index=0&id=f2ba72e8&prod&lang=scss&scoped=true
|
|
25659
|
+
// extracted by mini-css-extract-plugin
|
|
25660
|
+
|
|
25661
|
+
;// ./package/cms-column/View.vue?vue&type=style&index=0&id=f2ba72e8&prod&lang=scss&scoped=true
|
|
25662
|
+
|
|
25663
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
25664
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
25665
|
+
;// ./package/cms-column/View.vue
|
|
25666
|
+
|
|
25667
|
+
|
|
25668
|
+
|
|
25669
|
+
;
|
|
25670
|
+
|
|
25671
|
+
|
|
25672
|
+
/* normalize component */
|
|
25673
|
+
|
|
25674
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
25675
|
+
cms_column_Viewvue_type_script_lang_js,
|
|
25676
|
+
render,
|
|
25677
|
+
staticRenderFns,
|
|
25678
|
+
false,
|
|
25679
|
+
null,
|
|
25680
|
+
"f2ba72e8",
|
|
25681
|
+
null
|
|
25682
|
+
|
|
25683
|
+
)
|
|
25684
|
+
|
|
25685
|
+
/* harmony default export */ var View = (component.exports);
|
|
25686
|
+
|
|
25022
25687
|
/***/ }),
|
|
25023
25688
|
|
|
25024
25689
|
/***/ 2806:
|
|
@@ -26314,7 +26979,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26314
26979
|
__webpack_require__.r(__webpack_exports__);
|
|
26315
26980
|
/* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(649);
|
|
26316
26981
|
|
|
26317
|
-
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__,
|
|
26982
|
+
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 2802));
|
|
26318
26983
|
const langData = {
|
|
26319
26984
|
// 布局配置
|
|
26320
26985
|
layoutType: "100",
|
|
@@ -26678,6 +27343,14 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
|
26678
27343
|
});
|
|
26679
27344
|
|
|
26680
27345
|
|
|
27346
|
+
/***/ }),
|
|
27347
|
+
|
|
27348
|
+
/***/ 4116:
|
|
27349
|
+
/***/ (function(module) {
|
|
27350
|
+
|
|
27351
|
+
"use strict";
|
|
27352
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAMlJREFUWEftlMENwjAMRb9PrFEmgBWYqxcuiLFYASageyCRKlUqocpt/J1DOTjHyP5++bEt2PnIzvURAOFAOBAO/KcDp1t65w0pH1yeVxlatuX5nrr0xSNrvHo5LrVUBwpAB2BogfgpPmmZAZaJHgirxmoPWAW072FyN5uQEZpB2JzqFDCCTOwMXAXIgRZhS4z2XSaAGoS3+DTqzIxrhXAAypy7xpYC0JwoD3AVpx1Y6fR87V5YtAMKRNPKdgMwvbMVGwDhQDgQDoyvGK8h0ZAi2wAAAABJRU5ErkJggg==";
|
|
27353
|
+
|
|
26681
27354
|
/***/ }),
|
|
26682
27355
|
|
|
26683
27356
|
/***/ 4117:
|
|
@@ -27162,7 +27835,7 @@ module.exports = Error;
|
|
|
27162
27835
|
__webpack_require__.r(__webpack_exports__);
|
|
27163
27836
|
/* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(649);
|
|
27164
27837
|
|
|
27165
|
-
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__,
|
|
27838
|
+
const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 7063));
|
|
27166
27839
|
const langData = {
|
|
27167
27840
|
configList: [{
|
|
27168
27841
|
id: Math.random().toString(),
|
|
@@ -36668,6 +37341,14 @@ function nonStandardBrowserEnv() {
|
|
|
36668
37341
|
|
|
36669
37342
|
/***/ }),
|
|
36670
37343
|
|
|
37344
|
+
/***/ 4860:
|
|
37345
|
+
/***/ (function(module) {
|
|
37346
|
+
|
|
37347
|
+
"use strict";
|
|
37348
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAYCAYAAADzoH0MAAAAAXNSR0IArs4c6QAAAM1JREFUOE+d1NERwiAMBuA/GzhCN7OO4AR1BDewTqYb2A0iKPQAQxLsS+/a5ksoJIR0MfMRwBXAFh5diOie32l3KoAHgKn4ePYgJfAKFRyabCZSAjOAm1CuiuxADGTmYaQC/kF+gFFEBEaQLuBFVMCDmICJeI6rgmyuChIQe2VtEj5dQGq0NjhaJxNQg4lWaxulsr+ZiT4VaQfJDO4CVtnlj5SayZU5I207DwVXSxgpW1xCANqZWP3t3onVZuK+Vd6pHMfZkgbrOe+z1StvwY53mu9ZPkwAAAAASUVORK5CYII=";
|
|
37349
|
+
|
|
37350
|
+
/***/ }),
|
|
37351
|
+
|
|
36671
37352
|
/***/ 4887:
|
|
36672
37353
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
36673
37354
|
|
|
@@ -38040,7 +38721,7 @@ var map = {
|
|
|
38040
38721
|
"./cms-button/View.vue": 2404,
|
|
38041
38722
|
"./cms-cells/View.vue": 5700,
|
|
38042
38723
|
"./cms-column-card/View.vue": 2328,
|
|
38043
|
-
"./cms-column/View.vue":
|
|
38724
|
+
"./cms-column/View.vue": 2802,
|
|
38044
38725
|
"./cms-description/View.vue": 3203,
|
|
38045
38726
|
"./cms-dynamic-comp/View.vue": 1705,
|
|
38046
38727
|
"./cms-iconFour/View.vue": 8235,
|
|
@@ -38051,13 +38732,14 @@ var map = {
|
|
|
38051
38732
|
"./cms-lineFour/View.vue": 9703,
|
|
38052
38733
|
"./cms-lineThree/View.vue": 6547,
|
|
38053
38734
|
"./cms-lineTwo/View.vue": 3249,
|
|
38054
|
-
"./cms-proCard/View.vue":
|
|
38735
|
+
"./cms-proCard/View.vue": 7063,
|
|
38055
38736
|
"./cms-prodCustomization/View.vue": 6786,
|
|
38056
38737
|
"./cms-productDetails/View.vue": 7984,
|
|
38057
38738
|
"./cms-question/View.vue": 9764,
|
|
38058
38739
|
"./cms-richText/View.vue": 3411,
|
|
38059
38740
|
"./cms-servePlan-tab/View.vue": 4193,
|
|
38060
38741
|
"./cms-servePlan-text/View.vue": 9487,
|
|
38742
|
+
"./cms-stored-value-card/View.vue": 9673,
|
|
38061
38743
|
"./cms-termsAndConditions/View.vue": 8073,
|
|
38062
38744
|
"./cms-text/View.vue": 1452,
|
|
38063
38745
|
"./cms-threeScroll/View.vue": 8045,
|
|
@@ -38715,6 +39397,14 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
38715
39397
|
|
|
38716
39398
|
/***/ }),
|
|
38717
39399
|
|
|
39400
|
+
/***/ 5335:
|
|
39401
|
+
/***/ (function(module) {
|
|
39402
|
+
|
|
39403
|
+
"use strict";
|
|
39404
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVAAAAEQCAYAAADmsCy1AAAAAXNSR0IArs4c6QAAGABJREFUeF7tnVtyFceWhtcqYfAx7jAnohEmwg/SiyW1HyxGYDECwwiAEYBGIGkEiBEgRmAxAnaPAPnhtAQvbEecCCzREeyOMG4bs2t110bSEaBLXbIqV1V9ejonyMuf38r9OyuzaqUKfxCAAAQgUIqAlqpFJQhAAAIQEAyUSQABCECgJAEMtCQ4qkEAAhDAQJkDEIAABEoSwEBLgqMaBCAAAQyUOQABCECgJAEMtCQ4qkEAAhDAQJkDEIAABEoSwEBLgqMaBCAAAQyUOQABCECgJAEMtC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gJKUN9KCB53u2mKbpbU2SHzBTjxMETRCAwFECKrqVWvpY0mSQ91H9JIKVDfRow9n7o5bIokq6mCTJ9yZySUxmeNxnAkMAAs0TmGRLyk7QtyxN/yfVZPC332Vw2ql6UY1BDbRo55SHAAQg0GYCGGibo4d2CEAgKgEMNCp+OocABNpMAANtc/TQDgEIRCWAgUbFT+cQgECbCWCgbY4e2iEAgagEMNCo+OkcAhBoMwEMtM3RQzsEIBCVAAYaFT+dQwACbSaAgbY5emiHAASiEsBAo+KncwhAoM0EMNA2Rw/tEIBAVAIYaFT8dA4BCLSZAAba5uihHQIQiErg/wB1YYsak+UHWwAAAABJRU5ErkJggg==";
|
|
39405
|
+
|
|
39406
|
+
/***/ }),
|
|
39407
|
+
|
|
38718
39408
|
/***/ 5340:
|
|
38719
39409
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
38720
39410
|
|
|
@@ -48766,23 +49456,7 @@ module.exports = fails(function () {
|
|
|
48766
49456
|
|
|
48767
49457
|
/***/ }),
|
|
48768
49458
|
|
|
48769
|
-
/***/
|
|
48770
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
48771
|
-
|
|
48772
|
-
"use strict";
|
|
48773
|
-
|
|
48774
|
-
var has = (__webpack_require__(4402).has);
|
|
48775
|
-
|
|
48776
|
-
// Perform ? RequireInternalSlot(M, [[SetData]])
|
|
48777
|
-
module.exports = function (it) {
|
|
48778
|
-
has(it);
|
|
48779
|
-
return it;
|
|
48780
|
-
};
|
|
48781
|
-
|
|
48782
|
-
|
|
48783
|
-
/***/ }),
|
|
48784
|
-
|
|
48785
|
-
/***/ 7108:
|
|
49459
|
+
/***/ 7063:
|
|
48786
49460
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
48787
49461
|
|
|
48788
49462
|
"use strict";
|
|
@@ -48794,7 +49468,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
48794
49468
|
"default": function() { return /* binding */ View; }
|
|
48795
49469
|
});
|
|
48796
49470
|
|
|
48797
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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-
|
|
49471
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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-proCard/View.vue?vue&type=template&id=4c7f21b1&scoped=true
|
|
48798
49472
|
var render = function render() {
|
|
48799
49473
|
var _vm = this,
|
|
48800
49474
|
_c = _vm._self._c;
|
|
@@ -48803,52 +49477,94 @@ var render = function render() {
|
|
|
48803
49477
|
"data": _vm.data,
|
|
48804
49478
|
"nowCompId": _vm.nowCompId,
|
|
48805
49479
|
"isOpcacity": _vm.isOpcacity,
|
|
48806
|
-
"isMask": false,
|
|
48807
49480
|
"lang": _vm.lang
|
|
48808
49481
|
},
|
|
48809
49482
|
on: {
|
|
48810
49483
|
"getConfigData": _vm.getConfigData
|
|
48811
|
-
}
|
|
48812
|
-
|
|
48813
|
-
|
|
48814
|
-
|
|
48815
|
-
|
|
48816
|
-
|
|
48817
|
-
|
|
48818
|
-
|
|
48819
|
-
|
|
48820
|
-
|
|
48821
|
-
|
|
48822
|
-
|
|
48823
|
-
|
|
48824
|
-
|
|
48825
|
-
|
|
48826
|
-
|
|
48827
|
-
|
|
48828
|
-
|
|
48829
|
-
|
|
48830
|
-
|
|
48831
|
-
"nowCompId": _vm.nowCompId,
|
|
48832
|
-
"isOpcacity": _vm.isOpcacity,
|
|
48833
|
-
"isMask": false,
|
|
48834
|
-
"lang": _vm.lang,
|
|
48835
|
-
"isMobile": slotProps.isMobile,
|
|
48836
|
-
"mobileLayout": _vm.configData.mobileLayout
|
|
48837
|
-
}
|
|
48838
|
-
}, 'cms-column-card', _vm.$attrs, false));
|
|
48839
|
-
}), 1)])];
|
|
49484
|
+
}
|
|
49485
|
+
}, 'BaseComp', _vm.$attrs, false), [_c('div', {
|
|
49486
|
+
staticClass: "employeePurchase"
|
|
49487
|
+
}, [_c('div', {
|
|
49488
|
+
staticClass: "cmhk-home_main"
|
|
49489
|
+
}, [_c('div', {
|
|
49490
|
+
staticClass: "cardList"
|
|
49491
|
+
}, [_c('div', {
|
|
49492
|
+
staticClass: "card first-type-card"
|
|
49493
|
+
}, [_c('div', {
|
|
49494
|
+
staticClass: "card-item-div"
|
|
49495
|
+
}, _vm._l(_vm.configList, function (item, index) {
|
|
49496
|
+
return _c('div', {
|
|
49497
|
+
key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
|
|
49498
|
+
staticClass: "card-item"
|
|
49499
|
+
}, [_c('img', {
|
|
49500
|
+
staticClass: "childImg",
|
|
49501
|
+
attrs: {
|
|
49502
|
+
"src": item.ImageUrl,
|
|
49503
|
+
"alt": "图片"
|
|
48840
49504
|
}
|
|
48841
|
-
}
|
|
48842
|
-
|
|
49505
|
+
}), _c('div', {
|
|
49506
|
+
staticClass: "color"
|
|
49507
|
+
}, [item.colorBody && item.colorBody.length ? [_vm._l(item.colorBody, function (colorItem, idx) {
|
|
49508
|
+
return [!!colorItem.color ? _c('div', {
|
|
49509
|
+
key: `color${idx}`,
|
|
49510
|
+
staticClass: "circle",
|
|
49511
|
+
style: {
|
|
49512
|
+
'background-color': colorItem.color
|
|
49513
|
+
}
|
|
49514
|
+
}) : _vm._e()];
|
|
49515
|
+
})] : [_c('div', {
|
|
49516
|
+
staticClass: "circle",
|
|
49517
|
+
staticStyle: {
|
|
49518
|
+
"background-color": "rgb(178, 179, 181)"
|
|
49519
|
+
}
|
|
49520
|
+
}), _c('span', {
|
|
49521
|
+
staticClass: "colorName"
|
|
49522
|
+
})]], 2), _c('div', {
|
|
49523
|
+
staticClass: "childName"
|
|
49524
|
+
}, [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.title))]), _c('div', {
|
|
49525
|
+
staticClass: "topPriceDesc"
|
|
49526
|
+
}, [_vm._v(" " + _vm._s(item === null || item === void 0 ? void 0 : item.input1) + " "), _c('span', [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.diyInput))])]), _c('div', {
|
|
49527
|
+
staticClass: "topPrice"
|
|
49528
|
+
}, [_vm._v("HK$" + _vm._s(item === null || item === void 0 ? void 0 : item.input2))]), _c('div', {
|
|
49529
|
+
staticClass: "purchaseBtn",
|
|
49530
|
+
on: {
|
|
49531
|
+
"click": function ($event) {
|
|
49532
|
+
return _vm.decodeJumpUrl(item === null || item === void 0 ? void 0 : item.jumpUrl);
|
|
49533
|
+
}
|
|
49534
|
+
}
|
|
49535
|
+
}, [_c('span', [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.button))]), _c('i', {
|
|
49536
|
+
staticClass: "el-icon-arrow-right"
|
|
49537
|
+
})])]);
|
|
49538
|
+
}), 0)])])])])]);
|
|
48843
49539
|
};
|
|
48844
49540
|
var staticRenderFns = [];
|
|
48845
49541
|
|
|
49542
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
49543
|
+
var es_iterator_constructor = __webpack_require__(8111);
|
|
49544
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
|
|
49545
|
+
var es_iterator_filter = __webpack_require__(2489);
|
|
49546
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
|
|
49547
|
+
var es_iterator_map = __webpack_require__(1701);
|
|
49548
|
+
// EXTERNAL MODULE: ./src/api/index.js
|
|
49549
|
+
var api = __webpack_require__(929);
|
|
49550
|
+
// EXTERNAL MODULE: ./node_modules/qs/lib/index.js
|
|
49551
|
+
var lib = __webpack_require__(9122);
|
|
49552
|
+
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
48846
49553
|
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
48847
49554
|
var baseComp = __webpack_require__(5298);
|
|
48848
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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-
|
|
49555
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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-proCard/View.vue?vue&type=script&lang=js
|
|
49556
|
+
|
|
49557
|
+
|
|
49558
|
+
|
|
49559
|
+
|
|
49560
|
+
|
|
49561
|
+
|
|
49562
|
+
|
|
49563
|
+
|
|
49564
|
+
|
|
48849
49565
|
|
|
48850
49566
|
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
48851
|
-
name: "cms-
|
|
49567
|
+
name: "cms-proCard",
|
|
48852
49568
|
components: {
|
|
48853
49569
|
BaseComp: baseComp["default"]
|
|
48854
49570
|
},
|
|
@@ -48874,189 +49590,102 @@ var baseComp = __webpack_require__(5298);
|
|
|
48874
49590
|
},
|
|
48875
49591
|
data() {
|
|
48876
49592
|
return {
|
|
48877
|
-
|
|
48878
|
-
messFold: true,
|
|
48879
|
-
// 默认配置数据
|
|
48880
|
-
defaultConfig: {
|
|
48881
|
-
layoutType: "100",
|
|
48882
|
-
heightType: "auto",
|
|
48883
|
-
widthType: "auto",
|
|
48884
|
-
mobileLayout: "vertical",
|
|
48885
|
-
fixedHeight: 300,
|
|
48886
|
-
borderWidth: 0,
|
|
48887
|
-
borderStyle: "solid",
|
|
48888
|
-
borderColor: "",
|
|
48889
|
-
backgroundColor: "#FFF",
|
|
48890
|
-
backgroundImage: "",
|
|
48891
|
-
boxShadow: "",
|
|
48892
|
-
borderRadius: 0,
|
|
48893
|
-
columnGap: 0,
|
|
48894
|
-
rowGap: 0,
|
|
48895
|
-
title: "",
|
|
48896
|
-
description: "",
|
|
48897
|
-
input1: "",
|
|
48898
|
-
showTitle: true,
|
|
48899
|
-
showDescription: true,
|
|
48900
|
-
animationDuration: 300,
|
|
48901
|
-
responsiveBreakpoint: 768
|
|
48902
|
-
}
|
|
49593
|
+
configList: []
|
|
48903
49594
|
};
|
|
48904
49595
|
},
|
|
48905
|
-
mounted() {
|
|
48906
|
-
this.initConfigData();
|
|
48907
|
-
// 添加窗口大小变化监听
|
|
48908
|
-
},
|
|
48909
|
-
watch: {
|
|
48910
|
-
configData: {
|
|
48911
|
-
handler() {
|
|
48912
|
-
this.updateStyles();
|
|
48913
|
-
},
|
|
48914
|
-
deep: true
|
|
48915
|
-
}
|
|
48916
|
-
},
|
|
48917
|
-
computed: {
|
|
48918
|
-
isConfigPage() {
|
|
48919
|
-
return this.$EventBus && this.isOpcacity;
|
|
48920
|
-
},
|
|
48921
|
-
// 容器样式
|
|
48922
|
-
containerStyle() {
|
|
48923
|
-
return {
|
|
48924
|
-
backgroundColor: this.configData.backgroundColor || this.defaultConfig.backgroundColor,
|
|
48925
|
-
backgroundImage: this.configData.backgroundImage ? `url(${this.configData.backgroundImage})` : "",
|
|
48926
|
-
backgroundSize: "cover",
|
|
48927
|
-
backgroundRepeat: "no-repeat",
|
|
48928
|
-
backgroundPosition: "center center",
|
|
48929
|
-
boxShadow: this.configData.boxShadow || this.defaultConfig.boxShadow,
|
|
48930
|
-
borderRadius: `${this.configData.borderRadius || this.defaultConfig.borderRadius}px`,
|
|
48931
|
-
minHeight: this.configData.heightType === "fixed" ? `${this.configData.fixedHeight}px` : "auto"
|
|
48932
|
-
};
|
|
48933
|
-
},
|
|
48934
|
-
// 分栏容器样式
|
|
48935
|
-
columnStyle() {
|
|
48936
|
-
// const gap = this.configData.rowGap || this.defaultConfig.rowGap;
|
|
48937
|
-
return {
|
|
48938
|
-
// gap: `${gap}px`,
|
|
48939
|
-
border: this.configData.borderWidth ? `${this.configData.borderWidth}px ${this.configData.borderStyle} ${this.configData.borderColor}` : "none"
|
|
48940
|
-
};
|
|
48941
|
-
}
|
|
48942
|
-
},
|
|
48943
49596
|
methods: {
|
|
48944
|
-
// 初始化配置数据
|
|
48945
|
-
initConfigData() {
|
|
48946
|
-
// 合并默认配置和传入配置
|
|
48947
|
-
this.configData = {
|
|
48948
|
-
...this.defaultConfig,
|
|
48949
|
-
...this.configData
|
|
48950
|
-
};
|
|
48951
|
-
},
|
|
48952
|
-
// 获取配置数据
|
|
48953
49597
|
getConfigData(configData) {
|
|
48954
|
-
this.
|
|
48955
|
-
|
|
48956
|
-
...configData
|
|
48957
|
-
};
|
|
48958
|
-
this.updateStyles();
|
|
48959
|
-
},
|
|
48960
|
-
// 更新样式
|
|
48961
|
-
updateStyles() {
|
|
48962
|
-
this.$nextTick(() => {
|
|
48963
|
-
// 触发样式更新
|
|
48964
|
-
this.$forceUpdate();
|
|
48965
|
-
});
|
|
48966
|
-
},
|
|
48967
|
-
// 获取分栏项的类名
|
|
48968
|
-
getColumnItemClass(index) {
|
|
48969
|
-
const layoutType = this.configData.layoutType || this.defaultConfig.layoutType;
|
|
48970
|
-
return ["column-item", `column-item-${index}`, `layout-${layoutType}`, {
|
|
48971
|
-
"min-h": this.$EventBus && this.isOpcacity,
|
|
48972
|
-
"first-item": index === 0,
|
|
48973
|
-
"last-item": index === this.data.childList.length - 1
|
|
48974
|
-
}];
|
|
49598
|
+
this.configList = configData.configList;
|
|
49599
|
+
this.getValue();
|
|
48975
49600
|
},
|
|
48976
|
-
|
|
48977
|
-
|
|
48978
|
-
|
|
48979
|
-
|
|
48980
|
-
|
|
48981
|
-
let marginRight = "0";
|
|
48982
|
-
|
|
48983
|
-
// 根据布局类型设置宽度
|
|
48984
|
-
switch (layoutType) {
|
|
48985
|
-
case "50-50":
|
|
48986
|
-
flexBasis = `calc(50% - ${gap / 2}px)`;
|
|
48987
|
-
marginRight = index % 2 === 0 ? `${gap}px` : "0";
|
|
48988
|
-
break;
|
|
48989
|
-
case "33-66":
|
|
48990
|
-
flexBasis = index === 0 ? `calc(33.33% - ${gap / 2}px)` : `calc(66.67% - ${gap / 2}px)`;
|
|
48991
|
-
marginRight = index === 0 ? `${gap}px` : "0";
|
|
48992
|
-
break;
|
|
48993
|
-
case "66-33":
|
|
48994
|
-
flexBasis = index === 0 ? `calc(66.67% - ${gap / 2}px)` : `calc(33.33% - ${gap / 2}px)`;
|
|
48995
|
-
marginRight = index === 0 ? `${gap}px` : "0";
|
|
48996
|
-
break;
|
|
48997
|
-
case "33-33-33":
|
|
48998
|
-
flexBasis = `calc(33.33% - ${gap * 2 / 3}px)`;
|
|
48999
|
-
marginRight = index < 2 ? `${gap}px` : "0";
|
|
49000
|
-
break;
|
|
49001
|
-
case "25-50-25":
|
|
49002
|
-
if (index === 0 || index === 2) {
|
|
49003
|
-
flexBasis = `calc(25% - ${gap * 2 / 3}px)`;
|
|
49004
|
-
} else {
|
|
49005
|
-
flexBasis = `calc(50% - ${gap * 2 / 3}px)`;
|
|
49006
|
-
}
|
|
49007
|
-
marginRight = index < 2 ? `${gap}px` : "0";
|
|
49008
|
-
break;
|
|
49009
|
-
default:
|
|
49010
|
-
flexBasis = "100%";
|
|
49601
|
+
async getValue() {
|
|
49602
|
+
if (!this.isOpcacity && !this.$EventBus) {
|
|
49603
|
+
await Promise.all(this.configList.map(async (item, index) => {
|
|
49604
|
+
await this.getCommodityInfo(item, index);
|
|
49605
|
+
}));
|
|
49011
49606
|
}
|
|
49012
|
-
return {
|
|
49013
|
-
flexBasis,
|
|
49014
|
-
marginRight,
|
|
49015
|
-
marginBottom: `${this.configData.columnGap || this.defaultConfig.columnGap}px`
|
|
49016
|
-
};
|
|
49017
49607
|
},
|
|
49018
|
-
|
|
49019
|
-
|
|
49020
|
-
|
|
49608
|
+
async getCommodityInfo(info, index) {
|
|
49609
|
+
let req = {
|
|
49610
|
+
busInfo: JSON.stringify({
|
|
49611
|
+
commodityId: info.commodityId,
|
|
49612
|
+
isPre: "N",
|
|
49613
|
+
channelId: "WWW"
|
|
49614
|
+
})
|
|
49615
|
+
};
|
|
49616
|
+
req = lib_default().stringify(req);
|
|
49617
|
+
const res = await (0,api/* queryV1 */.WL)(req);
|
|
49618
|
+
let result = {};
|
|
49619
|
+
const defaultPic = "https://omniapi.hk.chinamobile.com/upload/images/omni-channel-service-console/preferential/2023-11-15/ORIGINAL_20231115155223_BGxrpNa0_580x580.jpg?auto=format,compress&ar=1:1&fm=webp";
|
|
49620
|
+
if (res.resCode == "000000") {
|
|
49621
|
+
const commodityInfo = res.busiResp.busiDataResp[0];
|
|
49622
|
+
const {
|
|
49623
|
+
malltCommodityPrice = []
|
|
49624
|
+
} = commodityInfo;
|
|
49625
|
+
const priceNode = malltCommodityPrice.filter(item => item.isDefault == "1");
|
|
49626
|
+
const [currentSku = {}] = priceNode.length ? priceNode : malltCommodityPrice;
|
|
49627
|
+
const pictureUrl = currentSku !== null && currentSku !== void 0 && currentSku.commodityPricePictureVos.length ? currentSku === null || currentSku === void 0 ? void 0 : currentSku.commodityPricePictureVos[0].malltPictureVos[0].pictureUrl : defaultPic;
|
|
49628
|
+
result = {
|
|
49629
|
+
...info,
|
|
49630
|
+
commodityId: commodityInfo.commodityId,
|
|
49631
|
+
ImageUrl: pictureUrl,
|
|
49632
|
+
title: commodityInfo.commodityTitle,
|
|
49633
|
+
input4: `${(currentSku === null || currentSku === void 0 ? void 0 : currentSku.refPrice) / 100}`
|
|
49634
|
+
};
|
|
49635
|
+
} else {
|
|
49636
|
+
result = {
|
|
49637
|
+
...info
|
|
49638
|
+
};
|
|
49639
|
+
}
|
|
49640
|
+
this.configList.splice(index, 1, result);
|
|
49021
49641
|
},
|
|
49022
|
-
// 处理跳转链接
|
|
49023
49642
|
decodeJumpUrl(url) {
|
|
49024
49643
|
if (!url) return;
|
|
49025
49644
|
top.location.href = url;
|
|
49026
49645
|
}
|
|
49027
49646
|
}
|
|
49028
49647
|
});
|
|
49029
|
-
;// ./package/cms-
|
|
49030
|
-
/* harmony default export */ var
|
|
49031
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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-column/View.vue?vue&type=style&index=0&id=cd35c518&prod&lang=scss&scoped=true
|
|
49032
|
-
// extracted by mini-css-extract-plugin
|
|
49033
|
-
|
|
49034
|
-
;// ./package/cms-column/View.vue?vue&type=style&index=0&id=cd35c518&prod&lang=scss&scoped=true
|
|
49035
|
-
|
|
49648
|
+
;// ./package/cms-proCard/View.vue?vue&type=script&lang=js
|
|
49649
|
+
/* harmony default export */ var cms_proCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
49036
49650
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
49037
49651
|
var componentNormalizer = __webpack_require__(1656);
|
|
49038
|
-
;// ./package/cms-
|
|
49652
|
+
;// ./package/cms-proCard/View.vue
|
|
49039
49653
|
|
|
49040
49654
|
|
|
49041
49655
|
|
|
49042
|
-
;
|
|
49043
49656
|
|
|
49044
49657
|
|
|
49045
49658
|
/* normalize component */
|
|
49046
|
-
|
|
49659
|
+
;
|
|
49047
49660
|
var component = (0,componentNormalizer/* default */.A)(
|
|
49048
|
-
|
|
49661
|
+
cms_proCard_Viewvue_type_script_lang_js,
|
|
49049
49662
|
render,
|
|
49050
49663
|
staticRenderFns,
|
|
49051
49664
|
false,
|
|
49052
49665
|
null,
|
|
49053
|
-
"
|
|
49666
|
+
"4c7f21b1",
|
|
49054
49667
|
null
|
|
49055
49668
|
|
|
49056
49669
|
)
|
|
49057
49670
|
|
|
49058
49671
|
/* harmony default export */ var View = (component.exports);
|
|
49059
49672
|
|
|
49673
|
+
/***/ }),
|
|
49674
|
+
|
|
49675
|
+
/***/ 7080:
|
|
49676
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
49677
|
+
|
|
49678
|
+
"use strict";
|
|
49679
|
+
|
|
49680
|
+
var has = (__webpack_require__(4402).has);
|
|
49681
|
+
|
|
49682
|
+
// Perform ? RequireInternalSlot(M, [[SetData]])
|
|
49683
|
+
module.exports = function (it) {
|
|
49684
|
+
has(it);
|
|
49685
|
+
return it;
|
|
49686
|
+
};
|
|
49687
|
+
|
|
49688
|
+
|
|
49060
49689
|
/***/ }),
|
|
49061
49690
|
|
|
49062
49691
|
/***/ 7197:
|
|
@@ -50690,618 +51319,120 @@ var baseComp = __webpack_require__(5298);
|
|
|
50690
51319
|
},
|
|
50691
51320
|
data() {
|
|
50692
51321
|
return {
|
|
50693
|
-
configData: {}
|
|
50694
|
-
};
|
|
50695
|
-
},
|
|
50696
|
-
mounted() {},
|
|
50697
|
-
methods: {
|
|
50698
|
-
getConfigData(configData) {
|
|
50699
|
-
this.configData = configData;
|
|
50700
|
-
}
|
|
50701
|
-
}
|
|
50702
|
-
});
|
|
50703
|
-
;// ./package/cms-titleCenter/View.vue?vue&type=script&lang=js
|
|
50704
|
-
/* harmony default export */ var cms_titleCenter_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
50705
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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-titleCenter/View.vue?vue&type=style&index=0&id=6b284b71&prod&scoped=true&lang=scss
|
|
50706
|
-
// extracted by mini-css-extract-plugin
|
|
50707
|
-
|
|
50708
|
-
;// ./package/cms-titleCenter/View.vue?vue&type=style&index=0&id=6b284b71&prod&scoped=true&lang=scss
|
|
50709
|
-
|
|
50710
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
50711
|
-
var componentNormalizer = __webpack_require__(1656);
|
|
50712
|
-
;// ./package/cms-titleCenter/View.vue
|
|
50713
|
-
|
|
50714
|
-
|
|
50715
|
-
|
|
50716
|
-
;
|
|
50717
|
-
|
|
50718
|
-
|
|
50719
|
-
/* normalize component */
|
|
50720
|
-
|
|
50721
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
50722
|
-
cms_titleCenter_Viewvue_type_script_lang_js,
|
|
50723
|
-
render,
|
|
50724
|
-
staticRenderFns,
|
|
50725
|
-
false,
|
|
50726
|
-
null,
|
|
50727
|
-
"6b284b71",
|
|
50728
|
-
null
|
|
50729
|
-
|
|
50730
|
-
)
|
|
50731
|
-
|
|
50732
|
-
/* harmony default export */ var View = (component.exports);
|
|
50733
|
-
|
|
50734
|
-
/***/ }),
|
|
50735
|
-
|
|
50736
|
-
/***/ 8111:
|
|
50737
|
-
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
50738
|
-
|
|
50739
|
-
"use strict";
|
|
50740
|
-
|
|
50741
|
-
var $ = __webpack_require__(6518);
|
|
50742
|
-
var globalThis = __webpack_require__(4576);
|
|
50743
|
-
var anInstance = __webpack_require__(679);
|
|
50744
|
-
var anObject = __webpack_require__(8551);
|
|
50745
|
-
var isCallable = __webpack_require__(4901);
|
|
50746
|
-
var getPrototypeOf = __webpack_require__(2787);
|
|
50747
|
-
var defineBuiltInAccessor = __webpack_require__(2106);
|
|
50748
|
-
var createProperty = __webpack_require__(4659);
|
|
50749
|
-
var fails = __webpack_require__(9039);
|
|
50750
|
-
var hasOwn = __webpack_require__(9297);
|
|
50751
|
-
var wellKnownSymbol = __webpack_require__(8227);
|
|
50752
|
-
var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);
|
|
50753
|
-
var DESCRIPTORS = __webpack_require__(3724);
|
|
50754
|
-
var IS_PURE = __webpack_require__(6395);
|
|
50755
|
-
|
|
50756
|
-
var CONSTRUCTOR = 'constructor';
|
|
50757
|
-
var ITERATOR = 'Iterator';
|
|
50758
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
50759
|
-
|
|
50760
|
-
var $TypeError = TypeError;
|
|
50761
|
-
var NativeIterator = globalThis[ITERATOR];
|
|
50762
|
-
|
|
50763
|
-
// FF56- have non-standard global helper `Iterator`
|
|
50764
|
-
var FORCED = IS_PURE
|
|
50765
|
-
|| !isCallable(NativeIterator)
|
|
50766
|
-
|| NativeIterator.prototype !== IteratorPrototype
|
|
50767
|
-
// FF44- non-standard `Iterator` passes previous tests
|
|
50768
|
-
|| !fails(function () { NativeIterator({}); });
|
|
50769
|
-
|
|
50770
|
-
var IteratorConstructor = function Iterator() {
|
|
50771
|
-
anInstance(this, IteratorPrototype);
|
|
50772
|
-
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable');
|
|
50773
|
-
};
|
|
50774
|
-
|
|
50775
|
-
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
50776
|
-
if (DESCRIPTORS) {
|
|
50777
|
-
defineBuiltInAccessor(IteratorPrototype, key, {
|
|
50778
|
-
configurable: true,
|
|
50779
|
-
get: function () {
|
|
50780
|
-
return value;
|
|
50781
|
-
},
|
|
50782
|
-
set: function (replacement) {
|
|
50783
|
-
anObject(this);
|
|
50784
|
-
if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property");
|
|
50785
|
-
if (hasOwn(this, key)) this[key] = replacement;
|
|
50786
|
-
else createProperty(this, key, replacement);
|
|
50787
|
-
}
|
|
50788
|
-
});
|
|
50789
|
-
} else IteratorPrototype[key] = value;
|
|
50790
|
-
};
|
|
50791
|
-
|
|
50792
|
-
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR);
|
|
50793
|
-
|
|
50794
|
-
if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
|
|
50795
|
-
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
50796
|
-
}
|
|
50797
|
-
|
|
50798
|
-
IteratorConstructor.prototype = IteratorPrototype;
|
|
50799
|
-
|
|
50800
|
-
// `Iterator` constructor
|
|
50801
|
-
// https://tc39.es/ecma262/#sec-iterator
|
|
50802
|
-
$({ global: true, constructor: true, forced: FORCED }, {
|
|
50803
|
-
Iterator: IteratorConstructor
|
|
50804
|
-
});
|
|
50805
|
-
|
|
50806
|
-
|
|
50807
|
-
/***/ }),
|
|
50808
|
-
|
|
50809
|
-
/***/ 8112:
|
|
50810
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50811
|
-
|
|
50812
|
-
"use strict";
|
|
50813
|
-
// ESM COMPAT FLAG
|
|
50814
|
-
__webpack_require__.r(__webpack_exports__);
|
|
50815
|
-
|
|
50816
|
-
// EXPORTS
|
|
50817
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
50818
|
-
"default": function() { return /* binding */ View; }
|
|
50819
|
-
});
|
|
50820
|
-
|
|
50821
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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-proCard/View.vue?vue&type=template&id=4c7f21b1&scoped=true
|
|
50822
|
-
var render = function render() {
|
|
50823
|
-
var _vm = this,
|
|
50824
|
-
_c = _vm._self._c;
|
|
50825
|
-
return _c('BaseComp', _vm._b({
|
|
50826
|
-
attrs: {
|
|
50827
|
-
"data": _vm.data,
|
|
50828
|
-
"nowCompId": _vm.nowCompId,
|
|
50829
|
-
"isOpcacity": _vm.isOpcacity,
|
|
50830
|
-
"lang": _vm.lang
|
|
50831
|
-
},
|
|
50832
|
-
on: {
|
|
50833
|
-
"getConfigData": _vm.getConfigData
|
|
50834
|
-
}
|
|
50835
|
-
}, 'BaseComp', _vm.$attrs, false), [_c('div', {
|
|
50836
|
-
staticClass: "employeePurchase"
|
|
50837
|
-
}, [_c('div', {
|
|
50838
|
-
staticClass: "cmhk-home_main"
|
|
50839
|
-
}, [_c('div', {
|
|
50840
|
-
staticClass: "cardList"
|
|
50841
|
-
}, [_c('div', {
|
|
50842
|
-
staticClass: "card first-type-card"
|
|
50843
|
-
}, [_c('div', {
|
|
50844
|
-
staticClass: "card-item-div"
|
|
50845
|
-
}, _vm._l(_vm.configList, function (item, index) {
|
|
50846
|
-
return _c('div', {
|
|
50847
|
-
key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
|
|
50848
|
-
staticClass: "card-item"
|
|
50849
|
-
}, [_c('img', {
|
|
50850
|
-
staticClass: "childImg",
|
|
50851
|
-
attrs: {
|
|
50852
|
-
"src": item.ImageUrl,
|
|
50853
|
-
"alt": "图片"
|
|
50854
|
-
}
|
|
50855
|
-
}), _c('div', {
|
|
50856
|
-
staticClass: "color"
|
|
50857
|
-
}, [item.colorBody && item.colorBody.length ? [_vm._l(item.colorBody, function (colorItem, idx) {
|
|
50858
|
-
return [!!colorItem.color ? _c('div', {
|
|
50859
|
-
key: `color${idx}`,
|
|
50860
|
-
staticClass: "circle",
|
|
50861
|
-
style: {
|
|
50862
|
-
'background-color': colorItem.color
|
|
50863
|
-
}
|
|
50864
|
-
}) : _vm._e()];
|
|
50865
|
-
})] : [_c('div', {
|
|
50866
|
-
staticClass: "circle",
|
|
50867
|
-
staticStyle: {
|
|
50868
|
-
"background-color": "rgb(178, 179, 181)"
|
|
50869
|
-
}
|
|
50870
|
-
}), _c('span', {
|
|
50871
|
-
staticClass: "colorName"
|
|
50872
|
-
})]], 2), _c('div', {
|
|
50873
|
-
staticClass: "childName"
|
|
50874
|
-
}, [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.title))]), _c('div', {
|
|
50875
|
-
staticClass: "topPriceDesc"
|
|
50876
|
-
}, [_vm._v(" " + _vm._s(item === null || item === void 0 ? void 0 : item.input1) + " "), _c('span', [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.diyInput))])]), _c('div', {
|
|
50877
|
-
staticClass: "topPrice"
|
|
50878
|
-
}, [_vm._v("HK$" + _vm._s(item === null || item === void 0 ? void 0 : item.input2))]), _c('div', {
|
|
50879
|
-
staticClass: "purchaseBtn",
|
|
50880
|
-
on: {
|
|
50881
|
-
"click": function ($event) {
|
|
50882
|
-
return _vm.decodeJumpUrl(item === null || item === void 0 ? void 0 : item.jumpUrl);
|
|
50883
|
-
}
|
|
50884
|
-
}
|
|
50885
|
-
}, [_c('span', [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.button))]), _c('i', {
|
|
50886
|
-
staticClass: "el-icon-arrow-right"
|
|
50887
|
-
})])]);
|
|
50888
|
-
}), 0)])])])])]);
|
|
50889
|
-
};
|
|
50890
|
-
var staticRenderFns = [];
|
|
50891
|
-
|
|
50892
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
50893
|
-
var es_iterator_constructor = __webpack_require__(8111);
|
|
50894
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
|
|
50895
|
-
var es_iterator_filter = __webpack_require__(2489);
|
|
50896
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
|
|
50897
|
-
var es_iterator_map = __webpack_require__(1701);
|
|
50898
|
-
// EXTERNAL MODULE: ./src/utils/request.js + 2 modules
|
|
50899
|
-
var utils_request = __webpack_require__(1564);
|
|
50900
|
-
;// ./src/api/index.js
|
|
50901
|
-
|
|
50902
|
-
|
|
50903
|
-
// 页面配置保存接口
|
|
50904
|
-
function saveInstance(data) {
|
|
50905
|
-
return request({
|
|
50906
|
-
method: "post",
|
|
50907
|
-
url: "/omni-channel-service-console/rest/channelCmsCompInstance/saveInstance",
|
|
50908
|
-
data
|
|
50909
|
-
});
|
|
50910
|
-
}
|
|
50911
|
-
|
|
50912
|
-
// 页面组件配置信息查询接口
|
|
50913
|
-
function queryInstanceConfig(data) {
|
|
50914
|
-
return request({
|
|
50915
|
-
method: "post",
|
|
50916
|
-
url: "/omni-channel-service-console/rest/channelCmsCompInstance/queryInstanceConfig",
|
|
50917
|
-
data
|
|
50918
|
-
});
|
|
50919
|
-
}
|
|
50920
|
-
//B端25查询卡片组件下拉框
|
|
50921
|
-
function queryCategoryInfo(data) {
|
|
50922
|
-
return request({
|
|
50923
|
-
method: "post",
|
|
50924
|
-
url: "/ecosp-console/commodityCategory/queryCategoryList",
|
|
50925
|
-
data
|
|
50926
|
-
});
|
|
50927
|
-
}
|
|
50928
|
-
//B端25查询卡片
|
|
50929
|
-
function queryCommodityList(data) {
|
|
50930
|
-
return request({
|
|
50931
|
-
method: "post",
|
|
50932
|
-
url: "/ecosp-console/item/queryCommodityList",
|
|
50933
|
-
data
|
|
50934
|
-
});
|
|
50935
|
-
}
|
|
50936
|
-
//cmhk接口
|
|
50937
|
-
function queryV1(data, language) {
|
|
50938
|
-
return (0,utils_request/* default */.A)({
|
|
50939
|
-
method: "post",
|
|
50940
|
-
url: "/api/ecosp-emall/itemRest/commodity/queryV1",
|
|
50941
|
-
data,
|
|
50942
|
-
headers: {
|
|
50943
|
-
"Accept-Language": language || ""
|
|
50944
|
-
}
|
|
50945
|
-
});
|
|
50946
|
-
}
|
|
50947
|
-
//查询menuList
|
|
50948
|
-
function queryMenuList(data) {
|
|
50949
|
-
return request({
|
|
50950
|
-
method: "post",
|
|
50951
|
-
url: "/api/omni-channel-service-portal/rest/overAllMenuConfig/queryMenuListNew",
|
|
50952
|
-
data
|
|
50953
|
-
});
|
|
50954
|
-
}
|
|
50955
|
-
function uploadImage(data) {
|
|
50956
|
-
return request({
|
|
50957
|
-
method: "post",
|
|
50958
|
-
url: "/omni-channel-service-console/rest/commonFile/image",
|
|
50959
|
-
data
|
|
50960
|
-
});
|
|
50961
|
-
}
|
|
50962
|
-
function uploadVideo(data) {
|
|
50963
|
-
return request({
|
|
50964
|
-
method: "post",
|
|
50965
|
-
url: "/omni-channel-service-console/rest/commonFile/video",
|
|
50966
|
-
data
|
|
50967
|
-
});
|
|
50968
|
-
}
|
|
50969
|
-
/**
|
|
50970
|
-
* 查询部门列表
|
|
50971
|
-
* @returns {Promise}
|
|
50972
|
-
*/
|
|
50973
|
-
function queryDeptList(data) {
|
|
50974
|
-
return request({
|
|
50975
|
-
method: "post",
|
|
50976
|
-
url: "/omni-channel-service-console/rest/workBench/queryDeptList",
|
|
50977
|
-
data
|
|
50978
|
-
});
|
|
50979
|
-
}
|
|
50980
|
-
|
|
50981
|
-
/**
|
|
50982
|
-
* 查询面包屑列表
|
|
50983
|
-
* @returns {Promise}
|
|
50984
|
-
*/
|
|
50985
|
-
function queryBreadCrumbsList(data) {
|
|
50986
|
-
return request({
|
|
50987
|
-
method: "post",
|
|
50988
|
-
url: "/omni-channel-service-console/rest/workBench/queryBreadCrumbsList",
|
|
50989
|
-
data
|
|
50990
|
-
});
|
|
50991
|
-
}
|
|
50992
|
-
|
|
50993
|
-
/**
|
|
50994
|
-
* 查询页头页脚列表
|
|
50995
|
-
* @returns {Promise}
|
|
50996
|
-
*/
|
|
50997
|
-
function queryPageHfList(data) {
|
|
50998
|
-
return request({
|
|
50999
|
-
method: "post",
|
|
51000
|
-
url: "/omni-channel-service-console/rest/workBench/queryPageHfList",
|
|
51001
|
-
data
|
|
51002
|
-
});
|
|
51003
|
-
}
|
|
51004
|
-
|
|
51005
|
-
/**
|
|
51006
|
-
* 查询URL接口
|
|
51007
|
-
* @returns {Promise}
|
|
51008
|
-
*/
|
|
51009
|
-
function queryUrl(data) {
|
|
51010
|
-
return request({
|
|
51011
|
-
method: "post",
|
|
51012
|
-
url: "/omni-channel-service-console/rest/workBench/queryUrl",
|
|
51013
|
-
data
|
|
51014
|
-
});
|
|
51015
|
-
}
|
|
51016
|
-
|
|
51017
|
-
/**
|
|
51018
|
-
* 创建页面
|
|
51019
|
-
* @param {Object} pageData 页面数据
|
|
51020
|
-
* @returns {Promise}
|
|
51021
|
-
*/
|
|
51022
|
-
function createPage(data) {
|
|
51023
|
-
return request({
|
|
51024
|
-
method: "post",
|
|
51025
|
-
url: "/omni-channel-service-console/rest/workBench/createPage",
|
|
51026
|
-
data
|
|
51027
|
-
});
|
|
51028
|
-
}
|
|
51029
|
-
/**
|
|
51030
|
-
* 查询页面信息
|
|
51031
|
-
* @returns {Promise}
|
|
51032
|
-
*/
|
|
51033
|
-
function queryPageInfo(data) {
|
|
51034
|
-
return request({
|
|
51035
|
-
method: "post",
|
|
51036
|
-
url: "/omni-channel-service-console/rest/workBench/queryPageInfo",
|
|
51037
|
-
data
|
|
51038
|
-
});
|
|
51039
|
-
}
|
|
51040
|
-
|
|
51041
|
-
/**
|
|
51042
|
-
* 查询页面信息
|
|
51043
|
-
* @returns {Promise}
|
|
51044
|
-
*/
|
|
51045
|
-
function editPage(data) {
|
|
51046
|
-
return request({
|
|
51047
|
-
method: "post",
|
|
51048
|
-
url: "/omni-channel-service-console/rest/workBench/editPage",
|
|
51049
|
-
data
|
|
51050
|
-
});
|
|
51051
|
-
}
|
|
51052
|
-
/**
|
|
51053
|
-
* 字典值
|
|
51054
|
-
* @returns {Promise}
|
|
51055
|
-
*/
|
|
51056
|
-
function getPreDictonaryList(data) {
|
|
51057
|
-
return request({
|
|
51058
|
-
method: "post",
|
|
51059
|
-
url: "/omni-channel-service-console/rest/Dictionary/queryDictionaryList",
|
|
51060
|
-
data
|
|
51061
|
-
});
|
|
51062
|
-
}
|
|
51063
|
-
|
|
51064
|
-
/**
|
|
51065
|
-
* 无痕浏览
|
|
51066
|
-
* @returns {Promise}
|
|
51067
|
-
*/
|
|
51068
|
-
function saveTemporaryInfo(data) {
|
|
51069
|
-
return request({
|
|
51070
|
-
method: "post",
|
|
51071
|
-
url: "/omni-channel-service-console/rest/workBench/saveTempJson",
|
|
51072
|
-
data
|
|
51073
|
-
});
|
|
51074
|
-
}
|
|
51075
|
-
/**
|
|
51076
|
-
* 无痕浏览
|
|
51077
|
-
* @returns {Promise}
|
|
51078
|
-
*/
|
|
51079
|
-
function getTemporaryInfo(data) {
|
|
51080
|
-
return request({
|
|
51081
|
-
method: "post",
|
|
51082
|
-
url: "/omni-channel-service-console/rest/workBench/queryTempJson",
|
|
51083
|
-
data
|
|
51084
|
-
});
|
|
51085
|
-
}
|
|
51086
|
-
/**
|
|
51087
|
-
* 查询操作记录
|
|
51088
|
-
* @returns {Promise}
|
|
51089
|
-
*/
|
|
51090
|
-
function queryApproveList(data) {
|
|
51091
|
-
return request({
|
|
51092
|
-
method: "post",
|
|
51093
|
-
url: "/omni-channel-service-console/rest/workBench/queryApproveList",
|
|
51094
|
-
data
|
|
51095
|
-
});
|
|
51096
|
-
}
|
|
51097
|
-
/**
|
|
51098
|
-
* 通过栏目查询组件列表
|
|
51099
|
-
*/
|
|
51100
|
-
function queryComponentByColumn(data) {
|
|
51101
|
-
return request({
|
|
51102
|
-
method: "post",
|
|
51103
|
-
url: "/omni-channel-service-console/rest/component/queryComponentByColumn",
|
|
51104
|
-
data
|
|
51105
|
-
});
|
|
51106
|
-
}
|
|
51107
|
-
/**
|
|
51108
|
-
* 查询收藏组件列表
|
|
51109
|
-
*/
|
|
51110
|
-
function queryCollections(data) {
|
|
51111
|
-
return request({
|
|
51112
|
-
method: "post",
|
|
51113
|
-
url: "/omni-channel-service-console/rest/component/queryCollections",
|
|
51114
|
-
data
|
|
51115
|
-
});
|
|
51116
|
-
}
|
|
51117
|
-
/**
|
|
51118
|
-
* 收藏组件
|
|
51119
|
-
*/
|
|
51120
|
-
function collectionComponent(data) {
|
|
51121
|
-
return request({
|
|
51122
|
-
method: "post",
|
|
51123
|
-
url: "/omni-channel-service-console/rest/component/collectionComponent",
|
|
51124
|
-
data
|
|
51125
|
-
});
|
|
51126
|
-
}
|
|
51127
|
-
/**
|
|
51128
|
-
* 保存/删除/修改组件配置
|
|
51129
|
-
*/
|
|
51130
|
-
function syncComponentConfigure(data) {
|
|
51131
|
-
return request({
|
|
51132
|
-
method: "post",
|
|
51133
|
-
url: "/omni-channel-service-console/rest/component/syncComponentConfigure",
|
|
51134
|
-
data
|
|
51135
|
-
});
|
|
51136
|
-
}
|
|
51137
|
-
/**
|
|
51138
|
-
* 查询已保存组件列表
|
|
51139
|
-
*/
|
|
51140
|
-
function queryComponentConfigure(data) {
|
|
51141
|
-
return request({
|
|
51142
|
-
method: "post",
|
|
51143
|
-
url: "/omni-channel-service-console/rest/component/queryComponentConfigure",
|
|
51144
|
-
data
|
|
51145
|
-
});
|
|
51146
|
-
}
|
|
51147
|
-
function queryOperateList(data) {
|
|
51148
|
-
return request({
|
|
51149
|
-
method: "post",
|
|
51150
|
-
url: "/omni-channel-service-console/rest/workBench/queryOperateList",
|
|
51151
|
-
data
|
|
51152
|
-
});
|
|
51153
|
-
}
|
|
51154
|
-
function updateDefaultConfig(data) {
|
|
51155
|
-
return request({
|
|
51156
|
-
method: "post",
|
|
51157
|
-
url: "/omni-channel-service-console/rest/workBench/updateDefaultConfig",
|
|
51158
|
-
data
|
|
51159
|
-
});
|
|
51160
|
-
}
|
|
51161
|
-
function omniHeartbeat(data) {
|
|
51162
|
-
return request({
|
|
51163
|
-
method: "post",
|
|
51164
|
-
url: "/omni-channel-service-console/rest/workBench/keepAlive",
|
|
51165
|
-
data
|
|
51166
|
-
});
|
|
51167
|
-
}
|
|
51168
|
-
function emallHeartbeat(data) {
|
|
51169
|
-
return request({
|
|
51170
|
-
method: "post",
|
|
51171
|
-
url: "/ecosp-console/workbench/keepAlive",
|
|
51172
|
-
data
|
|
51173
|
-
});
|
|
51174
|
-
}
|
|
51175
|
-
function qryBtList(data) {
|
|
51176
|
-
return request({
|
|
51177
|
-
method: "post",
|
|
51178
|
-
url: "/omni-channel-service-console/rest/component/qryBtList",
|
|
51179
|
-
data
|
|
51180
|
-
});
|
|
51181
|
-
}
|
|
51182
|
-
// EXTERNAL MODULE: ./node_modules/qs/lib/index.js
|
|
51183
|
-
var lib = __webpack_require__(9122);
|
|
51184
|
-
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
51185
|
-
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
51186
|
-
var baseComp = __webpack_require__(5298);
|
|
51187
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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-proCard/View.vue?vue&type=script&lang=js
|
|
51188
|
-
|
|
51189
|
-
|
|
51190
|
-
|
|
51191
|
-
|
|
51192
|
-
|
|
51193
|
-
|
|
51194
|
-
|
|
51195
|
-
|
|
51196
|
-
|
|
51197
|
-
|
|
51198
|
-
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
51199
|
-
name: "cms-proCard",
|
|
51200
|
-
components: {
|
|
51201
|
-
BaseComp: baseComp["default"]
|
|
51202
|
-
},
|
|
51203
|
-
props: {
|
|
51204
|
-
data: {
|
|
51205
|
-
type: Object,
|
|
51206
|
-
default: () => {
|
|
51207
|
-
return {};
|
|
51208
|
-
}
|
|
51209
|
-
},
|
|
51210
|
-
nowCompId: {
|
|
51211
|
-
type: [String, Number],
|
|
51212
|
-
default: ""
|
|
51213
|
-
},
|
|
51214
|
-
isOpcacity: {
|
|
51215
|
-
type: Boolean,
|
|
51216
|
-
default: true
|
|
51217
|
-
},
|
|
51218
|
-
lang: {
|
|
51219
|
-
type: String,
|
|
51220
|
-
default: "zh-HK"
|
|
51221
|
-
}
|
|
51222
|
-
},
|
|
51223
|
-
data() {
|
|
51224
|
-
return {
|
|
51225
|
-
configList: []
|
|
51322
|
+
configData: {}
|
|
51226
51323
|
};
|
|
51227
51324
|
},
|
|
51325
|
+
mounted() {},
|
|
51228
51326
|
methods: {
|
|
51229
51327
|
getConfigData(configData) {
|
|
51230
|
-
this.
|
|
51231
|
-
this.getValue();
|
|
51232
|
-
},
|
|
51233
|
-
async getValue() {
|
|
51234
|
-
if (!this.isOpcacity && !this.$EventBus) {
|
|
51235
|
-
await Promise.all(this.configList.map(async (item, index) => {
|
|
51236
|
-
await this.getCommodityInfo(item, index);
|
|
51237
|
-
}));
|
|
51238
|
-
}
|
|
51239
|
-
},
|
|
51240
|
-
async getCommodityInfo(info, index) {
|
|
51241
|
-
let req = {
|
|
51242
|
-
busInfo: JSON.stringify({
|
|
51243
|
-
commodityId: info.commodityId,
|
|
51244
|
-
isPre: "N",
|
|
51245
|
-
channelId: "WWW"
|
|
51246
|
-
})
|
|
51247
|
-
};
|
|
51248
|
-
req = lib_default().stringify(req);
|
|
51249
|
-
const res = await queryV1(req);
|
|
51250
|
-
let result = {};
|
|
51251
|
-
const defaultPic = "https://omniapi.hk.chinamobile.com/upload/images/omni-channel-service-console/preferential/2023-11-15/ORIGINAL_20231115155223_BGxrpNa0_580x580.jpg?auto=format,compress&ar=1:1&fm=webp";
|
|
51252
|
-
if (res.resCode == "000000") {
|
|
51253
|
-
const commodityInfo = res.busiResp.busiDataResp[0];
|
|
51254
|
-
const {
|
|
51255
|
-
malltCommodityPrice = []
|
|
51256
|
-
} = commodityInfo;
|
|
51257
|
-
const priceNode = malltCommodityPrice.filter(item => item.isDefault == "1");
|
|
51258
|
-
const [currentSku = {}] = priceNode.length ? priceNode : malltCommodityPrice;
|
|
51259
|
-
const pictureUrl = currentSku !== null && currentSku !== void 0 && currentSku.commodityPricePictureVos.length ? currentSku === null || currentSku === void 0 ? void 0 : currentSku.commodityPricePictureVos[0].malltPictureVos[0].pictureUrl : defaultPic;
|
|
51260
|
-
result = {
|
|
51261
|
-
...info,
|
|
51262
|
-
commodityId: commodityInfo.commodityId,
|
|
51263
|
-
ImageUrl: pictureUrl,
|
|
51264
|
-
title: commodityInfo.commodityTitle,
|
|
51265
|
-
input4: `${(currentSku === null || currentSku === void 0 ? void 0 : currentSku.refPrice) / 100}`
|
|
51266
|
-
};
|
|
51267
|
-
} else {
|
|
51268
|
-
result = {
|
|
51269
|
-
...info
|
|
51270
|
-
};
|
|
51271
|
-
}
|
|
51272
|
-
this.configList.splice(index, 1, result);
|
|
51273
|
-
},
|
|
51274
|
-
decodeJumpUrl(url) {
|
|
51275
|
-
if (!url) return;
|
|
51276
|
-
top.location.href = url;
|
|
51328
|
+
this.configData = configData;
|
|
51277
51329
|
}
|
|
51278
51330
|
}
|
|
51279
51331
|
});
|
|
51280
|
-
;// ./package/cms-
|
|
51281
|
-
/* harmony default export */ var
|
|
51332
|
+
;// ./package/cms-titleCenter/View.vue?vue&type=script&lang=js
|
|
51333
|
+
/* harmony default export */ var cms_titleCenter_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
51334
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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-titleCenter/View.vue?vue&type=style&index=0&id=6b284b71&prod&scoped=true&lang=scss
|
|
51335
|
+
// extracted by mini-css-extract-plugin
|
|
51336
|
+
|
|
51337
|
+
;// ./package/cms-titleCenter/View.vue?vue&type=style&index=0&id=6b284b71&prod&scoped=true&lang=scss
|
|
51338
|
+
|
|
51282
51339
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
51283
51340
|
var componentNormalizer = __webpack_require__(1656);
|
|
51284
|
-
;// ./package/cms-
|
|
51341
|
+
;// ./package/cms-titleCenter/View.vue
|
|
51285
51342
|
|
|
51286
51343
|
|
|
51287
51344
|
|
|
51345
|
+
;
|
|
51288
51346
|
|
|
51289
51347
|
|
|
51290
51348
|
/* normalize component */
|
|
51291
|
-
|
|
51349
|
+
|
|
51292
51350
|
var component = (0,componentNormalizer/* default */.A)(
|
|
51293
|
-
|
|
51351
|
+
cms_titleCenter_Viewvue_type_script_lang_js,
|
|
51294
51352
|
render,
|
|
51295
51353
|
staticRenderFns,
|
|
51296
51354
|
false,
|
|
51297
51355
|
null,
|
|
51298
|
-
"
|
|
51356
|
+
"6b284b71",
|
|
51299
51357
|
null
|
|
51300
51358
|
|
|
51301
51359
|
)
|
|
51302
51360
|
|
|
51303
51361
|
/* harmony default export */ var View = (component.exports);
|
|
51304
51362
|
|
|
51363
|
+
/***/ }),
|
|
51364
|
+
|
|
51365
|
+
/***/ 8111:
|
|
51366
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
51367
|
+
|
|
51368
|
+
"use strict";
|
|
51369
|
+
|
|
51370
|
+
var $ = __webpack_require__(6518);
|
|
51371
|
+
var globalThis = __webpack_require__(4576);
|
|
51372
|
+
var anInstance = __webpack_require__(679);
|
|
51373
|
+
var anObject = __webpack_require__(8551);
|
|
51374
|
+
var isCallable = __webpack_require__(4901);
|
|
51375
|
+
var getPrototypeOf = __webpack_require__(2787);
|
|
51376
|
+
var defineBuiltInAccessor = __webpack_require__(2106);
|
|
51377
|
+
var createProperty = __webpack_require__(4659);
|
|
51378
|
+
var fails = __webpack_require__(9039);
|
|
51379
|
+
var hasOwn = __webpack_require__(9297);
|
|
51380
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
51381
|
+
var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);
|
|
51382
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
51383
|
+
var IS_PURE = __webpack_require__(6395);
|
|
51384
|
+
|
|
51385
|
+
var CONSTRUCTOR = 'constructor';
|
|
51386
|
+
var ITERATOR = 'Iterator';
|
|
51387
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
51388
|
+
|
|
51389
|
+
var $TypeError = TypeError;
|
|
51390
|
+
var NativeIterator = globalThis[ITERATOR];
|
|
51391
|
+
|
|
51392
|
+
// FF56- have non-standard global helper `Iterator`
|
|
51393
|
+
var FORCED = IS_PURE
|
|
51394
|
+
|| !isCallable(NativeIterator)
|
|
51395
|
+
|| NativeIterator.prototype !== IteratorPrototype
|
|
51396
|
+
// FF44- non-standard `Iterator` passes previous tests
|
|
51397
|
+
|| !fails(function () { NativeIterator({}); });
|
|
51398
|
+
|
|
51399
|
+
var IteratorConstructor = function Iterator() {
|
|
51400
|
+
anInstance(this, IteratorPrototype);
|
|
51401
|
+
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable');
|
|
51402
|
+
};
|
|
51403
|
+
|
|
51404
|
+
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
51405
|
+
if (DESCRIPTORS) {
|
|
51406
|
+
defineBuiltInAccessor(IteratorPrototype, key, {
|
|
51407
|
+
configurable: true,
|
|
51408
|
+
get: function () {
|
|
51409
|
+
return value;
|
|
51410
|
+
},
|
|
51411
|
+
set: function (replacement) {
|
|
51412
|
+
anObject(this);
|
|
51413
|
+
if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property");
|
|
51414
|
+
if (hasOwn(this, key)) this[key] = replacement;
|
|
51415
|
+
else createProperty(this, key, replacement);
|
|
51416
|
+
}
|
|
51417
|
+
});
|
|
51418
|
+
} else IteratorPrototype[key] = value;
|
|
51419
|
+
};
|
|
51420
|
+
|
|
51421
|
+
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR);
|
|
51422
|
+
|
|
51423
|
+
if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
|
|
51424
|
+
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
51425
|
+
}
|
|
51426
|
+
|
|
51427
|
+
IteratorConstructor.prototype = IteratorPrototype;
|
|
51428
|
+
|
|
51429
|
+
// `Iterator` constructor
|
|
51430
|
+
// https://tc39.es/ecma262/#sec-iterator
|
|
51431
|
+
$({ global: true, constructor: true, forced: FORCED }, {
|
|
51432
|
+
Iterator: IteratorConstructor
|
|
51433
|
+
});
|
|
51434
|
+
|
|
51435
|
+
|
|
51305
51436
|
/***/ }),
|
|
51306
51437
|
|
|
51307
51438
|
/***/ 8123:
|
|
@@ -55502,6 +55633,401 @@ module.exports = {
|
|
|
55502
55633
|
};
|
|
55503
55634
|
|
|
55504
55635
|
|
|
55636
|
+
/***/ }),
|
|
55637
|
+
|
|
55638
|
+
/***/ 9670:
|
|
55639
|
+
/***/ (function(module) {
|
|
55640
|
+
|
|
55641
|
+
"use strict";
|
|
55642
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAMlJREFUWEftlMENwjAMRb9PrFEmgBWYqxcuiLFYASageyCRKlUqocpt/J1DOTjHyP5++bEt2PnIzvURAOFAOBAO/KcDp1t65w0pH1yeVxlatuX5nrr0xSNrvHo5LrVUBwpAB2BogfgpPmmZAZaJHgirxmoPWAW072FyN5uQEZpB2JzqFDCCTOwMXAXIgRZhS4z2XSaAGoS3+DTqzIxrhXAAypy7xpYC0JwoD3AVpx1Y6fR87V5YtAMKRNPKdgMwvbMVGwDhQDgQDoyvGK8h0ZAi2wAAAABJRU5ErkJggg==";
|
|
55643
|
+
|
|
55644
|
+
/***/ }),
|
|
55645
|
+
|
|
55646
|
+
/***/ 9673:
|
|
55647
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
55648
|
+
|
|
55649
|
+
"use strict";
|
|
55650
|
+
// ESM COMPAT FLAG
|
|
55651
|
+
__webpack_require__.r(__webpack_exports__);
|
|
55652
|
+
|
|
55653
|
+
// EXPORTS
|
|
55654
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
55655
|
+
"default": function() { return /* binding */ View; }
|
|
55656
|
+
});
|
|
55657
|
+
|
|
55658
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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=5dba4ef6&scoped=true
|
|
55659
|
+
var render = function render() {
|
|
55660
|
+
var _vm = this,
|
|
55661
|
+
_c = _vm._self._c;
|
|
55662
|
+
return _c('BaseComp', _vm._b({
|
|
55663
|
+
attrs: {
|
|
55664
|
+
"data": _vm.data,
|
|
55665
|
+
"nowCompId": _vm.nowCompId,
|
|
55666
|
+
"isOpcacity": _vm.isOpcacity,
|
|
55667
|
+
"lang": _vm.lang
|
|
55668
|
+
},
|
|
55669
|
+
on: {
|
|
55670
|
+
"getConfigData": _vm.getConfigData
|
|
55671
|
+
}
|
|
55672
|
+
}, 'BaseComp', _vm.$attrs, false), [_c('section', {
|
|
55673
|
+
staticClass: "cmhk-home_main"
|
|
55674
|
+
}, [_c('div', {
|
|
55675
|
+
staticClass: "wrap"
|
|
55676
|
+
}, [_c('div', {
|
|
55677
|
+
ref: "cardList",
|
|
55678
|
+
staticClass: "cardList"
|
|
55679
|
+
}, [_vm.configList.length === 0 ? [_c('div', {
|
|
55680
|
+
staticClass: "card-box"
|
|
55681
|
+
}, [_c('div', {
|
|
55682
|
+
staticClass: "card"
|
|
55683
|
+
}, [_c('div', {
|
|
55684
|
+
staticClass: "img-box"
|
|
55685
|
+
}, [_c('div', {
|
|
55686
|
+
staticClass: "card-img",
|
|
55687
|
+
class: {
|
|
55688
|
+
'is-cms': _vm.$EventBus
|
|
55689
|
+
}
|
|
55690
|
+
}, [_c('img', {
|
|
55691
|
+
staticStyle: {
|
|
55692
|
+
"height": "200px"
|
|
55693
|
+
},
|
|
55694
|
+
attrs: {
|
|
55695
|
+
"src": _vm.placeholderImg,
|
|
55696
|
+
"alt": ""
|
|
55697
|
+
}
|
|
55698
|
+
})])]), _c('div', {
|
|
55699
|
+
staticClass: "content-box"
|
|
55700
|
+
}, [_c('div', {
|
|
55701
|
+
staticClass: "card-name"
|
|
55702
|
+
}, [_vm._v(_vm._s(_vm.langText.productName))]), _c('div', {
|
|
55703
|
+
staticClass: "text-box"
|
|
55704
|
+
}, [_c('div', {
|
|
55705
|
+
staticClass: "card-refPrice"
|
|
55706
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$XXXX ")]), _c('div', {
|
|
55707
|
+
staticClass: "card-pice-text"
|
|
55708
|
+
}, [_vm._v(_vm._s(_vm.langText.onlinePrice))])]), _c('div', {
|
|
55709
|
+
staticClass: "card-pice"
|
|
55710
|
+
}, [_c('span', [_vm._v("HK$")]), _vm._v("XXXX")]), _c('div', {
|
|
55711
|
+
staticClass: "card-btn"
|
|
55712
|
+
}, [_vm._v(_vm._s(_vm.langText.buyNow))])])])])] : _vm._e(), _vm._l(_vm.viewList, function (item, index) {
|
|
55713
|
+
return _c('div', {
|
|
55714
|
+
key: `${index}-${item.commodityId || index}`,
|
|
55715
|
+
staticClass: "card-box"
|
|
55716
|
+
}, [_c('div', {
|
|
55717
|
+
staticClass: "card"
|
|
55718
|
+
}, [_c('div', {
|
|
55719
|
+
staticClass: "tag-box-left"
|
|
55720
|
+
}, [_vm._l(item.malltCommodityLeft, function (ele, i) {
|
|
55721
|
+
return [_c('img', {
|
|
55722
|
+
key: i,
|
|
55723
|
+
attrs: {
|
|
55724
|
+
"src": _vm.compBaseUrl + ele.pictureUrl,
|
|
55725
|
+
"alt": ""
|
|
55726
|
+
}
|
|
55727
|
+
})];
|
|
55728
|
+
})], 2), _c('div', {
|
|
55729
|
+
staticClass: "tag-box-right"
|
|
55730
|
+
}, [_vm._l(item.malltCommodityRight, function (ele, i) {
|
|
55731
|
+
return [_c('img', {
|
|
55732
|
+
key: i,
|
|
55733
|
+
attrs: {
|
|
55734
|
+
"src": _vm.compBaseUrl + ele.pictureUrl,
|
|
55735
|
+
"alt": ""
|
|
55736
|
+
}
|
|
55737
|
+
})];
|
|
55738
|
+
})], 2), _c('div', {
|
|
55739
|
+
staticClass: "img-box"
|
|
55740
|
+
}, [_vm.isNotActive(item) ? _c('div', {
|
|
55741
|
+
staticClass: "mask"
|
|
55742
|
+
}, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? _vm.langText.comingSoon : _vm.langText.expired) + " ")]) : _vm._e(), _c('div', {
|
|
55743
|
+
staticClass: "card-img",
|
|
55744
|
+
class: {
|
|
55745
|
+
'is-cms': _vm.$EventBus
|
|
55746
|
+
}
|
|
55747
|
+
}, [_c('img', {
|
|
55748
|
+
attrs: {
|
|
55749
|
+
"src": _vm.compBaseUrl + item.maxPicId,
|
|
55750
|
+
"alt": ""
|
|
55751
|
+
}
|
|
55752
|
+
})])]), _c('div', {
|
|
55753
|
+
staticClass: "content-box"
|
|
55754
|
+
}, [_vm.isNotActive(item) ? _c('div', {
|
|
55755
|
+
staticClass: "content-mask"
|
|
55756
|
+
}) : _vm._e(), _c('div', {
|
|
55757
|
+
staticClass: "card-name"
|
|
55758
|
+
}, [_vm._v(_vm._s(item.commodityName))]), _c('div', {
|
|
55759
|
+
staticClass: "text-box"
|
|
55760
|
+
}, [item.price !== item.refPrice ? _c('div', {
|
|
55761
|
+
staticClass: "card-refPrice"
|
|
55762
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$" + _vm._s(_vm.convertCentsToYuan(item.refPrice)) + " ")]) : _c('div', {
|
|
55763
|
+
staticClass: "card-refPrice"
|
|
55764
|
+
}), _c('div', {
|
|
55765
|
+
staticClass: "card-pice-text"
|
|
55766
|
+
}, [_vm._v(" " + _vm._s(item.price !== item.refPrice ? _vm.langText.onlinePrice : _vm.langText.Price) + " ")])]), _c('div', {
|
|
55767
|
+
staticClass: "card-pice spc-font"
|
|
55768
|
+
}, [_c('span', [_vm._v("HK$")]), _vm._v(_vm._s(_vm.convertCentsToYuan(item.price)) + " ")]), _vm.isActive(item) ? _c('div', {
|
|
55769
|
+
staticClass: "card-btn",
|
|
55770
|
+
on: {
|
|
55771
|
+
"click": function ($event) {
|
|
55772
|
+
return _vm.goDetail(item);
|
|
55773
|
+
}
|
|
55774
|
+
}
|
|
55775
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.buyNow)), _c('img', {
|
|
55776
|
+
attrs: {
|
|
55777
|
+
"src": _vm.arrowRightImg
|
|
55778
|
+
}
|
|
55779
|
+
})]) : _c('div', {
|
|
55780
|
+
staticClass: "card-btn"
|
|
55781
|
+
}, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? (_vm.langText.launch || "").replace("NNN", item.upTime) : _vm.langText.Offer) + " ")])])])]);
|
|
55782
|
+
})], 2), !_vm.seeMore && _vm.configList.length > 9 ? _c('div', {
|
|
55783
|
+
ref: "seeMoreRef",
|
|
55784
|
+
staticClass: "seeMore",
|
|
55785
|
+
on: {
|
|
55786
|
+
"click": function ($event) {
|
|
55787
|
+
_vm.seeMore = true;
|
|
55788
|
+
}
|
|
55789
|
+
}
|
|
55790
|
+
}, [_vm._v(" " + _vm._s(_vm.langText.more) + " "), _c('img', {
|
|
55791
|
+
staticClass: "btm",
|
|
55792
|
+
attrs: {
|
|
55793
|
+
"src": _vm.arrowDownImg
|
|
55794
|
+
}
|
|
55795
|
+
}), _c('img', {
|
|
55796
|
+
staticClass: "hover",
|
|
55797
|
+
attrs: {
|
|
55798
|
+
"src": _vm.arrowHoverImg
|
|
55799
|
+
}
|
|
55800
|
+
}), _c('img', {
|
|
55801
|
+
staticClass: "active",
|
|
55802
|
+
attrs: {
|
|
55803
|
+
"src": _vm.arrowActiveImg
|
|
55804
|
+
}
|
|
55805
|
+
})]) : _vm._e()])])]);
|
|
55806
|
+
};
|
|
55807
|
+
var staticRenderFns = [];
|
|
55808
|
+
|
|
55809
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
55810
|
+
var es_iterator_constructor = __webpack_require__(8111);
|
|
55811
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
|
|
55812
|
+
var es_iterator_filter = __webpack_require__(2489);
|
|
55813
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
55814
|
+
var es_iterator_for_each = __webpack_require__(7588);
|
|
55815
|
+
// EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
|
|
55816
|
+
var baseComp = __webpack_require__(5298);
|
|
55817
|
+
// EXTERNAL MODULE: ./src/api/index.js
|
|
55818
|
+
var api = __webpack_require__(929);
|
|
55819
|
+
// EXTERNAL MODULE: ./node_modules/qs/lib/index.js
|
|
55820
|
+
var lib = __webpack_require__(9122);
|
|
55821
|
+
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
55822
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
|
|
55823
|
+
|
|
55824
|
+
|
|
55825
|
+
|
|
55826
|
+
|
|
55827
|
+
|
|
55828
|
+
|
|
55829
|
+
|
|
55830
|
+
|
|
55831
|
+
|
|
55832
|
+
/* harmony default export */ var Viewvue_type_script_lang_js = ({
|
|
55833
|
+
name: "cms-stored-value-card",
|
|
55834
|
+
components: {
|
|
55835
|
+
BaseComp: baseComp["default"]
|
|
55836
|
+
},
|
|
55837
|
+
props: {
|
|
55838
|
+
data: {
|
|
55839
|
+
type: Object,
|
|
55840
|
+
default: () => {
|
|
55841
|
+
return {};
|
|
55842
|
+
}
|
|
55843
|
+
},
|
|
55844
|
+
nowCompId: {
|
|
55845
|
+
type: [String, Number],
|
|
55846
|
+
default: ""
|
|
55847
|
+
},
|
|
55848
|
+
isOpcacity: {
|
|
55849
|
+
type: Boolean,
|
|
55850
|
+
default: true
|
|
55851
|
+
},
|
|
55852
|
+
lang: {
|
|
55853
|
+
type: String,
|
|
55854
|
+
default: "zh-HK"
|
|
55855
|
+
}
|
|
55856
|
+
},
|
|
55857
|
+
data() {
|
|
55858
|
+
return {
|
|
55859
|
+
langConfig: {
|
|
55860
|
+
"zh-HK": {
|
|
55861
|
+
productName: "產品名稱",
|
|
55862
|
+
Price: "建議零售價",
|
|
55863
|
+
onlinePrice: "網上優惠價",
|
|
55864
|
+
buyNow: "立即選購",
|
|
55865
|
+
comingSoon: "即將推出",
|
|
55866
|
+
expired: "優惠已過期",
|
|
55867
|
+
more: "查看更多",
|
|
55868
|
+
launch: "NNN 上線",
|
|
55869
|
+
Offer: "優惠即將推出"
|
|
55870
|
+
},
|
|
55871
|
+
"zh-CN": {
|
|
55872
|
+
productName: "产品名称",
|
|
55873
|
+
Price: "建议零售价",
|
|
55874
|
+
onlinePrice: "网上优惠价",
|
|
55875
|
+
buyNow: "立即选购",
|
|
55876
|
+
comingSoon: "即将推出",
|
|
55877
|
+
expired: "优惠已过期",
|
|
55878
|
+
more: "查看更多",
|
|
55879
|
+
launch: "NNN 上线",
|
|
55880
|
+
Offer: "优惠即将推出"
|
|
55881
|
+
},
|
|
55882
|
+
"en-US": {
|
|
55883
|
+
productName: "Product Name",
|
|
55884
|
+
Price: "RRP",
|
|
55885
|
+
onlinePrice: "Online Price",
|
|
55886
|
+
buyNow: "Buy Now",
|
|
55887
|
+
comingSoon: "Coming Soon",
|
|
55888
|
+
expired: "Expired",
|
|
55889
|
+
more: "See more",
|
|
55890
|
+
launch: "Launch at NNN",
|
|
55891
|
+
Offer: "Offer Coming"
|
|
55892
|
+
}
|
|
55893
|
+
},
|
|
55894
|
+
configList: [],
|
|
55895
|
+
seeMore: false,
|
|
55896
|
+
nowTs: Date.now(),
|
|
55897
|
+
compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
|
|
55898
|
+
// images
|
|
55899
|
+
placeholderImg: __webpack_require__(5335),
|
|
55900
|
+
arrowRightImg: __webpack_require__(4860),
|
|
55901
|
+
arrowDownImg: __webpack_require__(1861),
|
|
55902
|
+
arrowHoverImg: __webpack_require__(4116),
|
|
55903
|
+
arrowActiveImg: __webpack_require__(9670),
|
|
55904
|
+
shopList: []
|
|
55905
|
+
};
|
|
55906
|
+
},
|
|
55907
|
+
computed: {
|
|
55908
|
+
langText() {
|
|
55909
|
+
return this.config && this.langConfig && this.langConfig[this.lang] || this.langConfig["zh-HK"];
|
|
55910
|
+
},
|
|
55911
|
+
viewList() {
|
|
55912
|
+
if (this.seeMore) return this.shopList;
|
|
55913
|
+
return this.shopList.slice(0, 9);
|
|
55914
|
+
}
|
|
55915
|
+
},
|
|
55916
|
+
mounted() {
|
|
55917
|
+
if (!this.$EventBus) {
|
|
55918
|
+
if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
|
|
55919
|
+
this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
|
|
55920
|
+
} else {
|
|
55921
|
+
this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
|
|
55922
|
+
}
|
|
55923
|
+
}
|
|
55924
|
+
},
|
|
55925
|
+
beforeDestroy() {},
|
|
55926
|
+
methods: {
|
|
55927
|
+
getConfigData(configData) {
|
|
55928
|
+
this.configList = configData.configList;
|
|
55929
|
+
console.log("getConfigData", this.configList);
|
|
55930
|
+
this.getValue();
|
|
55931
|
+
},
|
|
55932
|
+
async getValue() {
|
|
55933
|
+
await this.getCommodityDetails();
|
|
55934
|
+
},
|
|
55935
|
+
// 拉取已选商品详情
|
|
55936
|
+
async getCommodityDetails() {
|
|
55937
|
+
// try {
|
|
55938
|
+
let req = {
|
|
55939
|
+
busInfo: JSON.stringify({
|
|
55940
|
+
commodityIds: [...this.configList],
|
|
55941
|
+
commodityTypes: ["604", "605"]
|
|
55942
|
+
})
|
|
55943
|
+
};
|
|
55944
|
+
req = lib_default().stringify(req);
|
|
55945
|
+
const json = await (0,api/* getCommodityDetails */.yX)(req, {
|
|
55946
|
+
lang_sc: "zh-CN",
|
|
55947
|
+
lang_tc: "zh-HK",
|
|
55948
|
+
lang_en: "en-US"
|
|
55949
|
+
}[this.lang]);
|
|
55950
|
+
let dataResult = json && json.busiResp && json.busiResp.busiDataResp;
|
|
55951
|
+
if (Array.isArray(dataResult)) {
|
|
55952
|
+
dataResult.forEach(item => {
|
|
55953
|
+
if (Array.isArray(item.malltCommodityTags)) {
|
|
55954
|
+
const left = item.malltCommodityTags.filter(ele => ele.tagType == 5001).sort((a, b) => a.sort - b.sort);
|
|
55955
|
+
const right = item.malltCommodityTags.filter(ele => ele.tagType == 5002).sort((a, b) => a.sort - b.sort);
|
|
55956
|
+
item.malltCommodityLeft = left.slice(0, 2);
|
|
55957
|
+
item.malltCommodityRight = right.slice(0, 4);
|
|
55958
|
+
} else {
|
|
55959
|
+
item.malltCommodityLeft = [];
|
|
55960
|
+
item.malltCommodityRight = [];
|
|
55961
|
+
}
|
|
55962
|
+
});
|
|
55963
|
+
// 按选择顺序排序
|
|
55964
|
+
this.shopList = dataResult.sort((a, b) => {
|
|
55965
|
+
return this.configList.indexOf(a.commodityId) - this.configList.indexOf(b.commodityId);
|
|
55966
|
+
});
|
|
55967
|
+
} else {
|
|
55968
|
+
this.shopList = [];
|
|
55969
|
+
}
|
|
55970
|
+
// } catch (e) {
|
|
55971
|
+
// this.shopList = [];
|
|
55972
|
+
// }
|
|
55973
|
+
},
|
|
55974
|
+
isActive(item) {
|
|
55975
|
+
const now = Date.now();
|
|
55976
|
+
return new Date(item.upTime).getTime() < now && new Date(item.downTime).getTime() > now;
|
|
55977
|
+
},
|
|
55978
|
+
isNotActive(item) {
|
|
55979
|
+
const now = Date.now();
|
|
55980
|
+
return new Date(item.upTime).getTime() > now || new Date(item.downTime).getTime() < now;
|
|
55981
|
+
},
|
|
55982
|
+
convertCentsToYuan(cents) {
|
|
55983
|
+
const yuan = (Number(cents || 0) / 100).toFixed(2);
|
|
55984
|
+
return parseFloat(yuan);
|
|
55985
|
+
},
|
|
55986
|
+
goDetail(item) {
|
|
55987
|
+
const base = this.$EventBus ? this.compBaseUrl : window.location.origin;
|
|
55988
|
+
if (item.commodityType === "604") {
|
|
55989
|
+
if ((item.commodityName || "").includes("MySIM")) {
|
|
55990
|
+
window.parent.location.href = `${base}/${this.lang}/home/prepaid-card/mysim/detail?commodityId=${item.commodityId}&mysim=${item.commodityName}`;
|
|
55991
|
+
} else {
|
|
55992
|
+
window.parent.location.href = `${base}/${this.lang}/home/prepaid-card/detail?commodityId=${item.commodityId}&commodityType=604&commodityName=${item.commodityName}`;
|
|
55993
|
+
}
|
|
55994
|
+
} else if (item.commodityType === "605") {
|
|
55995
|
+
window.parent.location.href = `${base}/${this.lang}/home/prepaid/refill-voucher/detail?commodityId=${item.commodityId}&commodityType=605&commodityName=${item.commodityName}`;
|
|
55996
|
+
}
|
|
55997
|
+
}
|
|
55998
|
+
}
|
|
55999
|
+
});
|
|
56000
|
+
;// ./package/cms-stored-value-card/View.vue?vue&type=script&lang=js
|
|
56001
|
+
/* harmony default export */ var cms_stored_value_card_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
|
|
56002
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
|
|
56003
|
+
// extracted by mini-css-extract-plugin
|
|
56004
|
+
|
|
56005
|
+
;// ./package/cms-stored-value-card/View.vue?vue&type=style&index=0&id=5dba4ef6&prod&lang=scss&scoped=true
|
|
56006
|
+
|
|
56007
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
56008
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
56009
|
+
;// ./package/cms-stored-value-card/View.vue
|
|
56010
|
+
|
|
56011
|
+
|
|
56012
|
+
|
|
56013
|
+
;
|
|
56014
|
+
|
|
56015
|
+
|
|
56016
|
+
/* normalize component */
|
|
56017
|
+
|
|
56018
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
56019
|
+
cms_stored_value_card_Viewvue_type_script_lang_js,
|
|
56020
|
+
render,
|
|
56021
|
+
staticRenderFns,
|
|
56022
|
+
false,
|
|
56023
|
+
null,
|
|
56024
|
+
"5dba4ef6",
|
|
56025
|
+
null
|
|
56026
|
+
|
|
56027
|
+
)
|
|
56028
|
+
|
|
56029
|
+
/* harmony default export */ var View = (component.exports);
|
|
56030
|
+
|
|
55505
56031
|
/***/ }),
|
|
55506
56032
|
|
|
55507
56033
|
/***/ 9699:
|