jufubao-base 1.0.63-beta208 → 1.0.63-beta209
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
CHANGED
|
@@ -2,109 +2,83 @@
|
|
|
2
2
|
<view
|
|
3
3
|
class="jfb-base-background"
|
|
4
4
|
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx
|
|
5
|
+
:class="{ editx: isEditx && active }"
|
|
6
6
|
>
|
|
7
7
|
<!--#ifdef H5-->
|
|
8
8
|
<view
|
|
9
9
|
class="jfb-base-background__edit"
|
|
10
|
-
:class="{ editx
|
|
10
|
+
:class="{ editx: isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
13
|
<view class="jfb-base-background__edit-icon" @click="delEdit">删除</view>
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-background__body">
|
|
17
|
-
<view
|
|
17
|
+
<view>1</view>
|
|
18
18
|
</view>
|
|
19
19
|
</view>
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
24
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
|
+
import JfbBaseBackgroundMixin from "./JfbBaseBackgroundMixin";
|
|
26
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
30
|
+
export default {
|
|
31
|
+
name: "JfbBaseBackground",
|
|
32
|
+
components: {
|
|
33
|
+
XdFontIcon,
|
|
34
|
+
},
|
|
35
|
+
mixins: [componentsMixins, extsMixins, JfbBaseBackgroundMixin],
|
|
36
|
+
data() {
|
|
37
|
+
return {};
|
|
38
|
+
},
|
|
39
|
+
watch: {
|
|
40
|
+
container(value) {
|
|
41
|
+
this.init(value);
|
|
33
42
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
},
|
|
44
|
+
created() {
|
|
45
|
+
this.init(this.container);
|
|
46
|
+
},
|
|
47
|
+
methods: {
|
|
48
|
+
onJfbLoad(options) {},
|
|
49
|
+
/**
|
|
50
|
+
* @description 监听事件变化
|
|
51
|
+
* @param container {object} 业务组件对象自己
|
|
52
|
+
*/
|
|
53
|
+
init(container) {
|
|
54
|
+
try {
|
|
55
|
+
jfbRootExec("getListBackgroundContent", {
|
|
56
|
+
vm: this,
|
|
57
|
+
data: {
|
|
58
|
+
page_id: this.pageAttr["page_id"],
|
|
59
|
+
container_id: this.containerId,
|
|
60
|
+
page_size: 1,
|
|
61
|
+
},
|
|
62
|
+
}).then((res) => {
|
|
63
|
+
let bg = getServiceUrl(res.list[0]["image_url"]);
|
|
64
|
+
this.$xdRoot.$emit("setLayoutPageBg", bg);
|
|
65
|
+
});
|
|
66
|
+
} catch (error) {
|
|
67
|
+
console.log(error, "getListBackgroundContentError");
|
|
46
68
|
}
|
|
47
69
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
//todo
|
|
70
|
+
onJfbScroll(options) {
|
|
71
|
+
console.log("event.onJfbScroll", options);
|
|
52
72
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
// jfbRootExec('baiduUserLogin', {
|
|
57
|
-
|
|
58
|
-
// vm: this,// data: {
|
|
59
|
-
|
|
60
|
-
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
61
|
-
|
|
62
|
-
// }
|
|
63
|
-
|
|
64
|
-
// }).then().catch()
|
|
65
|
-
},
|
|
66
|
-
/**
|
|
67
|
-
* @description 监听事件变化
|
|
68
|
-
* @param container {object} 业务组件对象自己
|
|
69
|
-
*/
|
|
70
|
-
init(container) {
|
|
71
|
-
|
|
72
|
-
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
73
|
-
|
|
74
|
-
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
75
|
-
},
|
|
76
|
-
onJfbScroll(options) {
|
|
77
|
-
console.log('event.onJfbScroll', options)
|
|
78
|
-
},
|
|
79
|
-
onJfbReachBottom(options) {
|
|
80
|
-
console.log('event.onJfbReachBottom', options)
|
|
81
|
-
},
|
|
82
|
-
onJfbShow(options) {
|
|
83
|
-
console.log('event.onJfbShow', options)
|
|
84
|
-
},
|
|
85
|
-
onJfbHide(options) {
|
|
86
|
-
console.log('event.onJfbHide', options)
|
|
87
|
-
},
|
|
88
|
-
onJfbBack(options) {
|
|
89
|
-
console.log('event.onJfbBack', options)
|
|
90
|
-
},
|
|
91
|
-
onJfbUpdate(...data) {
|
|
92
|
-
console.log('event.onJfbUpdate', data)
|
|
93
|
-
},
|
|
94
|
-
onJfbCustomEvent(options) {
|
|
95
|
-
console.log('event.onJfbReachBottom', options)
|
|
96
|
-
},
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
73
|
+
},
|
|
74
|
+
};
|
|
100
75
|
</script>
|
|
101
76
|
|
|
102
77
|
<style scoped lang="less">
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
.jfb-base-background {
|
|
106
|
-
&__body{
|
|
78
|
+
@import "./JfbBaseBackgroundLess.less";
|
|
107
79
|
|
|
108
|
-
|
|
80
|
+
.jfb-base-background {
|
|
81
|
+
&__body {
|
|
109
82
|
}
|
|
83
|
+
}
|
|
110
84
|
</style>
|