Authored by 张文文

入驻卖家升级 review by lea.guo

export default "production";
\ No newline at end of file
export default "development";
\ No newline at end of file
... ...
... ... @@ -106,6 +106,23 @@
</div>
</i-card>
</div>
<!--弹出框展示卖家升级-->
<Modal
v-model="isShowPlus"
title="升级入驻卖家PLUS"
:footer-hide='true'
width="500"
>
<Form>
<FormItem>
确定升级,确认以后不能撤销
</FormItem>
<FormItem class="btn-container">
<Button type="default" class="btn" @click="onPlusCancel">取消</Button>
<Button type="primary" class="btn" @click="onPlusSubmit">确认</Button>
</FormItem>
</Form>
</Modal>
</LayoutContent>
</template>
... ... @@ -138,6 +155,8 @@ export default {
nowSelectedRow: {},
isShowDetail: false, // 显示详情弹框
isShowInvest: false, // 显示绑定招商人员
isShowPlus: false, // 显示卖家升级框
applyPlusUid: '', // 升级卖家uid
columns: [{
title: 'UID',
key: 'uid',
... ... @@ -208,6 +227,30 @@ export default {
title: '入驻状态',
align: 'center',
key: 'validStatusDesc',
width: 90
}, {
title: '操作人',
align: 'center',
key: 'operatorName',
width: 90
}, {
title: '操作时间',
align: 'center',
key: 'updateTime',
width: 90
}, {
title: '操作',
align: 'center',
width: 100,
render: (h, {row}) => {
return (
<div>
{(row.entryType === 1) ?
(<i-button type="default" size="small" onClick={() => this.onPopupPlusModal(row)}>卖家升级</i-button>) :
<i-button type="text" size="small">-</i-button>}
</div>
);
}
}, /*{
title: '招商人员',
align: 'center',
... ... @@ -385,6 +428,30 @@ export default {
validStatus: parseInt(params.validStatus) >= 0 ? params.validStatus : void 0,
entryType: parseInt(params.entryType) >= 0 ? params.entryType : void 0,
};
},
onPopupPlusModal(row) {
this.isShowPlus = true;
this.applyPlusUid = row.uid;
},
async onPlusSubmit() {
this.isShowPlus = false;
this.$Loading.start();
const result = await api._get('/ufoPlatform/storedSeller/applyEntryPlus', {
uid: this.applyPlusUid
});
if (result.code === 200) {
result.message && this.$Message.success(result.message);
this.$Loading.finish();
} else {
result.message && this.$Message.warning(result.message);
this.$Loading.error();
}
},
onPlusCancel() {
this.isShowPlus = false;
}
},
};
... ... @@ -438,6 +505,16 @@ export default {
margin: 100px auto;
}
.btn-container {
margin-top: 60px;
}
.btn {
width: 45%;
height: 34px;
margin-right: 15px;
}
.ivu-row:hover {
background-color: lightblue;
}
... ...