bxs-tools-ui 3.3.0 → 3.3.2
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/es/index.js +43 -47
- package/es/product-info/index.js +13 -18
- package/es/share-sheet/index.js +23 -22
- package/es/utils/index.js +12 -17
- package/lib/index.js +43 -47
- package/lib/product-info/index.js +13 -18
- package/lib/share-sheet/index.js +23 -22
- package/lib/utils/index.js +12 -17
- package/package.json +1 -1
- package/packages/bxs-utils/planbook/common.ts +0 -8
- package/packages/bxs-utils/planbook/product.ts +12 -8
- package/packages/index.ts +1 -1
- package/packages/planbook-input/helper.js +35 -33
- package/packages/share-sheet/constant.js +6 -2
- package/packages/share-sheet/demo/index.vue +14 -14
- package/packages/share-sheet/index.css +190 -0
- package/packages/share-sheet/index.vue +4 -4
package/es/index.js
CHANGED
|
@@ -8480,20 +8480,20 @@ var jaxExports = requireJax();
|
|
|
8480
8480
|
const Jax = /*@__PURE__*/getDefaultExportFromCjs(jaxExports);
|
|
8481
8481
|
|
|
8482
8482
|
var getStandardOrigin = Jax.urlUtil.getStandardOrigin;
|
|
8483
|
-
var _Jax$parseUaString = Jax.parseUaString();
|
|
8484
|
-
_Jax$parseUaString.isApp;
|
|
8485
|
-
_Jax$parseUaString.appType;
|
|
8486
|
-
var appVersion = _Jax$parseUaString.appVersion;
|
|
8487
|
-
_Jax$parseUaString.isAndroid;
|
|
8488
|
-
var isIos$2 = _Jax$parseUaString.isIos;
|
|
8489
|
-
_Jax$parseUaString.isBxsApp;
|
|
8490
|
-
_Jax$parseUaString.isBaoXiaoZhuApp;
|
|
8491
|
-
_Jax$parseUaString.isBrokerApp;
|
|
8492
|
-
_Jax$parseUaString.isYjjApp;
|
|
8493
|
-
_Jax$parseUaString.isToBApp;
|
|
8494
|
-
_Jax$parseUaString.isRongYiBaoApp;
|
|
8495
|
-
_Jax$parseUaString.isWeChat;
|
|
8496
|
-
_Jax$parseUaString.appScheme;
|
|
8483
|
+
var _Jax$parseUaString$1 = Jax.parseUaString();
|
|
8484
|
+
_Jax$parseUaString$1.isApp;
|
|
8485
|
+
_Jax$parseUaString$1.appType;
|
|
8486
|
+
var appVersion = _Jax$parseUaString$1.appVersion;
|
|
8487
|
+
_Jax$parseUaString$1.isAndroid;
|
|
8488
|
+
var isIos$2 = _Jax$parseUaString$1.isIos;
|
|
8489
|
+
_Jax$parseUaString$1.isBxsApp;
|
|
8490
|
+
_Jax$parseUaString$1.isBaoXiaoZhuApp;
|
|
8491
|
+
_Jax$parseUaString$1.isBrokerApp;
|
|
8492
|
+
_Jax$parseUaString$1.isYjjApp;
|
|
8493
|
+
_Jax$parseUaString$1.isToBApp;
|
|
8494
|
+
_Jax$parseUaString$1.isRongYiBaoApp;
|
|
8495
|
+
_Jax$parseUaString$1.isWeChat;
|
|
8496
|
+
_Jax$parseUaString$1.appScheme;
|
|
8497
8497
|
var hostname = window && window.location && window.location.hostname || '';
|
|
8498
8498
|
/** 当前页 host 为 cppoc- 前缀时,请求 loading 使用 Vant Toast,否则走 appBridge */
|
|
8499
8499
|
var IS_CPPOC_HOST = hostname.startsWith('cppoc-');
|
|
@@ -9132,10 +9132,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
9132
9132
|
// 当前险种
|
|
9133
9133
|
common: {},
|
|
9134
9134
|
// 通用信息
|
|
9135
|
-
customVariable: null,
|
|
9136
|
-
// 自定义变量
|
|
9137
|
-
cv: null,
|
|
9138
|
-
// 简写,自定义变量
|
|
9139
9135
|
t: {} // 事件目标
|
|
9140
9136
|
};
|
|
9141
9137
|
if (personData) {
|
|
@@ -9198,11 +9194,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
9198
9194
|
map.executeSource = options.executeSource;
|
|
9199
9195
|
}
|
|
9200
9196
|
}
|
|
9201
|
-
if (ins && ins.customVariableExp) {
|
|
9202
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
9203
|
-
map.customVariable = eval(exp);
|
|
9204
|
-
map.cv = map.customVariable;
|
|
9205
|
-
}
|
|
9206
9197
|
return map;
|
|
9207
9198
|
}
|
|
9208
9199
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10520,14 +10511,18 @@ function _productDataHandler() {
|
|
|
10520
10511
|
_ret = _loop2();
|
|
10521
10512
|
if (_ret === 0) break;
|
|
10522
10513
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10523
|
-
|
|
10524
|
-
ins.eleOrderList
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10514
|
+
try {
|
|
10515
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10516
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10517
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10518
|
+
for (var k in newEleMap) {
|
|
10519
|
+
ele[k] = newEleMap[k];
|
|
10520
|
+
}
|
|
10521
|
+
});
|
|
10522
|
+
insuranceDataHandler(ins, prodData);
|
|
10523
|
+
}
|
|
10524
|
+
} catch (error) {
|
|
10525
|
+
console.error(error);
|
|
10531
10526
|
}
|
|
10532
10527
|
});
|
|
10533
10528
|
}
|
|
@@ -23412,7 +23407,7 @@ var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
|
23412
23407
|
return C === undefined || (S = anObject(C)[SPECIES$7]) == undefined ? defaultConstructor : aFunction(S);
|
|
23413
23408
|
};
|
|
23414
23409
|
|
|
23415
|
-
var isIos = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
23410
|
+
var isIos$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
23416
23411
|
|
|
23417
23412
|
var location$1 = global_1.location;
|
|
23418
23413
|
var set$2 = global_1.setImmediate;
|
|
@@ -23477,7 +23472,7 @@ if (!set$2 || !clear) {
|
|
|
23477
23472
|
};
|
|
23478
23473
|
// Browsers with MessageChannel, includes WebWorkers
|
|
23479
23474
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
23480
|
-
} else if (MessageChannel && !isIos) {
|
|
23475
|
+
} else if (MessageChannel && !isIos$1) {
|
|
23481
23476
|
channel = new MessageChannel();
|
|
23482
23477
|
port = channel.port2;
|
|
23483
23478
|
channel.port1.onmessage = listener;
|
|
@@ -23546,7 +23541,7 @@ if (!queueMicrotask) {
|
|
|
23546
23541
|
process$2.nextTick(flush);
|
|
23547
23542
|
};
|
|
23548
23543
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
23549
|
-
} else if (MutationObserver$1 && !isIos) {
|
|
23544
|
+
} else if (MutationObserver$1 && !isIos$1) {
|
|
23550
23545
|
toggle = true;
|
|
23551
23546
|
node = document.createTextNode('');
|
|
23552
23547
|
new MutationObserver$1(flush).observe(node, { characterData: true });
|
|
@@ -28749,7 +28744,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
|
28749
28744
|
|
|
28750
28745
|
var userAgent$1 = getBuiltIn$1('navigator', 'userAgent') || '';
|
|
28751
28746
|
|
|
28752
|
-
var isIos$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1);
|
|
28747
|
+
var isIos$1$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1);
|
|
28753
28748
|
|
|
28754
28749
|
var location$1$1 = global_1$1.location;
|
|
28755
28750
|
var set$3 = global_1$1.setImmediate;
|
|
@@ -28814,7 +28809,7 @@ if (!set$3 || !clear$1) {
|
|
|
28814
28809
|
};
|
|
28815
28810
|
// Browsers with MessageChannel, includes WebWorkers
|
|
28816
28811
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
28817
|
-
} else if (MessageChannel$1 && !isIos$1) {
|
|
28812
|
+
} else if (MessageChannel$1 && !isIos$1$1) {
|
|
28818
28813
|
channel$1 = new MessageChannel$1();
|
|
28819
28814
|
port$1 = channel$1.port2;
|
|
28820
28815
|
channel$1.port1.onmessage = listener$1;
|
|
@@ -28883,7 +28878,7 @@ if (!queueMicrotask$1) {
|
|
|
28883
28878
|
process$5.nextTick(flush$1);
|
|
28884
28879
|
};
|
|
28885
28880
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
28886
|
-
} else if (MutationObserver$2 && !isIos$1) {
|
|
28881
|
+
} else if (MutationObserver$2 && !isIos$1$1) {
|
|
28887
28882
|
toggle$1 = true;
|
|
28888
28883
|
node$1 = document.createTextNode('');
|
|
28889
28884
|
new MutationObserver$2(flush$1).observe(node$1, { characterData: true });
|
|
@@ -46857,7 +46852,7 @@ function _createdProductDataToCalc() {
|
|
|
46857
46852
|
productForm.mulInsOrderList = productForm.mulInsOrderList.map(function (ins) {
|
|
46858
46853
|
var tempIns = {};
|
|
46859
46854
|
for (var _k2 in ins) {
|
|
46860
|
-
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
46855
|
+
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
46861
46856
|
// 'calcResultExp', // 不能删除,后面有依赖
|
|
46862
46857
|
'revalidateFlag'].includes(_k2)) {
|
|
46863
46858
|
tempIns[_k2] = ins[_k2];
|
|
@@ -47977,6 +47972,9 @@ var __vue_component__$1 = /*#__PURE__*/normalizeComponent$1({
|
|
|
47977
47972
|
staticRenderFns: __vue_staticRenderFns__$1
|
|
47978
47973
|
}, __vue_inject_styles__$1, __vue_script__$1);
|
|
47979
47974
|
|
|
47975
|
+
var _Jax$parseUaString = Jax.parseUaString(),
|
|
47976
|
+
isIos = _Jax$parseUaString.isIos;
|
|
47977
|
+
_Jax$parseUaString.isAndroid;
|
|
47980
47978
|
var oneDayMillisecond = 24 * 3600 * 1000;
|
|
47981
47979
|
var EXPIRE_ENUM = [{
|
|
47982
47980
|
value: 'NEVER',
|
|
@@ -48021,8 +48019,8 @@ var ACTION_ENUM = [{
|
|
|
48021
48019
|
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_mini_program_data%402x-1774344809770.png'
|
|
48022
48020
|
}, {
|
|
48023
48021
|
action: 'system_share',
|
|
48024
|
-
actionName: '
|
|
48025
|
-
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
48022
|
+
actionName: isIos ? '隐藏分享来源' : '复制链接',
|
|
48023
|
+
actionIcon: isIos ? 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_wechat%402x-1774342740104.png' : 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
48026
48024
|
}, {
|
|
48027
48025
|
action: 'generatePoster',
|
|
48028
48026
|
actionName: '生成海报',
|
|
@@ -48367,8 +48365,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
48367
48365
|
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
48368
48366
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48369
48367
|
}, [_c('div', {
|
|
48370
|
-
staticClass: "bxt-share-wrapper"
|
|
48371
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
48368
|
+
staticClass: "bxt-share-wrapper"
|
|
48372
48369
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
48373
48370
|
return _c('figure', {
|
|
48374
48371
|
key: o.action,
|
|
@@ -48384,12 +48381,11 @@ var __vue_render__ = function __vue_render__() {
|
|
|
48384
48381
|
"src": o.actionIcon,
|
|
48385
48382
|
"alt": "icon"
|
|
48386
48383
|
}
|
|
48387
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
48384
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
48388
48385
|
}), 0)]) : _vm._e(), _vm.actionOptions.length ? _c('section', {
|
|
48389
48386
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48390
48387
|
}, [_c('div', {
|
|
48391
|
-
staticClass: "bxt-share-wrapper"
|
|
48392
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
48388
|
+
staticClass: "bxt-share-wrapper"
|
|
48393
48389
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
48394
48390
|
return _c('figure', {
|
|
48395
48391
|
key: o.action,
|
|
@@ -48405,7 +48401,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
48405
48401
|
"src": o.actionIcon,
|
|
48406
48402
|
"alt": "icon"
|
|
48407
48403
|
}
|
|
48408
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
48404
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
48409
48405
|
}), 0)]) : _vm._e(), _c('footer', {
|
|
48410
48406
|
staticClass: "bxt-fooer"
|
|
48411
48407
|
}, [_c('div', {
|
|
@@ -48462,7 +48458,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
48462
48458
|
install(window.Vue);
|
|
48463
48459
|
}
|
|
48464
48460
|
const index = {
|
|
48465
|
-
version: '3.3.
|
|
48461
|
+
version: '3.3.2',
|
|
48466
48462
|
install: install
|
|
48467
48463
|
};
|
|
48468
48464
|
|
package/es/product-info/index.js
CHANGED
|
@@ -9434,10 +9434,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
9434
9434
|
// 当前险种
|
|
9435
9435
|
common: {},
|
|
9436
9436
|
// 通用信息
|
|
9437
|
-
customVariable: null,
|
|
9438
|
-
// 自定义变量
|
|
9439
|
-
cv: null,
|
|
9440
|
-
// 简写,自定义变量
|
|
9441
9437
|
t: {} // 事件目标
|
|
9442
9438
|
};
|
|
9443
9439
|
if (personData) {
|
|
@@ -9500,11 +9496,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
9500
9496
|
map.executeSource = options.executeSource;
|
|
9501
9497
|
}
|
|
9502
9498
|
}
|
|
9503
|
-
if (ins && ins.customVariableExp) {
|
|
9504
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
9505
|
-
map.customVariable = eval(exp);
|
|
9506
|
-
map.cv = map.customVariable;
|
|
9507
|
-
}
|
|
9508
9499
|
return map;
|
|
9509
9500
|
}
|
|
9510
9501
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10246,14 +10237,18 @@ function _productDataHandler() {
|
|
|
10246
10237
|
_ret = _loop2();
|
|
10247
10238
|
if (_ret === 0) break;
|
|
10248
10239
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10249
|
-
|
|
10250
|
-
ins.eleOrderList
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10240
|
+
try {
|
|
10241
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10242
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10243
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10244
|
+
for (var k in newEleMap) {
|
|
10245
|
+
ele[k] = newEleMap[k];
|
|
10246
|
+
}
|
|
10247
|
+
});
|
|
10248
|
+
insuranceDataHandler(ins, prodData);
|
|
10249
|
+
}
|
|
10250
|
+
} catch (error) {
|
|
10251
|
+
console.error(error);
|
|
10257
10252
|
}
|
|
10258
10253
|
});
|
|
10259
10254
|
}
|
|
@@ -10999,7 +10994,7 @@ function _createdProductDataToCalc() {
|
|
|
10999
10994
|
productForm.mulInsOrderList = productForm.mulInsOrderList.map(function (ins) {
|
|
11000
10995
|
var tempIns = {};
|
|
11001
10996
|
for (var _k2 in ins) {
|
|
11002
|
-
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
10997
|
+
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
11003
10998
|
// 'calcResultExp', // 不能删除,后面有依赖
|
|
11004
10999
|
'revalidateFlag'].includes(_k2)) {
|
|
11005
11000
|
tempIns[_k2] = ins[_k2];
|
package/es/share-sheet/index.js
CHANGED
|
@@ -8504,20 +8504,20 @@ var jaxExports = requireJax();
|
|
|
8504
8504
|
const Jax = /*@__PURE__*/getDefaultExportFromCjs(jaxExports);
|
|
8505
8505
|
|
|
8506
8506
|
var getStandardOrigin = Jax.urlUtil.getStandardOrigin;
|
|
8507
|
-
var _Jax$parseUaString = Jax.parseUaString();
|
|
8508
|
-
_Jax$parseUaString.isApp;
|
|
8509
|
-
_Jax$parseUaString.appType;
|
|
8510
|
-
_Jax$parseUaString.appVersion;
|
|
8511
|
-
_Jax$parseUaString.isAndroid;
|
|
8512
|
-
_Jax$parseUaString.isIos;
|
|
8513
|
-
_Jax$parseUaString.isBxsApp;
|
|
8514
|
-
_Jax$parseUaString.isBaoXiaoZhuApp;
|
|
8515
|
-
_Jax$parseUaString.isBrokerApp;
|
|
8516
|
-
_Jax$parseUaString.isYjjApp;
|
|
8517
|
-
_Jax$parseUaString.isToBApp;
|
|
8518
|
-
_Jax$parseUaString.isRongYiBaoApp;
|
|
8519
|
-
_Jax$parseUaString.isWeChat;
|
|
8520
|
-
_Jax$parseUaString.appScheme;
|
|
8507
|
+
var _Jax$parseUaString$1 = Jax.parseUaString();
|
|
8508
|
+
_Jax$parseUaString$1.isApp;
|
|
8509
|
+
_Jax$parseUaString$1.appType;
|
|
8510
|
+
_Jax$parseUaString$1.appVersion;
|
|
8511
|
+
_Jax$parseUaString$1.isAndroid;
|
|
8512
|
+
_Jax$parseUaString$1.isIos;
|
|
8513
|
+
_Jax$parseUaString$1.isBxsApp;
|
|
8514
|
+
_Jax$parseUaString$1.isBaoXiaoZhuApp;
|
|
8515
|
+
_Jax$parseUaString$1.isBrokerApp;
|
|
8516
|
+
_Jax$parseUaString$1.isYjjApp;
|
|
8517
|
+
_Jax$parseUaString$1.isToBApp;
|
|
8518
|
+
_Jax$parseUaString$1.isRongYiBaoApp;
|
|
8519
|
+
_Jax$parseUaString$1.isWeChat;
|
|
8520
|
+
_Jax$parseUaString$1.appScheme;
|
|
8521
8521
|
var hostname = window && window.location && window.location.hostname || '';
|
|
8522
8522
|
/** 当前页 host 为 cppoc- 前缀时,请求 loading 使用 Vant Toast,否则走 appBridge */
|
|
8523
8523
|
var IS_CPPOC_HOST = hostname.startsWith('cppoc-');
|
|
@@ -8832,6 +8832,9 @@ memoize(function (params) {
|
|
|
8832
8832
|
return QS.stringify(params);
|
|
8833
8833
|
});
|
|
8834
8834
|
|
|
8835
|
+
var _Jax$parseUaString = Jax.parseUaString(),
|
|
8836
|
+
isIos = _Jax$parseUaString.isIos;
|
|
8837
|
+
_Jax$parseUaString.isAndroid;
|
|
8835
8838
|
var oneDayMillisecond = 24 * 3600 * 1000;
|
|
8836
8839
|
var EXPIRE_ENUM = [{
|
|
8837
8840
|
value: 'NEVER',
|
|
@@ -8876,8 +8879,8 @@ var ACTION_ENUM = [{
|
|
|
8876
8879
|
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_mini_program_data%402x-1774344809770.png'
|
|
8877
8880
|
}, {
|
|
8878
8881
|
action: 'system_share',
|
|
8879
|
-
actionName: '
|
|
8880
|
-
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
8882
|
+
actionName: isIos ? '隐藏分享来源' : '复制链接',
|
|
8883
|
+
actionIcon: isIos ? 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_wechat%402x-1774342740104.png' : 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
8881
8884
|
}, {
|
|
8882
8885
|
action: 'generatePoster',
|
|
8883
8886
|
actionName: '生成海报',
|
|
@@ -9234,8 +9237,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
9234
9237
|
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
9235
9238
|
staticClass: "bxt-share bxt-bottom-border"
|
|
9236
9239
|
}, [_c('div', {
|
|
9237
|
-
staticClass: "bxt-share-wrapper"
|
|
9238
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
9240
|
+
staticClass: "bxt-share-wrapper"
|
|
9239
9241
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
9240
9242
|
return _c('figure', {
|
|
9241
9243
|
key: o.action,
|
|
@@ -9251,12 +9253,11 @@ var __vue_render__ = function __vue_render__() {
|
|
|
9251
9253
|
"src": o.actionIcon,
|
|
9252
9254
|
"alt": "icon"
|
|
9253
9255
|
}
|
|
9254
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
9256
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
9255
9257
|
}), 0)]) : _vm._e(), _vm.actionOptions.length ? _c('section', {
|
|
9256
9258
|
staticClass: "bxt-share bxt-bottom-border"
|
|
9257
9259
|
}, [_c('div', {
|
|
9258
|
-
staticClass: "bxt-share-wrapper"
|
|
9259
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
9260
|
+
staticClass: "bxt-share-wrapper"
|
|
9260
9261
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
9261
9262
|
return _c('figure', {
|
|
9262
9263
|
key: o.action,
|
|
@@ -9272,7 +9273,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
9272
9273
|
"src": o.actionIcon,
|
|
9273
9274
|
"alt": "icon"
|
|
9274
9275
|
}
|
|
9275
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
9276
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
9276
9277
|
}), 0)]) : _vm._e(), _c('footer', {
|
|
9277
9278
|
staticClass: "bxt-fooer"
|
|
9278
9279
|
}, [_c('div', {
|
package/es/utils/index.js
CHANGED
|
@@ -281,10 +281,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
281
281
|
// 当前险种
|
|
282
282
|
common: {},
|
|
283
283
|
// 通用信息
|
|
284
|
-
customVariable: null,
|
|
285
|
-
// 自定义变量
|
|
286
|
-
cv: null,
|
|
287
|
-
// 简写,自定义变量
|
|
288
284
|
t: {} // 事件目标
|
|
289
285
|
};
|
|
290
286
|
if (personData) {
|
|
@@ -347,11 +343,6 @@ function getExpressionParamMap(personData, product, ins, options) {
|
|
|
347
343
|
map.executeSource = options.executeSource;
|
|
348
344
|
}
|
|
349
345
|
}
|
|
350
|
-
if (ins && ins.customVariableExp) {
|
|
351
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
352
|
-
map.customVariable = eval(exp);
|
|
353
|
-
map.cv = map.customVariable;
|
|
354
|
-
}
|
|
355
346
|
return map;
|
|
356
347
|
}
|
|
357
348
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10420,14 +10411,18 @@ function _productDataHandler() {
|
|
|
10420
10411
|
_ret = _loop2();
|
|
10421
10412
|
if (_ret === 0) break;
|
|
10422
10413
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10423
|
-
|
|
10424
|
-
ins.eleOrderList
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10414
|
+
try {
|
|
10415
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10416
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10417
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10418
|
+
for (var k in newEleMap) {
|
|
10419
|
+
ele[k] = newEleMap[k];
|
|
10420
|
+
}
|
|
10421
|
+
});
|
|
10422
|
+
insuranceDataHandler(ins, prodData);
|
|
10423
|
+
}
|
|
10424
|
+
} catch (error) {
|
|
10425
|
+
console.error(error);
|
|
10431
10426
|
}
|
|
10432
10427
|
});
|
|
10433
10428
|
}
|
package/lib/index.js
CHANGED
|
@@ -8463,20 +8463,20 @@
|
|
|
8463
8463
|
var Jax = /*@__PURE__*/getDefaultExportFromCjs(jaxExports);
|
|
8464
8464
|
|
|
8465
8465
|
var getStandardOrigin = Jax.urlUtil.getStandardOrigin;
|
|
8466
|
-
var _Jax$parseUaString = Jax.parseUaString();
|
|
8467
|
-
_Jax$parseUaString.isApp;
|
|
8468
|
-
_Jax$parseUaString.appType;
|
|
8469
|
-
var appVersion = _Jax$parseUaString.appVersion;
|
|
8470
|
-
_Jax$parseUaString.isAndroid;
|
|
8471
|
-
var isIos$2 = _Jax$parseUaString.isIos;
|
|
8472
|
-
_Jax$parseUaString.isBxsApp;
|
|
8473
|
-
_Jax$parseUaString.isBaoXiaoZhuApp;
|
|
8474
|
-
_Jax$parseUaString.isBrokerApp;
|
|
8475
|
-
_Jax$parseUaString.isYjjApp;
|
|
8476
|
-
_Jax$parseUaString.isToBApp;
|
|
8477
|
-
_Jax$parseUaString.isRongYiBaoApp;
|
|
8478
|
-
_Jax$parseUaString.isWeChat;
|
|
8479
|
-
_Jax$parseUaString.appScheme;
|
|
8466
|
+
var _Jax$parseUaString$1 = Jax.parseUaString();
|
|
8467
|
+
_Jax$parseUaString$1.isApp;
|
|
8468
|
+
_Jax$parseUaString$1.appType;
|
|
8469
|
+
var appVersion = _Jax$parseUaString$1.appVersion;
|
|
8470
|
+
_Jax$parseUaString$1.isAndroid;
|
|
8471
|
+
var isIos$2 = _Jax$parseUaString$1.isIos;
|
|
8472
|
+
_Jax$parseUaString$1.isBxsApp;
|
|
8473
|
+
_Jax$parseUaString$1.isBaoXiaoZhuApp;
|
|
8474
|
+
_Jax$parseUaString$1.isBrokerApp;
|
|
8475
|
+
_Jax$parseUaString$1.isYjjApp;
|
|
8476
|
+
_Jax$parseUaString$1.isToBApp;
|
|
8477
|
+
_Jax$parseUaString$1.isRongYiBaoApp;
|
|
8478
|
+
_Jax$parseUaString$1.isWeChat;
|
|
8479
|
+
_Jax$parseUaString$1.appScheme;
|
|
8480
8480
|
var hostname = window && window.location && window.location.hostname || '';
|
|
8481
8481
|
/** 当前页 host 为 cppoc- 前缀时,请求 loading 使用 Vant Toast,否则走 appBridge */
|
|
8482
8482
|
var IS_CPPOC_HOST = hostname.startsWith('cppoc-');
|
|
@@ -9115,10 +9115,6 @@
|
|
|
9115
9115
|
// 当前险种
|
|
9116
9116
|
common: {},
|
|
9117
9117
|
// 通用信息
|
|
9118
|
-
customVariable: null,
|
|
9119
|
-
// 自定义变量
|
|
9120
|
-
cv: null,
|
|
9121
|
-
// 简写,自定义变量
|
|
9122
9118
|
t: {} // 事件目标
|
|
9123
9119
|
};
|
|
9124
9120
|
if (personData) {
|
|
@@ -9181,11 +9177,6 @@
|
|
|
9181
9177
|
map.executeSource = options.executeSource;
|
|
9182
9178
|
}
|
|
9183
9179
|
}
|
|
9184
|
-
if (ins && ins.customVariableExp) {
|
|
9185
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
9186
|
-
map.customVariable = eval(exp);
|
|
9187
|
-
map.cv = map.customVariable;
|
|
9188
|
-
}
|
|
9189
9180
|
return map;
|
|
9190
9181
|
}
|
|
9191
9182
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10503,14 +10494,18 @@
|
|
|
10503
10494
|
_ret = _loop2();
|
|
10504
10495
|
if (_ret === 0) break;
|
|
10505
10496
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10506
|
-
|
|
10507
|
-
ins.eleOrderList
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10497
|
+
try {
|
|
10498
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10499
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10500
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10501
|
+
for (var k in newEleMap) {
|
|
10502
|
+
ele[k] = newEleMap[k];
|
|
10503
|
+
}
|
|
10504
|
+
});
|
|
10505
|
+
insuranceDataHandler(ins, prodData);
|
|
10506
|
+
}
|
|
10507
|
+
} catch (error) {
|
|
10508
|
+
console.error(error);
|
|
10514
10509
|
}
|
|
10515
10510
|
});
|
|
10516
10511
|
}
|
|
@@ -23395,7 +23390,7 @@
|
|
|
23395
23390
|
return C === undefined || (S = anObject(C)[SPECIES$7]) == undefined ? defaultConstructor : aFunction(S);
|
|
23396
23391
|
};
|
|
23397
23392
|
|
|
23398
|
-
var isIos = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
23393
|
+
var isIos$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
23399
23394
|
|
|
23400
23395
|
var location$1 = global_1.location;
|
|
23401
23396
|
var set$2 = global_1.setImmediate;
|
|
@@ -23460,7 +23455,7 @@
|
|
|
23460
23455
|
};
|
|
23461
23456
|
// Browsers with MessageChannel, includes WebWorkers
|
|
23462
23457
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
23463
|
-
} else if (MessageChannel && !isIos) {
|
|
23458
|
+
} else if (MessageChannel && !isIos$1) {
|
|
23464
23459
|
channel = new MessageChannel();
|
|
23465
23460
|
port = channel.port2;
|
|
23466
23461
|
channel.port1.onmessage = listener;
|
|
@@ -23529,7 +23524,7 @@
|
|
|
23529
23524
|
process$2.nextTick(flush);
|
|
23530
23525
|
};
|
|
23531
23526
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
23532
|
-
} else if (MutationObserver$1 && !isIos) {
|
|
23527
|
+
} else if (MutationObserver$1 && !isIos$1) {
|
|
23533
23528
|
toggle = true;
|
|
23534
23529
|
node = document.createTextNode('');
|
|
23535
23530
|
new MutationObserver$1(flush).observe(node, { characterData: true });
|
|
@@ -28732,7 +28727,7 @@
|
|
|
28732
28727
|
|
|
28733
28728
|
var userAgent$1 = getBuiltIn$1('navigator', 'userAgent') || '';
|
|
28734
28729
|
|
|
28735
|
-
var isIos$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1);
|
|
28730
|
+
var isIos$1$1 = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1);
|
|
28736
28731
|
|
|
28737
28732
|
var location$1$1 = global_1$1.location;
|
|
28738
28733
|
var set$3 = global_1$1.setImmediate;
|
|
@@ -28797,7 +28792,7 @@
|
|
|
28797
28792
|
};
|
|
28798
28793
|
// Browsers with MessageChannel, includes WebWorkers
|
|
28799
28794
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
28800
|
-
} else if (MessageChannel$1 && !isIos$1) {
|
|
28795
|
+
} else if (MessageChannel$1 && !isIos$1$1) {
|
|
28801
28796
|
channel$1 = new MessageChannel$1();
|
|
28802
28797
|
port$1 = channel$1.port2;
|
|
28803
28798
|
channel$1.port1.onmessage = listener$1;
|
|
@@ -28866,7 +28861,7 @@
|
|
|
28866
28861
|
process$5.nextTick(flush$1);
|
|
28867
28862
|
};
|
|
28868
28863
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
28869
|
-
} else if (MutationObserver$2 && !isIos$1) {
|
|
28864
|
+
} else if (MutationObserver$2 && !isIos$1$1) {
|
|
28870
28865
|
toggle$1 = true;
|
|
28871
28866
|
node$1 = document.createTextNode('');
|
|
28872
28867
|
new MutationObserver$2(flush$1).observe(node$1, { characterData: true });
|
|
@@ -46840,7 +46835,7 @@
|
|
|
46840
46835
|
productForm.mulInsOrderList = productForm.mulInsOrderList.map(function (ins) {
|
|
46841
46836
|
var tempIns = {};
|
|
46842
46837
|
for (var _k2 in ins) {
|
|
46843
|
-
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
46838
|
+
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
46844
46839
|
// 'calcResultExp', // 不能删除,后面有依赖
|
|
46845
46840
|
'revalidateFlag'].includes(_k2)) {
|
|
46846
46841
|
tempIns[_k2] = ins[_k2];
|
|
@@ -47960,6 +47955,9 @@
|
|
|
47960
47955
|
staticRenderFns: __vue_staticRenderFns__$1
|
|
47961
47956
|
}, __vue_inject_styles__$1, __vue_script__$1);
|
|
47962
47957
|
|
|
47958
|
+
var _Jax$parseUaString = Jax.parseUaString(),
|
|
47959
|
+
isIos = _Jax$parseUaString.isIos;
|
|
47960
|
+
_Jax$parseUaString.isAndroid;
|
|
47963
47961
|
var oneDayMillisecond = 24 * 3600 * 1000;
|
|
47964
47962
|
var EXPIRE_ENUM = [{
|
|
47965
47963
|
value: 'NEVER',
|
|
@@ -48004,8 +48002,8 @@
|
|
|
48004
48002
|
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_mini_program_data%402x-1774344809770.png'
|
|
48005
48003
|
}, {
|
|
48006
48004
|
action: 'system_share',
|
|
48007
|
-
actionName: '
|
|
48008
|
-
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
48005
|
+
actionName: isIos ? '隐藏分享来源' : '复制链接',
|
|
48006
|
+
actionIcon: isIos ? 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_wechat%402x-1774342740104.png' : 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
48009
48007
|
}, {
|
|
48010
48008
|
action: 'generatePoster',
|
|
48011
48009
|
actionName: '生成海报',
|
|
@@ -48350,8 +48348,7 @@
|
|
|
48350
48348
|
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
48351
48349
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48352
48350
|
}, [_c('div', {
|
|
48353
|
-
staticClass: "bxt-share-wrapper"
|
|
48354
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
48351
|
+
staticClass: "bxt-share-wrapper"
|
|
48355
48352
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
48356
48353
|
return _c('figure', {
|
|
48357
48354
|
key: o.action,
|
|
@@ -48367,12 +48364,11 @@
|
|
|
48367
48364
|
"src": o.actionIcon,
|
|
48368
48365
|
"alt": "icon"
|
|
48369
48366
|
}
|
|
48370
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
48367
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
48371
48368
|
}), 0)]) : _vm._e(), _vm.actionOptions.length ? _c('section', {
|
|
48372
48369
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48373
48370
|
}, [_c('div', {
|
|
48374
|
-
staticClass: "bxt-share-wrapper"
|
|
48375
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
48371
|
+
staticClass: "bxt-share-wrapper"
|
|
48376
48372
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
48377
48373
|
return _c('figure', {
|
|
48378
48374
|
key: o.action,
|
|
@@ -48388,7 +48384,7 @@
|
|
|
48388
48384
|
"src": o.actionIcon,
|
|
48389
48385
|
"alt": "icon"
|
|
48390
48386
|
}
|
|
48391
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
48387
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
48392
48388
|
}), 0)]) : _vm._e(), _c('footer', {
|
|
48393
48389
|
staticClass: "bxt-fooer"
|
|
48394
48390
|
}, [_c('div', {
|
|
@@ -48445,7 +48441,7 @@
|
|
|
48445
48441
|
install(window.Vue);
|
|
48446
48442
|
}
|
|
48447
48443
|
var index = {
|
|
48448
|
-
version: '3.3.
|
|
48444
|
+
version: '3.3.2',
|
|
48449
48445
|
install: install
|
|
48450
48446
|
};
|
|
48451
48447
|
|
|
@@ -9430,10 +9430,6 @@
|
|
|
9430
9430
|
// 当前险种
|
|
9431
9431
|
common: {},
|
|
9432
9432
|
// 通用信息
|
|
9433
|
-
customVariable: null,
|
|
9434
|
-
// 自定义变量
|
|
9435
|
-
cv: null,
|
|
9436
|
-
// 简写,自定义变量
|
|
9437
9433
|
t: {} // 事件目标
|
|
9438
9434
|
};
|
|
9439
9435
|
if (personData) {
|
|
@@ -9496,11 +9492,6 @@
|
|
|
9496
9492
|
map.executeSource = options.executeSource;
|
|
9497
9493
|
}
|
|
9498
9494
|
}
|
|
9499
|
-
if (ins && ins.customVariableExp) {
|
|
9500
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
9501
|
-
map.customVariable = eval(exp);
|
|
9502
|
-
map.cv = map.customVariable;
|
|
9503
|
-
}
|
|
9504
9495
|
return map;
|
|
9505
9496
|
}
|
|
9506
9497
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10242,14 +10233,18 @@
|
|
|
10242
10233
|
_ret = _loop2();
|
|
10243
10234
|
if (_ret === 0) break;
|
|
10244
10235
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10245
|
-
|
|
10246
|
-
ins.eleOrderList
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10236
|
+
try {
|
|
10237
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10238
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10239
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10240
|
+
for (var k in newEleMap) {
|
|
10241
|
+
ele[k] = newEleMap[k];
|
|
10242
|
+
}
|
|
10243
|
+
});
|
|
10244
|
+
insuranceDataHandler(ins, prodData);
|
|
10245
|
+
}
|
|
10246
|
+
} catch (error) {
|
|
10247
|
+
console.error(error);
|
|
10253
10248
|
}
|
|
10254
10249
|
});
|
|
10255
10250
|
}
|
|
@@ -10995,7 +10990,7 @@
|
|
|
10995
10990
|
productForm.mulInsOrderList = productForm.mulInsOrderList.map(function (ins) {
|
|
10996
10991
|
var tempIns = {};
|
|
10997
10992
|
for (var _k2 in ins) {
|
|
10998
|
-
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
10993
|
+
if (!['isFollowing', 'pPeriodDesc', 'baoeDesc', 'baofDesc', 'iDurationDesc', 'payModeDesc', 'payModePremiumDesc', 'accountData', 'reduceBaofData', 'duplicateReduceBaofData', 'isCheckbox', 'groupKey', 'groupName', 'shmInsData', 'totalBaof',
|
|
10999
10994
|
// 'calcResultExp', // 不能删除,后面有依赖
|
|
11000
10995
|
'revalidateFlag'].includes(_k2)) {
|
|
11001
10996
|
tempIns[_k2] = ins[_k2];
|
package/lib/share-sheet/index.js
CHANGED
|
@@ -8495,20 +8495,20 @@
|
|
|
8495
8495
|
var Jax = /*@__PURE__*/getDefaultExportFromCjs(jaxExports);
|
|
8496
8496
|
|
|
8497
8497
|
var getStandardOrigin = Jax.urlUtil.getStandardOrigin;
|
|
8498
|
-
var _Jax$parseUaString = Jax.parseUaString();
|
|
8499
|
-
_Jax$parseUaString.isApp;
|
|
8500
|
-
_Jax$parseUaString.appType;
|
|
8501
|
-
_Jax$parseUaString.appVersion;
|
|
8502
|
-
_Jax$parseUaString.isAndroid;
|
|
8503
|
-
_Jax$parseUaString.isIos;
|
|
8504
|
-
_Jax$parseUaString.isBxsApp;
|
|
8505
|
-
_Jax$parseUaString.isBaoXiaoZhuApp;
|
|
8506
|
-
_Jax$parseUaString.isBrokerApp;
|
|
8507
|
-
_Jax$parseUaString.isYjjApp;
|
|
8508
|
-
_Jax$parseUaString.isToBApp;
|
|
8509
|
-
_Jax$parseUaString.isRongYiBaoApp;
|
|
8510
|
-
_Jax$parseUaString.isWeChat;
|
|
8511
|
-
_Jax$parseUaString.appScheme;
|
|
8498
|
+
var _Jax$parseUaString$1 = Jax.parseUaString();
|
|
8499
|
+
_Jax$parseUaString$1.isApp;
|
|
8500
|
+
_Jax$parseUaString$1.appType;
|
|
8501
|
+
_Jax$parseUaString$1.appVersion;
|
|
8502
|
+
_Jax$parseUaString$1.isAndroid;
|
|
8503
|
+
_Jax$parseUaString$1.isIos;
|
|
8504
|
+
_Jax$parseUaString$1.isBxsApp;
|
|
8505
|
+
_Jax$parseUaString$1.isBaoXiaoZhuApp;
|
|
8506
|
+
_Jax$parseUaString$1.isBrokerApp;
|
|
8507
|
+
_Jax$parseUaString$1.isYjjApp;
|
|
8508
|
+
_Jax$parseUaString$1.isToBApp;
|
|
8509
|
+
_Jax$parseUaString$1.isRongYiBaoApp;
|
|
8510
|
+
_Jax$parseUaString$1.isWeChat;
|
|
8511
|
+
_Jax$parseUaString$1.appScheme;
|
|
8512
8512
|
var hostname = window && window.location && window.location.hostname || '';
|
|
8513
8513
|
/** 当前页 host 为 cppoc- 前缀时,请求 loading 使用 Vant Toast,否则走 appBridge */
|
|
8514
8514
|
var IS_CPPOC_HOST = hostname.startsWith('cppoc-');
|
|
@@ -8823,6 +8823,9 @@
|
|
|
8823
8823
|
return QS.stringify(params);
|
|
8824
8824
|
});
|
|
8825
8825
|
|
|
8826
|
+
var _Jax$parseUaString = Jax.parseUaString(),
|
|
8827
|
+
isIos = _Jax$parseUaString.isIos;
|
|
8828
|
+
_Jax$parseUaString.isAndroid;
|
|
8826
8829
|
var oneDayMillisecond = 24 * 3600 * 1000;
|
|
8827
8830
|
var EXPIRE_ENUM = [{
|
|
8828
8831
|
value: 'NEVER',
|
|
@@ -8867,8 +8870,8 @@
|
|
|
8867
8870
|
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_mini_program_data%402x-1774344809770.png'
|
|
8868
8871
|
}, {
|
|
8869
8872
|
action: 'system_share',
|
|
8870
|
-
actionName: '
|
|
8871
|
-
actionIcon: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
8873
|
+
actionName: isIos ? '隐藏分享来源' : '复制链接',
|
|
8874
|
+
actionIcon: isIos ? 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_wechat%402x-1774342740104.png' : 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
8872
8875
|
}, {
|
|
8873
8876
|
action: 'generatePoster',
|
|
8874
8877
|
actionName: '生成海报',
|
|
@@ -9225,8 +9228,7 @@
|
|
|
9225
9228
|
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
9226
9229
|
staticClass: "bxt-share bxt-bottom-border"
|
|
9227
9230
|
}, [_c('div', {
|
|
9228
|
-
staticClass: "bxt-share-wrapper"
|
|
9229
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
9231
|
+
staticClass: "bxt-share-wrapper"
|
|
9230
9232
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
9231
9233
|
return _c('figure', {
|
|
9232
9234
|
key: o.action,
|
|
@@ -9242,12 +9244,11 @@
|
|
|
9242
9244
|
"src": o.actionIcon,
|
|
9243
9245
|
"alt": "icon"
|
|
9244
9246
|
}
|
|
9245
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
9247
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
9246
9248
|
}), 0)]) : _vm._e(), _vm.actionOptions.length ? _c('section', {
|
|
9247
9249
|
staticClass: "bxt-share bxt-bottom-border"
|
|
9248
9250
|
}, [_c('div', {
|
|
9249
|
-
staticClass: "bxt-share-wrapper"
|
|
9250
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
9251
|
+
staticClass: "bxt-share-wrapper"
|
|
9251
9252
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
9252
9253
|
return _c('figure', {
|
|
9253
9254
|
key: o.action,
|
|
@@ -9263,7 +9264,7 @@
|
|
|
9263
9264
|
"src": o.actionIcon,
|
|
9264
9265
|
"alt": "icon"
|
|
9265
9266
|
}
|
|
9266
|
-
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName,
|
|
9267
|
+
}) : _vm._e()]), _c('figcaption', [_vm._v(_vm._s(_vm.textOverflowEllipsis(o.actionName, 6)))])]);
|
|
9267
9268
|
}), 0)]) : _vm._e(), _c('footer', {
|
|
9268
9269
|
staticClass: "bxt-fooer"
|
|
9269
9270
|
}, [_c('div', {
|
package/lib/utils/index.js
CHANGED
|
@@ -280,10 +280,6 @@
|
|
|
280
280
|
// 当前险种
|
|
281
281
|
common: {},
|
|
282
282
|
// 通用信息
|
|
283
|
-
customVariable: null,
|
|
284
|
-
// 自定义变量
|
|
285
|
-
cv: null,
|
|
286
|
-
// 简写,自定义变量
|
|
287
283
|
t: {} // 事件目标
|
|
288
284
|
};
|
|
289
285
|
if (personData) {
|
|
@@ -346,11 +342,6 @@
|
|
|
346
342
|
map.executeSource = options.executeSource;
|
|
347
343
|
}
|
|
348
344
|
}
|
|
349
|
-
if (ins && ins.customVariableExp) {
|
|
350
|
-
var exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2');
|
|
351
|
-
map.customVariable = eval(exp);
|
|
352
|
-
map.cv = map.customVariable;
|
|
353
|
-
}
|
|
354
345
|
return map;
|
|
355
346
|
}
|
|
356
347
|
function executeElementRule(personData, product, ins, ele) {
|
|
@@ -10419,14 +10410,18 @@
|
|
|
10419
10410
|
_ret = _loop2();
|
|
10420
10411
|
if (_ret === 0) break;
|
|
10421
10412
|
} while (curCondition && curCondition.key && curCondition[curCondition.key]);
|
|
10422
|
-
|
|
10423
|
-
ins.eleOrderList
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10413
|
+
try {
|
|
10414
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
10415
|
+
ins.eleOrderList.forEach(function (ele) {
|
|
10416
|
+
var newEleMap = executeElementRule(personData, prodData, ins, ele, parmas);
|
|
10417
|
+
for (var k in newEleMap) {
|
|
10418
|
+
ele[k] = newEleMap[k];
|
|
10419
|
+
}
|
|
10420
|
+
});
|
|
10421
|
+
insuranceDataHandler(ins, prodData);
|
|
10422
|
+
}
|
|
10423
|
+
} catch (error) {
|
|
10424
|
+
console.error(error);
|
|
10430
10425
|
}
|
|
10431
10426
|
});
|
|
10432
10427
|
}
|
package/package.json
CHANGED
|
@@ -255,8 +255,6 @@ export function getExpressionParamMap(personData: IPbPersons, product: IPbProduc
|
|
|
255
255
|
m: {}, // 主险
|
|
256
256
|
me: {}, // 当前险种
|
|
257
257
|
common: {}, // 通用信息
|
|
258
|
-
customVariable: null, // 自定义变量
|
|
259
|
-
cv: null, // 简写,自定义变量
|
|
260
258
|
t: {} // 事件目标
|
|
261
259
|
}
|
|
262
260
|
|
|
@@ -309,12 +307,6 @@ export function getExpressionParamMap(personData: IPbPersons, product: IPbProduc
|
|
|
309
307
|
map.executeSource = options.executeSource
|
|
310
308
|
}
|
|
311
309
|
}
|
|
312
|
-
|
|
313
|
-
if (ins && ins.customVariableExp) {
|
|
314
|
-
const exp = ins.customVariableExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'map.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'map.$2')
|
|
315
|
-
map.customVariable = eval(exp)
|
|
316
|
-
map.cv = map.customVariable
|
|
317
|
-
}
|
|
318
310
|
return map
|
|
319
311
|
}
|
|
320
312
|
|
|
@@ -259,14 +259,18 @@ export async function productDataHandler(prodData: IPbProduct, prodVerifyData: a
|
|
|
259
259
|
}
|
|
260
260
|
} while (curCondition && curCondition.key && curCondition[curCondition.key])
|
|
261
261
|
|
|
262
|
-
|
|
263
|
-
ins.eleOrderList
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
262
|
+
try {
|
|
263
|
+
if (Array.isArray(ins.eleOrderList)) {
|
|
264
|
+
ins.eleOrderList.forEach((ele: IInsElement) => {
|
|
265
|
+
const newEleMap = executeElementRule(personData, prodData, ins, ele, parmas)
|
|
266
|
+
for (const k in newEleMap) {
|
|
267
|
+
ele[k] = newEleMap[k]
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
insuranceDataHandler(ins, prodData)
|
|
271
|
+
}
|
|
272
|
+
} catch (error) {
|
|
273
|
+
console.error(error)
|
|
270
274
|
}
|
|
271
275
|
})
|
|
272
276
|
}
|
package/packages/index.ts
CHANGED
|
@@ -239,7 +239,6 @@ export async function createdProductDataToCalc(inputData, options = {}) {
|
|
|
239
239
|
'groupName',
|
|
240
240
|
'shmInsData',
|
|
241
241
|
'totalBaof',
|
|
242
|
-
'customVariableExp',
|
|
243
242
|
// 'calcResultExp', // 不能删除,后面有依赖
|
|
244
243
|
'revalidateFlag'
|
|
245
244
|
].includes(k)
|
|
@@ -585,36 +584,38 @@ export async function calcProductData(inputData, options, cb) {
|
|
|
585
584
|
}
|
|
586
585
|
|
|
587
586
|
// 计算结果校验
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
587
|
+
try {
|
|
588
|
+
const mulInsOrderList = _get(currentProduct, 'mulInsOrderList') || []
|
|
589
|
+
const hasCalcResultExp = mulInsOrderList.some(ins => ins.calcResultExp)
|
|
590
|
+
if (hasCalcResultExp) {
|
|
591
|
+
let errorMessage = ''
|
|
592
|
+
mulInsOrderList
|
|
593
|
+
.filter(ins => ins.calcResultExp)
|
|
594
|
+
.forEach(ins => {
|
|
595
|
+
if (!errorMessage) {
|
|
596
|
+
const paramMap = getExpressionParamMap(inputData.personData, currentProduct, ins, options)
|
|
597
|
+
if (paramMap) {
|
|
598
|
+
try {
|
|
599
|
+
const exp = ins.calcResultExp.replace(/(%)(\d+)(\.*\w*)(%)/g, 'paramMap.i$2$3').replace(/(%)(\w*\.*\w*)(%)/g, 'paramMap.$2')
|
|
600
|
+
errorMessage = eval(exp)
|
|
601
|
+
console.log('计算结果约束结果: ', errorMessage)
|
|
602
|
+
} catch (error) {
|
|
603
|
+
console.log('计算结果约束公式: ', ins.calcResultExp)
|
|
604
|
+
console.error(error)
|
|
605
|
+
}
|
|
607
606
|
}
|
|
608
607
|
}
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
}
|
|
608
|
+
})
|
|
609
|
+
if (errorMessage) {
|
|
610
|
+
commitProductCalcError(productUniqueKey, errorMessage)
|
|
611
|
+
return Promise.reject({
|
|
612
|
+
type: 'calcResultError',
|
|
613
|
+
message: errorMessage
|
|
614
|
+
})
|
|
615
|
+
}
|
|
617
616
|
}
|
|
617
|
+
} catch (error) {
|
|
618
|
+
console.error(error)
|
|
618
619
|
}
|
|
619
620
|
}
|
|
620
621
|
|
|
@@ -912,7 +913,7 @@ export function cleanNeedlessResultData(resultData) {
|
|
|
912
913
|
})
|
|
913
914
|
if (Array.isArray(p.mulInsOrderList)) {
|
|
914
915
|
p.mulInsOrderList.forEach(ins => {
|
|
915
|
-
const noNeedInsuranceKeys = ['isFollowing', 'isCheckbox', 'condotionList', '
|
|
916
|
+
const noNeedInsuranceKeys = ['isFollowing', 'isCheckbox', 'condotionList', 'calcResultExp', 'revalidateFlag']
|
|
916
917
|
noNeedInsuranceKeys.forEach(k => {
|
|
917
918
|
if (k in ins) {
|
|
918
919
|
delete ins[k]
|
|
@@ -986,14 +987,15 @@ export function setupUnderwriteRuleToInsuranceList(list) {
|
|
|
986
987
|
return getUnderwriteEffectiveRules(insuranceIds).then(data => {
|
|
987
988
|
if (Array.isArray(data)) {
|
|
988
989
|
data.forEach(rule => {
|
|
989
|
-
const { insruanceId, eleRules } = rule
|
|
990
|
+
const { insruanceId, customVariableExp, eleRules } = rule
|
|
990
991
|
const insurance = list.find(ins => ins.key === insruanceId)
|
|
991
992
|
if (insurance) {
|
|
992
|
-
const
|
|
993
|
+
const customVariableExpStr = customVariableExp ? `;${customVariableExp};` : ''
|
|
994
|
+
const insExpKeys = ['calcResultExp', 'revalidateFlag']
|
|
993
995
|
insExpKeys
|
|
994
996
|
.filter(k => k in rule)
|
|
995
997
|
.forEach(key => {
|
|
996
|
-
insurance[key] = rule[key]
|
|
998
|
+
insurance[key] = rule[key] && key === 'calcResultExp' ? customVariableExpStr + rule[key] : rule[key]
|
|
997
999
|
})
|
|
998
1000
|
const eleOrderList = insurance.eleOrderList || []
|
|
999
1001
|
if (eleOrderList && Array.isArray(eleRules)) {
|
|
@@ -1004,7 +1006,7 @@ export function setupUnderwriteRuleToInsuranceList(list) {
|
|
|
1004
1006
|
eleExpkeys
|
|
1005
1007
|
.filter(k => k in eleRule)
|
|
1006
1008
|
.forEach(key => {
|
|
1007
|
-
ele[key] = eleRule[key]
|
|
1009
|
+
ele[key] = eleRule[key] ? customVariableExpStr + eleRule[key] : eleRule[key]
|
|
1008
1010
|
})
|
|
1009
1011
|
}
|
|
1010
1012
|
})
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import Jax from '@bxs/jax'
|
|
2
|
+
export const { isIos, isAndroid } = Jax.parseUaString()
|
|
1
3
|
const oneDayMillisecond = 24 * 3600 * 1000
|
|
2
4
|
|
|
3
5
|
export const EXPIRE_ENUM = [
|
|
@@ -32,8 +34,10 @@ export const ACTION_ENUM = [
|
|
|
32
34
|
},
|
|
33
35
|
{
|
|
34
36
|
action: 'system_share',
|
|
35
|
-
actionName: '
|
|
36
|
-
actionIcon:
|
|
37
|
+
actionName: isIos ? '隐藏分享来源' : '复制链接',
|
|
38
|
+
actionIcon: isIos
|
|
39
|
+
? 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_wechat%402x-1774342740104.png'
|
|
40
|
+
: 'https://media.winbaoxian.com/assets-uploader/base_ss_share_widget_system_share%402x-1774344871114.png'
|
|
37
41
|
},
|
|
38
42
|
{
|
|
39
43
|
action: 'generatePoster',
|
|
@@ -61,24 +61,24 @@ export default {
|
|
|
61
61
|
{
|
|
62
62
|
action: 'wechat_timeline',
|
|
63
63
|
...shareInfo()
|
|
64
|
-
}
|
|
64
|
+
},
|
|
65
65
|
// {
|
|
66
66
|
// action: 'qq_friends',
|
|
67
67
|
// ...shareInfo()
|
|
68
68
|
// },
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
{
|
|
70
|
+
action: 'shareMiniProgram',
|
|
71
|
+
webPageUrl: 'https://www.winbaoxian.com/', // 兼容低版本的网页链接
|
|
72
|
+
userName: 'gh_db166d39960f', // 小程序原始id
|
|
73
|
+
path: '/pages/result/index?uuid=e21d73a0c20d4900a765237a4907a82b&theme=theme_pbhzczdlw&t=1', // 小程序页面路径
|
|
74
|
+
title: '买保险优选服务', // 小程序消息title
|
|
75
|
+
description: '小程序消息描述信息', // 小程序消息desc
|
|
76
|
+
imageUrl: 'https://img.winbaoxian.com/static/app-zx-rule-pdf/allrule/20250325182134792.png' // 小程序消息封面图片,小于128k
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
action: 'system_share',
|
|
80
|
+
...shareInfo()
|
|
81
|
+
}
|
|
82
82
|
],
|
|
83
83
|
featureActions: [
|
|
84
84
|
{
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
@import 'base.css';
|
|
2
|
+
@import 'apply.css';
|
|
3
|
+
@import 'color.css';
|
|
4
|
+
|
|
5
|
+
.bxt-share-sheet {
|
|
6
|
+
color: #333;
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
|
|
9
|
+
& .bxt-share-container {
|
|
10
|
+
position: absolute;
|
|
11
|
+
left: 0;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: flex-end;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& .bxt-share-image {
|
|
22
|
+
padding: 30px 40px;
|
|
23
|
+
|
|
24
|
+
& img {
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
& .bxt-share-content {
|
|
30
|
+
background: white;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
& .bxt-expire {
|
|
34
|
+
padding: 15px 15px 15px 21px;
|
|
35
|
+
|
|
36
|
+
& .bxt-title {
|
|
37
|
+
display: flex;
|
|
38
|
+
|
|
39
|
+
& .bxt-tx {
|
|
40
|
+
font-size: 14px;
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
line-height: 17px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
& .bxt-description {
|
|
47
|
+
margin-left: 18px;
|
|
48
|
+
font-size: 13px;
|
|
49
|
+
line-height: 16px;
|
|
50
|
+
color: #666;
|
|
51
|
+
|
|
52
|
+
& .van-icon {
|
|
53
|
+
font-size: 15px;
|
|
54
|
+
color: #b5b5b5;
|
|
55
|
+
vertical-align: middle;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
& span {
|
|
59
|
+
margin-left: 3px;
|
|
60
|
+
vertical-align: middle;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
& .van-radio-group {
|
|
66
|
+
margin-top: 6px;
|
|
67
|
+
|
|
68
|
+
& .van-radio {
|
|
69
|
+
flex: 0 0 32%;
|
|
70
|
+
margin-top: 12px;
|
|
71
|
+
margin-right: 0;
|
|
72
|
+
|
|
73
|
+
& .van-radio__icon {
|
|
74
|
+
font-size: 15px;
|
|
75
|
+
line-height: 20px;
|
|
76
|
+
color: var(--color-primary);
|
|
77
|
+
vertical-align: middle;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
& .van-radio__label {
|
|
81
|
+
margin-left: 6px;
|
|
82
|
+
vertical-align: middle;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
& .bxt-explain {
|
|
89
|
+
font-size: 13px;
|
|
90
|
+
line-height: 19px;
|
|
91
|
+
color: #666;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
& .bxt-explain-title {
|
|
96
|
+
padding: 15px 21px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
& .bxt-explain-text {
|
|
100
|
+
padding: 12px 15px;
|
|
101
|
+
|
|
102
|
+
& .bxt-explain-text-content {
|
|
103
|
+
width: 100%;
|
|
104
|
+
display: -webkit-box;
|
|
105
|
+
-webkit-line-clamp: 3;
|
|
106
|
+
-webkit-box-orient: vertical;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
text-overflow: ellipsis;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
& .bxt-explain-text--copy {
|
|
113
|
+
padding: 12px 15px;
|
|
114
|
+
|
|
115
|
+
& .bxt-explain-text-wrapper {
|
|
116
|
+
padding: 12px 15px;
|
|
117
|
+
background: #f5f5f5;
|
|
118
|
+
border-radius: 6px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
& .bxt-share {
|
|
123
|
+
& .bxt-share-wrapper {
|
|
124
|
+
padding: 20px 15px;
|
|
125
|
+
overflow: auto;
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
|
|
128
|
+
&::-webkit-scrollbar {
|
|
129
|
+
display: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
& figure {
|
|
133
|
+
display: inline-block;
|
|
134
|
+
width: 21.3333vw;
|
|
135
|
+
text-align: center;
|
|
136
|
+
|
|
137
|
+
& .bxt-empty-image {
|
|
138
|
+
width: 50px;
|
|
139
|
+
height: 50px;
|
|
140
|
+
margin: 0 auto;
|
|
141
|
+
background: #f3f7f9;
|
|
142
|
+
border-radius: 50px;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
|
|
145
|
+
& img {
|
|
146
|
+
display: block;
|
|
147
|
+
width: 100%;
|
|
148
|
+
margin: 0 auto;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
& figcaption {
|
|
153
|
+
width: 100%;
|
|
154
|
+
height: 15px;
|
|
155
|
+
margin-top: 5px;
|
|
156
|
+
font-size: 12px;
|
|
157
|
+
line-height: 15px;
|
|
158
|
+
white-space: nowrap;
|
|
159
|
+
color: #666;
|
|
160
|
+
text-align: center;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
& .bxt-fooer {
|
|
167
|
+
@apply --safe-area-inset-bottom;
|
|
168
|
+
|
|
169
|
+
padding: 16px 15px;
|
|
170
|
+
font-size: 15px;
|
|
171
|
+
line-height: 18px;
|
|
172
|
+
text-align: center;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
& .bxt-bottom-border {
|
|
176
|
+
position: relative;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
& .bxt-bottom-border::before {
|
|
181
|
+
position: absolute;
|
|
182
|
+
bottom: 0;
|
|
183
|
+
left: 15px;
|
|
184
|
+
width: 200%;
|
|
185
|
+
border-bottom: 1px solid #e5e5e5;
|
|
186
|
+
content: '';
|
|
187
|
+
transform: scale(0.5);
|
|
188
|
+
transform-origin: left center;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
</section>
|
|
37
37
|
<slot name="header"></slot>
|
|
38
38
|
<section v-if="shareOptions.length" class="bxt-share bxt-bottom-border">
|
|
39
|
-
<div class="bxt-share-wrapper"
|
|
39
|
+
<div class="bxt-share-wrapper">
|
|
40
40
|
<figure v-for="o in shareOptions" :key="o.action" @click="onClickShare(o)">
|
|
41
41
|
<div class="bxt-empty-image">
|
|
42
42
|
<img v-if="o.actionIcon" :src="o.actionIcon" alt="icon" />
|
|
43
43
|
</div>
|
|
44
|
-
<figcaption>{{ textOverflowEllipsis(o.actionName,
|
|
44
|
+
<figcaption>{{ textOverflowEllipsis(o.actionName, 6) }}</figcaption>
|
|
45
45
|
</figure>
|
|
46
46
|
</div>
|
|
47
47
|
</section>
|
|
48
48
|
<section v-if="actionOptions.length" class="bxt-share bxt-bottom-border">
|
|
49
|
-
<div class="bxt-share-wrapper"
|
|
49
|
+
<div class="bxt-share-wrapper">
|
|
50
50
|
<figure v-for="o in actionOptions" :key="o.action" @click="onClickAction(o)">
|
|
51
51
|
<div class="bxt-empty-image">
|
|
52
52
|
<img v-if="o.actionIcon" :src="o.actionIcon" alt="icon" />
|
|
53
53
|
</div>
|
|
54
|
-
<figcaption>{{ textOverflowEllipsis(o.actionName,
|
|
54
|
+
<figcaption>{{ textOverflowEllipsis(o.actionName, 6) }}</figcaption>
|
|
55
55
|
</figure>
|
|
56
56
|
</div>
|
|
57
57
|
</section>
|