jufubao-base 1.0.20 → 1.0.21
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/JfbBaseAfterOrderList/Api.js +60 -0
- package/src/components/JfbBaseAfterOrderList/Attr.js +154 -0
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +203 -0
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +57 -0
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListMixin.js +222 -0
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +20 -0
- package/src/components/JfbBaseBlock/JfbBaseBlockMixin.js +41 -3
- package/src/components/JfbBaseCard/JfbBaseCardMixin.js +41 -3
- package/src/components/JfbBaseCardBind/JfbBaseCardBindMixin.js +41 -3
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetailMixin.js +41 -3
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfoMixin.js +41 -3
- package/src/components/JfbBaseCardMy/JfbBaseCardMyMixin.js +41 -3
- package/src/components/JfbBaseCardShift/JfbBaseCardShiftMixin.js +41 -3
- package/src/components/JfbBaseFooter/JfbBaseFooterMixin.js +41 -3
- package/src/components/JfbBaseLine/JfbBaseLineMixin.js +41 -3
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +172 -51
- package/src/components/JfbBaseLogin/JfbBaseLoginMixin.js +41 -3
- package/src/components/JfbBaseMy/Api.js +60 -0
- package/src/components/JfbBaseMy/Attr.js +54 -0
- package/src/components/JfbBaseMy/JfbBaseMy.vue +262 -0
- package/src/components/JfbBaseMy/JfbBaseMyLess.less +57 -0
- package/src/components/JfbBaseMy/JfbBaseMyMixin.js +222 -0
- package/src/components/JfbBaseOrderList/Api.js +60 -0
- package/src/components/JfbBaseOrderList/Attr.js +154 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +285 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +57 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderListMixin.js +222 -0
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdMixin.js +41 -3
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +51 -1
- package/src/components/JfbBaseSuccess/JfbBaseSuccessMixin.js +41 -3
- package/src/components/JfbBaseTestApi/JfbBaseTestApiMixin.js +41 -3
- package/src/components/JfbBaseTestBody/JfbBaseTestBodyMixin.js +36 -2
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottomMixin.js +36 -2
- package/src/components/JfbBaseTestTop/JfbBaseTestTopMixin.js +36 -2
|
@@ -93,16 +93,31 @@ export default {
|
|
|
93
93
|
//#ifdef H5
|
|
94
94
|
|
|
95
95
|
//@AttrData
|
|
96
|
-
Attr, //对外开发编辑属性
|
|
96
|
+
Attr:{}, //对外开发编辑属性
|
|
97
97
|
//@EndAttrData
|
|
98
98
|
|
|
99
99
|
active: false, //是否选择当前状态
|
|
100
100
|
isEditx: true, //当前为Editx模式
|
|
101
101
|
edit: false, //是否开启编辑模式
|
|
102
102
|
// #endif
|
|
103
|
+
|
|
104
|
+
//风格键
|
|
105
|
+
mainColor: '',
|
|
106
|
+
successColor: '',
|
|
107
|
+
warningColor: '',
|
|
108
|
+
subMainColor: '',
|
|
109
|
+
infoColor: '',
|
|
110
|
+
defaultColor: '',
|
|
111
|
+
dangerColor: ''
|
|
103
112
|
}
|
|
104
113
|
},
|
|
105
114
|
created() {
|
|
115
|
+
|
|
116
|
+
//@AttrDataCreated
|
|
117
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
118
|
+
//@EndAttrDataCreated
|
|
119
|
+
|
|
120
|
+
|
|
106
121
|
//设置插件cid
|
|
107
122
|
if (this.cid) {
|
|
108
123
|
this.containerId = this.cid;
|
|
@@ -110,6 +125,9 @@ export default {
|
|
|
110
125
|
this.containerId = this.$xdUniHelper.randomChar(20);
|
|
111
126
|
}
|
|
112
127
|
|
|
128
|
+
//初始化风格
|
|
129
|
+
this.initThemesToData();
|
|
130
|
+
|
|
113
131
|
//#ifdef H5
|
|
114
132
|
//监听用户点击状态显示虚框
|
|
115
133
|
XdBus.addEvent('select', ({containerId}) => {
|
|
@@ -132,6 +150,26 @@ export default {
|
|
|
132
150
|
onCheck() {
|
|
133
151
|
},
|
|
134
152
|
|
|
153
|
+
/***
|
|
154
|
+
* @description 业务组件风格map到data中
|
|
155
|
+
*/
|
|
156
|
+
initThemesToData() {
|
|
157
|
+
Object.keys(this.styles).map(key => {
|
|
158
|
+
let k = key.replace('$', '');
|
|
159
|
+
if (this[k] !== undefined) this[k] = this.styles[key];
|
|
160
|
+
});
|
|
161
|
+
console.log('initThemesToData',this)
|
|
162
|
+
},
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @description 其子级插件获取当前插件的业务组件风格列表
|
|
166
|
+
* @returns {*}
|
|
167
|
+
*/
|
|
168
|
+
getParentThemes(){
|
|
169
|
+
return this.styles;
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
|
|
135
173
|
//#ifdef H5
|
|
136
174
|
/**
|
|
137
175
|
* @description 点击删除操作按钮
|
|
@@ -153,8 +191,8 @@ export default {
|
|
|
153
191
|
//#ifdef H5
|
|
154
192
|
if (this.active) return;
|
|
155
193
|
this.active = true;
|
|
156
|
-
let AttrObj = this.$xdUniHelper.checkVarType(Attr) === 'object' ?
|
|
157
|
-
Attr: { style: [], advanced: [], content: []};
|
|
194
|
+
let AttrObj = this.$xdUniHelper.checkVarType(this.Attr) === 'object' ?
|
|
195
|
+
this.Attr : { style: [], advanced: [], content: []};
|
|
158
196
|
console.log('handleSelect.Attr', AttrObj);
|
|
159
197
|
|
|
160
198
|
//设置已绑定数据
|
|
@@ -14,118 +14,241 @@
|
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-login__body">
|
|
17
|
-
<view @click="onJfbBack">返回</view>
|
|
18
17
|
<view v-if="showStep == 1" class="panel-login-auth">
|
|
19
18
|
<view class="logo-wrap">
|
|
20
|
-
<image
|
|
19
|
+
<image
|
|
20
|
+
mode="aspectFit"
|
|
21
|
+
src="https://sandbox-jfb-public-images-common.oss-cn-qingdao.aliyuncs.com/uploads/20220824/3580302c0264f06ba7739f245339249b.png"
|
|
22
|
+
/>
|
|
21
23
|
</view>
|
|
22
24
|
<view class="login_types">
|
|
23
|
-
<!--#ifdef H5-->
|
|
24
|
-
<xd-button v-if="hasAuthLogin" type="primary" radius="10rpx" @click="doLoginAuth">快捷登录</xd-button>
|
|
25
|
-
<!-- #endif -->
|
|
26
25
|
<!--#ifdef MP-->
|
|
27
|
-
<xd-button
|
|
26
|
+
<xd-button
|
|
27
|
+
v-if="hasAuthLogin"
|
|
28
|
+
type="primary"
|
|
29
|
+
radius="10rpx"
|
|
30
|
+
open-type="getUserInfo"
|
|
31
|
+
@getuserinfo="getuserinfo"
|
|
32
|
+
>快捷登录</xd-button>
|
|
28
33
|
<!-- #endif -->
|
|
29
|
-
<xd-button
|
|
34
|
+
<xd-button
|
|
35
|
+
v-if="hasAccountLogin"
|
|
36
|
+
style="margin-top: 40rpx"
|
|
30
37
|
:disabled="!panelIsChecked"
|
|
31
38
|
type="primary"
|
|
32
|
-
radius="10rpx"
|
|
33
|
-
|
|
39
|
+
radius="10rpx"
|
|
40
|
+
@click="doLoginAccount"
|
|
41
|
+
>账号登录</xd-button>
|
|
34
42
|
<view class="protocol">
|
|
35
|
-
<xd-form-checkbox
|
|
36
|
-
|
|
43
|
+
<xd-form-checkbox
|
|
44
|
+
class="xd-form-checkbox"
|
|
45
|
+
v-model="panel_1_checked"
|
|
46
|
+
mode="default"
|
|
47
|
+
multiple
|
|
48
|
+
:localdata="[{value: 1, text: '请阅读并同意《隐私政策》《用户服务协议》'}]"
|
|
49
|
+
></xd-form-checkbox>
|
|
37
50
|
</view>
|
|
38
51
|
</view>
|
|
39
52
|
</view>
|
|
40
|
-
<view
|
|
53
|
+
<view
|
|
54
|
+
v-if="showStep == 2"
|
|
55
|
+
class="panel-login-password"
|
|
56
|
+
>
|
|
41
57
|
<view class="phone-login-type">
|
|
42
|
-
<view
|
|
43
|
-
|
|
58
|
+
<view
|
|
59
|
+
v-if="phoneLogin"
|
|
60
|
+
class="_item"
|
|
61
|
+
:class="{active:accountLoginType=='phone'}"
|
|
62
|
+
@click="setAccountLoginType('phone')"
|
|
63
|
+
>验证码登录<text :style="{background: mainColor}"></text></view>
|
|
64
|
+
<view
|
|
65
|
+
v-if="pwdLogin"
|
|
66
|
+
class="_item"
|
|
67
|
+
:class="{active:accountLoginType=='pwd'}"
|
|
68
|
+
@click="setAccountLoginType('pwd')"
|
|
69
|
+
>密码登录<text :style="{background: mainColor}"></text></view>
|
|
44
70
|
</view>
|
|
45
71
|
|
|
46
72
|
<xd-form label-width="128"
|
|
47
73
|
style="margin-top: 40rpx;"
|
|
48
74
|
label-align="right"
|
|
49
75
|
content-align="left"
|
|
50
|
-
:border="true"
|
|
51
|
-
|
|
52
|
-
|
|
76
|
+
:border="true"
|
|
77
|
+
>
|
|
78
|
+
<xd-form-item
|
|
79
|
+
label="手机号"
|
|
80
|
+
content-align="left"
|
|
81
|
+
>
|
|
82
|
+
<xd-form-input
|
|
83
|
+
v-model="accountForm.phone_number"
|
|
84
|
+
placeholder="请输入11位手机号"
|
|
85
|
+
/>
|
|
53
86
|
</xd-form-item>
|
|
54
|
-
|
|
55
|
-
|
|
87
|
+
<xd-form-item
|
|
88
|
+
v-if="accountLoginType=='phone'"
|
|
89
|
+
label="验证码"
|
|
90
|
+
content-align="left"
|
|
91
|
+
>
|
|
56
92
|
<view class="flex align-center">
|
|
57
|
-
<xd-form-input
|
|
58
|
-
|
|
93
|
+
<xd-form-input
|
|
94
|
+
v-model="accountForm.verification_code"
|
|
95
|
+
placeholder="请输入验证码"
|
|
96
|
+
/>
|
|
97
|
+
<view
|
|
98
|
+
class="get_code"
|
|
99
|
+
@click="reGetCode"
|
|
100
|
+
:style="{color: mainColor}"
|
|
101
|
+
>{{time ? time + '秒后获取':'获取验证码'}}</view>
|
|
59
102
|
</view>
|
|
60
103
|
</xd-form-item>
|
|
61
|
-
<xd-form-item
|
|
62
|
-
|
|
104
|
+
<xd-form-item
|
|
105
|
+
v-if="accountLoginType=='pwd'"
|
|
106
|
+
label="密码"
|
|
107
|
+
content-align="left"
|
|
108
|
+
>
|
|
109
|
+
<xd-form-input
|
|
110
|
+
type="password"
|
|
111
|
+
v-model="accountForm.password"
|
|
112
|
+
placeholder="请输入密码"
|
|
113
|
+
/>
|
|
63
114
|
</xd-form-item>
|
|
64
115
|
</xd-form>
|
|
65
116
|
<view class="form-group">
|
|
66
|
-
<xd-form-checkbox
|
|
117
|
+
<xd-form-checkbox
|
|
118
|
+
class="xd-form-checkbox"
|
|
119
|
+
v-model="panel_1_checked"
|
|
120
|
+
mode="default"
|
|
121
|
+
multiple
|
|
122
|
+
:localdata="[{value: 1, text: '登录即同意《隐私政策》《用户服务协议》'}]"
|
|
123
|
+
></xd-form-checkbox>
|
|
67
124
|
</view>
|
|
68
125
|
<view class="form-group">
|
|
69
|
-
<xd-button
|
|
126
|
+
<xd-button
|
|
127
|
+
style="flex: 1;"
|
|
128
|
+
type="primary"
|
|
129
|
+
radius="10rpx"
|
|
130
|
+
@click="doLoginForm"
|
|
131
|
+
>登录</xd-button>
|
|
70
132
|
</view>
|
|
71
|
-
<view
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
133
|
+
<view
|
|
134
|
+
v-if="accountLoginType=='pwd'"
|
|
135
|
+
class="forget_password"
|
|
136
|
+
@click="toValidPhone"
|
|
137
|
+
>忘记密码</view>
|
|
138
|
+
<view
|
|
139
|
+
class="not_login"
|
|
140
|
+
:style="{color: mainColor}"
|
|
141
|
+
@click="toNotLoginHome"
|
|
142
|
+
>暂不登录,去逛逛</view>
|
|
75
143
|
</view>
|
|
76
|
-
<view
|
|
144
|
+
<view
|
|
145
|
+
v-if="showStep == 3"
|
|
146
|
+
class="panel-forget-password"
|
|
147
|
+
>
|
|
77
148
|
<view class="form-group">
|
|
78
149
|
<view style="font-size: 36rpx;">请输入手机号</view>
|
|
79
150
|
<view style="font-size:26rpx;color: #A6A6A6;">为了您的账号安全,请先验证手机号</view>
|
|
80
151
|
</view>
|
|
81
|
-
<xd-form
|
|
152
|
+
<xd-form
|
|
153
|
+
label-width="120"
|
|
82
154
|
style="margin-top: 40rpx;"
|
|
83
|
-
label-align="right"
|
|
84
|
-
|
|
85
|
-
|
|
155
|
+
label-align="right"
|
|
156
|
+
content-align="left"
|
|
157
|
+
:border="true"
|
|
158
|
+
>
|
|
159
|
+
<xd-form-item
|
|
160
|
+
label="手机号"
|
|
161
|
+
content-align="left"
|
|
162
|
+
>
|
|
163
|
+
<xd-form-input
|
|
164
|
+
v-model="resetForm.phone_number"
|
|
165
|
+
placeholder="请输入11位手机号"
|
|
166
|
+
/>
|
|
86
167
|
</xd-form-item>
|
|
87
|
-
<xd-form-item
|
|
168
|
+
<xd-form-item
|
|
169
|
+
label="验证码"
|
|
170
|
+
content-align="left"
|
|
171
|
+
>
|
|
88
172
|
<view class="flex align-center">
|
|
89
|
-
<xd-form-input
|
|
90
|
-
|
|
173
|
+
<xd-form-input
|
|
174
|
+
v-model="resetForm.verification_code"
|
|
175
|
+
placeholder="请输入验证码"
|
|
176
|
+
/>
|
|
177
|
+
<view
|
|
178
|
+
class="get_code"
|
|
179
|
+
@click="reGetCode"
|
|
180
|
+
style="{color:mainColor}"
|
|
181
|
+
>{{time ? time + '秒后获取':'获取验证码'}}</view>
|
|
91
182
|
</view>
|
|
92
183
|
</xd-form-item>
|
|
93
184
|
</xd-form>
|
|
94
185
|
<view class="form-group">
|
|
95
|
-
<xd-button
|
|
186
|
+
<xd-button
|
|
187
|
+
type="primary"
|
|
188
|
+
radius="10rpx"
|
|
189
|
+
@click="toResetPassword"
|
|
190
|
+
>确定</xd-button>
|
|
96
191
|
</view>
|
|
97
|
-
|
|
98
192
|
<view class="forget_tip">
|
|
99
193
|
<view>亲爱的用户,为了您的账户安全请联系管理员,或拨打客服热线</view>
|
|
100
194
|
<view class="contact_phone">400-800-9503</view>
|
|
101
|
-
<xd-button
|
|
195
|
+
<xd-button
|
|
196
|
+
type="primary"
|
|
197
|
+
style="width: 360rpx;"
|
|
198
|
+
>知道了</xd-button>
|
|
102
199
|
</view>
|
|
103
200
|
</view>
|
|
104
|
-
<view
|
|
201
|
+
<view
|
|
202
|
+
v-if="showStep == 4"
|
|
203
|
+
class="panel-reset-password"
|
|
204
|
+
>
|
|
105
205
|
<view class="form-group">
|
|
106
206
|
<view style="font-size: 36rpx;">手机号{{resetForm.phone_number}}</view>
|
|
107
207
|
<view style="font-size:26rpx;color: #A6A6A6;">请输入新密码并牢记</view>
|
|
108
208
|
</view>
|
|
109
|
-
<xd-form
|
|
209
|
+
<xd-form
|
|
210
|
+
label-width="220rpx"
|
|
110
211
|
style="margin-top: 40rpx;"
|
|
111
|
-
label-align="right"
|
|
112
|
-
|
|
113
|
-
|
|
212
|
+
label-align="right"
|
|
213
|
+
content-align="left"
|
|
214
|
+
:border="true"
|
|
215
|
+
>
|
|
216
|
+
<xd-form-item
|
|
217
|
+
label="输入新密码"
|
|
218
|
+
content-align="left"
|
|
219
|
+
>
|
|
220
|
+
<xd-form-input
|
|
221
|
+
v-model="resetForm.password"
|
|
222
|
+
type="password"
|
|
223
|
+
placeholder="请输入新密码"
|
|
224
|
+
/>
|
|
114
225
|
</xd-form-item>
|
|
115
|
-
<xd-form-item
|
|
226
|
+
<xd-form-item
|
|
227
|
+
label="确认新密码"
|
|
228
|
+
content-align="left"
|
|
229
|
+
>
|
|
116
230
|
<view class="flex align-center">
|
|
117
|
-
<xd-form-input
|
|
231
|
+
<xd-form-input
|
|
232
|
+
v-model="resetForm.confirm_password"
|
|
233
|
+
type="password"
|
|
234
|
+
placeholder="请再次输入新密码"
|
|
235
|
+
/>
|
|
118
236
|
</view>
|
|
119
237
|
</xd-form-item>
|
|
120
238
|
</xd-form>
|
|
121
239
|
<view class="form-group">
|
|
122
|
-
<xd-button
|
|
240
|
+
<xd-button
|
|
241
|
+
type="primary"
|
|
242
|
+
radius="10rpx"
|
|
243
|
+
@click="doResetPassword"
|
|
244
|
+
>确定</xd-button>
|
|
123
245
|
</view>
|
|
124
246
|
</view>
|
|
125
247
|
</view>
|
|
126
248
|
</view>
|
|
127
249
|
</template>
|
|
128
250
|
|
|
251
|
+
|
|
129
252
|
<script>
|
|
130
253
|
// TODO: h5授权地址、小程序授权获取用户信息、手机号登录(验证码、密码)、发送验证码、验证手机号、重新设置密码
|
|
131
254
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
@@ -464,13 +587,11 @@
|
|
|
464
587
|
color: #383838;
|
|
465
588
|
font-size: 36rpx;
|
|
466
589
|
|
|
467
|
-
|
|
468
|
-
content: " ";
|
|
590
|
+
text {
|
|
469
591
|
position: absolute;
|
|
470
592
|
height: 6rpx;
|
|
471
593
|
width: 90rpx;
|
|
472
594
|
border-radius: 6rpx;
|
|
473
|
-
background-color: @xd-base-color;
|
|
474
595
|
left: 50%;
|
|
475
596
|
bottom: 0;
|
|
476
597
|
transform: translateX(-50%);
|
|
@@ -93,16 +93,31 @@ export default {
|
|
|
93
93
|
//#ifdef H5
|
|
94
94
|
|
|
95
95
|
//@AttrData
|
|
96
|
-
Attr, //对外开发编辑属性
|
|
96
|
+
Attr:{}, //对外开发编辑属性
|
|
97
97
|
//@EndAttrData
|
|
98
98
|
|
|
99
99
|
active: false, //是否选择当前状态
|
|
100
100
|
isEditx: true, //当前为Editx模式
|
|
101
101
|
edit: false, //是否开启编辑模式
|
|
102
102
|
// #endif
|
|
103
|
+
|
|
104
|
+
//风格键
|
|
105
|
+
mainColor: '',
|
|
106
|
+
successColor: '',
|
|
107
|
+
warningColor: '',
|
|
108
|
+
subMainColor: '',
|
|
109
|
+
infoColor: '',
|
|
110
|
+
defaultColor: '',
|
|
111
|
+
dangerColor: ''
|
|
103
112
|
}
|
|
104
113
|
},
|
|
105
114
|
created() {
|
|
115
|
+
|
|
116
|
+
//@AttrDataCreated
|
|
117
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
118
|
+
//@EndAttrDataCreated
|
|
119
|
+
|
|
120
|
+
|
|
106
121
|
//设置插件cid
|
|
107
122
|
if (this.cid) {
|
|
108
123
|
this.containerId = this.cid;
|
|
@@ -110,6 +125,9 @@ export default {
|
|
|
110
125
|
this.containerId = this.$xdUniHelper.randomChar(20);
|
|
111
126
|
}
|
|
112
127
|
|
|
128
|
+
//初始化风格
|
|
129
|
+
this.initThemesToData();
|
|
130
|
+
|
|
113
131
|
//#ifdef H5
|
|
114
132
|
//监听用户点击状态显示虚框
|
|
115
133
|
XdBus.addEvent('select', ({containerId}) => {
|
|
@@ -132,6 +150,26 @@ export default {
|
|
|
132
150
|
onCheck() {
|
|
133
151
|
},
|
|
134
152
|
|
|
153
|
+
/***
|
|
154
|
+
* @description 业务组件风格map到data中
|
|
155
|
+
*/
|
|
156
|
+
initThemesToData() {
|
|
157
|
+
Object.keys(this.styles).map(key => {
|
|
158
|
+
let k = key.replace('$', '');
|
|
159
|
+
if (this[k] !== undefined) this[k] = this.styles[key];
|
|
160
|
+
});
|
|
161
|
+
console.log('initThemesToData',this)
|
|
162
|
+
},
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @description 其子级插件获取当前插件的业务组件风格列表
|
|
166
|
+
* @returns {*}
|
|
167
|
+
*/
|
|
168
|
+
getParentThemes(){
|
|
169
|
+
return this.styles;
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
|
|
135
173
|
//#ifdef H5
|
|
136
174
|
/**
|
|
137
175
|
* @description 点击删除操作按钮
|
|
@@ -153,8 +191,8 @@ export default {
|
|
|
153
191
|
//#ifdef H5
|
|
154
192
|
if (this.active) return;
|
|
155
193
|
this.active = true;
|
|
156
|
-
let AttrObj = this.$xdUniHelper.checkVarType(Attr) === 'object' ?
|
|
157
|
-
Attr: { style: [], advanced: [], content: []};
|
|
194
|
+
let AttrObj = this.$xdUniHelper.checkVarType(this.Attr) === 'object' ?
|
|
195
|
+
this.Attr : { style: [], advanced: [], content: []};
|
|
158
196
|
console.log('handleSelect.Attr', AttrObj);
|
|
159
197
|
|
|
160
198
|
//设置已绑定数据
|
|
@@ -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,54 @@
|
|
|
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
|
+
label: '订单类型设置:', //label
|
|
28
|
+
ele: 'xd-order-setting', //package 名称
|
|
29
|
+
valueKey: 'orderTypeList', //form[valueKey]
|
|
30
|
+
value: {
|
|
31
|
+
path: {value: '/index/index/index', label: '首页'}, list: [{
|
|
32
|
+
icon: "hghf",
|
|
33
|
+
label: "已完成",
|
|
34
|
+
size: "12",
|
|
35
|
+
status: "4"
|
|
36
|
+
}]
|
|
37
|
+
},
|
|
38
|
+
setting: {
|
|
39
|
+
number: [
|
|
40
|
+
{"label": "全部", "value": 'all'},
|
|
41
|
+
{"label": "待付款", "value": '1'},
|
|
42
|
+
{"label": "待收货", "value": '2'},
|
|
43
|
+
{"label": "已取消", "value": '3'},
|
|
44
|
+
{"label": "已完成", "value": '4'},
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
inline: false,
|
|
48
|
+
notice: '如:设置16:00前下单,最早可提前2小时;16:00后下单,最早可提前1天。<br />若:用户在16点前下单,最早可选择当前下单时间往后2小时的时间;16点后下单,最早只能选择第2天。',
|
|
49
|
+
rules: [
|
|
50
|
+
{required: true, message: '请添加内容', trigger: 'change'},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
}
|