mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-19 09:25:53 +08:00
所有页面res.code替换为res.success
This commit is contained in:
@@ -761,7 +761,7 @@ export default {
|
||||
API_Setting.addSmsTemplatePage(this.templateForm)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
if (res.code === 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("添加成功");
|
||||
this.loading = false;
|
||||
this.templateModalVisible = false;
|
||||
@@ -775,7 +775,7 @@ export default {
|
||||
API_Setting.editSmsTemplatePage(this.templateForm)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
if (res.code === 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("修改成功");
|
||||
this.loading = false;
|
||||
this.templateModalVisible = false;
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
if (this.id == undefined) {
|
||||
API_Setting.addSmsSign(this.form).then(res => {
|
||||
this.loading = false;
|
||||
if (res.code === 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success('添加成功');
|
||||
this.$router.back()
|
||||
}
|
||||
@@ -134,7 +134,7 @@
|
||||
} else {
|
||||
API_Setting.editSmsSign(this.form).then(res => {
|
||||
this.loading = false;
|
||||
if (res.code === 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success('修改成功');
|
||||
this.$router.back()
|
||||
}
|
||||
@@ -150,7 +150,7 @@
|
||||
getSmsSignDetail() {
|
||||
API_Setting.smsSignDetail(this.id).then(res => {
|
||||
this.loading = false;
|
||||
if (res.code === 200) {
|
||||
if (res.success) {
|
||||
this.form = res.result
|
||||
}
|
||||
})
|
||||
|
||||
@@ -84,7 +84,7 @@ export default {
|
||||
setSetting(this.type, {
|
||||
qqConnectSettingItemList: this.formValidate,
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
this.$Modal.remove();
|
||||
} else {
|
||||
|
||||
@@ -82,7 +82,7 @@ export default {
|
||||
setSetting(this.type, {
|
||||
wechatConnectSettingItems: this.formValidate,
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
this.$Modal.remove();
|
||||
} else {
|
||||
|
||||
@@ -54,7 +54,7 @@ export default {
|
||||
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
} else {
|
||||
this.$Message.error("保存失败!");
|
||||
|
||||
@@ -104,7 +104,7 @@ export default {
|
||||
setupSetting() {
|
||||
setSetting(this.type, { paymentSupportItems: this.formValidate }).then(
|
||||
(res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
this.$Modal.remove();
|
||||
} else {
|
||||
|
||||
@@ -60,7 +60,7 @@ export default {
|
||||
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
} else {
|
||||
this.$Message.error("保存失败!");
|
||||
|
||||
@@ -103,7 +103,7 @@ export default {
|
||||
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
} else {
|
||||
this.$Message.error("保存失败!");
|
||||
|
||||
@@ -99,7 +99,7 @@ export default {
|
||||
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
} else {
|
||||
this.$Message.error("保存失败!");
|
||||
|
||||
@@ -47,7 +47,7 @@ export default {
|
||||
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
} else {
|
||||
this.$Message.error("保存失败!");
|
||||
|
||||
@@ -71,7 +71,7 @@ export default {
|
||||
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
} else {
|
||||
this.$Message.error("保存失败!");
|
||||
|
||||
@@ -53,7 +53,7 @@ export default {
|
||||
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
} else {
|
||||
this.$Message.error("保存失败!");
|
||||
|
||||
@@ -80,7 +80,7 @@ export default {
|
||||
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
} else {
|
||||
this.$Message.error("保存失败!");
|
||||
|
||||
@@ -50,7 +50,7 @@ export default {
|
||||
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
} else {
|
||||
this.$Message.error("保存失败!");
|
||||
|
||||
@@ -42,7 +42,7 @@ export default {
|
||||
|
||||
setupSetting() {
|
||||
setSetting(this.type, this.formValidate).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
} else {
|
||||
this.$Message.error("保存失败!");
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
},
|
||||
saveSetting() {
|
||||
setSetting("SMS_SETTING", this.form).then((res) => {
|
||||
if (res.code == 200) {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功!");
|
||||
} else {
|
||||
this.$Message.error("保存失败!");
|
||||
|
||||
Reference in New Issue
Block a user