Bladeren bron

2023-3-16

cmy 2 jaren geleden
bovenliggende
commit
30ff4614a3
31 gewijzigde bestanden met toevoegingen van 567 en 2 verwijderingen
  1. 0 0
      node_modules/.cache/babel-loader/1d021a0f5d46ace5ebfce6515afe4247.json
  2. 0 0
      node_modules/.cache/babel-loader/1e5a3b9e92479b92d3a46e0ae077eb42.json
  3. 0 0
      node_modules/.cache/babel-loader/9f51e1deca2b885eea8456e171c885ee.json
  4. 0 0
      node_modules/.cache/babel-loader/a4e8be59ff156532b4debdbcbda2e9d1.json
  5. 0 0
      node_modules/.cache/babel-loader/a80bc92db9c549503bd76995be516a77.json
  6. 0 0
      node_modules/.cache/babel-loader/f2e594c588ed466b2c37095d888f2215.json
  7. 0 0
      node_modules/.cache/vue-loader/091a1ec67e223e03187c182f3f2acbd6.json
  8. 0 0
      node_modules/.cache/vue-loader/1b3e2316e7103d610ee776047927e26b.json
  9. 0 0
      node_modules/.cache/vue-loader/1f3973f879145ca9ed45a8a670a39586.json
  10. 1 0
      node_modules/.cache/vue-loader/2819a2107388d32ead21e8bf0d68122f.json
  11. 0 0
      node_modules/.cache/vue-loader/3bde09ff0e6d907866712184de514ce3.json
  12. 0 0
      node_modules/.cache/vue-loader/53f5571f2db5f26ac2265064234b9e47.json
  13. 0 0
      node_modules/.cache/vue-loader/67eee8b729a7bd9e1e5fa23c91fa8481.json
  14. 0 0
      node_modules/.cache/vue-loader/74b983fcf2f3405ca70338ad9d27162a.json
  15. 0 0
      node_modules/.cache/vue-loader/8ece83e385373958c8d392ad0c739d30.json
  16. 0 0
      node_modules/.cache/vue-loader/9d1dd3f92abcbda17331c1130193fb78.json
  17. 0 0
      node_modules/.cache/vue-loader/9e38320437b0b817a24efae093c3a083.json
  18. 0 0
      node_modules/.cache/vue-loader/a21735257697c96cfb705c10597eb39c.json
  19. 0 0
      node_modules/.cache/vue-loader/a7e01204bc71a75920757bd5e7afd8f7.json
  20. 0 0
      node_modules/.cache/vue-loader/b6618641e24e10073fd53a49ea4a9876.json
  21. 0 0
      node_modules/.cache/vue-loader/b6d770efa606d731591e30a5a7552517.json
  22. 0 0
      node_modules/.cache/vue-loader/ba84215283179563b642b4a7d7261f06.json
  23. 0 0
      node_modules/.cache/vue-loader/c4659f03887ef52d05d53ac2effa5eeb.json
  24. 0 0
      node_modules/.cache/vue-loader/cbd4ceaa62a4071ea6c7a8f635b58e52.json
  25. 0 0
      node_modules/.cache/vue-loader/dfed96a506de0adfee99cd2f2bbc36ad.json
  26. 0 0
      node_modules/.cache/vue-loader/f599e91bd1e4ed1b439363bebd9cf38f.json
  27. 27 0
      src/api/rent.js
  28. 9 2
      src/pages/rent/cart/index.vue
  29. 513 0
      src/pages/rent/user/index.vue
  30. 8 0
      src/pages/user/list/handle/userEdit.vue
  31. 9 0
      src/router/modules/rent.js

File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/babel-loader/1d021a0f5d46ace5ebfce6515afe4247.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/babel-loader/1e5a3b9e92479b92d3a46e0ae077eb42.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/babel-loader/9f51e1deca2b885eea8456e171c885ee.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/babel-loader/a4e8be59ff156532b4debdbcbda2e9d1.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/babel-loader/a80bc92db9c549503bd76995be516a77.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/babel-loader/f2e594c588ed466b2c37095d888f2215.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/091a1ec67e223e03187c182f3f2acbd6.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/1b3e2316e7103d610ee776047927e26b.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/1f3973f879145ca9ed45a8a670a39586.json


+ 1 - 0
node_modules/.cache/vue-loader/2819a2107388d32ead21e8bf0d68122f.json

@@ -0,0 +1 @@
+{"remainingRequest":"E:\\item\\newItem\\admin\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js??vue-loader-options!E:\\item\\newItem\\admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\item\\newItem\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\item\\newItem\\admin\\node_modules\\iview-loader\\index.js??ref--0-2!E:\\item\\newItem\\admin\\src\\pages\\rent\\user\\index.vue?vue&type=template&id=7187ab50&scoped=true&","dependencies":[{"path":"E:\\item\\newItem\\admin\\src\\pages\\rent\\user\\index.vue","mtime":1678936874260},{"path":"E:\\item\\newItem\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\item\\newItem\\admin\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js","mtime":499162500000},{"path":"E:\\item\\newItem\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\item\\newItem\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"E:\\item\\newItem\\admin\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:dmFyIHJlbmRlciA9IGZ1bmN0aW9uICgpIHt9CnZhciBzdGF0aWNSZW5kZXJGbnMgPSBbXQoKZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfQ=="}]}

File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/3bde09ff0e6d907866712184de514ce3.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/53f5571f2db5f26ac2265064234b9e47.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/67eee8b729a7bd9e1e5fa23c91fa8481.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/74b983fcf2f3405ca70338ad9d27162a.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/8ece83e385373958c8d392ad0c739d30.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/9d1dd3f92abcbda17331c1130193fb78.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/9e38320437b0b817a24efae093c3a083.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/a21735257697c96cfb705c10597eb39c.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/a7e01204bc71a75920757bd5e7afd8f7.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/b6618641e24e10073fd53a49ea4a9876.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/b6d770efa606d731591e30a5a7552517.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/ba84215283179563b642b4a7d7261f06.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/c4659f03887ef52d05d53ac2effa5eeb.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/cbd4ceaa62a4071ea6c7a8f635b58e52.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/dfed96a506de0adfee99cd2f2bbc36ad.json


File diff suppressed because it is too large
+ 0 - 0
node_modules/.cache/vue-loader/f599e91bd1e4ed1b439363bebd9cf38f.json


+ 27 - 0
src/api/rent.js

@@ -47,3 +47,30 @@ export function rentList(data) {
   });
 }
 
+/**
+ * @description  出资人列表
+  @param {Object} param id {Object} 传值参数
+ */
+export function sponsorList(data) {
+  return request({
+    url: `sponsor/list`,
+    method: 'get',
+    data,
+  });
+}
+
+/**
+ * @description  出资人信息
+  @param {Number} param id {Number} 传值参数
+ */
+export function sponsorDetail(id) {
+  return request({
+    url: `sponsor/${id}`,
+    method: 'get',
+    data,
+  });
+}
+
+
+
+

+ 9 - 2
src/pages/rent/cart/index.vue

@@ -183,6 +183,11 @@
 			},
 		},
 		activated() {
+			console.log("getList")
+			this.getList();
+		},
+		created() {
+			console.log("createdList")
 			this.getList();
 		},
 		methods: {
@@ -229,13 +234,13 @@
 			// 编辑
 			edit(row) {
 				this.$router.push({
-					path: '/admin/marketing/store_seckill/create/' + row.id + '/0',
+					path: '/admin/rent/cart/add/' + row.id + '/0',
 				});
 			},
 			// 一键复制
 			copy(row) {
 				this.$router.push({
-					path: '/admin/marketing/store_seckill/create/' + row.id + '/1',
+					path: '/admin/rent/cart/add/' + row.id + '/1',
 				});
 			},
 			// 删除
@@ -265,6 +270,7 @@
 			getList() {
 				this.loading = true;
 				this.tableFrom.status = this.tableFrom.status || '';
+				console.log("get")
 				rentList(this.tableFrom)
 					.then(async (res) => {
 						let data = res.data;
@@ -273,6 +279,7 @@
 						this.loading = false;
 					})
 					.catch((res) => {
+						console.log(res,'err')
 						this.loading = false;
 						this.$Message.error(res.msg);
 					});

+ 513 - 0
src/pages/rent/user/index.vue

@@ -0,0 +1,513 @@
+<template>
+	<div>
+		<Card :bordered="false" dis-hover class="ivu-mt listbox">
+			<Form ref="userFrom" :model="userFrom" :label-width="labelWidth" :label-position="labelPosition"
+				@submit.native.prevent>
+				<Row :gutter="16">
+					<Col span="18">
+					<Col span="24">
+					<Col v-bind="grid">
+					<FormItem label="用户搜索:" label-for="nickname">
+						<Input v-model="userFrom.nickname" placeholder="请输入用户" element-id="nickname" clearable>
+						<Select v-model="field_key" slot="prepend" style="width: 80px">
+							<Option value="all">全部</Option>
+							<Option value="uid">UID</Option>
+							<Option value="phone">手机号</Option>
+							<Option value="nickname">用户昵称</Option>
+						</Select>
+						</Input>
+					</FormItem>
+					</Col>
+					</Col>
+					</Col>
+					<Col span="6" class="ivu-text-right userFrom">
+					<FormItem>
+						<Button type="primary" icon="ios-search" label="default" class="mr15"
+							@click="userSearchs">搜索</Button>
+						<Button class="ResetSearch" @click="reset('userFrom')">重置</Button>
+					</FormItem>
+					</Col>
+				</Row>
+			</Form>
+			<Divider dashed />
+			<Row type="flex" justify="space-between" class="mt20">
+				<Col span="24" class="userAlert" v-if="selectionList.length">
+				<Alert show-icon>
+					已选择<i class="userI"> {{ selectionList.length }} </i>项</Alert>
+				</Col>
+			</Row>
+			<Table :columns="columns" :data="userLists" class="mt25" ref="table" highlight-row :loading="loading"
+				no-userFrom-text="暂无数据" no-filtered-userFrom-text="暂无筛选结果" @on-sort-change="sortChanged"
+				@on-select="handleSelectRow" @on-select-cancel="handleCancelRow" @on-select-all="handleSelectAll"
+				@on-select-all-cancel="handleSelectAll">
+				<template slot-scope="{ row, index }" slot="avatars">
+					<div class="tabBox_img" v-viewer>
+						<img v-lazy="row.avatar" />
+					</div>
+				</template>
+				<template slot-scope="{ row, index }" slot="nickname">
+					<div class="acea-row">
+						<Icon type="md-male" v-show="row.sex === '男'" color="#2db7f5" size="15" class="mr5" />
+						<Icon type="md-female" v-show="row.sex === '女'" color="#ed4014" size="15" class="mr5" />
+						<div v-text="row.nickname"></div>
+					</div>
+					<div v-if="row.is_del == 1" style="color: red">用户已注销</div>
+					<!-- <div v-show="row.vip_name" class="vipName">{{row.vip_name}}</div> -->
+				</template>
+				<template slot-scope="{ row, index }" slot="isMember">
+					<div>{{ row.isMember ? '是' : '否' }}</div>
+				</template>
+				<template slot-scope="{ row, index }" slot="action">
+						<a @click="edit(row)">编辑</a>
+						<Divider type="vertical" />
+						<Dropdown @on-click="changeMenu(row, $event, index)" :transfer="true">
+							<a href="javascript:void(0)">
+								更多
+								<Icon type="ios-arrow-down"></Icon>
+							</a>
+							<DropdownMenu slot="list">
+								<DropdownItem name="1">账户详情</DropdownItem>
+								<DropdownItem name="2">积分余额</DropdownItem>
+							</DropdownMenu>
+						</Dropdown>
+				</template>
+			</Table>
+	</div>
+</template>
+
+<script>
+	import {
+		mapState
+	} from 'vuex';
+	import {
+		userList,
+		getUserSaveForm,
+		getUserInfo,
+		editUser,
+	} from '@/api/user';
+	import {
+		agentSpreadApi
+	} from '@/api/agent';
+	import {
+		exportUserList
+	} from '@/api/export';
+	export default {
+		name: 'user_list',
+		data() {
+			return {
+				dataLabel: [],
+				selectDataLabel: [],
+				grid: {
+					xl: 8,
+					lg: 8,
+					md: 12,
+					sm: 24,
+					xs: 24,
+				},
+				loading: false,
+				total: 0,
+				userFrom: {
+					label_id: '',
+					user_type: '',
+					status: '',
+					sex: '',
+					is_promoter: '',
+					country: '',
+					isMember: '',
+					pay_count: '',
+					user_time_type: '',
+					user_time: '',
+					nickname: '',
+					province: '',
+					city: '',
+					page: 1,
+					limit: 15,
+					level: '',
+					group_id: '',
+					field_key: '',
+				},
+				field_key: '',
+				level: '',
+				group_id: '',
+				label_id: '',
+				user_time_type: '',
+				pay_count: '',
+				columns: [{
+						type: 'selection',
+						width: 60,
+						align: 'center',
+					},
+					{
+						title: 'ID',
+						key: 'uid',
+						width: 80,
+					},
+					{
+						title: '头像',
+						slot: 'avatars',
+						minWidth: 60,
+					},
+					{
+						title: '姓名',
+						slot: 'nickname',
+						minWidth: 150,
+					},
+					{
+						title: '付费会员',
+						slot: 'isMember',
+						minWidth: 90,
+					},
+					{
+						title: '用户等级',
+						key: 'level',
+						minWidth: 90,
+					},
+					{
+						title: '分组',
+						key: 'group_id',
+						minWidth: 100,
+					},
+					{
+						title: '手机号',
+						key: 'phone',
+						minWidth: 100,
+					},
+					{
+						title: '用户类型',
+						key: 'user_type',
+						minWidth: 100,
+					},
+					{
+						title: '余额',
+						key: 'now_money',
+						sortable: 'custom',
+						minWidth: 100,
+					},
+					{
+						title: '操作',
+						slot: 'action',
+						fixed: 'right',
+						minWidth: 120,
+					},
+				],
+				userLists: [],
+				FromData: null,
+				selectionList: [],
+				selectedIds: new Set(), //选中合并项的id
+				ids: [],
+			};
+		},
+		computed: {
+			...mapState('media', ['isMobile']),
+			labelWidth() {
+				return this.isMobile ? undefined : 100;
+			},
+			labelPosition() {
+				return this.isMobile ? 'top' : 'right';
+			},
+		},
+		created() {
+			this.getList();
+		},
+		methods: {
+			// 操作
+			changeMenu(row, name, index) {
+				let uid = [];
+				uid.push(row.uid);
+				let uids = {
+					uids: uid
+				};
+				switch (name) {
+					case '1':
+						break;
+					case '2':
+						this.getOtherFrom(row.uid);
+						break;
+					case '3':
+						break;
+					case '4':
+						this.del(row, '清除 【 ' + row.nickname + ' 】的会员等级', index, 'user');
+						break;
+					case '5':
+						break;
+					case '6':
+						break;
+					case '7':
+						this.editS(row);
+						break;
+					default:
+						this.del(row, '解除【 ' + row.nickname + ' 】的上级推广人', index, 'tuiguang');
+				}
+			},
+			// 删除
+			del(row, tit, num, name) {
+				let delfromData = {
+					title: tit,
+					num: num,
+					url: name === 'user' ? `user/del_level/${row.uid}` : `agent/stair/delete_spread/${row.uid}`,
+					method: name === 'user' ? 'DELETE' : 'PUT',
+					ids: '',
+				};
+				this.$modalSure(delfromData)
+					.then((res) => {
+						this.$Message.success(res.msg);
+						this.getList();
+					})
+					.catch((res) => {
+						this.$Message.error(res.msg);
+					});
+			},
+			// 清除会员删除成功
+			submitModel() {
+				this.getList();
+			},
+			// 会员列表
+			getList() {
+				if (this.selectDataLabel.length) {
+					let activeIds = [];
+					this.selectDataLabel.forEach((item) => {
+						activeIds.push(item.id);
+					});
+					this.userFrom.label_id = activeIds.join(',');
+				}
+				this.userFrom.user_type = this.userFrom.user_type || '';
+				this.userFrom.status = this.userFrom.status || '';
+				this.userFrom.sex = this.userFrom.sex || '';
+				this.userFrom.is_promoter = this.userFrom.is_promoter || '';
+				this.userFrom.country = this.userFrom.country || '';
+				this.userFrom.pay_count = this.pay_count === 'all' ? '' : this.pay_count;
+				this.userFrom.user_time_type = this.user_time_type === 'all' ? '' : this.user_time_type;
+				this.userFrom.field_key = this.field_key === 'all' ? '' : this.field_key;
+				this.userFrom.level = this.level === 'all' ? '' : this.level;
+				this.userFrom.group_id = this.group_id === 'all' ? '' : this.group_id;
+				this.loading = true;
+				userList(this.userFrom)
+					.then(async (res) => {
+						let data = res.data;
+						this.userLists = data.list;
+						this.total = data.count;
+						this.loading = false;
+						this.$nextTick(() => {
+							this.setChecked();
+						});
+					})
+					.catch((res) => {
+						this.loading = false;
+						this.$Message.error(res.msg);
+					});
+			},
+			pageChange(index) {
+				this.selectionList = [];
+				this.userFrom.page = index;
+				this.getList();
+			},
+			// 搜索
+			userSearchs() {
+				this.userFrom.page = 1;
+				this.getList();
+			},
+			// 重置
+			reset(name) {
+				this.userFrom = {
+					user_type: this.userFrom.user_type,
+					status: '',
+					sex: '',
+					is_promoter: '',
+					country: '',
+					pay_count: '',
+					user_time_type: '',
+					user_time: '',
+					nickname: '',
+					field_key: '',
+					level: '',
+					group_id: '',
+					label_id: '',
+					page: 1, // 当前页
+					limit: 20, // 每页显示条数
+				};
+				this.field_key = '';
+				this.level = '';
+				this.group_id = '';
+				this.dataLabel = [];
+				this.selectDataLabel = [];
+				this.user_time_type = '';
+				this.pay_count = '';
+				this.selectedIds = new Set();
+				this.getList();
+			},
+			// 编辑
+			edit(row) {
+				this.getUserFrom(row.uid);
+			},
+			// 修改成功
+			submitFail() {
+				// this.getList();
+			},
+			// 排序
+			sortChanged(e) {
+				this.userFrom[e.key] = e.order;
+				this.getList();
+			},
+			//全选和取消全选时触发
+			handleSelectAll(selection) {
+				if (selection.length === 0) {
+					//获取table的数据;
+					let data = this.$refs.table.data;
+					data.forEach((item) => {
+						if (this.selectedIds.has(item.uid)) {
+							this.selectedIds.delete(item.uid);
+						}
+					});
+				} else {
+					selection.forEach((item) => {
+						this.selectedIds.add(item.uid);
+					});
+				}
+				this.$nextTick(() => {
+					//确保dom加载完毕
+					this.setChecked();
+				});
+			},
+			//  选中某一行
+			handleSelectRow(selection, row) {
+				this.selectedIds.add(row.uid);
+				this.$nextTick(() => {
+					//确保dom加载完毕
+					this.setChecked();
+				});
+			},
+			//  取消某一行
+			handleCancelRow(selection, row) {
+				this.selectedIds.delete(row.uid);
+				this.$nextTick(() => {
+					//确保dom加载完毕
+					this.setChecked();
+				});
+			},
+			setChecked() {
+				//将new Set()转化为数组
+				this.ids = [...this.selectedIds];
+				// 找到绑定的table的ref对应的dom,找到table的objData对象,objData保存的是当前页的数据
+				let objData = this.$refs.table.objData;
+				for (let index in objData) {
+					if (this.selectedIds.has(objData[index].uid)) {
+						objData[index]._isChecked = true;
+					}
+				}
+			},
+		},
+	};
+</script>
+
+<style scoped lang="stylus">
+	.picBox {
+		display: inline-block;
+		cursor: pointer;
+
+		.upLoad {
+			width: 58px;
+			height: 58px;
+			line-height: 58px;
+			border: 1px dotted rgba(0, 0, 0, 0.1);
+			border-radius: 4px;
+			background: rgba(0, 0, 0, 0.02);
+		}
+
+		.pictrue {
+			width: 60px;
+			height: 60px;
+			border: 1px dotted rgba(0, 0, 0, 0.1);
+			margin-right: 10px;
+
+			img {
+				width: 100%;
+				height: 100%;
+			}
+		}
+	}
+
+	.userFrom {
+		>>>.ivu-form-item-content {
+			margin-left: 0px !important;
+		}
+	}
+
+	.userAlert {
+		margin-top: 20px;
+	}
+
+	.userI {
+		color: #1890FF;
+		font-style: normal;
+	}
+
+	img {
+		height: 36px;
+		display: block;
+	}
+
+	.tabBox_img {
+		width: 36px;
+		height: 36px;
+		border-radius: 4px;
+		cursor: pointer;
+
+		img {
+			width: 100%;
+			height: 100%;
+		}
+	}
+
+	.tabBox_tit {
+		width: 60%;
+		font-size: 12px !important;
+		margin: 0 2px 0 10px;
+		letter-spacing: 1px;
+		padding: 5px 0;
+		box-sizing: border-box;
+	}
+
+	.modelBox {
+		>>>.ivu-modal-body {
+			padding: 0 16px 16px 16px !important;
+		}
+	}
+
+	.vipName {
+		color: #dab176;
+	}
+
+	.listbox {
+		>>>.ivu-divider-horizontal {
+			margin: 0 !important;
+		}
+	}
+
+	.labelInput {
+		border: 1px solid #dcdee2;
+		padding: 0 6px;
+		border-radius: 5px;
+		min-height: 30px;
+		cursor: pointer;
+
+		.span {
+			color: #c5c8ce;
+		}
+
+		.ivu-icon-ios-arrow-down {
+			font-size: 14px;
+			color: #808695;
+		}
+	}
+
+	.demo-drawer-footer {
+		width: 100%;
+		position: absolute;
+		bottom: 0;
+		left: 0;
+		border-top: 1px solid #e8e8e8;
+		padding: 10px 16px;
+		text-align: right;
+		background: #fff;
+	}
+</style>

+ 8 - 0
src/pages/user/list/handle/userEdit.vue

@@ -96,6 +96,13 @@
           <Radio :label="0">禁用</Radio>
         </RadioGroup>
         <div class="tip">禁用用户的推广资格后,在任何分销模式下该用户都无分销权限</div>
+      </FormItem>
+	  <FormItem label="出资人:">
+        <RadioGroup v-model="formItem.is_sponsor" class="form-sty">
+          <Radio :label="1">是</Radio>
+          <Radio :label="0">否</Radio>
+        </RadioGroup>
+        <div class="tip">资人可获得分红</div>
       </FormItem>
       <FormItem label="推广权限:">
         <RadioGroup v-model="formItem.is_promoter" class="form-sty">
@@ -165,6 +172,7 @@ export default {
         spread_open: 0,
         is_promoter: 0,
         status: 1,
+		is_sponsor:0,//0否1是是否出资人
       },
       express: [],
       expressTemp: [],

+ 9 - 0
src/router/modules/rent.js

@@ -44,5 +44,14 @@ export default {
 	    },
 	    component: () => import('@/pages/rent/cart/add'),
 	  },
+	  {
+	    path: 'sponsor/user',
+	    name: `${pre}sponsoruser`,
+	    meta: {
+	      auth: ['admin-sponsor-user'],
+	      title: '账号管理',
+	    },
+	    component: () => import('@/pages/rent/user/index'),
+	  },
   ],
 };

Some files were not shown because too many files changed in this diff