jufubao-base 1.0.287 → 1.0.289-beta1
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/get.package.path.js +2 -2
- package/package.json +1 -1
- package/src/components/CusCouponChose/CusCouponChose.vue +1027 -0
- package/src/components/CusCouponItem/CusCouponItem.vue +298 -0
- package/src/components/CusEnter/CusEnter.vue +360 -0
- package/src/components/CusPoster/CusPoster.vue +212 -0
- package/src/components/CusPoster/CusSwiperDot.vue +234 -0
- package/src/components/CusProduct/CusProduct.vue +372 -0
- package/src/components/CusShops/CusShops.vue +518 -0
- package/src/components/CusSwiperDot/CusSwiperDot.vue +234 -0
- package/src/components/CusTab/CusTab.vue +411 -0
- package/src/components/CusVideo/CusVideo.vue +170 -0
- 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 +350 -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/JfbBaseFooter/Attr.js +10 -155
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +96 -43
- package/src/components/JfbBaseFooter/cusAttr/advanced.js +12 -0
- package/src/components/JfbBaseFooter/cusAttr/content.js +446 -0
- package/src/components/JfbBaseFooter/cusAttr/style.js +7 -0
- package/src/components/JfbBaseFooter/cusAttr/tools.js +17 -0
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +2 -3
- package/src/components/JfbBaseOrderList/Mock.js +1 -1
- package/src/components/JfbBaseTfkSearch/Api.js +15 -0
- package/src/components/JfbBaseTfkSearch/CustomList.vue +10 -0
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +247 -7
- package/src/components/JfbBaseTfkSearch/XdQueryFilter.vue +354 -0
- package/src/components/JfbBaseTfkSearch/XdQuerySort.vue +192 -0
- package/src/components/JfbBaseUserInfo/Attr.js +12 -0
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +8 -2
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +3 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +3 -0
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +17 -7
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +6 -2
- package/src/mixins/componentsMixins.js +363 -55
- package/src/mixins/posterMixins.js +27 -199
- package/src/mixins/productCompMixins.js +252 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="video-box">
|
|
3
|
+
<view class="thumb" :class="{noImageUrl: !imageUrl}" v-if="!playStatus">
|
|
4
|
+
<image :src="imageUrl" v-if="imageUrl" />
|
|
5
|
+
<view v-if="videoUrl" @click="handlePlay()">
|
|
6
|
+
<xd-font-icon
|
|
7
|
+
:icon="iconFont"
|
|
8
|
+
size="100"
|
|
9
|
+
color="#fff"
|
|
10
|
+
></xd-font-icon>
|
|
11
|
+
</view>
|
|
12
|
+
</view>
|
|
13
|
+
<view
|
|
14
|
+
class="video"
|
|
15
|
+
:style="{borderRadius: radius + 'rpx'}"
|
|
16
|
+
v-else
|
|
17
|
+
>
|
|
18
|
+
<video
|
|
19
|
+
v-if="videoUrl"
|
|
20
|
+
:src="videoUrl"
|
|
21
|
+
:autoplay="autoplay === 'Y'"
|
|
22
|
+
@ended="handleEnd()"
|
|
23
|
+
@error="handleError"
|
|
24
|
+
></video>
|
|
25
|
+
</view>
|
|
26
|
+
</view>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
import getServiceUrl from '@/common/getServiceUrl'
|
|
31
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
name:'CusVideo',
|
|
35
|
+
components:{
|
|
36
|
+
XdFontIcon
|
|
37
|
+
},
|
|
38
|
+
props:{
|
|
39
|
+
margin:{
|
|
40
|
+
type: Object,
|
|
41
|
+
default(){
|
|
42
|
+
return {}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
poster:{
|
|
46
|
+
type:Object,
|
|
47
|
+
required: true
|
|
48
|
+
},
|
|
49
|
+
radius:{
|
|
50
|
+
type: String|Number,
|
|
51
|
+
default: 0
|
|
52
|
+
},
|
|
53
|
+
video:{
|
|
54
|
+
type:Object,
|
|
55
|
+
required: true
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
data(){
|
|
59
|
+
return {
|
|
60
|
+
isPreview: false,
|
|
61
|
+
|
|
62
|
+
//play
|
|
63
|
+
imageUrl: '',
|
|
64
|
+
videoUrl: '',
|
|
65
|
+
playStatus: false,
|
|
66
|
+
autoplay: 'N',
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
computed: {
|
|
70
|
+
iconFont(){
|
|
71
|
+
if(this.autoplay === 'N') return 'iconplayright'
|
|
72
|
+
if(this.autoplay === 'E') return 'iconshibai';
|
|
73
|
+
if(this.autoplay === 'R') return 'iconplayreplay';
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
watch:{
|
|
77
|
+
poster(){
|
|
78
|
+
this.init();
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
created() {
|
|
82
|
+
this.isPreview = this.$configProject.isPreview;
|
|
83
|
+
this.init();
|
|
84
|
+
},
|
|
85
|
+
methods:{
|
|
86
|
+
init(){
|
|
87
|
+
if(this.poster.size) {
|
|
88
|
+
this.width = Number(this.poster.size.width);
|
|
89
|
+
this.height = Number(this.poster.size.height);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
let {image_url, thumb} = this.video;
|
|
93
|
+
if(image_url) this.videoUrl = getServiceUrl(image_url);
|
|
94
|
+
if(thumb) this.imageUrl = getServiceUrl(thumb);
|
|
95
|
+
},
|
|
96
|
+
handlePlay(){
|
|
97
|
+
if(this.autoplay === 'E') return;
|
|
98
|
+
this.playStatus = !this.playStatus;
|
|
99
|
+
this.autoplay = "Y";
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
handleEnd(){
|
|
103
|
+
setTimeout(()=>{
|
|
104
|
+
this.playStatus = !this.playStatus;
|
|
105
|
+
this.autoplay = "R";
|
|
106
|
+
}, 1000)
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
handleError(){
|
|
110
|
+
this.$xdConfirm({
|
|
111
|
+
title: '温馨提示',
|
|
112
|
+
content:'当前视频资源无法播放',
|
|
113
|
+
cancel: false,
|
|
114
|
+
confirmText:'我知道了',
|
|
115
|
+
zIndex:10000,
|
|
116
|
+
success:()=>{
|
|
117
|
+
this.playStatus = !this.playStatus;
|
|
118
|
+
this.autoplay = "R";
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
</script>
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
<style scoped lang="less">
|
|
130
|
+
.video-box {
|
|
131
|
+
width: 100%;
|
|
132
|
+
height: 100%;
|
|
133
|
+
box-sizing: border-box;
|
|
134
|
+
view.noImageUrl {
|
|
135
|
+
background: rgba(0,0,0,.6);
|
|
136
|
+
}
|
|
137
|
+
view.thumb {
|
|
138
|
+
height: 100%;
|
|
139
|
+
width: 100%;
|
|
140
|
+
position: relative;
|
|
141
|
+
overflow: hidden;
|
|
142
|
+
|
|
143
|
+
& > view {
|
|
144
|
+
width: 120rpx;
|
|
145
|
+
height: 120rpx;
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: 50%;
|
|
148
|
+
left: 50%;
|
|
149
|
+
margin-top: -60rpx;
|
|
150
|
+
margin-left:-60rpx;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
& > image {
|
|
154
|
+
height: 100%;
|
|
155
|
+
width: 100%;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
view.video {
|
|
160
|
+
overflow: hidden;
|
|
161
|
+
height: 100%;
|
|
162
|
+
width: 100%;
|
|
163
|
+
|
|
164
|
+
& video {
|
|
165
|
+
height: 100%;
|
|
166
|
+
width: 100%;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
</style>
|
|
@@ -652,6 +652,12 @@ export default {
|
|
|
652
652
|
|
|
653
653
|
//登录成功调整地址优先级
|
|
654
654
|
this.inCallback = inCallback || this.allEntryPath || this.settings.index;
|
|
655
|
+
|
|
656
|
+
//检查是否为小程序环境
|
|
657
|
+
//#ifdef H5
|
|
658
|
+
if(this.jfbAuthorize.checkIsH5ToMpEnv(this, this.inCallback ,'card')) return;
|
|
659
|
+
// #endif
|
|
660
|
+
|
|
655
661
|
this.getContent();
|
|
656
662
|
|
|
657
663
|
this.getCardList(options);
|
|
@@ -825,6 +825,12 @@ export default {
|
|
|
825
825
|
|
|
826
826
|
//登录成功调整地址优先级
|
|
827
827
|
this.inCallback = inCallback || this.allEntryPath || this.settings.index;
|
|
828
|
+
|
|
829
|
+
//检查是否为小程序环境
|
|
830
|
+
//#ifdef H5
|
|
831
|
+
if(this.jfbAuthorize.checkIsH5ToMpEnv(this, this.inCallback ,'card')) return;
|
|
832
|
+
// #endif
|
|
833
|
+
|
|
828
834
|
this.getContent();
|
|
829
835
|
if(this.tabIndex===1) {
|
|
830
836
|
this.getCardList(options);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Change
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
//设置方法名字当别忘记加上【模块名字】:Change
|
|
10
|
+
mapFnName: 'getChangeCompanyItem',
|
|
11
|
+
title: '获取电影广场列表',
|
|
12
|
+
path: '/saas/v1/company/item',
|
|
13
|
+
isRule: false,
|
|
14
|
+
params: {},
|
|
15
|
+
isConsole: true,
|
|
16
|
+
disabled: true,
|
|
17
|
+
},
|
|
18
|
+
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import Style from './cusAttr/style'
|
|
3
|
+
import Advanced from './cusAttr/advanced'
|
|
4
|
+
import Content from './cusAttr/content'
|
|
5
|
+
/**
|
|
6
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
7
|
+
*/
|
|
8
|
+
export default {
|
|
9
|
+
style: [],
|
|
10
|
+
content: (data, gValue, gColor, oldData) => {
|
|
11
|
+
return [
|
|
12
|
+
...Style(data, gValue, gColor, oldData),
|
|
13
|
+
...Advanced(data, gValue, gColor, oldData),
|
|
14
|
+
...Content(data, gValue, gColor, oldData),
|
|
15
|
+
].filter(i => i)
|
|
16
|
+
},
|
|
17
|
+
advanced: [],
|
|
18
|
+
};
|
|
@@ -0,0 +1,201 @@
|
|
|
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"
|
|
14
|
+
>删除</view
|
|
15
|
+
>
|
|
16
|
+
</view>
|
|
17
|
+
<!-- #endif -->
|
|
18
|
+
<view class="jfb-base-change-company__body">
|
|
19
|
+
<view
|
|
20
|
+
@click="handleToChangeCompany"
|
|
21
|
+
:style="[contWrapStyle]"
|
|
22
|
+
class="jfb-base-change-company__body-wrap"
|
|
23
|
+
>
|
|
24
|
+
<view class="jfb-base-change-company__body-wrap-left">
|
|
25
|
+
<XdFontIcon size="28" icon="iconxingzhuangjiehe"></XdFontIcon>
|
|
26
|
+
<view
|
|
27
|
+
:style="{
|
|
28
|
+
margin: companyPosition === 'left' ? '0 0 0 16rpx' : '0 auto',
|
|
29
|
+
}"
|
|
30
|
+
class="jfb-base-change-company__body-wrap-left-name"
|
|
31
|
+
>{{ company_name||'请选择企业' }}</view
|
|
32
|
+
>
|
|
33
|
+
</view>
|
|
34
|
+
<XdFontIcon size="28" icon="iconxiangyou_xian"></XdFontIcon>
|
|
35
|
+
</view>
|
|
36
|
+
</view>
|
|
37
|
+
</view>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
42
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
43
|
+
import JfbBaseChangeCompanyMixin from "./JfbBaseChangeCompanyMixin";
|
|
44
|
+
import { getContainerPropsValue, gCPVal } from "@/utils/xd.base";
|
|
45
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
46
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
47
|
+
import store from "@/store";
|
|
48
|
+
|
|
49
|
+
export default {
|
|
50
|
+
name: "JfbBaseChangeCompany",
|
|
51
|
+
components: {
|
|
52
|
+
XdFontIcon,
|
|
53
|
+
},
|
|
54
|
+
mixins: [componentsMixins, extsMixins, JfbBaseChangeCompanyMixin],
|
|
55
|
+
data() {
|
|
56
|
+
return {
|
|
57
|
+
companyPosition: "",
|
|
58
|
+
contentPadding: {},
|
|
59
|
+
backgroundColor: "",
|
|
60
|
+
fontStyle: {},
|
|
61
|
+
changeCompanyPath: "",
|
|
62
|
+
company_name: ''
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
watch: {
|
|
66
|
+
container(value, oldValue) {
|
|
67
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
68
|
+
if (this.$configProject["isPreview"]) this.init(value);
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
computed: {
|
|
72
|
+
contWrapStyle() {
|
|
73
|
+
return {
|
|
74
|
+
padding: this.getMarginAndPadding(this.contentPadding),
|
|
75
|
+
backgroundColor: this.backgroundColor,
|
|
76
|
+
color: this.fontStyle.color,
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
created() {
|
|
81
|
+
this.init(this.container);
|
|
82
|
+
|
|
83
|
+
//todo
|
|
84
|
+
},
|
|
85
|
+
methods: {
|
|
86
|
+
onJfbLoad(options) {
|
|
87
|
+
jfbRootExec("getChangeCompanyItem", {
|
|
88
|
+
vm: this,
|
|
89
|
+
data: {},
|
|
90
|
+
}).then((res) => {
|
|
91
|
+
this.company_name = res.company_name
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* @description 监听事件变化
|
|
96
|
+
* @param container {object} 业务组件对象自己
|
|
97
|
+
*/
|
|
98
|
+
init(container) {
|
|
99
|
+
//content
|
|
100
|
+
this.companyPosition = gCPVal(container, "companyPosition", "left", {});
|
|
101
|
+
//style
|
|
102
|
+
this.contentPadding = gCPVal(
|
|
103
|
+
container,
|
|
104
|
+
"contentPadding",
|
|
105
|
+
{ top: 24, bottom: 24, left: 48, right: 48 },
|
|
106
|
+
{
|
|
107
|
+
sKey: "contentPaddingStatus",
|
|
108
|
+
fields: ["contentPadding"],
|
|
109
|
+
isPMR: true,
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
this.backgroundColor = gCPVal(container, "backgroundColor", "", {
|
|
113
|
+
sKey: "backgroundStyleStatus",
|
|
114
|
+
fields: ["backgroundColor"],
|
|
115
|
+
});
|
|
116
|
+
this.fontStyle = gCPVal(
|
|
117
|
+
container,
|
|
118
|
+
"fontStyle",
|
|
119
|
+
[
|
|
120
|
+
{
|
|
121
|
+
color: "#333",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
{ sKey: "fontStyleStatus", fields: ["fontStyle"], isMerge: true }
|
|
125
|
+
);
|
|
126
|
+
console.log(this.fontStyle, "this.fontStyle");
|
|
127
|
+
|
|
128
|
+
//advanced
|
|
129
|
+
this.changeCompanyPath = getContainerPropsValue(
|
|
130
|
+
container,
|
|
131
|
+
"content.changeCompanyPath",
|
|
132
|
+
{ value: "" }
|
|
133
|
+
).value;
|
|
134
|
+
},
|
|
135
|
+
handleToChangeCompany() {
|
|
136
|
+
let redirect_url = "";
|
|
137
|
+
//是否需要设置返回地址
|
|
138
|
+
if (store.state.configProject.platform === "mp.weixin")
|
|
139
|
+
redirect_url = this["$xdUniHelper"].parseURL().source;
|
|
140
|
+
if (store.state.configProject.platform === "h5")
|
|
141
|
+
redirect_url = this.$route.fullPath;
|
|
142
|
+
this.$xdUniHelper.navigateTo({
|
|
143
|
+
url: `${this.changeCompanyPath}?redirect_url=${Base64.encodeURI(redirect_url)}`,
|
|
144
|
+
});
|
|
145
|
+
},
|
|
146
|
+
onJfbScroll(options) {
|
|
147
|
+
console.log("event.onJfbScroll", options);
|
|
148
|
+
},
|
|
149
|
+
onJfbReachBottom(options) {
|
|
150
|
+
console.log("event.onJfbReachBottom", options);
|
|
151
|
+
},
|
|
152
|
+
onJfbShow(options) {
|
|
153
|
+
console.log("event.onJfbShow", options);
|
|
154
|
+
},
|
|
155
|
+
onJfbHide(options) {
|
|
156
|
+
console.log("event.onJfbHide", options);
|
|
157
|
+
},
|
|
158
|
+
onJfbBack(options) {
|
|
159
|
+
console.log("event.onJfbBack", options);
|
|
160
|
+
},
|
|
161
|
+
onJfbUpdate(...data) {
|
|
162
|
+
console.log("event.onJfbUpdate", data);
|
|
163
|
+
},
|
|
164
|
+
onJfbCustomEvent(options) {
|
|
165
|
+
console.log("event.onJfbReachBottom", options);
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
</script>
|
|
170
|
+
|
|
171
|
+
<style scoped lang="less">
|
|
172
|
+
@import "./JfbBaseChangeCompanyLess.less";
|
|
173
|
+
|
|
174
|
+
.jfb-base-change-company {
|
|
175
|
+
&__body {
|
|
176
|
+
&-wrap {
|
|
177
|
+
display: flex;
|
|
178
|
+
justify-content: space-between;
|
|
179
|
+
align-items: center;
|
|
180
|
+
&-left {
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
flex: 1;
|
|
184
|
+
&-name {
|
|
185
|
+
margin-left: 16rpx;
|
|
186
|
+
font-size: 28rpx;
|
|
187
|
+
text-overflow: -o-ellipsis-lastline;
|
|
188
|
+
overflow: hidden; //溢出内容隐藏
|
|
189
|
+
text-overflow: ellipsis; //文本溢出部分用省略号表示
|
|
190
|
+
display: -webkit-box; //特别显示模式
|
|
191
|
+
-webkit-line-clamp: 1; //行数
|
|
192
|
+
line-clamp: 2;
|
|
193
|
+
-webkit-box-orient: vertical; //盒子中内容竖直排列
|
|
194
|
+
width: 80%;
|
|
195
|
+
word-break: break-all;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
</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,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import {
|
|
3
|
+
dataVal,
|
|
4
|
+
} from "@/utils/AttrTools";
|
|
5
|
+
|
|
6
|
+
export default (data, gValue, gColor, oldData) => {
|
|
7
|
+
return [
|
|
8
|
+
{
|
|
9
|
+
label: '切换企业',
|
|
10
|
+
ele: 'xd-select-pages-path',
|
|
11
|
+
labelInline: true,
|
|
12
|
+
valueKey: 'changeCompanyPath',
|
|
13
|
+
placeholder: '请选择切换企业跳转地址',
|
|
14
|
+
value: dataVal({ data, key: 'changeCompanyPath', dValue: null, gValue }),
|
|
15
|
+
groupKey: 'advanced',
|
|
16
|
+
className: 'input100',
|
|
17
|
+
setting: {
|
|
18
|
+
mode: 'new',
|
|
19
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
20
|
+
},
|
|
21
|
+
inline: false,
|
|
22
|
+
},
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import {
|
|
3
|
+
dataVal,
|
|
4
|
+
} from "@/utils/AttrTools";
|
|
5
|
+
|
|
6
|
+
export default (data, gValue, gColor, oldData) => {
|
|
7
|
+
return [
|
|
8
|
+
{
|
|
9
|
+
ele: 'title',
|
|
10
|
+
label: '基础',
|
|
11
|
+
size: 'small',
|
|
12
|
+
groupKey: 'content',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: '企业展示位置',
|
|
16
|
+
ele: 'xd-radio',
|
|
17
|
+
groupKey: 'content',
|
|
18
|
+
valueKey: 'companyPosition',
|
|
19
|
+
value: dataVal({ data, key: 'companyPosition', dValue: 'left' }),
|
|
20
|
+
labelInline: true,
|
|
21
|
+
list: [
|
|
22
|
+
{ label: '居左', value: 'left' },
|
|
23
|
+
{ label: '居中', value: 'center' },
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
]
|
|
27
|
+
}
|