-
-
- {{(scope.row.spread && scope.row.spread.uid) || '-'}}
-
-
-
-
- {{(scope.row.spread && scope.row.spread.nickname) || '用户已注销'}}
-
-
-
+
+
+
+
+
// +----------------------------------------------------------------------
-import { userOrderApi, userDetailApi, userCouponApi, userBillApi,
+import { userOrderApi, userDetailApi, userCouponApi, userBillApi,assetsLogList,
modifyUserRefLog, userPointsApi, userSignLogApi, userHistoryApi, memberGrowthLog, userEditApi } from '@/api/user'
import { verifyEmail } from '@/utils/toolsValidate';
export default {
@@ -749,7 +624,7 @@ export default {
}
},
mounted() {
-
+
},
beforeUpdate(){
this.$nextTick(() =>{
@@ -816,23 +691,24 @@ export default {
this.loading = false
})
break
- case 'recommend':
- modifyUserRefLog(this.uid, this.tableFrom).then(res => {
+ case 'integral':
+ let data = {'uid':this.uid,asset_type:1,page:this.tableFrom.page, limit:this.tableFrom.limit}
+ assetsLogList(data).then(res => {
this.tableData.data = res.data.list
this.tableData.total = res.data.count
this.columns = [
{
- title: '上级推荐人ID',
- key: 'spread.uid',
+ title: '分值来源',
+ key: 'type',
minWidth: 120
},
{
- title: '上级推荐人昵称',
- key: 'spread.nickname',
+ title: '变动情况',
+ key: 'count',
minWidth: 120
},
{
- title: '绑定时间',
+ title: '变动时间',
key: 'create_time',
minWidth: 120
}
@@ -842,239 +718,97 @@ export default {
this.loading = false
})
break
- case 'signRecord':
- userSignLogApi(this.uid, this.tableFrom).then(res => {
- this.tableData.data = res.data.list
- this.tableData.total = res.data.count
- this.columns = [
- {
- title: '获得积分',
- key: 'number',
- minWidth: 120
- },
- {
- title: '签到时间',
- key: 'create_time',
- minWidth: 120
- },
- {
- title: '备注',
- key: 'title',
- minWidth: 120
- },
-
- ]
- this.loading = false
- }).catch(() => {
- this.loading = false
- })
- break
- case 'coupon':
- userCouponApi(this.uid, this.tableFrom).then(res => {
- this.tableData.data = res.data.list
- this.tableData.total = res.data.count
- this.columns = [
- {
- title: '优惠券名称',
- key: 'coupon_title',
- minWidth: 120
- },
- {
- title: '面值',
- key: 'coupon_price',
- minWidth: 120
- },
- {
- title: '最低消费额',
- key: 'use_min_price',
- minWidth: 120
- },
- {
- title: '兑换时间',
- key: 'use_time',
- minWidth: 120
- }
- ]
- this.loading = false
- }).catch(() => {
- this.loading = false
- })
- break
- case 'balance':
- userBillApi(this.uid, this.tableFrom).then(res => {
- this.tableData.data = res.data.list
- this.tableData.total = res.data.count
- this.columns = [
- {
- title: '变动金额',
- key: 'number',
- minWidth: 90
- },
- {
- title: '变动后',
- key: 'balance',
- minWidth: 90
- },
- {
- title: '类型',
- key: 'title',
- minWidth: 100
- },
- {
- title: '创建时间',
- key: 'create_time',
- minWidth: 150
- },
- {
- title: '备注',
- key: 'mark',
- minWidth: 200
- }
- ]
- this.loading = false
- }).catch(() => {
- this.loading = false
- })
- break
- case 'growth':
- this.tableFrom.uid = this.uid
- memberGrowthLog(this.tableFrom).then(res => {
- this.tableData.data = res.data.list
- this.tableData.total = res.data.count
- this.columns = [
- {
- title: '成长值来源',
- key: 'title',
- minWidth: 90
- },
- {
- title: '成长值变化',
- key: 'number',
- minWidth: 90
- },
- {
- title: '变化后成长值',
- key: 'balance',
- minWidth: 100
- },
- {
- title: '日期',
- key: 'create_time',
- minWidth: 150
- },
- {
- title: '备注',
- key: 'mark',
- minWidth: 200
- }
- ]
- this.loading = false
- }).catch(() => {
- this.loading = false
- })
- break
- case 'detailed':
- userPointsApi(this.uid, this.tableFrom).then(res => {
- this.tableData.data = res.data.list
- this.tableData.total = res.data.count
- this.columns = [
- {
- title: '来源/用途',
- key: 'title',
- minWidth: 90
- },
- {
- title: '积分变化',
- key: 'number',
- minWidth: 90
- },
- {
- title: '状态',
- key: 'status',
- minWidth: 90
- },
- {
- title: '当前有效积分',
- key: 'balance',
- minWidth: 100
- },
- {
- title: '日期',
- key: 'create_time',
- minWidth: 150
- },
- {
- title: '备注',
- key: 'mark',
- minWidth: 200
- }
- ]
- this.loading = false
- }).catch(() => {
- this.loading = false
- })
- break
- case 'footsteps':
- userHistoryApi(this.uid, this.tableFrom).then(res => {
- this.tableData.data = res.data.list
- this.tableData.total = res.data.count
- this.columns = [
- {
- title: '商品信息',
- key: 'image',
- minWidth: 200
- },
- {
- title: '价格',
- key: 'price',
- minWidth: 50
- },
- {
- title: '浏览时间',
- key: 'create_time',
- minWidth: 50
- }
- ]
- this.loading = false
- }).catch(() => {
- this.loading = false
- })
- break
- default:
- userBillApi(this.uid, this.tableFrom).then(res => {
- this.tableData.data = res.data.list
- this.tableData.total = res.data.count
- this.columns = [
- {
- title: '变动金额',
- key: 'number',
- minWidth: 90
- },
- {
- title: '变动后',
- key: 'balance',
- minWidth: 90
- },
- {
- title: '类型',
- key: 'title',
- minWidth: 100
- },
- {
- title: '创建时间',
- key: 'create_time',
- minWidth: 150
- },
- {
- title: '备注',
- key: 'mark',
- minWidth: 200
- }
- ]
- this.loading = false
- }).catch(() => {
- this.loading = false
- })
+
+ case 'diamond':
+ data = {'uid':this.uid,asset_type:2,page:this.tableFrom.page, limit:this.tableFrom.limit}
+ assetsLogList(data).then(res => {
+ this.tableData.data = res.data.list
+ this.tableData.total = res.data.count
+ this.columns = [
+ {
+ title: '分值来源',
+ key: 'type',
+ minWidth: 120
+ },
+ {
+ title: '变动情况',
+ key: 'count',
+ minWidth: 120
+ },
+ {
+ title: '变动时间',
+ key: 'create_time',
+ minWidth: 120
+ }
+ ]
+ this.loading = false
+ }).catch(() => {
+ this.loading = false
+ })
+ break
+ case 'stock':
+ data = {'uid':this.uid,asset_type:3,page:this.tableFrom.page, limit:this.tableFrom.limit}
+ assetsLogList(data).then(res => {
+ console.log(res);
+ this.tableData.data = res.data.list
+ this.tableData.total = res.data.count
+ this.columns = [
+ {
+ title: '分值来源',
+ key: 'type',
+ minWidth: 120
+ },
+ {
+ title: '变动情况',
+ key: 'count',
+ minWidth: 120
+ },
+ {
+ title: '变动时间',
+ key: 'create_time',
+ minWidth: 120
+ }
+ ]
+ this.loading = false
+ }).catch(() => {
+ this.loading = false
+ })
+ break
+ default:
+ userBillApi(this.uid, this.tableFrom).then(res => {
+ this.tableData.data = res.data.list
+ this.tableData.total = res.data.count
+ this.columns = [
+ {
+ title: '变动金额',
+ key: 'number',
+ minWidth: 90
+ },
+ {
+ title: '变动后',
+ key: 'balance',
+ minWidth: 90
+ },
+ {
+ title: '类型',
+ key: 'title',
+ minWidth: 100
+ },
+ {
+ title: '创建时间',
+ key: 'create_time',
+ minWidth: 150
+ },
+ {
+ title: '备注',
+ key: 'mark',
+ minWidth: 200
+ }
+ ]
+ this.loading = false
+ }).catch(() => {
+ this.loading = false
+ })
}
},
handleClose() {
@@ -1165,7 +899,7 @@ export default {
this.$emit('setMember',{uid: this.uid});
} else if (command == 'svipSet') {
this.$emit('giveMember',{uid: this.uid});
- }
+ }
},
pageChange(page) {
this.tableFrom.page = page
@@ -1284,7 +1018,7 @@ export default {
margin-right: 7px;
}
.svip{
-
+
.svip-img{
width: 40px;
height: 15px;