jufubao-base 1.0.118 → 1.0.119-beta3
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 +4 -3
- package/src/components/JfbBaseCard/Attr.js +380 -287
- package/src/components/JfbBaseCard/JfbBaseCard.vue +51 -2
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -4
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
- package/src/components/JfbBaseConFlashHome/Api.js +60 -0
- package/src/components/JfbBaseConFlashHome/Attr.js +129 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +388 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +80 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +30 -0
- package/src/components/JfbBaseConFlashHome/Mock.js +5 -0
- package/src/components/JfbBaseConFlashList/Api.js +60 -0
- package/src/components/JfbBaseConFlashList/Attr.js +117 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +656 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +80 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +30 -0
- package/src/components/JfbBaseConFlashList/Mock.js +5 -0
- package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -2
- package/src/components/JfbBaseConPhone/Api.js +70 -0
- package/src/components/JfbBaseConPhone/Attr.js +10 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +486 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
- package/src/components/JfbBaseConPhone/Mock.js +26 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +2 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseSaasBlessDetail/Api.js +59 -0
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +24 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +341 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessDialog/Api.js +25 -0
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +309 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessReceive/Api.js +25 -0
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +24 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +201 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
- package/src/components/JfbBaseSaasHome/Api.js +48 -0
- package/src/components/JfbBaseSaasHome/Attr.js +35 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +402 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
- package/src/components/JfbBaseSaasHome/Mock.js +5 -0
- package/src/components/JfbBaseSaasLogin/Api.js +98 -0
- package/src/components/JfbBaseSaasLogin/Attr.js +59 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +700 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
- package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
- package/src/components/JfbBaseSaasLogin/saaslogin_copy.vue +410 -0
- package/src/components/JfbBaseSaasNewsDetail/Api.js +27 -0
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +14 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +144 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasNewsList/Api.js +26 -0
- package/src/components/JfbBaseSaasNewsList/Attr.js +24 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +182 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
- package/src/components/JfbBaseSassPhoneCollect/Api.js +51 -0
- package/src/components/JfbBaseSassPhoneCollect/Attr.js +438 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +266 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +80 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +30 -0
- package/src/components/JfbBaseSassPhoneCollect/Mock.js +5 -0
|
@@ -0,0 +1,80 @@
|
|
|
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-saas-news-detail {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
min-height: unit(50, rpx);
|
|
19
|
+
|
|
20
|
+
&__body{
|
|
21
|
+
position: relative;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
z-index: 2
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.editx {
|
|
27
|
+
position: relative;
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
&__edit {
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: unit(0, rpx);
|
|
48
|
+
top: unit(-52, rpx);
|
|
49
|
+
height: unit(50, rpx);
|
|
50
|
+
line-height: unit(50, rpx);
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
background: rgba(0, 0, 0, .6);
|
|
55
|
+
border-radius: unit(10, rpx);
|
|
56
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
57
|
+
color: #fff;
|
|
58
|
+
font-size: unit(22, rpx);
|
|
59
|
+
|
|
60
|
+
&-icon{
|
|
61
|
+
padding: 0 unit(20, rpx);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.editx {
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//end
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**notPreview**/
|
|
74
|
+
.jfb-base-saas-news-detail {
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**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-saas-news-detail'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description API模型
|
|
5
|
+
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
+
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
+
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
+
* 添加列表记录(addFfffXxxxx)
|
|
9
|
+
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
+
* 更新列表记录(updateFfffXxxxx)
|
|
11
|
+
* @type {*[]}
|
|
12
|
+
*/
|
|
13
|
+
module.exports = [
|
|
14
|
+
{
|
|
15
|
+
mapFnName: 'getNewsList',
|
|
16
|
+
title: '获取新闻列表',
|
|
17
|
+
path: '/saas/v1/content_ad_news/items',
|
|
18
|
+
isRule: false,
|
|
19
|
+
params: {
|
|
20
|
+
position_id: ['位置ID', 'String', '必选'],
|
|
21
|
+
scene: ['场景ad,news', 'String', '必选']
|
|
22
|
+
},
|
|
23
|
+
isConsole: true,
|
|
24
|
+
disabled: true,
|
|
25
|
+
},
|
|
26
|
+
];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '新闻详情地址:', //label
|
|
12
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
13
|
+
valueKey: 'newsDetailUrl', //form[valueKey]
|
|
14
|
+
placeholder: '请选择新闻详情地址',
|
|
15
|
+
value: null,
|
|
16
|
+
setting: {
|
|
17
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
18
|
+
},
|
|
19
|
+
inline: false,
|
|
20
|
+
},
|
|
21
|
+
].filter(i=>i)
|
|
22
|
+
},
|
|
23
|
+
advanced: [],
|
|
24
|
+
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-saas-news-list"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-saas-news-list__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-saas-news-list__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view class="jfb-base-saas-news-list__body">
|
|
17
|
+
<view class="news_wrap">
|
|
18
|
+
<view class="news_group">
|
|
19
|
+
<view class="news_item" v-for="(item, i) in newsList" :key="i" @click="toDetail(item)">
|
|
20
|
+
<view class="news_cont">
|
|
21
|
+
<view class="news_tit">{{ item.title }}</view>
|
|
22
|
+
<view class="news_date">{{ item.created_time }}</view>
|
|
23
|
+
</view>
|
|
24
|
+
<view class="news_img">
|
|
25
|
+
<image :src="item.thumb" />
|
|
26
|
+
</view>
|
|
27
|
+
</view>
|
|
28
|
+
</view>
|
|
29
|
+
</view>
|
|
30
|
+
</view>
|
|
31
|
+
</view>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
36
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
37
|
+
import JfbBaseSaasNewsListMixin from "./JfbBaseSaasNewsListMixin";
|
|
38
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
39
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
40
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
41
|
+
export default {
|
|
42
|
+
name: "JfbBaseSaasNewsList",
|
|
43
|
+
components: {
|
|
44
|
+
XdFontIcon
|
|
45
|
+
},
|
|
46
|
+
mixins: [
|
|
47
|
+
componentsMixins, extsMixins, JfbBaseSaasNewsListMixin
|
|
48
|
+
],
|
|
49
|
+
data() {
|
|
50
|
+
return {
|
|
51
|
+
newsList: [],
|
|
52
|
+
|
|
53
|
+
//面板
|
|
54
|
+
newsDetailUrl: "", //新闻详情url
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
watch: {
|
|
58
|
+
container(value) {
|
|
59
|
+
this.init(value)
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
created() {
|
|
63
|
+
this.init(this.container);
|
|
64
|
+
|
|
65
|
+
//todo
|
|
66
|
+
},
|
|
67
|
+
methods: {
|
|
68
|
+
onJfbLoad(options) {
|
|
69
|
+
let position_id = options.position_id;
|
|
70
|
+
this.p_getNewsList(position_id)
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* @description 监听事件变化
|
|
74
|
+
* @param container {object} 业务组件对象自己
|
|
75
|
+
*/
|
|
76
|
+
init(container) {
|
|
77
|
+
|
|
78
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
79
|
+
},
|
|
80
|
+
toDetail(item){
|
|
81
|
+
this.$xdUniHelper.navigateTo({
|
|
82
|
+
url: `${this.newsDetailUrl}?id=${item.id}`,
|
|
83
|
+
});
|
|
84
|
+
},
|
|
85
|
+
p_getNewsList(position_id){
|
|
86
|
+
jfbRootExec("getNewsList", {
|
|
87
|
+
vm: this,
|
|
88
|
+
data: {
|
|
89
|
+
position_id: position_id,
|
|
90
|
+
scene: "news",
|
|
91
|
+
page_size: 10,
|
|
92
|
+
page_token: 1
|
|
93
|
+
}
|
|
94
|
+
}).then(res => {
|
|
95
|
+
this.newsList = res.list.map(item => {
|
|
96
|
+
item.created_time = this.$xdUniHelper.getDate(
|
|
97
|
+
item["created_time"] * 1000
|
|
98
|
+
).fullTime;
|
|
99
|
+
return item;
|
|
100
|
+
});
|
|
101
|
+
})
|
|
102
|
+
},
|
|
103
|
+
onJfbScroll(options) {
|
|
104
|
+
|
|
105
|
+
},
|
|
106
|
+
onJfbReachBottom(options) {
|
|
107
|
+
console.log('event.onJfbReachBottom', options)
|
|
108
|
+
},
|
|
109
|
+
onJfbShow(options) {
|
|
110
|
+
console.log('event.onJfbShow', options)
|
|
111
|
+
},
|
|
112
|
+
onJfbHide(options) {
|
|
113
|
+
console.log('event.onJfbHide', options)
|
|
114
|
+
},
|
|
115
|
+
onJfbBack(options) {
|
|
116
|
+
console.log('event.onJfbBack', options)
|
|
117
|
+
this.$xdUniHelper.navigateBack();
|
|
118
|
+
},
|
|
119
|
+
onJfbUpdate(...data) {
|
|
120
|
+
console.log('event.onJfbUpdate', data)
|
|
121
|
+
},
|
|
122
|
+
onJfbCustomEvent(options) {
|
|
123
|
+
console.log('event.onJfbReachBottom', options)
|
|
124
|
+
},
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
</script>
|
|
129
|
+
|
|
130
|
+
<style scoped lang="less">
|
|
131
|
+
@import "./JfbBaseSaasNewsListLess.less";
|
|
132
|
+
|
|
133
|
+
.jfb-base-saas-news-list {
|
|
134
|
+
&__body{
|
|
135
|
+
.news_wrap{
|
|
136
|
+
padding: 20rpx;
|
|
137
|
+
.news_group{
|
|
138
|
+
background-color: #FFFFFF;
|
|
139
|
+
border-radius: 16rpx;
|
|
140
|
+
margin-bottom: 20rpx;
|
|
141
|
+
.news_item{
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
padding: 32rpx;
|
|
145
|
+
border-bottom: 1px solid #F0F0F0;
|
|
146
|
+
.news_cont{
|
|
147
|
+
flex: 1;
|
|
148
|
+
width: 400rpx;
|
|
149
|
+
font-weight: 400;
|
|
150
|
+
.news_tit{
|
|
151
|
+
font-size: 28rpx;
|
|
152
|
+
color: #333333;
|
|
153
|
+
height: 96rpx;
|
|
154
|
+
line-height: 48rpx;;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
text-overflow: ellipsis;
|
|
157
|
+
-webkit-line-clamp: 2;
|
|
158
|
+
display: -webkit-box;
|
|
159
|
+
-webkit-box-orient: vertical;
|
|
160
|
+
}
|
|
161
|
+
.news_date{
|
|
162
|
+
color: #999999;
|
|
163
|
+
font-size: 20rpx;
|
|
164
|
+
margin-top: 20rpx;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.news_img{
|
|
169
|
+
width: 190rpx;
|
|
170
|
+
height: 120rpx;
|
|
171
|
+
margin-left: 60rpx;
|
|
172
|
+
image{
|
|
173
|
+
width: 100%;
|
|
174
|
+
height: 100%;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
</style>
|
|
@@ -0,0 +1,80 @@
|
|
|
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-saas-news-list {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
min-height: unit(50, rpx);
|
|
19
|
+
|
|
20
|
+
&__body{
|
|
21
|
+
position: relative;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
z-index: 2
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.editx {
|
|
27
|
+
position: relative;
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
&__edit {
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: unit(0, rpx);
|
|
48
|
+
top: unit(-52, rpx);
|
|
49
|
+
height: unit(50, rpx);
|
|
50
|
+
line-height: unit(50, rpx);
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
background: rgba(0, 0, 0, .6);
|
|
55
|
+
border-radius: unit(10, rpx);
|
|
56
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
57
|
+
color: #fff;
|
|
58
|
+
font-size: unit(22, rpx);
|
|
59
|
+
|
|
60
|
+
&-icon{
|
|
61
|
+
padding: 0 unit(20, rpx);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.editx {
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//end
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**notPreview**/
|
|
74
|
+
.jfb-base-saas-news-list {
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**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-saas-news-list'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description API模型
|
|
5
|
+
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
+
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
+
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
+
* 添加列表记录(addFfffXxxxx)
|
|
9
|
+
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
+
* 更新列表记录(updateFfffXxxxx)
|
|
11
|
+
* @type {*[]}
|
|
12
|
+
*/
|
|
13
|
+
module.exports = [
|
|
14
|
+
{
|
|
15
|
+
mapFnName: "phoneAuth",
|
|
16
|
+
title: "三方登入 - 手机号认证",
|
|
17
|
+
path: "/saas/v1/login/phone-auth",
|
|
18
|
+
isRule: false,
|
|
19
|
+
data: {
|
|
20
|
+
access_code: ['临时访问标识', 'String', true],
|
|
21
|
+
valid_code: ['验证码', 'String', true],
|
|
22
|
+
},
|
|
23
|
+
isConsole: true,
|
|
24
|
+
disabled: true,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
mapFnName: 'phoneCollect',
|
|
28
|
+
title: "收集手机号",
|
|
29
|
+
path: "/passport/v1/user/collect-phone-number",
|
|
30
|
+
isRule: false,
|
|
31
|
+
data: {
|
|
32
|
+
phone_number: ['手机号', 'String', null], //手机号
|
|
33
|
+
verification_code: ['手机验证码', 'String', null],
|
|
34
|
+
provider_id: ['登录方式id', 'Number', '必选'],
|
|
35
|
+
},
|
|
36
|
+
isConsole: true,
|
|
37
|
+
disable: true,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
mapFnName: 'sendMsg',
|
|
41
|
+
title: '发送验证码',
|
|
42
|
+
path: '/common/v1/valid_code/sms/send',
|
|
43
|
+
isRule: false,
|
|
44
|
+
data: {
|
|
45
|
+
phone_number: ['手机号', 'String', '必选'],
|
|
46
|
+
biz_name: ['业务名称', 'String', '必选']
|
|
47
|
+
},
|
|
48
|
+
isConsole: true,
|
|
49
|
+
disabled: true,
|
|
50
|
+
},
|
|
51
|
+
];
|