jufubao-base 1.0.24 → 1.0.25
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/JfbBaseLogin/JfbBaseLogin.vue +10 -3
- package/src/components/JfbBaseLoginForgetPwd/Attr.js +0 -2
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +64 -4
- package/src/components/JfbBaseLoginSetPwd/Api.js +2 -2
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +34 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +65 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectMixin.js +0 -12
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +101 -4
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginMixin.js +0 -12
- package/src/components/JfbBasePhoneCollect/Attr.js +0 -154
- package/src/components/JfbBasePhoneLogin/Attr.js +0 -154
package/package.json
CHANGED
|
@@ -242,13 +242,20 @@
|
|
|
242
242
|
},
|
|
243
243
|
p_getListProviders(){
|
|
244
244
|
let providers = this.projectAttr.login_providers || '62fde99f2583a19c58fd937b,62fde9432583a19c58fd937a';
|
|
245
|
+
let {redirect_url, callback_url} = this;
|
|
246
|
+
try{
|
|
247
|
+
let redirectURL = new URL(decodeURIComponent(redirect_url));
|
|
248
|
+
redirect_url = redirectURL.href;
|
|
249
|
+
}catch(e){
|
|
250
|
+
redirect_url = location.origin + redirect_url;
|
|
251
|
+
}
|
|
245
252
|
jfbRootExec("listSiteProvider", {
|
|
246
253
|
vm: this,
|
|
247
254
|
data: {
|
|
248
255
|
providers: providers,
|
|
249
|
-
callback_url: this.
|
|
250
|
-
phone_number_login_url: this.phone_number_login_url,
|
|
251
|
-
phone_number_collect_url: this.phone_number_collect_url
|
|
256
|
+
callback_url: redirect_url || (location.origin + this.settings.index),
|
|
257
|
+
phone_number_login_url: location.origin + this.phone_number_login_url,
|
|
258
|
+
phone_number_collect_url: location.origin + this.phone_number_collect_url
|
|
252
259
|
}
|
|
253
260
|
}).then(res => {
|
|
254
261
|
if(res.quick_enabled){
|
|
@@ -12,11 +12,9 @@ export default {
|
|
|
12
12
|
value: '', //v-model
|
|
13
13
|
placeholder: '请输入客服电话号码',
|
|
14
14
|
classNmae: 'input40', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
15
|
-
disabled: true,
|
|
16
15
|
rules: [
|
|
17
16
|
{
|
|
18
17
|
required: true,
|
|
19
|
-
type: 'url',
|
|
20
18
|
message: '请输入客服电话号码',
|
|
21
19
|
trigger: 'blur'
|
|
22
20
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<view style="font-size:26rpx;color: #A6A6A6;">为了您的账号安全,请先验证手机号</view>
|
|
23
23
|
</view>
|
|
24
24
|
<xd-form
|
|
25
|
-
label-width="
|
|
25
|
+
label-width="126"
|
|
26
26
|
style="margin-top: 40rpx;"
|
|
27
27
|
label-align="right"
|
|
28
28
|
content-align="left"
|
|
@@ -79,10 +79,19 @@
|
|
|
79
79
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
80
80
|
import JfbBaseLoginForgetPwdMixin from "./JfbBaseLoginForgetPwdMixin";
|
|
81
81
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
82
|
+
import XdFormItem from "@/components/XdFormItem/XdFormItem";
|
|
83
|
+
import XdForm from "@/components/XdForm/XdForm";
|
|
84
|
+
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
85
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
86
|
+
|
|
82
87
|
export default {
|
|
83
88
|
name: "JfbBaseLoginForgetPwd",
|
|
84
89
|
components: {
|
|
85
|
-
XdFontIcon
|
|
90
|
+
XdFontIcon,
|
|
91
|
+
XdFormItem,
|
|
92
|
+
XdForm,
|
|
93
|
+
XdFormInput,
|
|
94
|
+
XdButton
|
|
86
95
|
},
|
|
87
96
|
mixins: [
|
|
88
97
|
JfbBaseLoginForgetPwdMixin
|
|
@@ -132,7 +141,7 @@
|
|
|
132
141
|
vm: this,
|
|
133
142
|
data: {
|
|
134
143
|
phone_number,
|
|
135
|
-
biz_name: "
|
|
144
|
+
biz_name: "passport-password"
|
|
136
145
|
}
|
|
137
146
|
}).then(res => {
|
|
138
147
|
this.time = 120;
|
|
@@ -178,8 +187,59 @@
|
|
|
178
187
|
@import "./JfbBaseLoginForgetPwdLess.less";
|
|
179
188
|
|
|
180
189
|
.jfb-base-login-forget-pwd {
|
|
181
|
-
&__body{
|
|
190
|
+
&__body {
|
|
191
|
+
.xd-form-checkbox {
|
|
192
|
+
/deep/ .checklist-content .checklist-text {
|
|
193
|
+
font-size: 26rpx !important;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.form-group {
|
|
198
|
+
padding: 20rpx 70rpx;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.get_code {
|
|
202
|
+
color: @xd-base-color;
|
|
203
|
+
font-size: 24rpx;
|
|
204
|
+
}
|
|
205
|
+
.panel-forget-password {
|
|
206
|
+
/deep/ .uni-forms-item__label {
|
|
207
|
+
.label-text {
|
|
208
|
+
font-size: 26rpx;
|
|
209
|
+
color: #A6A6A6;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
/deep/ .uni-easyinput__placeholder-class {
|
|
213
|
+
font-size: 26rpx;
|
|
214
|
+
color: #D4D4D4;
|
|
215
|
+
}
|
|
182
216
|
|
|
217
|
+
.forget_tip {
|
|
218
|
+
box-sizing: border-box;
|
|
219
|
+
width: 600rpx;
|
|
220
|
+
border-radius: 10rpx;
|
|
221
|
+
box-shadow: 0px 0px 20px 0px #00000019;
|
|
222
|
+
padding: 64rpx 46rpx;
|
|
223
|
+
margin: 200rpx auto;
|
|
224
|
+
text-align: center;
|
|
225
|
+
font-size: 32rpx;
|
|
226
|
+
|
|
227
|
+
.contact_phone {
|
|
228
|
+
color: @xd-base-color;
|
|
229
|
+
font-size: 56rpx;
|
|
230
|
+
margin: 20rpx 0 30rpx;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
183
234
|
}
|
|
184
235
|
}
|
|
236
|
+
.flex{
|
|
237
|
+
display: flex;
|
|
238
|
+
}
|
|
239
|
+
.flex-sub{
|
|
240
|
+
flex: 1;
|
|
241
|
+
}
|
|
242
|
+
.align-center{
|
|
243
|
+
align-items: center;
|
|
244
|
+
}
|
|
185
245
|
</style>
|
|
@@ -14,7 +14,7 @@ module.exports = [
|
|
|
14
14
|
{
|
|
15
15
|
mapFnName: 'setPwd',
|
|
16
16
|
title: '重新设置密码',
|
|
17
|
-
path: '/passport/v1/user/
|
|
17
|
+
path: '/passport/v1/user/update-password',
|
|
18
18
|
isRule: false,
|
|
19
19
|
data: {
|
|
20
20
|
password: ['密码', 'String', '必选'],
|
|
@@ -27,7 +27,7 @@ module.exports = [
|
|
|
27
27
|
{
|
|
28
28
|
mapFnName: 'resetPwd',
|
|
29
29
|
title: '重新设置密码',
|
|
30
|
-
path: '/passport/v1/user/
|
|
30
|
+
path: '/passport/v1/user/forget-password',
|
|
31
31
|
isRule: false,
|
|
32
32
|
data: {
|
|
33
33
|
password: ['密码', 'String', '必选'],
|
|
@@ -68,10 +68,20 @@
|
|
|
68
68
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
69
69
|
import JfbBaseLoginSetPwdMixin from "./JfbBaseLoginSetPwdMixin";
|
|
70
70
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
71
|
+
import XdFormItem from "@/components/XdFormItem/XdFormItem";
|
|
72
|
+
import XdForm from "@/components/XdForm/XdForm";
|
|
73
|
+
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
74
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
75
|
+
|
|
76
|
+
|
|
71
77
|
export default {
|
|
72
78
|
name: "JfbBaseLoginSetPwd",
|
|
73
79
|
components: {
|
|
74
|
-
XdFontIcon
|
|
80
|
+
XdFontIcon,
|
|
81
|
+
XdFormItem,
|
|
82
|
+
XdForm,
|
|
83
|
+
XdFormInput,
|
|
84
|
+
XdButton
|
|
75
85
|
},
|
|
76
86
|
mixins: [
|
|
77
87
|
JfbBaseLoginSetPwdMixin
|
|
@@ -155,8 +165,30 @@
|
|
|
155
165
|
@import "./JfbBaseLoginSetPwdLess.less";
|
|
156
166
|
|
|
157
167
|
.jfb-base-login-set-pwd {
|
|
158
|
-
&__body{
|
|
168
|
+
&__body {
|
|
169
|
+
.xd-form-checkbox {
|
|
170
|
+
/deep/ .checklist-content .checklist-text {
|
|
171
|
+
font-size: 26rpx !important;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.form-group {
|
|
176
|
+
padding: 20rpx 70rpx;
|
|
177
|
+
}
|
|
178
|
+
.panel-reset-password {
|
|
179
|
+
/deep/ .uni-forms-item__label {
|
|
180
|
+
width: 185rpx !important;
|
|
159
181
|
|
|
182
|
+
.label-text {
|
|
183
|
+
font-size: 26rpx;
|
|
184
|
+
color: #A6A6A6;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
/deep/ .uni-easyinput__placeholder-class {
|
|
188
|
+
font-size: 26rpx;
|
|
189
|
+
color: #D4D4D4;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
160
192
|
}
|
|
161
193
|
}
|
|
162
194
|
</style>
|
|
@@ -81,10 +81,21 @@
|
|
|
81
81
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
82
82
|
import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
|
|
83
83
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
84
|
+
import XdFormItem from "@/components/XdFormItem/XdFormItem";
|
|
85
|
+
import XdForm from "@/components/XdForm/XdForm";
|
|
86
|
+
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
87
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
88
|
+
import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox"
|
|
89
|
+
|
|
84
90
|
export default {
|
|
85
91
|
name: "JfbBasePhoneCollect",
|
|
86
92
|
components: {
|
|
87
|
-
XdFontIcon
|
|
93
|
+
XdFontIcon,
|
|
94
|
+
XdFormItem,
|
|
95
|
+
XdForm,
|
|
96
|
+
XdFormInput,
|
|
97
|
+
XdButton,
|
|
98
|
+
XdFormCheckbox
|
|
88
99
|
},
|
|
89
100
|
mixins: [
|
|
90
101
|
JfbBasePhoneCollectMixin
|
|
@@ -194,8 +205,60 @@
|
|
|
194
205
|
@import "./JfbBasePhoneCollectLess.less";
|
|
195
206
|
|
|
196
207
|
.jfb-base-phone-collect {
|
|
197
|
-
|
|
208
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
209
|
+
box-sizing: border-box;
|
|
198
210
|
|
|
211
|
+
&__body {
|
|
212
|
+
.xd-form-checkbox {
|
|
213
|
+
/deep/ .checklist-content .checklist-text {
|
|
214
|
+
font-size: 26rpx !important;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.form-group {
|
|
219
|
+
padding: 20rpx 70rpx;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.get_code {
|
|
223
|
+
color: @xd-base-color;
|
|
224
|
+
font-size: 24rpx;
|
|
225
|
+
}
|
|
226
|
+
.panel-login-password {
|
|
227
|
+
|
|
228
|
+
/deep/ .uni-forms-item__label {
|
|
229
|
+
.label-text {
|
|
230
|
+
font-size: 26rpx;
|
|
231
|
+
color: #A6A6A6;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/deep/ .uni-easyinput__placeholder-class {
|
|
236
|
+
font-size: 26rpx;
|
|
237
|
+
color: #D4D4D4;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
.not_login {
|
|
242
|
+
position: fixed;
|
|
243
|
+
width: 100%;
|
|
244
|
+
text-align: center;
|
|
245
|
+
bottom: 100rpx;
|
|
246
|
+
font-size: 24rpx;
|
|
247
|
+
color: #FE7A63;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
199
250
|
}
|
|
200
251
|
}
|
|
252
|
+
|
|
253
|
+
.flex {
|
|
254
|
+
display: flex;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.flex-sub {
|
|
258
|
+
flex: 1;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.align-center {
|
|
262
|
+
align-items: center;
|
|
263
|
+
}
|
|
201
264
|
</style>
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
//@AttrImport
|
|
4
|
-
import Attr from "./Attr";
|
|
5
|
-
//@EndAttrImport
|
|
6
|
-
|
|
7
3
|
import {getContainerPropsValue} from "@/utils/xd.base";
|
|
8
4
|
export default {
|
|
9
5
|
props: {
|
|
@@ -92,10 +88,6 @@ export default {
|
|
|
92
88
|
containerId: null, //容器ID
|
|
93
89
|
//#ifdef H5
|
|
94
90
|
|
|
95
|
-
//@AttrData
|
|
96
|
-
Attr:{}, //对外开发编辑属性
|
|
97
|
-
//@EndAttrData
|
|
98
|
-
|
|
99
91
|
active: false, //是否选择当前状态
|
|
100
92
|
isEditx: true, //当前为Editx模式
|
|
101
93
|
edit: false, //是否开启编辑模式
|
|
@@ -113,10 +105,6 @@ export default {
|
|
|
113
105
|
},
|
|
114
106
|
created() {
|
|
115
107
|
|
|
116
|
-
//@AttrDataCreated
|
|
117
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
118
|
-
//@EndAttrDataCreated
|
|
119
|
-
|
|
120
108
|
|
|
121
109
|
//设置插件cid
|
|
122
110
|
if (this.cid) {
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
</view>
|
|
61
61
|
<view class="form-group">
|
|
62
62
|
<xd-button
|
|
63
|
+
:disabled="!panelIsChecked"
|
|
63
64
|
style="flex: 1;"
|
|
64
65
|
type="primary"
|
|
65
66
|
radius="10rpx"
|
|
@@ -81,10 +82,21 @@
|
|
|
81
82
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
82
83
|
import JfbBasePhoneLoginMixin from "./JfbBasePhoneLoginMixin";
|
|
83
84
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
85
|
+
import XdFormItem from "@/components/XdFormItem/XdFormItem";
|
|
86
|
+
import XdForm from "@/components/XdForm/XdForm";
|
|
87
|
+
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
88
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
89
|
+
import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox"
|
|
90
|
+
|
|
84
91
|
export default {
|
|
85
92
|
name: "JfbBasePhoneLogin",
|
|
86
93
|
components: {
|
|
87
|
-
XdFontIcon
|
|
94
|
+
XdFontIcon,
|
|
95
|
+
XdForm,
|
|
96
|
+
XdFormItem,
|
|
97
|
+
XdFormInput,
|
|
98
|
+
XdButton,
|
|
99
|
+
XdFormCheckbox
|
|
88
100
|
},
|
|
89
101
|
mixins: [
|
|
90
102
|
JfbBasePhoneLoginMixin
|
|
@@ -167,7 +179,7 @@
|
|
|
167
179
|
},
|
|
168
180
|
}).then(res => {
|
|
169
181
|
let { callback_url } = this;
|
|
170
|
-
if(callback_url)
|
|
182
|
+
if(callback_url) callback_url = decodeURIComponent(callback_url);
|
|
171
183
|
this.$xdUniHelper.redirectTo({
|
|
172
184
|
url: callback_url || this.settings.index
|
|
173
185
|
})
|
|
@@ -197,8 +209,93 @@
|
|
|
197
209
|
@import "./JfbBasePhoneLoginLess.less";
|
|
198
210
|
|
|
199
211
|
.jfb-base-phone-login {
|
|
200
|
-
&__body{
|
|
201
|
-
|
|
212
|
+
&__body {
|
|
213
|
+
.xd-form-checkbox {
|
|
214
|
+
/deep/ .checklist-content .checklist-text {
|
|
215
|
+
font-size: 26rpx !important;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.form-group {
|
|
220
|
+
padding: 20rpx 70rpx;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.get_code {
|
|
224
|
+
color: @xd-base-color;
|
|
225
|
+
font-size: 24rpx;
|
|
226
|
+
}
|
|
227
|
+
.panel-login-password {
|
|
228
|
+
/deep/ .uni-forms-item__label {
|
|
229
|
+
.label-text {
|
|
230
|
+
font-size: 26rpx;
|
|
231
|
+
color: #A6A6A6;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/deep/ .uni-easyinput__placeholder-class {
|
|
236
|
+
font-size: 26rpx;
|
|
237
|
+
color: #D4D4D4;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.phone-login-type {
|
|
241
|
+
display: flex;
|
|
242
|
+
color: #808080;
|
|
243
|
+
font-size: 32rpx;
|
|
244
|
+
padding: 20rpx 70rpx;
|
|
245
|
+
align-items: center;
|
|
246
|
+
|
|
247
|
+
._item {
|
|
248
|
+
margin: 0 30rpx;
|
|
249
|
+
position: relative;
|
|
250
|
+
line-height: 2;
|
|
251
|
+
|
|
252
|
+
&:first-child {
|
|
253
|
+
margin-left: 0;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&.active {
|
|
257
|
+
color: #383838;
|
|
258
|
+
font-size: 36rpx;
|
|
259
|
+
|
|
260
|
+
text {
|
|
261
|
+
position: absolute;
|
|
262
|
+
height: 6rpx;
|
|
263
|
+
width: 90rpx;
|
|
264
|
+
border-radius: 6rpx;
|
|
265
|
+
left: 50%;
|
|
266
|
+
bottom: 0;
|
|
267
|
+
transform: translateX(-50%);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.forget_password {
|
|
274
|
+
font-size: 24rpx;
|
|
275
|
+
color: #A6A6A6;
|
|
276
|
+
text-align: right;
|
|
277
|
+
margin: 20rpx 70rpx 0 0;
|
|
278
|
+
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.not_login {
|
|
282
|
+
position: fixed;
|
|
283
|
+
width: 100%;
|
|
284
|
+
text-align: center;
|
|
285
|
+
bottom: 100rpx;
|
|
286
|
+
font-size: 24rpx;
|
|
287
|
+
color: #FE7A63;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
202
290
|
}
|
|
203
291
|
}
|
|
292
|
+
.flex{
|
|
293
|
+
display: flex;
|
|
294
|
+
}
|
|
295
|
+
.flex-sub{
|
|
296
|
+
flex: 1;
|
|
297
|
+
}
|
|
298
|
+
.align-center{
|
|
299
|
+
align-items: center;
|
|
300
|
+
}
|
|
204
301
|
</style>
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
//@AttrImport
|
|
4
|
-
import Attr from "./Attr";
|
|
5
|
-
//@EndAttrImport
|
|
6
|
-
|
|
7
3
|
import {getContainerPropsValue} from "@/utils/xd.base";
|
|
8
4
|
export default {
|
|
9
5
|
props: {
|
|
@@ -92,10 +88,6 @@ export default {
|
|
|
92
88
|
containerId: null, //容器ID
|
|
93
89
|
//#ifdef H5
|
|
94
90
|
|
|
95
|
-
//@AttrData
|
|
96
|
-
Attr:{}, //对外开发编辑属性
|
|
97
|
-
//@EndAttrData
|
|
98
|
-
|
|
99
91
|
active: false, //是否选择当前状态
|
|
100
92
|
isEditx: true, //当前为Editx模式
|
|
101
93
|
edit: false, //是否开启编辑模式
|
|
@@ -113,10 +105,6 @@ export default {
|
|
|
113
105
|
},
|
|
114
106
|
created() {
|
|
115
107
|
|
|
116
|
-
//@AttrDataCreated
|
|
117
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
118
|
-
//@EndAttrDataCreated
|
|
119
|
-
|
|
120
108
|
|
|
121
109
|
//设置插件cid
|
|
122
110
|
if (this.cid) {
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
style: [],
|
|
5
|
-
advanced: [],
|
|
6
|
-
content: [
|
|
7
|
-
//文本信息
|
|
8
|
-
{
|
|
9
|
-
label: '标题名称:', //label
|
|
10
|
-
ele: 'el-input', //package 名称
|
|
11
|
-
type: 'text',
|
|
12
|
-
valueKey: 'title', //form[valueKey]
|
|
13
|
-
value: '', //v-model
|
|
14
|
-
placeholder: '请输入标题名称',
|
|
15
|
-
classNmae: 'input40', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
16
|
-
disabled: true,
|
|
17
|
-
rules: [
|
|
18
|
-
{
|
|
19
|
-
required: true,
|
|
20
|
-
type: 'url',
|
|
21
|
-
message: '请输入域名地址',
|
|
22
|
-
trigger: 'blur'
|
|
23
|
-
},
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
//远程获取内容选择
|
|
28
|
-
{
|
|
29
|
-
label: '跳转路径:', //label
|
|
30
|
-
ele: 'xd-select-list', //package 名称
|
|
31
|
-
valueKey: 'jumpToLink', //form[valueKey]
|
|
32
|
-
value: '', //v-model
|
|
33
|
-
placeholder: '请选择加盟商',
|
|
34
|
-
multiple: false, //多选
|
|
35
|
-
collapseTags: false,
|
|
36
|
-
remoteApi: '/api/editx/pages',
|
|
37
|
-
remote: true,
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
//本地固定内容选择
|
|
41
|
-
{
|
|
42
|
-
label: '选择内容:', //label
|
|
43
|
-
ele: 'xd-select-list', //package 名称
|
|
44
|
-
valueKey: 'select', //form[valueKey]
|
|
45
|
-
value: '', //v-model
|
|
46
|
-
placeholder: '请选择选择内容',
|
|
47
|
-
multiple: false, //多选
|
|
48
|
-
remote: false,
|
|
49
|
-
list: [
|
|
50
|
-
{"label": "订单详情", "value": '/main/order/order'},
|
|
51
|
-
{"label": "购物车详情", "value": '/main/cart/cart'},
|
|
52
|
-
{"label": "商品详情", "value": '/main/product/product'},
|
|
53
|
-
{"label": "商品分类", "value": '/main/producttype/producttype'},
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
//本地固定单选选择
|
|
58
|
-
{
|
|
59
|
-
label: '单选列表(固定):', //label
|
|
60
|
-
ele: 'xd-radio', //package 名称
|
|
61
|
-
valueKey: 'radio_status_list', //form[valueKey]
|
|
62
|
-
value: 6, //v-model
|
|
63
|
-
disabled: true,
|
|
64
|
-
rules: [
|
|
65
|
-
{required: true, message: '请选择', trigger: ['blur', 'change']}
|
|
66
|
-
],
|
|
67
|
-
list: [
|
|
68
|
-
{"label": "万利达集团", "value": 4},
|
|
69
|
-
{"label": "中国联通", "value": 5},
|
|
70
|
-
{"label": "中国移动", "value": 6},
|
|
71
|
-
{"label": "味多美", "value": 7},
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
//远程固定单选选择
|
|
76
|
-
{
|
|
77
|
-
label: '单选列表(固定):', //label
|
|
78
|
-
ele: 'xd-radio', //package 名称
|
|
79
|
-
valueKey: 'radio_status_list', //form[valueKey]
|
|
80
|
-
value: 6, //v-model
|
|
81
|
-
disabled: false,
|
|
82
|
-
remoteApi: '/api/editx/pages',
|
|
83
|
-
remote: true,
|
|
84
|
-
rules: [
|
|
85
|
-
{required: true, message: '请选择', trigger: ['blur', 'change']}
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
//本地固定多选选择
|
|
90
|
-
{
|
|
91
|
-
label: '多选列表(固定):', //label
|
|
92
|
-
ele: 'xd-check', //package 名称
|
|
93
|
-
valueKey: 'xd-check_list', //form[valueKey]
|
|
94
|
-
value: 6, //v-model
|
|
95
|
-
disabled: true,
|
|
96
|
-
rules: [
|
|
97
|
-
{required: true, message: '请选择', trigger: ['blur', 'change']}
|
|
98
|
-
],
|
|
99
|
-
list: [
|
|
100
|
-
{"label": "万利达集团", "value": 4},
|
|
101
|
-
{"label": "中国联通", "value": 5},
|
|
102
|
-
{"label": "中国移动", "value": 6},
|
|
103
|
-
{"label": "味多美", "value": 7},
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
//远程多选选选择
|
|
108
|
-
{
|
|
109
|
-
label: '多选列表:', //label
|
|
110
|
-
ele: 'xd-check', //package 名称
|
|
111
|
-
valueKey: 'xd-check_remote-list', //form[valueKey]
|
|
112
|
-
value: 6, //v-model
|
|
113
|
-
disabled: false,
|
|
114
|
-
remoteApi: '/api/editx/pages',
|
|
115
|
-
remote: true,
|
|
116
|
-
rules: [
|
|
117
|
-
{required: true, message: '请选择', trigger: ['blur', 'change']}
|
|
118
|
-
],
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
//状态(二选一)单选选择
|
|
122
|
-
{
|
|
123
|
-
label: '状态(二选一):', //label
|
|
124
|
-
ele: 'xd-radio-status', //package 名称
|
|
125
|
-
valueKey: 'radio_status', //form[valueKey]
|
|
126
|
-
value: 'Y', //v-model
|
|
127
|
-
isall: true,
|
|
128
|
-
disabled: true,
|
|
129
|
-
backValueType: '', //返回值类型 1=>返回(Y,N)2=> [true|false] 3=>[1,0] 4=>[1,2]
|
|
130
|
-
placeholder: '请选择',
|
|
131
|
-
list: 'status', //status=>状态 best=>推荐 associate=>关联 yes=>是否 open=> 是否开启 check=>审核
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
//文本信息
|
|
135
|
-
{
|
|
136
|
-
label: '标题名称:', //label
|
|
137
|
-
ele: 'el-input', //package 名称
|
|
138
|
-
type: 'text',
|
|
139
|
-
valueKey: 'title', //form[valueKey]
|
|
140
|
-
value: '', //v-model
|
|
141
|
-
placeholder: '请输入标题名称',
|
|
142
|
-
classNmae: 'input40', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
143
|
-
disabled: true,
|
|
144
|
-
rules: [
|
|
145
|
-
{
|
|
146
|
-
required: true,
|
|
147
|
-
type: 'url',
|
|
148
|
-
message: '请输入域名地址',
|
|
149
|
-
trigger: 'blur'
|
|
150
|
-
},
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
],
|
|
154
|
-
}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
style: [],
|
|
5
|
-
advanced: [],
|
|
6
|
-
content: [
|
|
7
|
-
//文本信息
|
|
8
|
-
{
|
|
9
|
-
label: '标题名称:', //label
|
|
10
|
-
ele: 'el-input', //package 名称
|
|
11
|
-
type: 'text',
|
|
12
|
-
valueKey: 'title', //form[valueKey]
|
|
13
|
-
value: '', //v-model
|
|
14
|
-
placeholder: '请输入标题名称',
|
|
15
|
-
classNmae: 'input40', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
16
|
-
disabled: true,
|
|
17
|
-
rules: [
|
|
18
|
-
{
|
|
19
|
-
required: true,
|
|
20
|
-
type: 'url',
|
|
21
|
-
message: '请输入域名地址',
|
|
22
|
-
trigger: 'blur'
|
|
23
|
-
},
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
//远程获取内容选择
|
|
28
|
-
{
|
|
29
|
-
label: '跳转路径:', //label
|
|
30
|
-
ele: 'xd-select-list', //package 名称
|
|
31
|
-
valueKey: 'jumpToLink', //form[valueKey]
|
|
32
|
-
value: '', //v-model
|
|
33
|
-
placeholder: '请选择加盟商',
|
|
34
|
-
multiple: false, //多选
|
|
35
|
-
collapseTags: false,
|
|
36
|
-
remoteApi: '/api/editx/pages',
|
|
37
|
-
remote: true,
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
//本地固定内容选择
|
|
41
|
-
{
|
|
42
|
-
label: '选择内容:', //label
|
|
43
|
-
ele: 'xd-select-list', //package 名称
|
|
44
|
-
valueKey: 'select', //form[valueKey]
|
|
45
|
-
value: '', //v-model
|
|
46
|
-
placeholder: '请选择选择内容',
|
|
47
|
-
multiple: false, //多选
|
|
48
|
-
remote: false,
|
|
49
|
-
list: [
|
|
50
|
-
{"label": "订单详情", "value": '/main/order/order'},
|
|
51
|
-
{"label": "购物车详情", "value": '/main/cart/cart'},
|
|
52
|
-
{"label": "商品详情", "value": '/main/product/product'},
|
|
53
|
-
{"label": "商品分类", "value": '/main/producttype/producttype'},
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
//本地固定单选选择
|
|
58
|
-
{
|
|
59
|
-
label: '单选列表(固定):', //label
|
|
60
|
-
ele: 'xd-radio', //package 名称
|
|
61
|
-
valueKey: 'radio_status_list', //form[valueKey]
|
|
62
|
-
value: 6, //v-model
|
|
63
|
-
disabled: true,
|
|
64
|
-
rules: [
|
|
65
|
-
{required: true, message: '请选择', trigger: ['blur', 'change']}
|
|
66
|
-
],
|
|
67
|
-
list: [
|
|
68
|
-
{"label": "万利达集团", "value": 4},
|
|
69
|
-
{"label": "中国联通", "value": 5},
|
|
70
|
-
{"label": "中国移动", "value": 6},
|
|
71
|
-
{"label": "味多美", "value": 7},
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
//远程固定单选选择
|
|
76
|
-
{
|
|
77
|
-
label: '单选列表(固定):', //label
|
|
78
|
-
ele: 'xd-radio', //package 名称
|
|
79
|
-
valueKey: 'radio_status_list', //form[valueKey]
|
|
80
|
-
value: 6, //v-model
|
|
81
|
-
disabled: false,
|
|
82
|
-
remoteApi: '/api/editx/pages',
|
|
83
|
-
remote: true,
|
|
84
|
-
rules: [
|
|
85
|
-
{required: true, message: '请选择', trigger: ['blur', 'change']}
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
//本地固定多选选择
|
|
90
|
-
{
|
|
91
|
-
label: '多选列表(固定):', //label
|
|
92
|
-
ele: 'xd-check', //package 名称
|
|
93
|
-
valueKey: 'xd-check_list', //form[valueKey]
|
|
94
|
-
value: 6, //v-model
|
|
95
|
-
disabled: true,
|
|
96
|
-
rules: [
|
|
97
|
-
{required: true, message: '请选择', trigger: ['blur', 'change']}
|
|
98
|
-
],
|
|
99
|
-
list: [
|
|
100
|
-
{"label": "万利达集团", "value": 4},
|
|
101
|
-
{"label": "中国联通", "value": 5},
|
|
102
|
-
{"label": "中国移动", "value": 6},
|
|
103
|
-
{"label": "味多美", "value": 7},
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
//远程多选选选择
|
|
108
|
-
{
|
|
109
|
-
label: '多选列表:', //label
|
|
110
|
-
ele: 'xd-check', //package 名称
|
|
111
|
-
valueKey: 'xd-check_remote-list', //form[valueKey]
|
|
112
|
-
value: 6, //v-model
|
|
113
|
-
disabled: false,
|
|
114
|
-
remoteApi: '/api/editx/pages',
|
|
115
|
-
remote: true,
|
|
116
|
-
rules: [
|
|
117
|
-
{required: true, message: '请选择', trigger: ['blur', 'change']}
|
|
118
|
-
],
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
//状态(二选一)单选选择
|
|
122
|
-
{
|
|
123
|
-
label: '状态(二选一):', //label
|
|
124
|
-
ele: 'xd-radio-status', //package 名称
|
|
125
|
-
valueKey: 'radio_status', //form[valueKey]
|
|
126
|
-
value: 'Y', //v-model
|
|
127
|
-
isall: true,
|
|
128
|
-
disabled: true,
|
|
129
|
-
backValueType: '', //返回值类型 1=>返回(Y,N)2=> [true|false] 3=>[1,0] 4=>[1,2]
|
|
130
|
-
placeholder: '请选择',
|
|
131
|
-
list: 'status', //status=>状态 best=>推荐 associate=>关联 yes=>是否 open=> 是否开启 check=>审核
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
//文本信息
|
|
135
|
-
{
|
|
136
|
-
label: '标题名称:', //label
|
|
137
|
-
ele: 'el-input', //package 名称
|
|
138
|
-
type: 'text',
|
|
139
|
-
valueKey: 'title', //form[valueKey]
|
|
140
|
-
value: '', //v-model
|
|
141
|
-
placeholder: '请输入标题名称',
|
|
142
|
-
classNmae: 'input40', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
143
|
-
disabled: true,
|
|
144
|
-
rules: [
|
|
145
|
-
{
|
|
146
|
-
required: true,
|
|
147
|
-
type: 'url',
|
|
148
|
-
message: '请输入域名地址',
|
|
149
|
-
trigger: 'blur'
|
|
150
|
-
},
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
],
|
|
154
|
-
}
|