入驻卖家升级 review by lea.guo
Showing
2 changed files
with
78 additions
and
1 deletions
@@ -106,6 +106,23 @@ | @@ -106,6 +106,23 @@ | ||
106 | </div> | 106 | </div> |
107 | </i-card> | 107 | </i-card> |
108 | </div> | 108 | </div> |
109 | + <!--弹出框展示卖家升级--> | ||
110 | + <Modal | ||
111 | + v-model="isShowPlus" | ||
112 | + title="升级入驻卖家PLUS" | ||
113 | + :footer-hide='true' | ||
114 | + width="500" | ||
115 | + > | ||
116 | + <Form> | ||
117 | + <FormItem> | ||
118 | + 确定升级,确认以后不能撤销 | ||
119 | + </FormItem> | ||
120 | + <FormItem class="btn-container"> | ||
121 | + <Button type="default" class="btn" @click="onPlusCancel">取消</Button> | ||
122 | + <Button type="primary" class="btn" @click="onPlusSubmit">确认</Button> | ||
123 | + </FormItem> | ||
124 | + </Form> | ||
125 | + </Modal> | ||
109 | </LayoutContent> | 126 | </LayoutContent> |
110 | </template> | 127 | </template> |
111 | 128 | ||
@@ -138,6 +155,8 @@ export default { | @@ -138,6 +155,8 @@ export default { | ||
138 | nowSelectedRow: {}, | 155 | nowSelectedRow: {}, |
139 | isShowDetail: false, // 显示详情弹框 | 156 | isShowDetail: false, // 显示详情弹框 |
140 | isShowInvest: false, // 显示绑定招商人员 | 157 | isShowInvest: false, // 显示绑定招商人员 |
158 | + isShowPlus: false, // 显示卖家升级框 | ||
159 | + applyPlusUid: '', // 升级卖家uid | ||
141 | columns: [{ | 160 | columns: [{ |
142 | title: 'UID', | 161 | title: 'UID', |
143 | key: 'uid', | 162 | key: 'uid', |
@@ -208,6 +227,30 @@ export default { | @@ -208,6 +227,30 @@ export default { | ||
208 | title: '入驻状态', | 227 | title: '入驻状态', |
209 | align: 'center', | 228 | align: 'center', |
210 | key: 'validStatusDesc', | 229 | key: 'validStatusDesc', |
230 | + width: 90 | ||
231 | + }, { | ||
232 | + title: '操作人', | ||
233 | + align: 'center', | ||
234 | + key: 'operatorName', | ||
235 | + width: 90 | ||
236 | + }, { | ||
237 | + title: '操作时间', | ||
238 | + align: 'center', | ||
239 | + key: 'updateTime', | ||
240 | + width: 90 | ||
241 | + }, { | ||
242 | + title: '操作', | ||
243 | + align: 'center', | ||
244 | + width: 100, | ||
245 | + render: (h, {row}) => { | ||
246 | + return ( | ||
247 | + <div> | ||
248 | + {(row.entryType === 1) ? | ||
249 | + (<i-button type="default" size="small" onClick={() => this.onPopupPlusModal(row)}>卖家升级</i-button>) : | ||
250 | + <i-button type="text" size="small">-</i-button>} | ||
251 | + </div> | ||
252 | + ); | ||
253 | + } | ||
211 | }, /*{ | 254 | }, /*{ |
212 | title: '招商人员', | 255 | title: '招商人员', |
213 | align: 'center', | 256 | align: 'center', |
@@ -385,6 +428,30 @@ export default { | @@ -385,6 +428,30 @@ export default { | ||
385 | validStatus: parseInt(params.validStatus) >= 0 ? params.validStatus : void 0, | 428 | validStatus: parseInt(params.validStatus) >= 0 ? params.validStatus : void 0, |
386 | entryType: parseInt(params.entryType) >= 0 ? params.entryType : void 0, | 429 | entryType: parseInt(params.entryType) >= 0 ? params.entryType : void 0, |
387 | }; | 430 | }; |
431 | + }, | ||
432 | + | ||
433 | + onPopupPlusModal(row) { | ||
434 | + this.isShowPlus = true; | ||
435 | + this.applyPlusUid = row.uid; | ||
436 | + }, | ||
437 | + async onPlusSubmit() { | ||
438 | + this.isShowPlus = false; | ||
439 | + | ||
440 | + this.$Loading.start(); | ||
441 | + | ||
442 | + const result = await api._get('/ufoPlatform/storedSeller/applyEntryPlus', { | ||
443 | + uid: this.applyPlusUid | ||
444 | + }); | ||
445 | + if (result.code === 200) { | ||
446 | + result.message && this.$Message.success(result.message); | ||
447 | + this.$Loading.finish(); | ||
448 | + } else { | ||
449 | + result.message && this.$Message.warning(result.message); | ||
450 | + this.$Loading.error(); | ||
451 | + } | ||
452 | + }, | ||
453 | + onPlusCancel() { | ||
454 | + this.isShowPlus = false; | ||
388 | } | 455 | } |
389 | }, | 456 | }, |
390 | }; | 457 | }; |
@@ -438,6 +505,16 @@ export default { | @@ -438,6 +505,16 @@ export default { | ||
438 | margin: 100px auto; | 505 | margin: 100px auto; |
439 | } | 506 | } |
440 | 507 | ||
508 | + .btn-container { | ||
509 | + margin-top: 60px; | ||
510 | + } | ||
511 | + | ||
512 | + .btn { | ||
513 | + width: 45%; | ||
514 | + height: 34px; | ||
515 | + margin-right: 15px; | ||
516 | + } | ||
517 | + | ||
441 | .ivu-row:hover { | 518 | .ivu-row:hover { |
442 | background-color: lightblue; | 519 | background-color: lightblue; |
443 | } | 520 | } |
-
Please register or login to post a comment