jufubao-base 1.0.115 → 1.0.116-beta2
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 +30 -31
- package/src/components/JfbBaseConList/JfbBaseConList.vue +88 -95
- package/src/components/JfbBaseSaasBlessDetail/Api.js +60 -0
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +106 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +227 -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 +60 -0
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +265 -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 +60 -0
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +106 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +172 -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 +60 -0
- package/src/components/JfbBaseSaasHome/Attr.js +106 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +285 -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 +26 -0
- package/src/components/JfbBaseSaasLogin/Attr.js +37 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +353 -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/JfbBaseSaasNewsDetail/Api.js +60 -0
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +106 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +140 -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 +60 -0
- package/src/components/JfbBaseSaasNewsList/Attr.js +106 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +155 -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
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-saas-login"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-saas-login__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-saas-login__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view class="jfb-base-saas-login__body" :style="{
|
|
17
|
+
minHeight: layoutInfo.bodyMinHeightPx + 'px'
|
|
18
|
+
}">
|
|
19
|
+
<view class="login_form_wrap">
|
|
20
|
+
<xd-form
|
|
21
|
+
label-width="130"
|
|
22
|
+
label-align="right"
|
|
23
|
+
content-align="left"
|
|
24
|
+
:border="true"
|
|
25
|
+
paddingBetween="40"
|
|
26
|
+
>
|
|
27
|
+
<xd-form-item class="form-item"
|
|
28
|
+
label="手机号"
|
|
29
|
+
content-align="left"
|
|
30
|
+
>
|
|
31
|
+
<xd-form-input
|
|
32
|
+
v-model="accountForm.phone_number"
|
|
33
|
+
placeholder="请输入11位手机号"
|
|
34
|
+
/>
|
|
35
|
+
</xd-form-item>
|
|
36
|
+
<xd-form-item
|
|
37
|
+
label="验证码"
|
|
38
|
+
content-align="left"
|
|
39
|
+
>
|
|
40
|
+
<view class="flex align-center">
|
|
41
|
+
<xd-form-input
|
|
42
|
+
v-model="accountForm.verification_code"
|
|
43
|
+
placeholder="请输入验证码"
|
|
44
|
+
/>
|
|
45
|
+
<view
|
|
46
|
+
class="get_code"
|
|
47
|
+
@click="reGetCode"
|
|
48
|
+
:style="{ color: mainColor }"
|
|
49
|
+
>{{ time ? time + "秒后获取" : "获取验证码" }}
|
|
50
|
+
</view>
|
|
51
|
+
</view>
|
|
52
|
+
</xd-form-item>
|
|
53
|
+
<!-- <xd-form-item
|
|
54
|
+
label="密码"
|
|
55
|
+
content-align="left"
|
|
56
|
+
>
|
|
57
|
+
<xd-form-input
|
|
58
|
+
type="password"
|
|
59
|
+
v-model="accountForm.password"
|
|
60
|
+
placeholder="请输入密码"
|
|
61
|
+
/>
|
|
62
|
+
</xd-form-item> -->
|
|
63
|
+
</xd-form>
|
|
64
|
+
|
|
65
|
+
<view class="form-group" style="padding-bottom:0">
|
|
66
|
+
<xd-form-checkbox
|
|
67
|
+
class="xd-form-checkbox"
|
|
68
|
+
v-model="panel_2_checked"
|
|
69
|
+
mode="default"
|
|
70
|
+
multiple
|
|
71
|
+
:localdata="[{ value: 1, text: '登录即同意《隐私政策》《用户服务协议》' },]"
|
|
72
|
+
>
|
|
73
|
+
<template slot="a1">
|
|
74
|
+
<view>
|
|
75
|
+
<text>请阅读并同意</text>
|
|
76
|
+
<text @click.stop="handlePrivacy('privacy_privacy')" :style="{color: mainColor}">《隐私政策》</text>
|
|
77
|
+
<text @click.stop="handlePrivacy('privacy_service')" :style="{color: mainColor}">《用户服务协议》</text>
|
|
78
|
+
</view>
|
|
79
|
+
</template>
|
|
80
|
+
</xd-form-checkbox>
|
|
81
|
+
</view>
|
|
82
|
+
<view class="form-group">
|
|
83
|
+
<xd-button
|
|
84
|
+
style="flex: 1"
|
|
85
|
+
type="primary"
|
|
86
|
+
radius="10rpx"
|
|
87
|
+
:disabled="!panelTwoIsChecked"
|
|
88
|
+
@click="doLoginForm"
|
|
89
|
+
>登录</xd-button>
|
|
90
|
+
</view>
|
|
91
|
+
<!-- <view
|
|
92
|
+
class="forget_password"
|
|
93
|
+
@click="toValidPhone"
|
|
94
|
+
>忘记密码</view> -->
|
|
95
|
+
</view>
|
|
96
|
+
<view class="not_login">暂不登录,去逛逛</view>
|
|
97
|
+
</view>
|
|
98
|
+
</view>
|
|
99
|
+
</template>
|
|
100
|
+
|
|
101
|
+
<script>
|
|
102
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
103
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
104
|
+
import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
|
|
105
|
+
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
106
|
+
import XdForm from "@/components/XdForm/XdForm";
|
|
107
|
+
import XdFormItem from "@/components/XdFormItem/XdFormItem";
|
|
108
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
109
|
+
import JfbBaseSaasLoginMixin from "./JfbBaseSaasLoginMixin";
|
|
110
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
111
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
112
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
113
|
+
export default {
|
|
114
|
+
name: "JfbBaseSaasLogin",
|
|
115
|
+
components: {
|
|
116
|
+
XdFontIcon,
|
|
117
|
+
XdButton,
|
|
118
|
+
XdFormCheckbox,
|
|
119
|
+
XdFormInput,
|
|
120
|
+
XdForm,
|
|
121
|
+
XdFormItem,
|
|
122
|
+
},
|
|
123
|
+
mixins: [
|
|
124
|
+
componentsMixins, extsMixins, JfbBaseSaasLoginMixin
|
|
125
|
+
],
|
|
126
|
+
computed: {
|
|
127
|
+
panelTwoIsChecked() {
|
|
128
|
+
return this.panel_2_checked.includes(1);
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
data() {
|
|
132
|
+
return {
|
|
133
|
+
accountForm: {
|
|
134
|
+
phone_number: "",
|
|
135
|
+
password: "",
|
|
136
|
+
verification_code: ""
|
|
137
|
+
},
|
|
138
|
+
time: 0,
|
|
139
|
+
panel_2_checked: "",
|
|
140
|
+
redirect_url: "", //401回跳地址
|
|
141
|
+
|
|
142
|
+
//面板
|
|
143
|
+
callback_url: "", //面板配置登录完跳转地址
|
|
144
|
+
forget_pwd_url: "", //忘记密码跳转地址
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
watch: {
|
|
148
|
+
container(value) {
|
|
149
|
+
this.init(value)
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
created() {
|
|
153
|
+
this.init(this.container);
|
|
154
|
+
},
|
|
155
|
+
methods: {
|
|
156
|
+
onJfbLoad(options) {
|
|
157
|
+
this.redirect_url = options.redirect_url ? Base64.decode(options.redirect_url): '';
|
|
158
|
+
},
|
|
159
|
+
/**
|
|
160
|
+
* @description 监听事件变化
|
|
161
|
+
* @param container {object} 业务组件对象自己
|
|
162
|
+
*/
|
|
163
|
+
init(container) {
|
|
164
|
+
this.callback_url = getContainerPropsValue(container, "content.callback_url", {value: ''}).value;
|
|
165
|
+
this.forget_pwd_url = getContainerPropsValue(container, "content.forget_pwd_url", {value: ''}).value;
|
|
166
|
+
},
|
|
167
|
+
doLoginForm() {
|
|
168
|
+
const { phone_number, password } = this.accountForm;
|
|
169
|
+
let err_tip = "";
|
|
170
|
+
if (!phone_number) err_tip = "手机号不能为空";
|
|
171
|
+
else if (!verification_code) err_tip = "验证码不能为空";
|
|
172
|
+
if (err_tip) {
|
|
173
|
+
return uni.showToast({
|
|
174
|
+
title: err_tip,
|
|
175
|
+
icon: "none",
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
this.$xdShowLoading({})
|
|
180
|
+
jfbRootExec("accountLogin", {
|
|
181
|
+
vm: this,
|
|
182
|
+
data: {
|
|
183
|
+
// provider_id: this.pwdLogin.provider_id,
|
|
184
|
+
account_name: phone_number,
|
|
185
|
+
password: password,
|
|
186
|
+
},
|
|
187
|
+
})
|
|
188
|
+
.then((res) => {
|
|
189
|
+
this.$xdHideLoading()
|
|
190
|
+
// this.jfbAuthorize.setAllToken(res);
|
|
191
|
+
this.toHomeAfterLogin();
|
|
192
|
+
})
|
|
193
|
+
.catch(error => {
|
|
194
|
+
this.$xdHideLoading()
|
|
195
|
+
this.$xdLog.catch(error)
|
|
196
|
+
});
|
|
197
|
+
},
|
|
198
|
+
toHomeAfterLogin() {
|
|
199
|
+
let { redirect_url, callback_url } = this;
|
|
200
|
+
if (redirect_url) redirect_url = redirect_url;
|
|
201
|
+
this.$xdUniHelper.redirectTo({
|
|
202
|
+
url: redirect_url || callback_url || this.settings.index,
|
|
203
|
+
});
|
|
204
|
+
},
|
|
205
|
+
//跳转忘记密码
|
|
206
|
+
toValidPhone() {
|
|
207
|
+
this.$xdUniHelper.navigateTo({
|
|
208
|
+
url: this.forget_pwd_url,
|
|
209
|
+
});
|
|
210
|
+
},
|
|
211
|
+
handlePrivacy(code){
|
|
212
|
+
let params = `page_id=${this.pageAttr["page_id"]}`;
|
|
213
|
+
params = `${params}&container_id=${this.containerId}${code}`;
|
|
214
|
+
this.$xdUniHelper.navigateTo({
|
|
215
|
+
url: `/pages/content/content?${params}`
|
|
216
|
+
})
|
|
217
|
+
},
|
|
218
|
+
reGetCode() {
|
|
219
|
+
if (this.time > 0) return;
|
|
220
|
+
const { phone_number } = this.accountForm;
|
|
221
|
+
if (!/^1[3-9]\d{9}$/.test(phone_number)) {
|
|
222
|
+
uni.showToast({
|
|
223
|
+
title: "请填写正确的手机号",
|
|
224
|
+
icon: "none",
|
|
225
|
+
});
|
|
226
|
+
return false;
|
|
227
|
+
}
|
|
228
|
+
this.$xdShowLoading({});
|
|
229
|
+
jfbRootExec("sendMsg", {
|
|
230
|
+
vm: this,
|
|
231
|
+
data: {
|
|
232
|
+
phone_number,
|
|
233
|
+
biz_name: "login",
|
|
234
|
+
},
|
|
235
|
+
}).then((res) => {
|
|
236
|
+
this.$xdHideLoading();
|
|
237
|
+
this.time = 120;
|
|
238
|
+
this.interval = setInterval(() => {
|
|
239
|
+
this.time--;
|
|
240
|
+
if (this.time === 0) {
|
|
241
|
+
clearTimeout(this.interval);
|
|
242
|
+
}
|
|
243
|
+
}, 1000);
|
|
244
|
+
}).catch((error) => {
|
|
245
|
+
this.$xdHideLoading();
|
|
246
|
+
console.error(error);
|
|
247
|
+
this.$xdLog.catch(error)
|
|
248
|
+
});
|
|
249
|
+
},
|
|
250
|
+
onJfbScroll(options) {
|
|
251
|
+
console.log('event.onJfbScroll', options)
|
|
252
|
+
},
|
|
253
|
+
onJfbReachBottom(options) {
|
|
254
|
+
console.log('event.onJfbReachBottom', options)
|
|
255
|
+
},
|
|
256
|
+
onJfbShow(options) {
|
|
257
|
+
console.log('event.onJfbShow', options)
|
|
258
|
+
},
|
|
259
|
+
onJfbHide(options) {
|
|
260
|
+
console.log('event.onJfbHide', options)
|
|
261
|
+
},
|
|
262
|
+
onJfbBack(options) {
|
|
263
|
+
console.log('event.onJfbBack', options)
|
|
264
|
+
},
|
|
265
|
+
onJfbUpdate(...data) {
|
|
266
|
+
console.log('event.onJfbUpdate', data)
|
|
267
|
+
},
|
|
268
|
+
onJfbCustomEvent(options) {
|
|
269
|
+
console.log('event.onJfbReachBottom', options)
|
|
270
|
+
},
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
</script>
|
|
275
|
+
|
|
276
|
+
<style scoped lang="less">
|
|
277
|
+
@import "./JfbBaseSaasLoginLess.less";
|
|
278
|
+
|
|
279
|
+
.jfb-base-saas-login {
|
|
280
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
281
|
+
box-sizing: border-box;
|
|
282
|
+
&__body{
|
|
283
|
+
position: relative;
|
|
284
|
+
.not_login{
|
|
285
|
+
position: absolute;
|
|
286
|
+
bottom: 200rpx;
|
|
287
|
+
text-align: center;
|
|
288
|
+
width: 100%;
|
|
289
|
+
color: #FE7A63;
|
|
290
|
+
font-size: 24rpx;
|
|
291
|
+
}
|
|
292
|
+
.xd-form-checkbox {
|
|
293
|
+
/deep/ .checklist-content .checklist-text {
|
|
294
|
+
font-size: 26rpx !important;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
.xd-form-checkbox {
|
|
298
|
+
/deep/ .checklist-box {
|
|
299
|
+
margin: 0;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
.xd-form-checkbox {
|
|
303
|
+
/deep/ .checklist-group {
|
|
304
|
+
justify-content: center;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
.xd-form-checkbox {
|
|
308
|
+
/deep/ .checklist-text {
|
|
309
|
+
margin-left: unit(20,rpx) !important;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.form-group {
|
|
314
|
+
padding: 40rpx 70rpx;
|
|
315
|
+
}
|
|
316
|
+
.get_code {
|
|
317
|
+
color: @xd-base-color;
|
|
318
|
+
font-size: 24rpx;
|
|
319
|
+
margin-right: unit(20,rpx);
|
|
320
|
+
}
|
|
321
|
+
.form-item {
|
|
322
|
+
/deep/ .uni-forms-item {
|
|
323
|
+
padding-left: unit(30rpx) !important;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
/deep/ .uni-forms-item__label {
|
|
327
|
+
.label-text {
|
|
328
|
+
font-size: 26rpx;
|
|
329
|
+
color: #a6a6a6;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
/deep/ .uni-easyinput__placeholder-class {
|
|
333
|
+
font-size: 26rpx;
|
|
334
|
+
color: #d4d4d4;
|
|
335
|
+
}
|
|
336
|
+
.forget_password {
|
|
337
|
+
font-size: 24rpx;
|
|
338
|
+
color: #a6a6a6;
|
|
339
|
+
text-align: right;
|
|
340
|
+
margin: 20rpx 70rpx 0 0;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
.flex {
|
|
345
|
+
display: flex;
|
|
346
|
+
}
|
|
347
|
+
.flex-sub {
|
|
348
|
+
flex: 1;
|
|
349
|
+
}
|
|
350
|
+
.align-center {
|
|
351
|
+
align-items: center;
|
|
352
|
+
}
|
|
353
|
+
</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-login {
|
|
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-login {
|
|
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-login'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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: 'getByIdFilmSquate', //自定义方法名字(必选)
|
|
16
|
+
title: '获取电影广场列表',
|
|
17
|
+
path: '/api/account/film/list-film-square',
|
|
18
|
+
isRule: false,
|
|
19
|
+
params: {
|
|
20
|
+
last_key: ['当前页', 'Number', '必选'],
|
|
21
|
+
page_size: ['每页数量', 'Number', '必选'],
|
|
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', '必选'],
|
|
56
|
+
},
|
|
57
|
+
isConsole: true,
|
|
58
|
+
disabled: true,
|
|
59
|
+
},
|
|
60
|
+
];
|
|
@@ -0,0 +1,106 @@
|
|
|
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-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
|
+
},
|
|
56
|
+
].filter(i=>i)
|
|
57
|
+
},
|
|
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
|
+
],
|
|
106
|
+
};
|