jufubao-base 1.0.116-beta3 → 1.0.116-beta4
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/JfbBaseConDialog/XdCouCardBind.vue +2 -1
- package/src/components/JfbBaseConList/JfbBaseConList.vue +1 -1
- package/src/components/JfbBaseConPhone/Api.js +60 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +110 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +18 -0
- package/src/components/JfbBaseConPhone/Mock.js +5 -0
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseSaasBlessDetail/Api.js +21 -22
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +6 -88
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +100 -12
- package/src/components/JfbBaseSaasBlessDialog/Api.js +4 -39
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +2 -2
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +14 -5
- package/src/components/JfbBaseSaasBlessReceive/Api.js +4 -39
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +6 -88
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +29 -18
- package/src/components/JfbBaseSaasHome/Api.js +14 -26
- package/src/components/JfbBaseSaasHome/Attr.js +15 -86
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +131 -60
- package/src/components/JfbBaseSaasLogin/Api.js +13 -0
- package/src/components/JfbBaseSaasLogin/Attr.js +11 -11
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +64 -7
- package/src/components/JfbBaseSaasNewsDetail/Api.js +6 -39
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +2 -94
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +26 -22
- package/src/components/JfbBaseSaasNewsList/Api.js +5 -39
- package/src/components/JfbBaseSaasNewsList/Attr.js +6 -88
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +45 -19
- package/src/components/JfbBaseSassPhoneCollect/Api.js +39 -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
|
@@ -19,61 +19,53 @@
|
|
|
19
19
|
<view>企业名称</view>
|
|
20
20
|
<xd-font-icon icon="iconxia_down" :size="24" style="margin-left: 16rpx;"></xd-font-icon>
|
|
21
21
|
</view> -->
|
|
22
|
-
|
|
23
|
-
</view>
|
|
24
|
-
<view class="banner">
|
|
25
|
-
<swiper class="swiper" circular>
|
|
26
|
-
<swiper-item v-for="i in 3" :key="i">
|
|
27
|
-
<view class="swiper-item">{{ i }}</view>
|
|
28
|
-
</swiper-item>
|
|
29
|
-
</swiper>
|
|
30
22
|
</view>
|
|
31
|
-
<
|
|
32
|
-
<view class="
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<view class="cate_item">
|
|
41
|
-
<view class="cate_img"></view>
|
|
42
|
-
<view class="cate_name">学习资料</view>
|
|
23
|
+
<template v-for="(comp, i) in componentList">
|
|
24
|
+
<view class="banner" v-if="comp.container_key === 'banner'" :key="i">
|
|
25
|
+
<swiper class="swiper" circular>
|
|
26
|
+
<swiper-item v-for="(item,i) in bannerList" :key="i">
|
|
27
|
+
<view class="swiper-item" @click="toBannerLink(item)">
|
|
28
|
+
<image :src="item.thumb" />
|
|
29
|
+
</view>
|
|
30
|
+
</swiper-item>
|
|
31
|
+
</swiper>
|
|
43
32
|
</view>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<view class="
|
|
33
|
+
|
|
34
|
+
<view class="category" v-if="comp.container_key === 'menus'" :key="i">
|
|
35
|
+
<view class="cate_item" v-for="(cate, ii) in comp.config.items" :key="ii">
|
|
36
|
+
<view class="cate_img"><image :src="cate.menu_icon"/></view>
|
|
37
|
+
<view class="cate_name">{{ cate.menu_title }}</view>
|
|
38
|
+
</view>
|
|
47
39
|
</view>
|
|
48
|
-
</view>
|
|
49
40
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
41
|
+
<view class="notice" v-if="comp.container_key === 'notice'" :key="i">
|
|
42
|
+
公告:薄如蝉翼的金华火腿,每一口都是时间的味道
|
|
43
|
+
</view>
|
|
53
44
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</view>
|
|
62
|
-
</view>
|
|
63
|
-
<view class="group_body">
|
|
64
|
-
<view class="news_item" v-for="i in 3" :key="i">
|
|
65
|
-
<view class="news_cont">
|
|
66
|
-
<view class="news_tit">企业公告的信息,如果没有则不展示该模块直接展示企业新闻</view>
|
|
67
|
-
<view class="news_date">2022.10.08 12:00</view>
|
|
45
|
+
<view class="news_wrap" v-if="comp.container_key === 'news'" :key="i">
|
|
46
|
+
<view class="news_group">
|
|
47
|
+
<view class="group_header">
|
|
48
|
+
<view class="group_title">{{ comp.config.name }}</view>
|
|
49
|
+
<view class="group_more" @click="toNewsList">
|
|
50
|
+
查看更多
|
|
51
|
+
<xd-font-icon icon="iconxiangyou_xian" :size="24" style="margin-left: 16rpx;"></xd-font-icon>
|
|
68
52
|
</view>
|
|
69
|
-
|
|
70
|
-
|
|
53
|
+
</view>
|
|
54
|
+
<view class="group_body">
|
|
55
|
+
<view class="news_item" v-for="(news, i) in newsList" :key="i" @click="toNewsDetail">
|
|
56
|
+
<view class="news_cont">
|
|
57
|
+
<view class="news_tit">{{ news.title }}</view>
|
|
58
|
+
<view class="news_date">{{ news.created_time }}</view>
|
|
59
|
+
</view>
|
|
60
|
+
<view class="news_img">
|
|
61
|
+
<image :src="news.thumb" />
|
|
62
|
+
</view>
|
|
71
63
|
</view>
|
|
72
64
|
</view>
|
|
73
65
|
</view>
|
|
74
66
|
</view>
|
|
75
|
-
</view>
|
|
76
67
|
|
|
68
|
+
</template>
|
|
77
69
|
</view>
|
|
78
70
|
</view>
|
|
79
71
|
</template>
|
|
@@ -85,6 +77,7 @@
|
|
|
85
77
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
86
78
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
87
79
|
import extsMixins from "@/mixins/extsMixins";
|
|
80
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
88
81
|
export default {
|
|
89
82
|
name: "JfbBaseSaasHome",
|
|
90
83
|
components: {
|
|
@@ -95,8 +88,14 @@
|
|
|
95
88
|
],
|
|
96
89
|
data() {
|
|
97
90
|
return {
|
|
91
|
+
componentList: [], //组件列表
|
|
92
|
+
bannerList: [],
|
|
93
|
+
newsList: [],
|
|
94
|
+
noticeList: [],
|
|
98
95
|
|
|
99
|
-
|
|
96
|
+
//面板
|
|
97
|
+
newsListUrl: "", //新闻列表url
|
|
98
|
+
newsDetailUrl: "", //新闻详情url
|
|
100
99
|
}
|
|
101
100
|
},
|
|
102
101
|
watch: {
|
|
@@ -111,29 +110,80 @@
|
|
|
111
110
|
},
|
|
112
111
|
methods: {
|
|
113
112
|
onJfbLoad(options) {
|
|
113
|
+
jfbRootExec("getHomeConfig", {
|
|
114
|
+
vm: this,
|
|
115
|
+
data: {}
|
|
116
|
+
}).then(res => {
|
|
117
|
+
let componentList = JSON.parse(res.index_config);
|
|
118
|
+
console.log(componentList);
|
|
119
|
+
this.componentList = componentList.filter(item => item.status === 'Y');
|
|
114
120
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
this.componentList.forEach((item,i) => {
|
|
122
|
+
switch (item.container_key) {
|
|
123
|
+
case "banner":
|
|
124
|
+
this.p_getNewsList("banner", "ad").then(res => {
|
|
125
|
+
this.bannerList = res.list.map(ban => {
|
|
126
|
+
ban['thumb'] = ban.thumb ? getServiceUrl(ban.thumb) : ""
|
|
127
|
+
return ban;
|
|
128
|
+
});
|
|
129
|
+
})
|
|
130
|
+
break;
|
|
131
|
+
case "news":
|
|
132
|
+
this.p_getNewsList("news", "news").then(res => {
|
|
133
|
+
this.newsList = res.list.map(news => {
|
|
134
|
+
news.created_time = this.$xdUniHelper.getDate(
|
|
135
|
+
news["created_time"] * 1000
|
|
136
|
+
).fullTime;
|
|
137
|
+
news.thumb = news.thumb ? getServiceUrl(news.thumb) : ""
|
|
138
|
+
return news;
|
|
139
|
+
});
|
|
140
|
+
})
|
|
141
|
+
break;
|
|
142
|
+
case "notice":
|
|
143
|
+
this.p_getNewsList("notice", "news").then(res => {
|
|
144
|
+
this.noticeList = res.list;
|
|
145
|
+
})
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
})
|
|
149
|
+
})
|
|
124
150
|
},
|
|
125
151
|
/**
|
|
126
152
|
* @description 监听事件变化
|
|
127
153
|
* @param container {object} 业务组件对象自己
|
|
128
154
|
*/
|
|
129
155
|
init(container) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
156
|
+
this.newsListUrl = getContainerPropsValue(container, 'content.newsListUrl', {value: ""}).value;
|
|
157
|
+
this.newsDetailUrl = getContainerPropsValue(container, 'content.newsDetailUrl', {value: ""}).value;
|
|
158
|
+
},
|
|
159
|
+
p_getNewsList(position_id, scene){
|
|
160
|
+
return jfbRootExec("getNewsList", {
|
|
161
|
+
vm: this,
|
|
162
|
+
data: {
|
|
163
|
+
position_id: position_id,
|
|
164
|
+
scene: scene,
|
|
165
|
+
page_size: 10,
|
|
166
|
+
page_token: 1
|
|
167
|
+
}
|
|
168
|
+
})
|
|
169
|
+
},
|
|
170
|
+
toNewsList(){
|
|
171
|
+
this.$xdUniHelper.navigateTo({
|
|
172
|
+
url: `${this.newsListUrl}`,
|
|
173
|
+
});
|
|
174
|
+
},
|
|
175
|
+
toNewsDetail(){
|
|
176
|
+
this.$xdUniHelper.navigateTo({
|
|
177
|
+
url: `${this.newsDetailUrl}`,
|
|
178
|
+
});
|
|
179
|
+
},
|
|
180
|
+
toBannerLink(item){
|
|
181
|
+
this.$xdUniHelper.navigateTo({
|
|
182
|
+
url: `${item.jump_url}`,
|
|
183
|
+
});
|
|
134
184
|
},
|
|
135
185
|
onJfbScroll(options) {
|
|
136
|
-
|
|
186
|
+
|
|
137
187
|
},
|
|
138
188
|
onJfbReachBottom(options) {
|
|
139
189
|
console.log('event.onJfbReachBottom', options)
|
|
@@ -146,6 +196,7 @@
|
|
|
146
196
|
},
|
|
147
197
|
onJfbBack(options) {
|
|
148
198
|
console.log('event.onJfbBack', options)
|
|
199
|
+
this.$xdUniHelper.navigateBack();
|
|
149
200
|
},
|
|
150
201
|
onJfbUpdate(...data) {
|
|
151
202
|
console.log('event.onJfbUpdate', data)
|
|
@@ -163,6 +214,7 @@
|
|
|
163
214
|
|
|
164
215
|
.jfb-base-saas-home {
|
|
165
216
|
&__body{
|
|
217
|
+
background: #F5F9FA;
|
|
166
218
|
.top_wrap{
|
|
167
219
|
.comp_name{
|
|
168
220
|
padding: 24rpx 36rpx;
|
|
@@ -181,6 +233,10 @@
|
|
|
181
233
|
.swiper-item{
|
|
182
234
|
height: 300rpx;
|
|
183
235
|
background-color: red;
|
|
236
|
+
image{
|
|
237
|
+
width: 100%;
|
|
238
|
+
height: 100%;
|
|
239
|
+
}
|
|
184
240
|
}
|
|
185
241
|
}
|
|
186
242
|
|
|
@@ -194,13 +250,17 @@
|
|
|
194
250
|
.cate_img{
|
|
195
251
|
width: 100rpx;
|
|
196
252
|
height: 100rpx;
|
|
197
|
-
|
|
253
|
+
image{
|
|
254
|
+
width: 100%;
|
|
255
|
+
height: 100%;
|
|
256
|
+
}
|
|
198
257
|
}
|
|
199
258
|
.cate_name{
|
|
200
259
|
font-size: 24rpx;
|
|
201
260
|
color: #333333;
|
|
202
261
|
font-weight: 400;
|
|
203
262
|
margin-top: 16rpx;
|
|
263
|
+
text-align: center;
|
|
204
264
|
}
|
|
205
265
|
}
|
|
206
266
|
}
|
|
@@ -263,6 +323,13 @@
|
|
|
263
323
|
.news_tit{
|
|
264
324
|
font-size: 28rpx;
|
|
265
325
|
color: #333333;
|
|
326
|
+
height: 96rpx;
|
|
327
|
+
line-height: 48rpx;;
|
|
328
|
+
overflow: hidden;
|
|
329
|
+
text-overflow: ellipsis;
|
|
330
|
+
-webkit-line-clamp: 2;
|
|
331
|
+
display: -webkit-box;
|
|
332
|
+
-webkit-box-orient: vertical;
|
|
266
333
|
}
|
|
267
334
|
.news_date{
|
|
268
335
|
color: #999999;
|
|
@@ -276,6 +343,10 @@
|
|
|
276
343
|
height: 120rpx;
|
|
277
344
|
background-color: #333333;
|
|
278
345
|
margin-left: 60rpx;
|
|
346
|
+
image{
|
|
347
|
+
width: 100%;
|
|
348
|
+
height: 100%;
|
|
349
|
+
}
|
|
279
350
|
}
|
|
280
351
|
}
|
|
281
352
|
}
|
|
@@ -23,4 +23,17 @@ module.exports = [
|
|
|
23
23
|
isConsole: true,
|
|
24
24
|
disabled: true,
|
|
25
25
|
},
|
|
26
|
+
{
|
|
27
|
+
mapFnName: 'sassLogin',
|
|
28
|
+
title: '登录',
|
|
29
|
+
path: '/saas/v1/login/check-sms',
|
|
30
|
+
isRule: false,
|
|
31
|
+
data: {
|
|
32
|
+
biz_name: ['biz_name', 'String', true],
|
|
33
|
+
phone_number: ['手机号', 'String', '必选'],
|
|
34
|
+
valid_code: ['valid_code', 'String', '必选']
|
|
35
|
+
},
|
|
36
|
+
isConsole: true,
|
|
37
|
+
disabled: true,
|
|
38
|
+
}
|
|
26
39
|
];
|
|
@@ -18,17 +18,17 @@ export default {
|
|
|
18
18
|
},
|
|
19
19
|
inline: false,
|
|
20
20
|
},
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
21
|
+
// {
|
|
22
|
+
// label: '忘记密码跳转地址:', //label
|
|
23
|
+
// ele: 'xd-select-pages-path', //package 名称
|
|
24
|
+
// valueKey: 'forget_pwd_url', //form[valueKey]
|
|
25
|
+
// placeholder: '请选择跳转地址',
|
|
26
|
+
// value: null,
|
|
27
|
+
// setting: {
|
|
28
|
+
// router: XdBus.getParentApi('getPagesTree'),
|
|
29
|
+
// },
|
|
30
|
+
// inline: false,
|
|
31
|
+
// },
|
|
32
32
|
].filter(i=>i)
|
|
33
33
|
},
|
|
34
34
|
advanced: [
|
|
@@ -94,6 +94,16 @@
|
|
|
94
94
|
>忘记密码</view> -->
|
|
95
95
|
</view>
|
|
96
96
|
<view class="not_login">暂不登录,去逛逛</view>
|
|
97
|
+
<xd-dailog :show.sync="dialogShow" title="">
|
|
98
|
+
<view class="dia_title">您在多个企业任职<br/>请选择本次要访问的企业</view>
|
|
99
|
+
<view class="company_list">
|
|
100
|
+
<view class="company_item" v-for="(item, i) in companyList" :key="i" @click="toHome(item)">
|
|
101
|
+
<view class="_name">{{ item.company_name }}</view>
|
|
102
|
+
<xd-font-icon icon="iconxiangyou_xian" :size="30"></xd-font-icon>
|
|
103
|
+
</view>
|
|
104
|
+
</view>
|
|
105
|
+
<view slot="btn"></view>
|
|
106
|
+
</xd-dailog>
|
|
97
107
|
</view>
|
|
98
108
|
</view>
|
|
99
109
|
</template>
|
|
@@ -105,6 +115,7 @@
|
|
|
105
115
|
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
106
116
|
import XdForm from "@/components/XdForm/XdForm";
|
|
107
117
|
import XdFormItem from "@/components/XdFormItem/XdFormItem";
|
|
118
|
+
import XdDailog from "@/components/XdDailog/XdDailog"
|
|
108
119
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
109
120
|
import JfbBaseSaasLoginMixin from "./JfbBaseSaasLoginMixin";
|
|
110
121
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
@@ -119,6 +130,7 @@
|
|
|
119
130
|
XdFormInput,
|
|
120
131
|
XdForm,
|
|
121
132
|
XdFormItem,
|
|
133
|
+
XdDailog
|
|
122
134
|
},
|
|
123
135
|
mixins: [
|
|
124
136
|
componentsMixins, extsMixins, JfbBaseSaasLoginMixin
|
|
@@ -138,6 +150,8 @@
|
|
|
138
150
|
time: 0,
|
|
139
151
|
panel_2_checked: "",
|
|
140
152
|
redirect_url: "", //401回跳地址
|
|
153
|
+
dialogShow: false,
|
|
154
|
+
companyList: [],
|
|
141
155
|
|
|
142
156
|
//面板
|
|
143
157
|
callback_url: "", //面板配置登录完跳转地址
|
|
@@ -165,7 +179,7 @@
|
|
|
165
179
|
this.forget_pwd_url = getContainerPropsValue(container, "content.forget_pwd_url", {value: ''}).value;
|
|
166
180
|
},
|
|
167
181
|
doLoginForm() {
|
|
168
|
-
const { phone_number, password } = this.accountForm;
|
|
182
|
+
const { phone_number, password, verification_code } = this.accountForm;
|
|
169
183
|
let err_tip = "";
|
|
170
184
|
if (!phone_number) err_tip = "手机号不能为空";
|
|
171
185
|
else if (!verification_code) err_tip = "验证码不能为空";
|
|
@@ -177,24 +191,42 @@
|
|
|
177
191
|
}
|
|
178
192
|
|
|
179
193
|
this.$xdShowLoading({})
|
|
180
|
-
jfbRootExec("
|
|
194
|
+
jfbRootExec("sassLogin", {
|
|
181
195
|
vm: this,
|
|
182
196
|
data: {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
197
|
+
biz_name: "login",
|
|
198
|
+
phone_number: phone_number,
|
|
199
|
+
valid_code: verification_code,
|
|
186
200
|
},
|
|
187
201
|
})
|
|
188
202
|
.then((res) => {
|
|
189
203
|
this.$xdHideLoading()
|
|
190
204
|
// this.jfbAuthorize.setAllToken(res);
|
|
191
|
-
this.toHomeAfterLogin();
|
|
205
|
+
// this.toHomeAfterLogin();
|
|
206
|
+
if(res.list.length === 0){
|
|
207
|
+
uni.showToast({
|
|
208
|
+
title: '该用户没有所属企业',
|
|
209
|
+
duration: 2000
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
else if(res.list.length > 1){
|
|
213
|
+
this.companyList = res.list;
|
|
214
|
+
this.dialogShow = true;
|
|
215
|
+
}else{
|
|
216
|
+
this.toHome(res.list[0])
|
|
217
|
+
}
|
|
192
218
|
})
|
|
193
219
|
.catch(error => {
|
|
194
220
|
this.$xdHideLoading()
|
|
195
221
|
this.$xdLog.catch(error)
|
|
196
222
|
});
|
|
197
223
|
},
|
|
224
|
+
toHome(item){
|
|
225
|
+
this.$xdUniHelper.redirectTo({
|
|
226
|
+
url: `/apply/main/saas/home?company_id=${item.company_id}`
|
|
227
|
+
});
|
|
228
|
+
// this.toHomeAfterLogin();
|
|
229
|
+
},
|
|
198
230
|
toHomeAfterLogin() {
|
|
199
231
|
let { redirect_url, callback_url } = this;
|
|
200
232
|
if (redirect_url) redirect_url = redirect_url;
|
|
@@ -248,7 +280,7 @@
|
|
|
248
280
|
});
|
|
249
281
|
},
|
|
250
282
|
onJfbScroll(options) {
|
|
251
|
-
|
|
283
|
+
|
|
252
284
|
},
|
|
253
285
|
onJfbReachBottom(options) {
|
|
254
286
|
console.log('event.onJfbReachBottom', options)
|
|
@@ -261,6 +293,7 @@
|
|
|
261
293
|
},
|
|
262
294
|
onJfbBack(options) {
|
|
263
295
|
console.log('event.onJfbBack', options)
|
|
296
|
+
this.$xdUniHelper.navigateBack();
|
|
264
297
|
},
|
|
265
298
|
onJfbUpdate(...data) {
|
|
266
299
|
console.log('event.onJfbUpdate', data)
|
|
@@ -281,6 +314,30 @@
|
|
|
281
314
|
box-sizing: border-box;
|
|
282
315
|
&__body{
|
|
283
316
|
position: relative;
|
|
317
|
+
.dia_title{
|
|
318
|
+
color: #333333;
|
|
319
|
+
font-size: 32rpx;
|
|
320
|
+
font-weight: 500;
|
|
321
|
+
margin: 60rpx 0;
|
|
322
|
+
}
|
|
323
|
+
.company_list{
|
|
324
|
+
.company_item{
|
|
325
|
+
display: flex;
|
|
326
|
+
justify-content: space-between;
|
|
327
|
+
background: #FE7A63;
|
|
328
|
+
border-radius: 60rpx;
|
|
329
|
+
padding: 20rpx 48rpx;
|
|
330
|
+
color: #FFFFFF;
|
|
331
|
+
margin: 20rpx 0;
|
|
332
|
+
._name{
|
|
333
|
+
flex: 1;
|
|
334
|
+
width: 100rpx;
|
|
335
|
+
overflow: hidden;
|
|
336
|
+
white-space: nowrap;
|
|
337
|
+
text-overflow: ellipsis;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
284
341
|
.not_login{
|
|
285
342
|
position: absolute;
|
|
286
343
|
bottom: 200rpx;
|
|
@@ -12,47 +12,14 @@
|
|
|
12
12
|
*/
|
|
13
13
|
module.exports = [
|
|
14
14
|
{
|
|
15
|
-
mapFnName: '
|
|
16
|
-
title: '
|
|
17
|
-
path: '/
|
|
15
|
+
mapFnName: 'getNewsDetail',
|
|
16
|
+
title: '获取新闻详情',
|
|
17
|
+
path: '/saas/v1/content_ad_news/item',
|
|
18
18
|
isRule: false,
|
|
19
19
|
params: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
isConsole: true,
|
|
24
|
-
disabled: true,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
|
|
28
|
-
title: '更新排期',
|
|
29
|
-
path: '/api/account/film/paiqi-date',
|
|
30
|
-
isRule: false,
|
|
31
|
-
params: {
|
|
32
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
33
|
-
cinema_id: ['影院id', 'Number', '必选'],
|
|
34
|
-
},
|
|
35
|
-
isConsole: true,
|
|
36
|
-
disabled: true,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
|
|
40
|
-
title: '删除我的配送地址',
|
|
41
|
-
path: '/api/account/film/paiqi-date',
|
|
42
|
-
isRule: false,
|
|
43
|
-
params: {
|
|
44
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
45
|
-
},
|
|
46
|
-
isConsole: true,
|
|
47
|
-
disabled: true,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
mapFnName: 'addFilmcart', //自定义方法名字(必选)
|
|
51
|
-
title: '添加购物车',
|
|
52
|
-
path: '/api/account/film/paiqi-date',
|
|
53
|
-
isRule: false,
|
|
54
|
-
params: {
|
|
55
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
20
|
+
id: ['id', 'String', true],
|
|
21
|
+
position_id: ['位置ID', 'String', '必选'],
|
|
22
|
+
scene: ['场景ad,news', 'String', '必选']
|
|
56
23
|
},
|
|
57
24
|
isConsole: true,
|
|
58
25
|
disabled: true,
|
|
@@ -7,100 +7,8 @@ export default {
|
|
|
7
7
|
style: [],
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
|
-
|
|
11
|
-
label: '背景颜色:', //label
|
|
12
|
-
ele: 'xd-color', //package 名称
|
|
13
|
-
valueKey: 'bgcolor', //form[valueKey]
|
|
14
|
-
value: data.bgcolor || '', //v-model
|
|
15
|
-
placeholder: '请输入占位框背景颜色',
|
|
16
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
17
|
-
rules: [
|
|
18
|
-
{
|
|
19
|
-
required: true,
|
|
20
|
-
message: '请输入占位框背景颜色',
|
|
21
|
-
trigger: 'blur'
|
|
22
|
-
},
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: '选中路径:', //label
|
|
27
|
-
ele: 'xd-select-pages-path', //package 名称
|
|
28
|
-
valueKey: 'select-pages-path', //form[valueKey]
|
|
29
|
-
value: data['select-pages-path'] || {},
|
|
30
|
-
setting: {
|
|
31
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
32
|
-
},
|
|
33
|
-
inline: false,
|
|
34
|
-
},
|
|
35
|
-
data.bgcolor && {
|
|
36
|
-
label: '高度:', //label
|
|
37
|
-
ele: 'el-input', //package 名称
|
|
38
|
-
type: 'number',
|
|
39
|
-
valueKey: 'height', //form[valueKey]
|
|
40
|
-
value: data.height || 100, //v-model
|
|
41
|
-
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
42
|
-
className: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
43
|
-
rules: [
|
|
44
|
-
{
|
|
45
|
-
required: true,
|
|
46
|
-
message: '请输入占位框高度',
|
|
47
|
-
trigger: 'blur'
|
|
48
|
-
},
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
label: '', //label
|
|
53
|
-
ele: 'slot', //package 名称
|
|
54
|
-
slot: 'is_reference',
|
|
55
|
-
},
|
|
10
|
+
|
|
56
11
|
].filter(i=>i)
|
|
57
12
|
},
|
|
58
|
-
advanced: [
|
|
59
|
-
{
|
|
60
|
-
label: '背景颜色:', //label
|
|
61
|
-
ele: 'xd-color', //package 名称
|
|
62
|
-
valueKey: 'bgcolor', //form[valueKey]
|
|
63
|
-
value: '', //v-model
|
|
64
|
-
placeholder: '请输入占位框背景颜色',
|
|
65
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
66
|
-
rules: [
|
|
67
|
-
{
|
|
68
|
-
required: true,
|
|
69
|
-
message: '请输入占位框背景颜色',
|
|
70
|
-
trigger: 'blur'
|
|
71
|
-
},
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
label: '选中路径:', //label
|
|
76
|
-
ele: 'xd-select-pages-path', //package 名称
|
|
77
|
-
valueKey: 'select-pages-path', //form[valueKey]
|
|
78
|
-
value: null,
|
|
79
|
-
setting: {
|
|
80
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
81
|
-
},
|
|
82
|
-
inline: false,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
label: '高度:', //label
|
|
86
|
-
ele: 'el-input', //package 名称
|
|
87
|
-
type: 'number',
|
|
88
|
-
valueKey: 'height', //form[valueKey]
|
|
89
|
-
value: null, //v-model
|
|
90
|
-
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
91
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
92
|
-
rules: [
|
|
93
|
-
{
|
|
94
|
-
required: true,
|
|
95
|
-
message: '请输入占位框高度',
|
|
96
|
-
trigger: 'blur'
|
|
97
|
-
},
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
label: '', //label
|
|
102
|
-
ele: 'slot', //package 名称
|
|
103
|
-
slot: 'is_reference',
|
|
104
|
-
},
|
|
105
|
-
],
|
|
13
|
+
advanced: [],
|
|
106
14
|
};
|