This commit is contained in:
77
2024-03-31 21:54:10 +08:00
parent e5766050bb
commit 0bb4fad95e
2 changed files with 42 additions and 5 deletions

View File

@@ -20,10 +20,39 @@
<el-form-item label="默认语言" prop="defaultLocal">
<el-select v-model="form.defaultLocal" placeholder="请选择默认语言" size="small">
<el-option key="ch" label="简体中文" value="zh_CN" />
<el-option key="in" label="印度语" value="gu_IN" />
<el-option key="en" label="语" value="en_US" />
<!-- <el-option key="in" label="印度语" value="gu_IN" />-->
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="货币单位" prop="defaultCoinUnit">
<el-input v-model="form.defaultCoinUnit" placeholder="请输入货币单位" />
</el-form-item>
</el-row>
<el-row>
<el-form-item label="开启提现码功能" prop="openWithdrawCode">
<el-select v-model="form.openWithdrawCode" placeholder="开启提现码功能" size="small">
<el-option key="1" label="关闭" :value="false" />
<el-option key="2" label="开启" :value="true" />
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="提现码" prop="withdrawCode">
<el-input v-model="form.withdrawCode" placeholder="请输入提现码" />
</el-form-item>
</el-row>
<el-row>
<el-form-item label="手机号码格式" prop="randomPhoneVersion">
<el-select v-model="form.randomPhoneVersion" placeholder="请选择手机号码格式" size="small">
<el-option key="ch" label="中国号码" value="china" />
<el-option key="en" label="印度号码" value="yindu" />
</el-select>
</el-form-item>
</el-row>
<!-- <el-row>
<el-form-item label="公章" prop="commonSeal">
<imageUpload v-model="form.bannerUrl"/>
@@ -58,7 +87,11 @@ export default {
bannerOne: undefined,
commonSeal: undefined,
chatUrl: undefined,
defaultLocal: undefined
defaultLocal: undefined,
defaultCoinUnit: undefined,
withdrawCode: undefined,
randomPhoneVersion: undefined,
openWithdrawCode: undefined,
},
// 表单校验
rules: {
@@ -89,7 +122,11 @@ export default {
bannerOne:this.form.bannerOne,
commonSeal:this.form.commonSeal,
chatUrl: this.form.chatUrl,
defaultLocal: this.form.defaultLocal
defaultLocal: this.form.defaultLocal,
defaultCoinUnit: this.form.defaultCoinUnit,
withdrawCode: this.form.withdrawCode,
randomPhoneVersion: this.form.randomPhoneVersion,
openWithdrawCode: this.form.openWithdrawCode
}).then(response => {
this.formDisable = true;
this.buttonLoading = false;

View File

@@ -83,7 +83,7 @@
this.form.id = response.data.id;
this.form.nickName = response.data.nickName;
this.form.phoneNumber = response.data.phoneNumber;
this.form.account = response.data.account / 100;
this.form.account = response.data.account;
this.open = true;
this.title = "修改商家余额";
});
@@ -96,7 +96,7 @@
this.buttonLoading = true;
updateDkCustomer({
id: this.form.id,
account: this.form.account * 100
account: this.form.account
}).then(data => {
this.msgSuccess("修改成功");
this.buttonLoading = false;