+
钱包数据
余额变动
- 0.0000
- {{
+ selectItem.balance || "0.00"
+ }}
+ 调整
积分变动
- 0.0000
- {{
+ selectItem.integral || "0.00"
+ }}
+ 调整
@@ -132,7 +170,7 @@
@@ -174,6 +212,7 @@ export default {
formData: {},
// 校验规则
rules: {},
+ defaultAvatar: "./pic/default/default_avatar.png",
//
isOtherSettings: false,
@@ -181,24 +220,12 @@ export default {
options: [
{
- value: "选项1",
- label: "黄金糕",
- },
- {
- value: "选项2",
- label: "双皮奶",
+ value: 1,
+ label: "正常",
},
{
- value: "选项3",
- label: "蚵仔煎",
- },
- {
- value: "选项4",
- label: "龙须面",
- },
- {
- value: "选项5",
- label: "北京烤鸭",
+ value: -1,
+ label: "不正常",
},
],
value: "",
@@ -216,21 +243,15 @@ export default {
handleClose() {
this.$emit("handle-close");
},
- // 提交弹窗
- handleSuccess() {
- this.$emit("handle-success");
- },
+
// 初始化弹窗参数
initDataView() {
console.log("初始化弹窗参数");
},
// 提交表单
submitForm() {
- this.$refs.formData.validate((valid) => {
- if (valid && this.customValidate()) {
- console.log("提交表单");
- }
- });
+ this.$emit("handle-success");
+
},
customValidate() {
let rlt = true;
@@ -239,19 +260,18 @@ export default {
},
// 自定义邀请码
- setInvitation(title){
-
- this.othoerItem = {
- title: title,
- data: []
- }
- this.isOtherSettings = true
+ setInvitation(title) {
+ this.othoerItem = {
+ title: title,
+ data: [],
+ };
+ this.isOtherSettings = true;
},
- OtherClose(){
- console.log(123)
- this.isOtherSettings = false
- }
+ OtherClose() {
+ console.log(123);
+ this.isOtherSettings = false;
+ },
},
};
diff --git a/src/views/member-management/components/otherSettingsDialog/otherSettingsDialog.vue b/src/views/member-management/components/otherSettingsDialog/otherSettingsDialog.vue
index 885495e..0bbace9 100644
--- a/src/views/member-management/components/otherSettingsDialog/otherSettingsDialog.vue
+++ b/src/views/member-management/components/otherSettingsDialog/otherSettingsDialog.vue
@@ -10,14 +10,21 @@
@@ -79,7 +95,7 @@ export default {
},
// 选中的数据
selectItem: {
- type: Array,
+ type: Object,
default: () => {},
},
dialogTitle: {
@@ -89,9 +105,7 @@ export default {
},
},
},
- mounted(){
- console.log(this.selectItem)
- },
+ mounted() {},
data() {
return {
// dialog样式
@@ -105,27 +119,16 @@ export default {
formData: {},
// 校验规则
rules: {},
+ defaultAvatar: "./pic/default/default_avatar.png",
options: [
{
- value: "选项1",
- label: "黄金糕",
- },
- {
- value: "选项2",
- label: "双皮奶",
- },
- {
- value: "选项3",
- label: "蚵仔煎",
- },
- {
- value: "选项4",
- label: "龙须面",
+ value: 1,
+ label: "正常",
},
{
- value: "选项5",
- label: "北京烤鸭",
+ value: -1,
+ label: "不正常",
},
],
value: "",
@@ -141,7 +144,6 @@ export default {
methods: {
// 关闭弹窗
handleClose() {
- console.log(123)
this.$emit("handle-close");
},
// 提交弹窗
@@ -151,14 +153,30 @@ export default {
// 初始化弹窗参数
initDataView() {
console.log("初始化弹窗参数");
+
+ this.formData = JSON.parse(JSON.stringify(this.selectItem));
},
// 提交表单
submitForm() {
- this.$refs.formData.validate((valid) => {
- if (valid && this.customValidate()) {
- console.log("提交表单");
- }
- });
+ if (this.dialogTitle === "修改绑定的支付宝") {
+ this.selectItem.alipay_account = this.formData.alipay_account;
+ this.handleClose();
+ return;
+ }
+
+ if (this.dialogTitle === "调整余额") {
+ this.selectItem.balance = this.formData.balance;
+ this.handleClose();
+ return;
+ }
+
+ if (this.dialogTitle === "调整积分") {
+ this.selectItem.integral = this.formData.integral;
+ this.handleClose();
+ return;
+ }
+
+ console.log(this.dialogTitle);
},
customValidate() {
let rlt = true;
diff --git a/src/views/member-management/index.vue b/src/views/member-management/index.vue
index 1f7556d..c742dc3 100644
--- a/src/views/member-management/index.vue
+++ b/src/views/member-management/index.vue
@@ -29,26 +29,57 @@
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.remark || "-" }}
+
+
-
+
+
+
diff --git a/src/views/sort-management/components/check-books-dialog.vue b/src/views/sort-management/components/check-books-dialog.vue
index d1de267..9850181 100644
--- a/src/views/sort-management/components/check-books-dialog.vue
+++ b/src/views/sort-management/components/check-books-dialog.vue
@@ -148,7 +148,7 @@ export default {
'--title-height': '51px'
},
dialogTitle: '查看书籍',
- dialogSubTitle: '笔趣谷',
+ dialogSubTitle: '笔趣阁',
isSearchVisible: true,
// 表格数据
tableData: [
diff --git a/src/views/sort-management/index.vue b/src/views/sort-management/index.vue
index 5276e6b..1bc4c5b 100644
--- a/src/views/sort-management/index.vue
+++ b/src/views/sort-management/index.vue
@@ -5,43 +5,24 @@
:open-btn1="true"
:text-btn1="'新增分类'"
:open-btn5="true"
- :text-btn5="'书源'"
+ :text-btn5="btn5Data.name"
:type-btn5="'warning'"
:icon-btn5="'el-icon-tickets'"
+ @handle-button5="handleButton5"
@handle-refresh="refreshData"
@handle-button1="openEditDialog(null)"
+ :dropdownData="dropdownData"
/>
-
-
-
-
-
-
+
+
+
+
+ {{ btn5Data.name }}
+
+
+
-
+