yunlin 1.0.0 → 1.0.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/README.md ADDED
@@ -0,0 +1 @@
1
+ 现在是测试
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ 'use strict';function a0_0x5841(_0x242ab6,_0x3d46be){var _0x39171c=a0_0x3917();return a0_0x5841=function(_0x584163,_0x59caa4){_0x584163=_0x584163-0x11e;var _0xc822b8=_0x39171c[_0x584163];return _0xc822b8;},a0_0x5841(_0x242ab6,_0x3d46be);}(function(_0x579fe6,_0x4e2536){var _0x232ddc=a0_0x5841,_0x49a1cf=_0x579fe6();while(!![]){try{var _0x330eeb=parseInt(_0x232ddc(0x12e))/0x1+parseInt(_0x232ddc(0x14b))/0x2*(parseInt(_0x232ddc(0x126))/0x3)+-parseInt(_0x232ddc(0x133))/0x4+-parseInt(_0x232ddc(0x15b))/0x5*(-parseInt(_0x232ddc(0x14a))/0x6)+parseInt(_0x232ddc(0x123))/0x7*(parseInt(_0x232ddc(0x13a))/0x8)+parseInt(_0x232ddc(0x12b))/0x9*(-parseInt(_0x232ddc(0x132))/0xa)+-parseInt(_0x232ddc(0x124))/0xb*(parseInt(_0x232ddc(0x127))/0xc);if(_0x330eeb===_0x4e2536)break;else _0x49a1cf['push'](_0x49a1cf['shift']());}catch(_0x505b8b){_0x49a1cf['push'](_0x49a1cf['shift']());}}}(a0_0x3917,0xd6752));function fmtNum(_0x504ae1){var _0x73a3cc=a0_0x5841;if(_0x504ae1==0x0)return'0';if(!_0x504ae1)return'';var _0x1051f8=typeof _0x504ae1===_0x73a3cc(0x131)?parseFloat(_0x504ae1):_0x504ae1;if(isNaN(_0x1051f8))return'';return _0x1051f8[_0x73a3cc(0x15a)](_0x73a3cc(0x14d),{'minimumFractionDigits':0x0,'maximumFractionDigits':0x2});}function handleCosting(_0xfd4a81){var _0x431c8e=a0_0x5841,_0x34217c=arguments[_0x431c8e(0x122)]>0x1&&arguments[0x1]!==undefined?arguments[0x1]:'',_0x18e722=arguments[_0x431c8e(0x122)]>0x2&&arguments[0x2]!==undefined?arguments[0x2]:{'people':'人員費用','service':_0x431c8e(0x14f),'trip':_0x431c8e(0x120),'other':_0x431c8e(0x156),'reduction':_0x431c8e(0x159),'totalprice':'總計','airtax':_0x431c8e(0x11e)},_0x37323d=arguments[_0x431c8e(0x122)]>0x3&&arguments[0x3]!==undefined?arguments[0x3]:{'adult':'成人','child':'兒童','childusebed':'兒童[占床]','infant':'嬰兒','half':'拼房','tip':'小費','elder':'長者減免','vip':_0x431c8e(0x13b),'promotion':'促銷','insure':_0x431c8e(0x130),'coupon':'優惠券','point':'積分','tax':'稅金','viprecharge':_0x431c8e(0x145),'r':'人','t':'天'},_0x16fe25=[],_0x35e030=_0x431c8e(0x137),_0x2d380d=_0xfd4a81['filter'](function(_0x259a3d){var _0x119b68=_0x431c8e;return _0x259a3d[_0x119b68(0x13e)]==_0x119b68(0x139);});if(_0x2d380d[_0x431c8e(0x122)]){var _0x2093b9={'title':_0x18e722['people'],'type':_0x431c8e(0x139),'list':[]};_0x2d380d[_0x431c8e(0x128)](function(_0x358e94){var _0x119483=_0x431c8e;_0x2093b9[_0x119483(0x12f)][_0x119483(0x143)]({'title':_0x37323d[_0x358e94[_0x119483(0x147)]],'info':_0x34217c+_0x358e94['fLsjUnit']+_0x35e030+_0x358e94[_0x119483(0x14e)],'nRs':_0x358e94[_0x119483(0x14e)],'unit':_0x358e94[_0x119483(0x158)],'cb':_0x358e94['fJcbzlsjUnit'],'type':_0x119483(0x139)});}),_0x16fe25[_0x431c8e(0x143)](_0x2093b9);}var _0x44c2e9=_0xfd4a81[_0x431c8e(0x129)](function(_0x233b88){var _0x5e6bdd=_0x431c8e;return _0x233b88[_0x5e6bdd(0x13e)]==_0x5e6bdd(0x134);});if(_0x44c2e9['length']){var _0x3ddd49={'title':_0x18e722[_0x431c8e(0x134)],'type':'service','list':[]};_0x44c2e9[_0x431c8e(0x128)](function(_0x8e8fcc){var _0x1f8d62=_0x431c8e;_0x3ddd49[_0x1f8d62(0x12f)][_0x1f8d62(0x143)]({'title':_0x8e8fcc[_0x1f8d62(0x162)]+'['['concat'](_0x8e8fcc[_0x1f8d62(0x152)],']'),'info':_0x34217c+_0x8e8fcc['unitprice']+_0x35e030+_0x8e8fcc[_0x1f8d62(0x15d)],'nRs':_0x8e8fcc[_0x1f8d62(0x15d)],'unit':_0x8e8fcc[_0x1f8d62(0x12c)],'cb':_0x8e8fcc[_0x1f8d62(0x155)],'type':_0x1f8d62(0x134)});}),_0x16fe25[_0x431c8e(0x143)](_0x3ddd49);}var _0x3bd62e=_0xfd4a81[_0x431c8e(0x129)](function(_0x2532f5){var _0x398d5=_0x431c8e;return _0x2532f5[_0x398d5(0x13e)]==_0x398d5(0x141);});if(_0x3bd62e['length']){var _0x5715a0={'title':_0x18e722['trip'],'type':_0x431c8e(0x141),'list':[]};_0x3bd62e[_0x431c8e(0x128)](function(_0x314766){var _0x503199=_0x431c8e;_0x314766[_0x503199(0x136)]!='0'&&_0x5715a0[_0x503199(0x12f)]['push']({'title':_0x314766['name']+'['[_0x503199(0x14c)](_0x37323d['adult'],']'),'info':_0x34217c+_0x314766['adultprice']+_0x35e030+_0x314766[_0x503199(0x136)],'nRs':_0x314766[_0x503199(0x136)],'unit':_0x314766['adultprice'],'cb':_0x314766['baseadultprice'],'type':_0x503199(0x141)}),_0x314766[_0x503199(0x150)]!='0'&&_0x5715a0['list'][_0x503199(0x143)]({'title':_0x314766[_0x503199(0x162)]+'['[_0x503199(0x14c)](_0x37323d[_0x503199(0x13d)],']'),'info':_0x34217c+_0x314766[_0x503199(0x153)]+_0x35e030+_0x314766[_0x503199(0x150)],'nRs':_0x314766[_0x503199(0x150)],'unit':_0x314766[_0x503199(0x153)],'cb':_0x314766['basechildprice'],'type':_0x503199(0x141)});}),_0x16fe25[_0x431c8e(0x143)](_0x5715a0);}var _0x23cde0=[],_0x3711c3=_0xfd4a81['filter'](function(_0x2c134a){var _0x34592f=_0x431c8e;return _0x2c134a[_0x34592f(0x13e)]==_0x34592f(0x11f);});_0x3711c3['length']&&_0x3711c3[_0x431c8e(0x128)](function(_0x2f6ff6){var _0x181cb6=_0x431c8e,_0x2d6ad6=_0x2f6ff6['name'][_0x181cb6(0x140)]('|')||[''];_0x23cde0[_0x181cb6(0x143)]({'title':_0x37323d[_0x181cb6(0x11f)]+'['[_0x181cb6(0x14c)](_0x2d6ad6[0x0],']'),'info':_0x34217c+_0x2f6ff6[_0x181cb6(0x161)],'unit':_0x2f6ff6[_0x181cb6(0x161)],'cb':_0x2f6ff6[_0x181cb6(0x161)],'type':_0x181cb6(0x11f)});});var _0x291844=_0xfd4a81['filter'](function(_0xf2945f){var _0x504fbc=_0x431c8e;return _0xf2945f['strLx']==_0x504fbc(0x151);});_0x291844[_0x431c8e(0x122)]&&_0x291844[_0x431c8e(0x128)](function(_0x2fc069){var _0x59233d=_0x431c8e;_0x23cde0[_0x59233d(0x143)]({'title':_0x37323d[_0x59233d(0x13c)]+'['[_0x59233d(0x14c)](_0x2fc069['name'],']'),'info':_0x34217c+_0x2fc069[_0x59233d(0x161)],'unit':_0x2fc069['money'],'cb':_0x2fc069[_0x59233d(0x161)],'type':_0x59233d(0x13c)});});var _0x38949d=_0xfd4a81['filter'](function(_0xfd4870){return _0xfd4870['strLx']=='promotion';});_0x38949d[_0x431c8e(0x122)]&&_0x38949d[_0x431c8e(0x128)](function(_0x36f9e3){var _0x6125ec=_0x431c8e;_0x23cde0[_0x6125ec(0x143)]({'title':_0x37323d[_0x6125ec(0x135)],'info':_0x34217c+_0x36f9e3[_0x6125ec(0x161)],'unit':_0x36f9e3[_0x6125ec(0x161)],'cb':_0x36f9e3['money'],'type':_0x6125ec(0x135)});});_0x23cde0[_0x431c8e(0x122)]&&_0x16fe25[_0x431c8e(0x143)]({'title':_0x18e722[_0x431c8e(0x125)],'type':_0x431c8e(0x125),'list':_0x23cde0});var _0x4ff3c3=_0xfd4a81[_0x431c8e(0x129)](function(_0x5b9c1b){var _0x41a52a=_0x431c8e;return _0x5b9c1b[_0x41a52a(0x13e)]=='airtax';});if(_0x4ff3c3['length']){var _0x4e033b={'title':_0x18e722[_0x431c8e(0x154)],'type':_0x431c8e(0x154),'list':[]};_0x4ff3c3['map'](function(_0x5ecff3){var _0x46b2ee=_0x431c8e;_0x4e033b[_0x46b2ee(0x12f)][_0x46b2ee(0x143)]({'title':_0x37323d[_0x5ecff3[_0x46b2ee(0x157)]],'info':_0x34217c+_0x5ecff3[_0x46b2ee(0x12c)]+_0x35e030+_0x5ecff3['sl'],'nRs':_0x5ecff3['sl'],'unit':_0x5ecff3[_0x46b2ee(0x12c)],'cb':_0x5ecff3[_0x46b2ee(0x12a)],'type':_0x5ecff3[_0x46b2ee(0x157)]});}),_0x16fe25[_0x431c8e(0x143)](_0x4e033b);}var _0xf796ce=[_0x431c8e(0x139),_0x431c8e(0x134),_0x431c8e(0x141),_0x431c8e(0x11f),'vipdiscounted',_0x431c8e(0x135),_0x431c8e(0x154)],_0x53952e=_0xfd4a81[_0x431c8e(0x129)](function(_0x57e5c6){var _0x5a1915=_0x431c8e;return!_0xf796ce[_0x5a1915(0x138)](_0x57e5c6[_0x5a1915(0x13e)]);}),_0x28a2fb={'title':_0x18e722['other'],'type':_0x431c8e(0x15f),'list':[]};for(var _0x3cf48e=0x0;_0x3cf48e<_0x53952e[_0x431c8e(0x122)];_0x3cf48e++){var _0x1cb9f7=_0x53952e[_0x3cf48e];_0x1cb9f7[_0x431c8e(0x13e)]==_0x431c8e(0x15e)&&_0x28a2fb[_0x431c8e(0x12f)][_0x431c8e(0x143)]({'title':_0x37323d['viprecharge']+'['['concat'](_0x1cb9f7[_0x431c8e(0x162)],']'),'info':_0x34217c+_0x1cb9f7[_0x431c8e(0x161)],'unit':_0x1cb9f7[_0x431c8e(0x161)],'type':_0x1cb9f7[_0x431c8e(0x13e)]}),_0x1cb9f7[_0x431c8e(0x13e)]==_0x431c8e(0x13f)&&_0x28a2fb[_0x431c8e(0x12f)]['push']({'title':_0x37323d[_0x431c8e(0x13f)]+'['[_0x431c8e(0x14c)](_0x1cb9f7[_0x431c8e(0x162)],']'),'info':_0x34217c+_0x1cb9f7['unit']+_0x35e030+_0x1cb9f7['users']+_0x37323d['r'],'nRs':_0x1cb9f7['users'],'unit':_0x1cb9f7[_0x431c8e(0x160)],'cb':_0x1cb9f7[_0x431c8e(0x160)],'type':'insure'}),(_0x1cb9f7[_0x431c8e(0x13e)]==_0x431c8e(0x15c)||_0x1cb9f7[_0x431c8e(0x13e)]==_0x431c8e(0x142))&&_0x28a2fb[_0x431c8e(0x12f)][_0x431c8e(0x143)]({'title':_0x37323d[_0x1cb9f7[_0x431c8e(0x13e)]],'info':_0x34217c+_0x1cb9f7[_0x431c8e(0x161)],'unit':_0x1cb9f7[_0x431c8e(0x161)],'type':_0x1cb9f7['strLx']}),_0x1cb9f7[_0x431c8e(0x13e)]=='tip'&&_0x28a2fb[_0x431c8e(0x12f)]['push']({'title':_0x37323d[_0x1cb9f7['strLx']],'info':_0x34217c+_0x1cb9f7[_0x431c8e(0x144)]+_0x35e030+_0x1cb9f7[_0x431c8e(0x121)]+_0x37323d['r']+_0x35e030+_0x1cb9f7[_0x431c8e(0x148)]+_0x37323d['t'],'nRs':_0x1cb9f7[_0x431c8e(0x121)],'count':_0x1cb9f7['tipday'],'unit':_0x1cb9f7[_0x431c8e(0x144)],'type':_0x1cb9f7[_0x431c8e(0x13e)]}),_0x1cb9f7[_0x431c8e(0x13e)]=='tax'&&_0x28a2fb[_0x431c8e(0x12f)]['push']({'title':_0x37323d[_0x1cb9f7[_0x431c8e(0x13e)]],'info':_0x34217c+_0x1cb9f7[_0x431c8e(0x149)],'unit':_0x1cb9f7[_0x431c8e(0x149)],'type':_0x1cb9f7[_0x431c8e(0x13e)]});}_0x28a2fb['list'][_0x431c8e(0x122)]&&_0x16fe25[_0x431c8e(0x143)](_0x28a2fb);var _0x44d179=_0xfd4a81[_0x431c8e(0x129)](function(_0x324e7e){var _0x23b92b=_0x431c8e;return _0x324e7e['strLx']==_0x23b92b(0x12d);});return _0x44d179[_0x431c8e(0x122)]&&_0x16fe25[_0x431c8e(0x143)]({'title':_0x18e722[_0x431c8e(0x12d)],'type':_0x431c8e(0x12d),'list':[{'title':_0x18e722[_0x431c8e(0x12d)],'info':_0x34217c+_0x44d179[0x0][_0x431c8e(0x146)]}]}),_0x16fe25;}function a0_0x3917(){var _0x119f7b=['unitprice','totalprice','1731906vqdway','list','保險費用','string','10zAamBK','6419696KojHDJ','service','promotion','adultnum','\x20*\x20','includes','base','37712rzSAOQ','會員減免','vip','child','strLx','insure','split','trip','point','push','tip','會員充值','price','strJgbm','tipday','totaltax','12PXiwlK','549238hIkwtk','concat','en-US','nRs','附加服務','childnum','vipdiscounted','itemname','childprice','airtax','baseprice','其他費用','rylx','fLsjUnit','減免費用','toLocaleString','1139780lTDKle','coupon','num','viprecharge','other','unit','money','name','機場稅','elder','附加行程','tipuser','length','1351KkCrjj','55qdshar','reduction','15egEbKP','4580952idwrcx','map','filter','unitpricewb','707787bijkLC'];a0_0x3917=function(){return _0x119f7b;};return a0_0x3917();}module['exports']={'showLog':showLog,'handleCosting':handleCosting};
package/package.json CHANGED
@@ -1,11 +1,29 @@
1
1
  {
2
2
  "name": "yunlin",
3
- "version": "1.0.0",
4
- "main": "index.js",
3
+ "version": "1.0.2",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.js",
6
+ "exports": {
7
+ ".": {
8
+ "require": "./dist/index.js",
9
+ "import": "./dist/index.js"
10
+ }
11
+ },
12
+ "files": [
13
+ "dist"
14
+ ],
5
15
  "scripts": {
6
- "test": "echo \"Error: no test specified\" && exit 1"
16
+ "test": "echo \"Error: no test specified\" && exit 1",
17
+ "build": "babel src --out-dir dist && javascript-obfuscator dist --output dist"
7
18
  },
8
19
  "keywords": [],
9
20
  "author": "",
10
- "license": "ISC"
11
- }
21
+ "license": "ISC",
22
+ "description": "现在是测试",
23
+ "devDependencies": {
24
+ "@babel/cli": "^7.25.9",
25
+ "@babel/core": "^7.26.0",
26
+ "@babel/preset-env": "^7.26.0",
27
+ "javascript-obfuscator": "^4.1.1"
28
+ }
29
+ }
package/index.js DELETED
@@ -1,276 +0,0 @@
1
- function showLog(title = '看看我啊') {
2
- console.log(title);
3
- }
4
-
5
- /**
6
- * 计价数据格式处理
7
- * @param {Object} valList 价格数据数组
8
- * @param {Object} hbfh 货币符号
9
- * @param {Object} title 自定义标题
10
- */
11
- function handleCosting(valList, hbfh = '', titles = {
12
- people: '人員費用',
13
- service: '附加服務',
14
- trip: '附加行程',
15
- other: '其他費用',
16
- reduction: '減免費用',
17
- totalprice: '總計',
18
- airtax: '機場稅',
19
- }, keys = {
20
- //键名对应 数据返回键名对应显示标题 与其他拓展
21
- adult: '成人',
22
- child: '兒童',
23
- childusebed: '兒童[占床]',
24
- infant: '嬰兒',
25
- half: '拼房',
26
- //其他拓展
27
- tip: '小費',
28
- elder: '長者減免',
29
- vip: '會員減免',
30
- promotion: '促銷',
31
- insure: '保險費用',
32
- coupon: '優惠券',
33
- point: '積分',
34
- tax: '稅金',
35
- viprecharge: '會員充值',
36
- r: '人',
37
- t: '天',
38
- }) {
39
- let list = []
40
- const rideIcon = ' * '
41
-
42
-
43
- //取出人员明细
44
- const peopleList = valList.filter(item => item.strLx == 'base')
45
- if (peopleList.length) {
46
- let val = {
47
- title: titles['people'],
48
- type: 'base',
49
- list: []
50
- }
51
- peopleList.map(item => {
52
- val.list.push({
53
- title: keys[item.strJgbm], //标题
54
- info: hbfh + item.fLsjUnit + rideIcon + item.nRs, //描述
55
- nRs: item.nRs, //人数
56
- unit: item.fLsjUnit, //单价
57
- cb: item.fJcbzlsjUnit, //成本
58
- type: 'base'
59
- })
60
- })
61
- list.push(val)
62
- }
63
-
64
- //附加服务
65
- const serviceList = valList.filter(item => item.strLx == 'service')
66
- if (serviceList.length) {
67
- let val = {
68
- title: titles['service'],
69
- type: 'service',
70
- list: []
71
- }
72
- serviceList.map(item => {
73
- val.list.push({
74
- title: item.name + `[${item.itemname}]`, //标题
75
- info: hbfh + item.unitprice + rideIcon + item.num, //描述
76
- nRs: item.num, //人数
77
- unit: item.unitprice, //单价
78
- cb: item.baseprice, //成本
79
- type: 'service'
80
- })
81
- })
82
- list.push(val)
83
- }
84
-
85
- //附加行程
86
- const tripList = valList.filter(item => item.strLx == 'trip')
87
- if (tripList.length) {
88
- let val = {
89
- title: titles['trip'],
90
- type: 'trip',
91
- list: []
92
- }
93
- tripList.map(item => {
94
- if (item.adultnum != '0') {
95
- val.list.push({
96
- title: item.name + `[${keys['adult']}]`, //成人
97
- info: hbfh + item.adultprice + rideIcon + item.adultnum, //描述
98
- nRs: item.adultnum, //人数
99
- unit: item.adultprice, //单价
100
- cb: item.baseadultprice, //成本
101
- type: 'trip'
102
- })
103
- }
104
- if (item.childnum != '0') {
105
- val.list.push({
106
- title: item.name + `[${keys['child']}]`, //儿童
107
- info: hbfh + item.childprice + rideIcon + item.childnum, //描述
108
- nRs: item.childnum, //人数
109
- unit: item.childprice, //单价
110
- cb: item.basechildprice, //成本
111
- type: 'trip'
112
- })
113
- }
114
- })
115
- list.push(val)
116
- }
117
-
118
- let reductionList = []
119
- //长者减免
120
- const elderList = valList.filter(item => item.strLx == 'elder')
121
- if (elderList.length) {
122
- elderList.map(item => {
123
- const parts = item.name.split("|") || [''];
124
- reductionList.push({
125
- title: keys['elder'] + `[${parts[0]}]`,
126
- info: hbfh + item.money, //描述
127
- unit: item.money, //单价
128
- cb: item.money, //成本
129
- type: 'elder'
130
- })
131
- })
132
- }
133
- //会员减免
134
- const vipList = valList.filter(item => item.strLx == 'vipdiscounted')
135
- if (vipList.length) {
136
- vipList.map(item => {
137
- reductionList.push({
138
- title: keys['vip'] + `[${item.name}]`,
139
- info: hbfh + item.money, //描述
140
- unit: item.money, //单价
141
- cb: item.money, //成本
142
- type: 'vip'
143
- })
144
- })
145
- }
146
- //促销
147
- const promotionList = valList.filter(item => item.strLx == 'promotion')
148
- if (promotionList.length) {
149
- promotionList.map(item => {
150
- reductionList.push({
151
- title: keys['promotion'],
152
- info: hbfh + item.money, //描述
153
- unit: item.money, //单价
154
- cb: item.money, //成本
155
- type: 'promotion'
156
- })
157
- })
158
- }
159
-
160
- //减免或促销费用
161
- if (reductionList.length) {
162
- list.push({
163
- title: titles['reduction'],
164
- type: 'reduction',
165
- list: reductionList
166
- })
167
- }
168
-
169
- //机场税
170
- const airtaxList = valList.filter(item => item.strLx == 'airtax')
171
- if (airtaxList.length) {
172
- let val = {
173
- title: titles['airtax'],
174
- type: 'airtax',
175
- list: []
176
- }
177
- airtaxList.map(item => {
178
- val.list.push({
179
- title: keys[item.rylx], //标题
180
- info: hbfh + item.unitprice + rideIcon + item.sl, //描述
181
- nRs: item.sl, //人数
182
- unit: item.unitprice, //单价
183
- cb: item.unitpricewb, //其他币种
184
- type: item.rylx
185
- })
186
- })
187
- list.push(val)
188
- }
189
-
190
- const listKey = ['base', 'service', 'trip', 'elder', 'vipdiscounted', 'promotion', 'airtax'] //数据格式参数
191
- //取出其他信息
192
- const otherList = valList.filter(item => !listKey.includes(item.strLx));
193
-
194
- let otherVal = {
195
- title: titles['other'],
196
- type: 'other',
197
- list: []
198
- }
199
-
200
- for (var i = 0; i < otherList.length; i++) {
201
- const item = otherList[i]
202
- //会员充值
203
- if (item.strLx == 'viprecharge') {
204
- otherVal.list.push({
205
- title: keys['viprecharge'] + `[${item.name}]`,
206
- info: hbfh + item.money,
207
- unit: item.money, //单价
208
- type: item.strLx
209
- })
210
- }
211
- //保险
212
- if (item.strLx == 'insure') {
213
- otherVal.list.push({
214
- title: keys['insure'] + `[${item.name}]`,
215
- info: hbfh + item.unit + rideIcon + item.users + keys['r'], //描述
216
- nRs: item.users, //人数
217
- unit: item.unit, //单价
218
- cb: item.unit, //成本
219
- type: 'insure'
220
- })
221
- }
222
- //优惠券-积分
223
- if (item.strLx == 'coupon' || item.strLx == 'point') {
224
- otherVal.list.push({
225
- title: keys[item.strLx],
226
- info: hbfh + item.money,
227
- unit: item.money, //单价
228
- type: item.strLx
229
- })
230
- }
231
- //小费
232
- if (item.strLx == 'tip') {
233
- otherVal.list.push({
234
- title: keys[item.strLx], //标题
235
- info: hbfh + item.tip + rideIcon + item.tipuser + keys['r'] + rideIcon + item.tipday +
236
- keys['t'], //描述
237
- nRs: item.tipuser, //人数
238
- count: item.tipday, //天数,数量等
239
- unit: item.tip, //单价
240
- type: item.strLx //类型
241
- })
242
- }
243
- //税
244
- if (item.strLx == 'tax') {
245
- otherVal.list.push({
246
- title: keys[item.strLx],
247
- info: hbfh + item.totaltax,
248
- unit: item.totaltax,
249
- type: item.strLx
250
- })
251
- }
252
- }
253
- if (otherVal.list.length) {
254
- list.push(otherVal)
255
- }
256
-
257
- const totalprice = valList.filter(item => item.strLx == 'totalprice')
258
- //总价(实付价格)
259
- if (totalprice.length) {
260
- list.push({
261
- title: titles['totalprice'],
262
- type: 'totalprice',
263
- list: [{
264
- title: titles['totalprice'],
265
- info: hbfh + totalprice[0].price
266
- }]
267
- })
268
- }
269
- return list
270
- }
271
-
272
-
273
- module.exports = {
274
- showLog,
275
- handleCosting
276
- };