jufubao-base 1.0.279-beta1 → 1.0.279-beta102
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/package.json +1 -1
- package/src/components/JfbBaseCard/JfbBaseCard.vue +6 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +6 -0
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +6 -0
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +6 -0
- package/src/components/JfbBaseChangeCompany/Api.js +18 -0
- package/src/components/JfbBaseChangeCompany/Attr.js +18 -0
- package/src/components/JfbBaseChangeCompany/JfbBaseChangeCompany.vue +201 -0
- package/src/components/JfbBaseChangeCompany/JfbBaseChangeCompanyLess.less +79 -0
- package/src/components/JfbBaseChangeCompany/JfbBaseChangeCompanyMixin.js +30 -0
- package/src/components/JfbBaseChangeCompany/Mock.js +7 -0
- package/src/components/JfbBaseChangeCompany/cusAttr/advanced.js +24 -0
- package/src/components/JfbBaseChangeCompany/cusAttr/content.js +27 -0
- package/src/components/JfbBaseChangeCompany/cusAttr/style.js +127 -0
- package/src/components/JfbBaseChoseCompany/Api.js +33 -0
- package/src/components/JfbBaseChoseCompany/Attr.js +18 -0
- package/src/components/JfbBaseChoseCompany/JfbBaseChoseCompany.vue +344 -0
- package/src/components/JfbBaseChoseCompany/JfbBaseChoseCompanyLess.less +79 -0
- package/src/components/JfbBaseChoseCompany/JfbBaseChoseCompanyMixin.js +30 -0
- package/src/components/JfbBaseChoseCompany/Mock.js +9 -0
- package/src/components/JfbBaseChoseCompany/cusAttr/advanced.js +24 -0
- package/src/components/JfbBaseChoseCompany/cusAttr/content.js +69 -0
- package/src/components/JfbBaseChoseCompany/cusAttr/style.js +327 -0
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +2 -3
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +7 -153
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import {
|
|
3
|
+
dataVal,
|
|
4
|
+
statusDataVal,
|
|
5
|
+
statusShow,
|
|
6
|
+
cRaBorShadow
|
|
7
|
+
} from "@/utils/AttrTools";
|
|
8
|
+
|
|
9
|
+
export default (data, gValue, gColor, oldData) => {
|
|
10
|
+
let defListBorder = cRaBorShadow(data, 'listBorder', {}, gValue);
|
|
11
|
+
let defListShadow = cRaBorShadow(data, 'listShadow', { old: ['is_shadow', 'is_shadow_w', 'is_shadow_bg'] }, gValue);
|
|
12
|
+
return [
|
|
13
|
+
{
|
|
14
|
+
ele: 'title',
|
|
15
|
+
label: '内容区',
|
|
16
|
+
size: 'small',
|
|
17
|
+
groupKey: 'style',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: '内边距',
|
|
21
|
+
ele: 'xd-radio',
|
|
22
|
+
groupKey: 'style',
|
|
23
|
+
valueKey: 'contentPaddingStatus',
|
|
24
|
+
value: statusDataVal({ data, key: 'contentPaddingStatus', fields: ['contentPadding'], gValue }),
|
|
25
|
+
labelInline: true,
|
|
26
|
+
list: [
|
|
27
|
+
{ label: '默认', value: 'D' },
|
|
28
|
+
{ label: '自定义', value: 'C' },
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{ ele: 'group_start' },
|
|
32
|
+
{
|
|
33
|
+
label: '',
|
|
34
|
+
groupKey: 'style',
|
|
35
|
+
ele: 'xd-margin-padding',
|
|
36
|
+
valueKey: 'contentPadding',
|
|
37
|
+
value: dataVal({
|
|
38
|
+
data,
|
|
39
|
+
key: 'contentPadding',
|
|
40
|
+
dValue: { top: 36, bottom: 0, left: 20, right: 20 },
|
|
41
|
+
gValue,
|
|
42
|
+
isPM: true,
|
|
43
|
+
}),
|
|
44
|
+
setting: {
|
|
45
|
+
type: 'padding',
|
|
46
|
+
},
|
|
47
|
+
placeholder: '请填充设置',
|
|
48
|
+
hidden: !statusShow({ data, key: 'contentPaddingStatus', fields: ['contentPadding'], gValue }),
|
|
49
|
+
},
|
|
50
|
+
{ ele: 'group_end' },
|
|
51
|
+
{
|
|
52
|
+
ele: 'title',
|
|
53
|
+
label: '企业列表样式',
|
|
54
|
+
size: 'small',
|
|
55
|
+
groupKey: 'style',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: '内边距',
|
|
59
|
+
ele: 'xd-radio',
|
|
60
|
+
groupKey: 'style',
|
|
61
|
+
valueKey: 'listPaddingStatus',
|
|
62
|
+
value: statusDataVal({ data, key: 'listPaddingStatus', fields: ['listPadding'], gValue }),
|
|
63
|
+
labelInline: true,
|
|
64
|
+
list: [
|
|
65
|
+
{ label: '默认', value: 'D' },
|
|
66
|
+
{ label: '自定义', value: 'C' },
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{ ele: 'group_start' },
|
|
70
|
+
{
|
|
71
|
+
label: '',
|
|
72
|
+
groupKey: 'style',
|
|
73
|
+
ele: 'xd-margin-padding',
|
|
74
|
+
valueKey: 'listPadding',
|
|
75
|
+
value: dataVal({
|
|
76
|
+
data,
|
|
77
|
+
key: 'listPadding',
|
|
78
|
+
dValue: { top: 40, bottom: 40, left: 32, right: 32 },
|
|
79
|
+
gValue,
|
|
80
|
+
isPM: true,
|
|
81
|
+
}),
|
|
82
|
+
setting: {
|
|
83
|
+
type: 'padding',
|
|
84
|
+
},
|
|
85
|
+
placeholder: '请填充设置',
|
|
86
|
+
hidden: !statusShow({ data, key: 'listPaddingStatus', fields: ['listPadding'], gValue }),
|
|
87
|
+
},
|
|
88
|
+
{ ele: 'group_end' },
|
|
89
|
+
{
|
|
90
|
+
label: '行间距',
|
|
91
|
+
ele: 'xd-radio',
|
|
92
|
+
groupKey: 'style',
|
|
93
|
+
valueKey: 'listSpacingStatus',
|
|
94
|
+
value: statusDataVal({ data, key: 'listSpacingStatus', fields: ['listSpacing'], gValue }),
|
|
95
|
+
labelInline: true,
|
|
96
|
+
list: [
|
|
97
|
+
{ label: '默认', value: 'D' },
|
|
98
|
+
{ label: '自定义', value: 'C' },
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{ ele: 'group_start' },
|
|
102
|
+
{
|
|
103
|
+
label: "间距",
|
|
104
|
+
groupKey: 'style',
|
|
105
|
+
ele: 'xd-slider',
|
|
106
|
+
valueKey: "listSpacing",
|
|
107
|
+
value: dataVal({ data, key: 'listSpacing', dValue: '24', gValue }),
|
|
108
|
+
hidden: !statusShow({ data, key: 'listSpacingStatus', fields: ['listSpacing'], gValue }),
|
|
109
|
+
className: "input100",
|
|
110
|
+
labelInline: true,
|
|
111
|
+
setting: {
|
|
112
|
+
min: 0,
|
|
113
|
+
max: 100,
|
|
114
|
+
step: 1,
|
|
115
|
+
showStops: false,
|
|
116
|
+
showInput: false,
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{ ele: 'group_end' },
|
|
120
|
+
{
|
|
121
|
+
label: '圆角',
|
|
122
|
+
ele: 'xd-radio',
|
|
123
|
+
groupKey: 'style',
|
|
124
|
+
valueKey: 'listRadiusStatus',
|
|
125
|
+
value: statusDataVal({ data, key: 'listRadiusStatus', fields: ['listRadius'], gValue }),
|
|
126
|
+
labelInline: true,
|
|
127
|
+
list: [
|
|
128
|
+
{ label: '默认', value: 'D' },
|
|
129
|
+
{ label: '无圆角', value: 'N' },
|
|
130
|
+
{ label: '自定义', value: 'C' },
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{ ele: 'group_start' },
|
|
134
|
+
{
|
|
135
|
+
label: "",
|
|
136
|
+
ele: 'xd-site-select-list',
|
|
137
|
+
valueKey: 'listRadius',
|
|
138
|
+
groupKey: 'style',
|
|
139
|
+
value: dataVal({
|
|
140
|
+
data,
|
|
141
|
+
key: 'listRadius',
|
|
142
|
+
dValue: '8',
|
|
143
|
+
gValue,
|
|
144
|
+
}),
|
|
145
|
+
placeholder: '请选择内容圆角设置',
|
|
146
|
+
multiple: false,
|
|
147
|
+
hidden: !statusShow({ data, key: 'listRadiusStatus', fields: ['listRadius'], gValue }),
|
|
148
|
+
className: 'input80',
|
|
149
|
+
handleCustom({ action, data }) {
|
|
150
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
151
|
+
.then(res => {
|
|
152
|
+
data.cb(res.list)
|
|
153
|
+
})
|
|
154
|
+
.catch(error => {
|
|
155
|
+
console.error(error);
|
|
156
|
+
});
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
{ ele: 'group_end' },
|
|
160
|
+
{
|
|
161
|
+
label: '描边',
|
|
162
|
+
ele: 'xd-border',
|
|
163
|
+
labelInline: true,
|
|
164
|
+
groupKey: 'style',
|
|
165
|
+
valueKey: 'listBorder',
|
|
166
|
+
value: defListBorder,
|
|
167
|
+
setting: {
|
|
168
|
+
selected: defListBorder.type,
|
|
169
|
+
isRadio: true,//启用editx默认
|
|
170
|
+
isDef: true, //启动默认选项
|
|
171
|
+
//==设置默认值==
|
|
172
|
+
color: '#e5e5e5',
|
|
173
|
+
width: '0',
|
|
174
|
+
style: 'solid'
|
|
175
|
+
//==设置默认值==
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
label: '商品投影',
|
|
180
|
+
ele: 'xd-shadow',
|
|
181
|
+
labelInline: true,
|
|
182
|
+
groupKey: 'style',
|
|
183
|
+
valueKey: 'listShadow',
|
|
184
|
+
value: defListShadow,
|
|
185
|
+
className: 'input100',
|
|
186
|
+
setting: {
|
|
187
|
+
selected: defListShadow.type,
|
|
188
|
+
isRadio: true,
|
|
189
|
+
isDef: true,
|
|
190
|
+
default: {
|
|
191
|
+
color: 'rgba(0,0,0,.05)',
|
|
192
|
+
width: '10',
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
handleCustom({ action, data }) {
|
|
196
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
197
|
+
.then(res => {
|
|
198
|
+
res.list = res.list.filter(item => {
|
|
199
|
+
return item.label !== '无';
|
|
200
|
+
});
|
|
201
|
+
data.cb(res.list)
|
|
202
|
+
})
|
|
203
|
+
.catch(error => {
|
|
204
|
+
console.error(error);
|
|
205
|
+
data.cb([])
|
|
206
|
+
});
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
label: '文字',
|
|
211
|
+
ele: 'xd-radio',
|
|
212
|
+
groupKey: 'style',
|
|
213
|
+
valueKey: 'listFontStyleStatus',
|
|
214
|
+
value: statusDataVal({ data, key: 'listFontStyleStatus', fields: ['listFontStyle'], gValue }),
|
|
215
|
+
labelInline: true,
|
|
216
|
+
list: [
|
|
217
|
+
{ label: '默认', value: 'D' },
|
|
218
|
+
{ label: '自定义', value: 'C' },
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{ ele: 'group_start' },
|
|
222
|
+
{
|
|
223
|
+
label: '',
|
|
224
|
+
ele: 'xd-text-and-bgc',
|
|
225
|
+
groupKey: 'style',
|
|
226
|
+
valueKey: 'listFontStyle',
|
|
227
|
+
value: dataVal({ data, key: 'listFontStyle', dValue: null, gValue }),
|
|
228
|
+
hidden: !statusShow({ data, key: 'listFontStyleStatus', fields: ['listFontStyle'], gValue }),
|
|
229
|
+
setting: {
|
|
230
|
+
fontSize: false,
|
|
231
|
+
weight: false,
|
|
232
|
+
selected: false,
|
|
233
|
+
bgColor: false,
|
|
234
|
+
default: {
|
|
235
|
+
color: '#333',
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
handleCustom({ action, data }) {
|
|
239
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
|
|
240
|
+
.then(res => {
|
|
241
|
+
data.cb(res.list)
|
|
242
|
+
})
|
|
243
|
+
.catch(error => {
|
|
244
|
+
console.error(error);
|
|
245
|
+
data.cb([])
|
|
246
|
+
});
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
{ ele: 'group_end' },
|
|
250
|
+
{
|
|
251
|
+
ele: 'title',
|
|
252
|
+
label: '添加企业样式',
|
|
253
|
+
size: 'small',
|
|
254
|
+
groupKey: 'style',
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
label: '背景',
|
|
258
|
+
ele: 'xd-radio',
|
|
259
|
+
groupKey: 'style',
|
|
260
|
+
valueKey: 'addBackgroundStatus',
|
|
261
|
+
value: statusDataVal({ data, key: 'addBackgroundStatus', fields: ['addBackground'], gValue }),
|
|
262
|
+
labelInline: true,
|
|
263
|
+
list: [
|
|
264
|
+
{ label: '默认', value: 'D' },
|
|
265
|
+
{ label: '自定义', value: 'C' },
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{ ele: 'group_start' },
|
|
269
|
+
{
|
|
270
|
+
label: '背景颜色',
|
|
271
|
+
ele: 'xd-color',
|
|
272
|
+
labelInline: true,
|
|
273
|
+
valueKey: 'addBackground',
|
|
274
|
+
value: dataVal({ data, key: 'addBackground', dValue: '#F8F8F8', gValue }),
|
|
275
|
+
hidden: !statusShow({ data, key: 'addBackgroundStatus', fields: ['addBackground'], gValue }),
|
|
276
|
+
placeholder: '请选择背景颜色',
|
|
277
|
+
className: 'input80',
|
|
278
|
+
groupKey: 'style',
|
|
279
|
+
setting: {
|
|
280
|
+
showAlpha: true
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
{ ele: 'group_end' },
|
|
284
|
+
{
|
|
285
|
+
label: '文字颜色',
|
|
286
|
+
ele: 'xd-radio',
|
|
287
|
+
groupKey: 'style',
|
|
288
|
+
valueKey: 'addFontStyleStatus',
|
|
289
|
+
value: statusDataVal({ data, key: 'addFontStyleStatus', fields: ['addFontStyle'], gValue }),
|
|
290
|
+
labelInline: true,
|
|
291
|
+
list: [
|
|
292
|
+
{ label: '默认', value: 'D' },
|
|
293
|
+
{ label: '自定义', value: 'C' },
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
{ ele: 'group_start' },
|
|
297
|
+
{
|
|
298
|
+
label: '',
|
|
299
|
+
ele: 'xd-text-and-bgc',
|
|
300
|
+
groupKey: 'style',
|
|
301
|
+
valueKey: 'addFontStyle',
|
|
302
|
+
value: dataVal({ data, key: 'addFontStyle', dValue: {}, gValue }),
|
|
303
|
+
hidden: !statusShow({ data, key: 'addFontStyleStatus', fields: ['addFontStyle'], gValue }),
|
|
304
|
+
setting: {
|
|
305
|
+
fontSize: false,
|
|
306
|
+
weight: false,
|
|
307
|
+
bgColor: false,
|
|
308
|
+
selected: false,
|
|
309
|
+
default: {
|
|
310
|
+
color: '#999999',
|
|
311
|
+
},
|
|
312
|
+
isBorder: false,
|
|
313
|
+
},
|
|
314
|
+
handleCustom({ action, data }) {
|
|
315
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_font_size' })
|
|
316
|
+
.then(res => {
|
|
317
|
+
data.cb(res.list)
|
|
318
|
+
})
|
|
319
|
+
.catch(error => {
|
|
320
|
+
console.error(error);
|
|
321
|
+
data.cb([])
|
|
322
|
+
});
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
{ ele: 'group_end' },
|
|
326
|
+
]
|
|
327
|
+
}
|
|
@@ -182,7 +182,6 @@
|
|
|
182
182
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
183
183
|
import storage from "@/common/storage";
|
|
184
184
|
import Color from "color";
|
|
185
|
-
const color = require('color');
|
|
186
185
|
export default {
|
|
187
186
|
name: "JfbBaseNotice",
|
|
188
187
|
components: {
|
|
@@ -346,13 +345,13 @@
|
|
|
346
345
|
* @param container {object} 业务组件对象自己
|
|
347
346
|
*/
|
|
348
347
|
init(container) {
|
|
349
|
-
let colorBg =
|
|
348
|
+
let colorBg = Color(this.warningColor).alpha(0.1).array();
|
|
350
349
|
this.style = getContainerPropsValue(container, 'content.style', '1');
|
|
351
350
|
this.time = Number(getContainerPropsValue(container, 'content.time', 3));
|
|
352
351
|
this.textColor = getContainerPropsValue(container, 'content.textColor', this.warningColor);
|
|
353
352
|
this.textAlign = getContainerPropsValue(container, 'content.textAlign', 'left');
|
|
354
353
|
this.bgc = getContainerPropsValue(container, 'content.bgc', `rgba(${colorBg.join(',')})`);
|
|
355
|
-
this.borderTitleColor =
|
|
354
|
+
this.borderTitleColor = Color(this.bgc).lighten(.15).hex();
|
|
356
355
|
this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
|
|
357
356
|
this.padding = getContainerPropsValue(container, 'content.padding', {top: 8, left: 10, bottom: 8, right: 10});
|
|
358
357
|
this.scrollMargin = getContainerPropsValue(container, 'content.scrollMargin', {});
|
|
@@ -160,8 +160,7 @@
|
|
|
160
160
|
<view>{{ Ditem.value }}</view>
|
|
161
161
|
</view>
|
|
162
162
|
</view>
|
|
163
|
-
|
|
164
|
-
<view v-if="['none'].includes(code_location) && info.sub_orders && info.sub_orders.length > 0">
|
|
163
|
+
<view v-if="info.sub_orders && info.sub_orders.length > 0">
|
|
165
164
|
<view
|
|
166
165
|
:style="{
|
|
167
166
|
background: backgroundColor,
|
|
@@ -250,7 +249,6 @@
|
|
|
250
249
|
</view>
|
|
251
250
|
</view>
|
|
252
251
|
</view>
|
|
253
|
-
<!--mall code orders info-->
|
|
254
252
|
<view
|
|
255
253
|
v-if="info.settle_tag_info"
|
|
256
254
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-settle"
|
|
@@ -496,7 +494,6 @@
|
|
|
496
494
|
</view>
|
|
497
495
|
</view>
|
|
498
496
|
</view>
|
|
499
|
-
<!--shop-->
|
|
500
497
|
<view v-if="info.support_shops && is_show_support_shop === 'Y'">
|
|
501
498
|
<view
|
|
502
499
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-jump"
|
|
@@ -531,114 +528,13 @@
|
|
|
531
528
|
marginBottom: padding + 'rpx',
|
|
532
529
|
}"
|
|
533
530
|
>
|
|
534
|
-
<view class="jfb-base-order-detail__body-shop-title"
|
|
531
|
+
<view class="jfb-base-order-detail__body-shop-title">
|
|
535
532
|
<view :style="{ background: mainColor }"></view>
|
|
536
533
|
<view>{{ info.shop.layer_name }}</view>
|
|
537
534
|
</view>
|
|
538
|
-
<view class="order-shop">
|
|
539
|
-
|
|
540
|
-
<view :class="{top: ['top'].includes(code_location)}" class="jfb-base-order-detail__body-shop-name">{{ info.shop.shop_name }}</view>
|
|
541
|
-
<view class="jfb-base-order-detail__body-shop-address">地址: {{ info.shop.shop_address }}</view>
|
|
542
|
-
</view>
|
|
543
|
-
<view
|
|
544
|
-
@click="handleLocation(info.shop)"
|
|
545
|
-
v-if="['top'].includes(code_location)"
|
|
546
|
-
><xd-font-icon icon="iconfabu" :color="mainColor" size="30"></xd-font-icon></view>
|
|
547
|
-
</view>
|
|
548
|
-
|
|
549
|
-
</view>
|
|
550
|
-
<!--shop-->
|
|
551
|
-
<!--food sub orders info-->
|
|
552
|
-
<view v-if="['top'].includes(code_location) && info.sub_orders && info.sub_orders.length > 0">
|
|
553
|
-
<view
|
|
554
|
-
:style="{
|
|
555
|
-
background: backgroundColor,
|
|
556
|
-
border: borderBox,
|
|
557
|
-
borderRadius: radius + 'rpx',
|
|
558
|
-
boxShadow: shadowBox,
|
|
559
|
-
marginBottom: padding + 'rpx',
|
|
560
|
-
}"
|
|
561
|
-
v-for="(item, index) in info.sub_orders"
|
|
562
|
-
:key="index"
|
|
563
|
-
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-delivery"
|
|
564
|
-
>
|
|
565
|
-
<view class="jfb-base-order-detail__body-delivery-title">
|
|
566
|
-
<view>子订单号:{{ item.sub_order_id }}</view>
|
|
567
|
-
<view :style="{ color: mainColor }">{{item.status.status_name}}</view>
|
|
568
|
-
</view>
|
|
569
|
-
<view
|
|
570
|
-
style="border-bottom: 1px solid #eeeeee"
|
|
571
|
-
v-for="(Sitem, Sindex) in item.products"
|
|
572
|
-
:key="Sindex"
|
|
573
|
-
>
|
|
574
|
-
<view class="jfb-base-order-detail__body-delivery-content">
|
|
575
|
-
<xd-jfb-image
|
|
576
|
-
width="200"
|
|
577
|
-
height="200"
|
|
578
|
-
bgc="#f8f8f8"
|
|
579
|
-
radius="10"
|
|
580
|
-
shadow="10"
|
|
581
|
-
mode="scaleToFill"
|
|
582
|
-
:src="Sitem.product_thumb"
|
|
583
|
-
></xd-jfb-image>
|
|
584
|
-
<view class="jfb-base-order-detail__body-delivery-content-info">
|
|
585
|
-
<view class="jfb-base-order-detail__body-delivery-content-info-name">{{ Sitem.product_name }}</view>
|
|
586
|
-
<view v-if="Sitem.brand_name" class="brand-name" :style="{color:brandTextColor}">{{ Sitem.brand_name }}</view>
|
|
587
|
-
<view
|
|
588
|
-
v-if="Sitem.product_sku_name"
|
|
589
|
-
class="jfb-base-order-detail__body-delivery-content-info-sku"
|
|
590
|
-
>规格:{{ Sitem.product_sku_name }}</view>
|
|
591
|
-
<view class="jfb-base-order-detail__body-delivery-content-info-price">
|
|
592
|
-
<view :style="{ fontSize: '32rpx', color: mainColor }">
|
|
593
|
-
<xd-unit
|
|
594
|
-
:price="Sitem.sale_price"
|
|
595
|
-
:color="mainColor"
|
|
596
|
-
:fontSize="32"
|
|
597
|
-
v-if="biz_code !== 'gift' || info.is_show_gift_price"
|
|
598
|
-
></xd-unit>
|
|
599
|
-
</view>
|
|
600
|
-
<view style="
|
|
601
|
-
font-size: 28rpx;
|
|
602
|
-
color: #999999;
|
|
603
|
-
display: flex;
|
|
604
|
-
align-items: center;
|
|
605
|
-
">x {{ Sitem.product_num }}</view>
|
|
606
|
-
</view>
|
|
607
|
-
</view>
|
|
608
|
-
</view>
|
|
609
|
-
<view
|
|
610
|
-
class="jfb-base-order-detail__body-delivery-content-info-form"
|
|
611
|
-
v-for="(Fitem, Findex) in Sitem.product_form_data"
|
|
612
|
-
:key="Findex"
|
|
613
|
-
:style="{backgroundColor:noticeBgc,color: warningColor,borderRadius: radius + 'rpx',}"
|
|
614
|
-
>
|
|
615
|
-
<view> {{ Fitem.label }}: </view>
|
|
616
|
-
<view> {{ Fitem.value }} </view>
|
|
617
|
-
</view>
|
|
618
|
-
</view>
|
|
619
|
-
<view
|
|
620
|
-
class="jfb-base-order-detail__body-delivery-bottom"
|
|
621
|
-
v-if="item.info && item.info.length > 0"
|
|
622
|
-
>
|
|
623
|
-
<view class="jfb-base-order-detail__body-delivery-bottom-title">{{item.service_name}}</view>
|
|
624
|
-
<view
|
|
625
|
-
v-for="(Ditem, Dindex) in item.info"
|
|
626
|
-
:key="Dindex"
|
|
627
|
-
class="jfb-base-order-detail__body-delivery-bottom-item"
|
|
628
|
-
:style="{
|
|
629
|
-
marginBottom: lineHeight + 'rpx'
|
|
630
|
-
}"
|
|
631
|
-
>
|
|
632
|
-
<view style="width: 130rpx;display: flex;">
|
|
633
|
-
<view v-html="Ditem.label"></view>
|
|
634
|
-
<text v-if="Ditem.label">:</text>
|
|
635
|
-
</view>
|
|
636
|
-
<view v-html="Ditem.value"></view>
|
|
637
|
-
</view>
|
|
638
|
-
</view>
|
|
639
|
-
</view>
|
|
535
|
+
<view class="jfb-base-order-detail__body-shop-name">{{ info.shop.shop_name }}</view>
|
|
536
|
+
<view class="jfb-base-order-detail__body-shop-address">地址: {{ info.shop.shop_address }}</view>
|
|
640
537
|
</view>
|
|
641
|
-
<!--food sub orders info-->
|
|
642
538
|
<view
|
|
643
539
|
:style="{
|
|
644
540
|
background: backgroundColor,
|
|
@@ -1066,8 +962,6 @@ export default {
|
|
|
1066
962
|
showSupplement: false,
|
|
1067
963
|
supplementList: [],
|
|
1068
964
|
supplementTitle: "",
|
|
1069
|
-
|
|
1070
|
-
code_location:'none',
|
|
1071
965
|
};
|
|
1072
966
|
},
|
|
1073
967
|
watch: {
|
|
@@ -1139,15 +1033,6 @@ export default {
|
|
|
1139
1033
|
this.getOrderDetail();
|
|
1140
1034
|
},
|
|
1141
1035
|
|
|
1142
|
-
handleLocation({shop_address,shop_name,shop_latitude,shop_longitude,...shop}){
|
|
1143
|
-
this.handleOpenLocation({
|
|
1144
|
-
address: shop_address,
|
|
1145
|
-
name: shop_name,
|
|
1146
|
-
latitude: shop_latitude,
|
|
1147
|
-
longitude: shop_longitude
|
|
1148
|
-
},()=>{})
|
|
1149
|
-
},
|
|
1150
|
-
|
|
1151
1036
|
getAmount(price) {
|
|
1152
1037
|
return this.$xdUniHelper.divisionFloatNumber(price,100)
|
|
1153
1038
|
},
|
|
@@ -1190,9 +1075,6 @@ export default {
|
|
|
1190
1075
|
return;
|
|
1191
1076
|
}
|
|
1192
1077
|
|
|
1193
|
-
//餐饮电子码
|
|
1194
|
-
if(res['code_location']) this.code_location = res['code_location']
|
|
1195
|
-
|
|
1196
1078
|
this.biz_code = res.biz_code;
|
|
1197
1079
|
this.is_not_show_price = res.is_not_show_price;
|
|
1198
1080
|
|
|
@@ -1676,32 +1558,6 @@ export default {
|
|
|
1676
1558
|
line-height: 32rpx;
|
|
1677
1559
|
}
|
|
1678
1560
|
|
|
1679
|
-
.order-shop {
|
|
1680
|
-
display: flex;
|
|
1681
|
-
justify-content: flex-start;
|
|
1682
|
-
align-items: center;
|
|
1683
|
-
|
|
1684
|
-
& .top {
|
|
1685
|
-
margin-top: 0!important;
|
|
1686
|
-
margin-bottom: 10rpx!important;
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
& > view {
|
|
1690
|
-
&:nth-child(1) {
|
|
1691
|
-
flex: 1;
|
|
1692
|
-
}
|
|
1693
|
-
&:nth-child(2) {
|
|
1694
|
-
flex-shrink: 0;
|
|
1695
|
-
width: 80rpx;
|
|
1696
|
-
height: 80rpx;
|
|
1697
|
-
display: flex;
|
|
1698
|
-
justify-content: flex-end;
|
|
1699
|
-
align-items: center;
|
|
1700
|
-
}
|
|
1701
|
-
}
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
1561
|
color: #333;
|
|
1706
1562
|
.logo-icon {
|
|
1707
1563
|
width: unit(80, rpx) !important;
|
|
@@ -1975,7 +1831,7 @@ export default {
|
|
|
1975
1831
|
}
|
|
1976
1832
|
}
|
|
1977
1833
|
}
|
|
1978
|
-
|
|
1834
|
+
|
|
1979
1835
|
}
|
|
1980
1836
|
|
|
1981
1837
|
|
|
@@ -2029,8 +1885,6 @@ export default {
|
|
|
2029
1885
|
}
|
|
2030
1886
|
|
|
2031
1887
|
&-shop {
|
|
2032
|
-
padding-top: 20rpx;
|
|
2033
|
-
padding-bottom: 20rpx;
|
|
2034
1888
|
&-title {
|
|
2035
1889
|
display: flex;
|
|
2036
1890
|
align-items: center;
|
|
@@ -2052,7 +1906,7 @@ export default {
|
|
|
2052
1906
|
|
|
2053
1907
|
&-name {
|
|
2054
1908
|
color: #333333;
|
|
2055
|
-
font-size: unit(
|
|
1909
|
+
font-size: unit(36, rpx);
|
|
2056
1910
|
margin-top: unit(24, rpx);
|
|
2057
1911
|
margin-bottom: unit(24, rpx);
|
|
2058
1912
|
}
|
|
@@ -2103,7 +1957,7 @@ export default {
|
|
|
2103
1957
|
color: #737373;
|
|
2104
1958
|
}
|
|
2105
1959
|
}
|
|
2106
|
-
|
|
1960
|
+
|
|
2107
1961
|
&-order {
|
|
2108
1962
|
display: flex;
|
|
2109
1963
|
align-items: center;
|