jufubao-base 1.0.279-beta1 → 1.0.279-beta101
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/JfbBaseChangeCompany/Api.js +58 -0
- package/src/components/JfbBaseChangeCompany/Attr.js +48 -0
- package/src/components/JfbBaseChangeCompany/JfbBaseChangeCompany.vue +111 -0
- package/src/components/JfbBaseChangeCompany/JfbBaseChangeCompanyLess.less +79 -0
- package/src/components/JfbBaseChangeCompany/JfbBaseChangeCompanyMixin.js +30 -0
- package/src/components/JfbBaseChangeCompany/Mock.js +13 -0
- package/src/components/JfbBaseChoseCompany/Api.js +58 -0
- package/src/components/JfbBaseChoseCompany/Attr.js +48 -0
- package/src/components/JfbBaseChoseCompany/JfbBaseChoseCompany.vue +111 -0
- package/src/components/JfbBaseChoseCompany/JfbBaseChoseCompanyLess.less +79 -0
- package/src/components/JfbBaseChoseCompany/JfbBaseChoseCompanyMixin.js +30 -0
- package/src/components/JfbBaseChoseCompany/Mock.js +13 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +7 -153
package/package.json
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Change
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
//设置方法名字当别忘记加上【模块名字】:Change
|
|
10
|
+
mapFnName: 'getChangeByIdFilmSquate',
|
|
11
|
+
title: '获取电影广场列表',
|
|
12
|
+
path: '/api/account/film/list-film-square',
|
|
13
|
+
isRule: false,
|
|
14
|
+
params: {
|
|
15
|
+
last_key: ['当前页', 'Number', '必选'],
|
|
16
|
+
page_size: ['每页数量', 'Number', '必选'],
|
|
17
|
+
},
|
|
18
|
+
isConsole: true,
|
|
19
|
+
disabled: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
//设置方法名字当别忘记加上【模块名字】:Change
|
|
23
|
+
mapFnName: 'updateChangeFilmPaiqiDate',
|
|
24
|
+
title: '更新排期',
|
|
25
|
+
path: '/api/account/film/paiqi-date',
|
|
26
|
+
isRule: false,
|
|
27
|
+
params: {
|
|
28
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
29
|
+
cinema_id: ['影院id', 'Number', '必选'],
|
|
30
|
+
},
|
|
31
|
+
isConsole: true,
|
|
32
|
+
disabled: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
//设置方法名字当别忘记加上【模块名字】:Change
|
|
36
|
+
mapFnName: 'removeChangeFilmAddress',
|
|
37
|
+
title: '删除我的配送地址',
|
|
38
|
+
path: '/api/account/film/paiqi-date',
|
|
39
|
+
isRule: false,
|
|
40
|
+
params: {
|
|
41
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
42
|
+
},
|
|
43
|
+
isConsole: true,
|
|
44
|
+
disabled: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
//设置方法名字当别忘记加上【模块名字】:Change
|
|
48
|
+
mapFnName: 'addChangeFilmcart',
|
|
49
|
+
title: '添加购物车',
|
|
50
|
+
path: '/api/account/film/paiqi-date',
|
|
51
|
+
isRule: false,
|
|
52
|
+
params: {
|
|
53
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
54
|
+
},
|
|
55
|
+
isConsole: true,
|
|
56
|
+
disabled: true,
|
|
57
|
+
},
|
|
58
|
+
];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '背景颜色:',
|
|
12
|
+
ele: 'xd-color',
|
|
13
|
+
valueKey: 'bgColor',
|
|
14
|
+
value: data.bgColor || '',
|
|
15
|
+
placeholder: '请输入占位框背景颜色',
|
|
16
|
+
groupKey:'content',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: '选中路径:',
|
|
20
|
+
groupKey:'advanced',
|
|
21
|
+
className: 'input100',
|
|
22
|
+
ele: 'xd-select-pages-path',
|
|
23
|
+
valueKey: 'select-pages-path',
|
|
24
|
+
value: data['select-pages-path'] || null,
|
|
25
|
+
setting: {
|
|
26
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
data.bgColor && {
|
|
30
|
+
label: '高度:',
|
|
31
|
+
ele: 'el-input',
|
|
32
|
+
groupKey:'style',
|
|
33
|
+
type: 'number',
|
|
34
|
+
valueKey: 'height',
|
|
35
|
+
value: data.height || 100,
|
|
36
|
+
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
37
|
+
className: 'input60',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: '', //label
|
|
41
|
+
groupKey:'advanced',
|
|
42
|
+
ele: 'slot', //package 名称
|
|
43
|
+
slot: 'is_reference',
|
|
44
|
+
},
|
|
45
|
+
].filter(i=>i)
|
|
46
|
+
},
|
|
47
|
+
advanced: [],
|
|
48
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-change-company"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-change-company__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-change-company__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view class="jfb-base-change-company__body">
|
|
17
|
+
<view>测试插件( {{containerId}} )</view>
|
|
18
|
+
</view>
|
|
19
|
+
</view>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
24
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
|
+
import JfbBaseChangeCompanyMixin from "./JfbBaseChangeCompanyMixin";
|
|
26
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
+
export default {
|
|
30
|
+
name: "JfbBaseChangeCompany",
|
|
31
|
+
components: {
|
|
32
|
+
XdFontIcon
|
|
33
|
+
},
|
|
34
|
+
mixins: [
|
|
35
|
+
componentsMixins, extsMixins, JfbBaseChangeCompanyMixin
|
|
36
|
+
],
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
//todo
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
watch: {
|
|
44
|
+
container(value, oldValue) {
|
|
45
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
46
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
created() {
|
|
50
|
+
this.init(this.container);
|
|
51
|
+
|
|
52
|
+
//todo
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
onJfbLoad(options) {
|
|
56
|
+
|
|
57
|
+
// jfbRootExec('baiduUserLogin', {
|
|
58
|
+
|
|
59
|
+
// vm: this,// data: {
|
|
60
|
+
|
|
61
|
+
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
62
|
+
|
|
63
|
+
// }
|
|
64
|
+
|
|
65
|
+
// }).then().catch()
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* @description 监听事件变化
|
|
69
|
+
* @param container {object} 业务组件对象自己
|
|
70
|
+
*/
|
|
71
|
+
init(container) {
|
|
72
|
+
|
|
73
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
74
|
+
|
|
75
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
76
|
+
},
|
|
77
|
+
onJfbScroll(options) {
|
|
78
|
+
console.log('event.onJfbScroll', options)
|
|
79
|
+
},
|
|
80
|
+
onJfbReachBottom(options) {
|
|
81
|
+
console.log('event.onJfbReachBottom', options)
|
|
82
|
+
},
|
|
83
|
+
onJfbShow(options) {
|
|
84
|
+
console.log('event.onJfbShow', options)
|
|
85
|
+
},
|
|
86
|
+
onJfbHide(options) {
|
|
87
|
+
console.log('event.onJfbHide', options)
|
|
88
|
+
},
|
|
89
|
+
onJfbBack(options) {
|
|
90
|
+
console.log('event.onJfbBack', options)
|
|
91
|
+
},
|
|
92
|
+
onJfbUpdate(...data) {
|
|
93
|
+
console.log('event.onJfbUpdate', data)
|
|
94
|
+
},
|
|
95
|
+
onJfbCustomEvent(options) {
|
|
96
|
+
console.log('event.onJfbReachBottom', options)
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<style scoped lang="less">
|
|
104
|
+
@import "./JfbBaseChangeCompanyLess.less";
|
|
105
|
+
|
|
106
|
+
.jfb-base-change-company {
|
|
107
|
+
&__body{
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @desc 获取绝对路径完整地址
|
|
3
|
+
* @param @path
|
|
4
|
+
**/
|
|
5
|
+
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
+
@basePath: 'business/';
|
|
7
|
+
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
+
|
|
9
|
+
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
+
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
+
background-image: url(@url);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//start
|
|
15
|
+
.jfb-base-change-company {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
|
|
18
|
+
&__body{
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
z-index: 2
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.editx,&.editx:hover {
|
|
25
|
+
position: relative;
|
|
26
|
+
min-height: unit(100, rpx);
|
|
27
|
+
z-index: 3;
|
|
28
|
+
&::after {
|
|
29
|
+
border: 2rpx dashed blue;
|
|
30
|
+
content: " ";
|
|
31
|
+
position: absolute;
|
|
32
|
+
top:0;
|
|
33
|
+
left:0;
|
|
34
|
+
bottom:0;
|
|
35
|
+
right:0;
|
|
36
|
+
z-index: 4;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
&__edit {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: unit(0, rpx);
|
|
47
|
+
top: unit(-52, rpx);
|
|
48
|
+
height: unit(50, rpx);
|
|
49
|
+
line-height: unit(50, rpx);
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
background: rgba(0, 0, 0, .6);
|
|
54
|
+
border-radius: unit(10, rpx);
|
|
55
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
+
color: #fff;
|
|
57
|
+
font-size: unit(22, rpx);
|
|
58
|
+
|
|
59
|
+
&-icon{
|
|
60
|
+
padding: 0 unit(20, rpx);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.editx {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//end
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**notPreview**/
|
|
73
|
+
.jfb-base-change-company {
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
78
|
+
}
|
|
79
|
+
/**endNotPreview**/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
//@AttrImport
|
|
5
|
+
import Attr from "./Attr";
|
|
6
|
+
//@EndAttrImport
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
//#ifdef H5
|
|
13
|
+
|
|
14
|
+
//@AttrData
|
|
15
|
+
Attr:{}, //对外开发编辑属性
|
|
16
|
+
//@EndAttrData
|
|
17
|
+
|
|
18
|
+
// #endif
|
|
19
|
+
cssRoot: 'jfb-base-change-company'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Chose
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
//设置方法名字当别忘记加上【模块名字】:Chose
|
|
10
|
+
mapFnName: 'getChoseByIdFilmSquate',
|
|
11
|
+
title: '获取电影广场列表',
|
|
12
|
+
path: '/api/account/film/list-film-square',
|
|
13
|
+
isRule: false,
|
|
14
|
+
params: {
|
|
15
|
+
last_key: ['当前页', 'Number', '必选'],
|
|
16
|
+
page_size: ['每页数量', 'Number', '必选'],
|
|
17
|
+
},
|
|
18
|
+
isConsole: true,
|
|
19
|
+
disabled: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
//设置方法名字当别忘记加上【模块名字】:Chose
|
|
23
|
+
mapFnName: 'updateChoseFilmPaiqiDate',
|
|
24
|
+
title: '更新排期',
|
|
25
|
+
path: '/api/account/film/paiqi-date',
|
|
26
|
+
isRule: false,
|
|
27
|
+
params: {
|
|
28
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
29
|
+
cinema_id: ['影院id', 'Number', '必选'],
|
|
30
|
+
},
|
|
31
|
+
isConsole: true,
|
|
32
|
+
disabled: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
//设置方法名字当别忘记加上【模块名字】:Chose
|
|
36
|
+
mapFnName: 'removeChoseFilmAddress',
|
|
37
|
+
title: '删除我的配送地址',
|
|
38
|
+
path: '/api/account/film/paiqi-date',
|
|
39
|
+
isRule: false,
|
|
40
|
+
params: {
|
|
41
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
42
|
+
},
|
|
43
|
+
isConsole: true,
|
|
44
|
+
disabled: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
//设置方法名字当别忘记加上【模块名字】:Chose
|
|
48
|
+
mapFnName: 'addChoseFilmcart',
|
|
49
|
+
title: '添加购物车',
|
|
50
|
+
path: '/api/account/film/paiqi-date',
|
|
51
|
+
isRule: false,
|
|
52
|
+
params: {
|
|
53
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
54
|
+
},
|
|
55
|
+
isConsole: true,
|
|
56
|
+
disabled: true,
|
|
57
|
+
},
|
|
58
|
+
];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '背景颜色:',
|
|
12
|
+
ele: 'xd-color',
|
|
13
|
+
valueKey: 'bgColor',
|
|
14
|
+
value: data.bgColor || '',
|
|
15
|
+
placeholder: '请输入占位框背景颜色',
|
|
16
|
+
groupKey:'content',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: '选中路径:',
|
|
20
|
+
groupKey:'advanced',
|
|
21
|
+
className: 'input100',
|
|
22
|
+
ele: 'xd-select-pages-path',
|
|
23
|
+
valueKey: 'select-pages-path',
|
|
24
|
+
value: data['select-pages-path'] || null,
|
|
25
|
+
setting: {
|
|
26
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
data.bgColor && {
|
|
30
|
+
label: '高度:',
|
|
31
|
+
ele: 'el-input',
|
|
32
|
+
groupKey:'style',
|
|
33
|
+
type: 'number',
|
|
34
|
+
valueKey: 'height',
|
|
35
|
+
value: data.height || 100,
|
|
36
|
+
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
37
|
+
className: 'input60',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: '', //label
|
|
41
|
+
groupKey:'advanced',
|
|
42
|
+
ele: 'slot', //package 名称
|
|
43
|
+
slot: 'is_reference',
|
|
44
|
+
},
|
|
45
|
+
].filter(i=>i)
|
|
46
|
+
},
|
|
47
|
+
advanced: [],
|
|
48
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-chose-company"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-chose-company__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-chose-company__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view class="jfb-base-chose-company__body">
|
|
17
|
+
<view>测试插件( {{containerId}} )</view>
|
|
18
|
+
</view>
|
|
19
|
+
</view>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
24
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
|
+
import JfbBaseChoseCompanyMixin from "./JfbBaseChoseCompanyMixin";
|
|
26
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
+
export default {
|
|
30
|
+
name: "JfbBaseChoseCompany",
|
|
31
|
+
components: {
|
|
32
|
+
XdFontIcon
|
|
33
|
+
},
|
|
34
|
+
mixins: [
|
|
35
|
+
componentsMixins, extsMixins, JfbBaseChoseCompanyMixin
|
|
36
|
+
],
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
//todo
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
watch: {
|
|
44
|
+
container(value, oldValue) {
|
|
45
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
46
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
created() {
|
|
50
|
+
this.init(this.container);
|
|
51
|
+
|
|
52
|
+
//todo
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
onJfbLoad(options) {
|
|
56
|
+
|
|
57
|
+
// jfbRootExec('baiduUserLogin', {
|
|
58
|
+
|
|
59
|
+
// vm: this,// data: {
|
|
60
|
+
|
|
61
|
+
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
62
|
+
|
|
63
|
+
// }
|
|
64
|
+
|
|
65
|
+
// }).then().catch()
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* @description 监听事件变化
|
|
69
|
+
* @param container {object} 业务组件对象自己
|
|
70
|
+
*/
|
|
71
|
+
init(container) {
|
|
72
|
+
|
|
73
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
74
|
+
|
|
75
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
76
|
+
},
|
|
77
|
+
onJfbScroll(options) {
|
|
78
|
+
console.log('event.onJfbScroll', options)
|
|
79
|
+
},
|
|
80
|
+
onJfbReachBottom(options) {
|
|
81
|
+
console.log('event.onJfbReachBottom', options)
|
|
82
|
+
},
|
|
83
|
+
onJfbShow(options) {
|
|
84
|
+
console.log('event.onJfbShow', options)
|
|
85
|
+
},
|
|
86
|
+
onJfbHide(options) {
|
|
87
|
+
console.log('event.onJfbHide', options)
|
|
88
|
+
},
|
|
89
|
+
onJfbBack(options) {
|
|
90
|
+
console.log('event.onJfbBack', options)
|
|
91
|
+
},
|
|
92
|
+
onJfbUpdate(...data) {
|
|
93
|
+
console.log('event.onJfbUpdate', data)
|
|
94
|
+
},
|
|
95
|
+
onJfbCustomEvent(options) {
|
|
96
|
+
console.log('event.onJfbReachBottom', options)
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<style scoped lang="less">
|
|
104
|
+
@import "./JfbBaseChoseCompanyLess.less";
|
|
105
|
+
|
|
106
|
+
.jfb-base-chose-company {
|
|
107
|
+
&__body{
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @desc 获取绝对路径完整地址
|
|
3
|
+
* @param @path
|
|
4
|
+
**/
|
|
5
|
+
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
+
@basePath: 'business/';
|
|
7
|
+
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
+
|
|
9
|
+
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
+
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
+
background-image: url(@url);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//start
|
|
15
|
+
.jfb-base-chose-company {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
|
|
18
|
+
&__body{
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
z-index: 2
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.editx,&.editx:hover {
|
|
25
|
+
position: relative;
|
|
26
|
+
min-height: unit(100, rpx);
|
|
27
|
+
z-index: 3;
|
|
28
|
+
&::after {
|
|
29
|
+
border: 2rpx dashed blue;
|
|
30
|
+
content: " ";
|
|
31
|
+
position: absolute;
|
|
32
|
+
top:0;
|
|
33
|
+
left:0;
|
|
34
|
+
bottom:0;
|
|
35
|
+
right:0;
|
|
36
|
+
z-index: 4;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
&__edit {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: unit(0, rpx);
|
|
47
|
+
top: unit(-52, rpx);
|
|
48
|
+
height: unit(50, rpx);
|
|
49
|
+
line-height: unit(50, rpx);
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
background: rgba(0, 0, 0, .6);
|
|
54
|
+
border-radius: unit(10, rpx);
|
|
55
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
+
color: #fff;
|
|
57
|
+
font-size: unit(22, rpx);
|
|
58
|
+
|
|
59
|
+
&-icon{
|
|
60
|
+
padding: 0 unit(20, rpx);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.editx {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//end
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**notPreview**/
|
|
73
|
+
.jfb-base-chose-company {
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
78
|
+
}
|
|
79
|
+
/**endNotPreview**/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
//@AttrImport
|
|
5
|
+
import Attr from "./Attr";
|
|
6
|
+
//@EndAttrImport
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
//#ifdef H5
|
|
13
|
+
|
|
14
|
+
//@AttrData
|
|
15
|
+
Attr:{}, //对外开发编辑属性
|
|
16
|
+
//@EndAttrData
|
|
17
|
+
|
|
18
|
+
// #endif
|
|
19
|
+
cssRoot: 'jfb-base-chose-company'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -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;
|