|
@@ -32,28 +32,18 @@
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title required">开户行</div>
|
|
<div class="tui-title required">开户行</div>
|
|
|
- <input
|
|
|
|
|
- v-model="form.cashBank"
|
|
|
|
|
- placeholder-class="phcolor"
|
|
|
|
|
- class="tui-input"
|
|
|
|
|
- name="cashBank"
|
|
|
|
|
- placeholder="如:建设银行厦门瑞景支行"
|
|
|
|
|
- maxlength="50"
|
|
|
|
|
- type="text"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <input v-model="form.cashBank" placeholder-class="phcolor" class="tui-input" name="cashBank" placeholder="如:建设银行厦门瑞景支行" maxlength="50" type="text" />
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <!-- 提交 -->
|
|
|
|
|
|
|
+ <view style="color:red;font-weight:bold;margin:20upx 0 10upx 25upx;font-size:27upx;">注意:提现账号若要修改,请先告知管理员,否则修改无效</view>
|
|
|
|
|
+
|
|
|
<div class="confirm-btn">
|
|
<div class="confirm-btn">
|
|
|
- <button class="admin-button-com big blue" formType="submit">
|
|
|
|
|
- 提交
|
|
|
|
|
- </button>
|
|
|
|
|
|
|
+ <button class="admin-button-com big blue" formType="submit"> 提交 </button>
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- <kd-entrance></kd-entrance> -->
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -62,7 +52,7 @@ import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import AppAvatarModule from "@/components/module/app-avatar";
|
|
import AppAvatarModule from "@/components/module/app-avatar";
|
|
|
const form = require("@/utils/formValidation.js");
|
|
const form = require("@/utils/formValidation.js");
|
|
|
import { cashUpdate } from "@/api/cash";
|
|
import { cashUpdate } from "@/api/cash";
|
|
|
-import { currentShop } from "@/api/shop";
|
|
|
|
|
|
|
+import { getMainInfo } from "@/api/main";
|
|
|
export default {
|
|
export default {
|
|
|
name: "cashSet",
|
|
name: "cashSet",
|
|
|
components: {
|
|
components: {
|
|
@@ -83,24 +73,16 @@ export default {
|
|
|
memberData: {},
|
|
memberData: {},
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
- onLoad() {
|
|
|
|
|
- //this.init()
|
|
|
|
|
- },
|
|
|
|
|
- onShow() {
|
|
|
|
|
- uni.setNavigationBarTitle({
|
|
|
|
|
- title: `提现账号设置`,
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
- async init() {
|
|
|
|
|
- try {
|
|
|
|
|
- const { data } = await currentShop();
|
|
|
|
|
- this.form.cashAccount = data.cashAccount;
|
|
|
|
|
- this.form.cashName = data.cashName;
|
|
|
|
|
- this.form.cashBank = data.cashBank;
|
|
|
|
|
- this.$forceUpdate();
|
|
|
|
|
- } finally {
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ init() {
|
|
|
|
|
+ getMainInfo().then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ this.form.cashAccount = res.data.info.cashAccount ? res.data.info.cashAccount : ''
|
|
|
|
|
+ this.form.cashName = res.data.info.cashName ? res.data.info.cashName : ''
|
|
|
|
|
+ this.form.cashBank = res.data.info.cashBank ? res.data.info.cashBank : ''
|
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
confirmFn() {
|
|
confirmFn() {
|
|
|
cashUpdate(this.form).then((res) => {
|
|
cashUpdate(this.form).then((res) => {
|
|
@@ -111,7 +93,6 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
formSubmit(e) {
|
|
formSubmit(e) {
|
|
|
- // 表单验证
|
|
|
|
|
let rules = [
|
|
let rules = [
|
|
|
{
|
|
{
|
|
|
name: "cashName",
|
|
name: "cashName",
|
|
@@ -129,10 +110,8 @@ export default {
|
|
|
msg: ["请输入开户行"],
|
|
msg: ["请输入开户行"],
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
|
- // 进行表单检查
|
|
|
|
|
let formData = e.detail.value;
|
|
let formData = e.detail.value;
|
|
|
let checkRes = form.validation(formData, rules);
|
|
let checkRes = form.validation(formData, rules);
|
|
|
- // 验证通过!
|
|
|
|
|
if (!checkRes) {
|
|
if (!checkRes) {
|
|
|
this.confirmFn();
|
|
this.confirmFn();
|
|
|
} else {
|
|
} else {
|