|
|
@@ -0,0 +1,159 @@
|
|
|
+<template>
|
|
|
+ <div class="app-content">
|
|
|
+ <div v-show="showStaffArea">
|
|
|
+ <form @submit="formSubmit">
|
|
|
+ <div class="module-com input-line-wrap">
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title required">姓名</div>
|
|
|
+ <input
|
|
|
+ v-model="form.cashName"
|
|
|
+ placeholder-class="phcolor"
|
|
|
+ class="tui-input"
|
|
|
+ name="cashName"
|
|
|
+ placeholder="请输入姓名或公司名"
|
|
|
+ maxlength="50"
|
|
|
+ type="text"
|
|
|
+ />
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title required">银行卡号</div>
|
|
|
+ <input
|
|
|
+ v-model="form.cashAccount"
|
|
|
+ placeholder-class="phcolor"
|
|
|
+ class="tui-input"
|
|
|
+ name="cashAccount"
|
|
|
+ placeholder="请输入"
|
|
|
+ maxlength="50"
|
|
|
+ type="number"
|
|
|
+ />
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title required">开户行</div>
|
|
|
+ <input v-model="form.cashBank" placeholder-class="phcolor" class="tui-input" name="cashBank" placeholder="如:建设银行厦门瑞景支行" maxlength="50" type="text" />
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <view style="color:red;font-weight:bold;margin:20upx 0 10upx 25upx;font-size:27upx;">注意:提现账号若要修改,请先告知管理员,否则修改无效</view>
|
|
|
+
|
|
|
+ <div class="confirm-btn">
|
|
|
+ <button class="admin-button-com big blue" formType="submit"> 提交 </button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import TuiListCell from "@/components/plugin/list-cell";
|
|
|
+import AppAvatarModule from "@/components/module/app-avatar";
|
|
|
+const form = require("@/utils/formValidation.js");
|
|
|
+import { cashUpdate } from "@/api/cash";
|
|
|
+import { getMainInfo } from "@/api/main";
|
|
|
+export default {
|
|
|
+ name: "cashSet",
|
|
|
+ components: {
|
|
|
+ TuiListCell,
|
|
|
+ AppAvatarModule,
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ form: {
|
|
|
+ cashAccount: "",
|
|
|
+ cashName: "",
|
|
|
+ cashBank:"",
|
|
|
+ },
|
|
|
+ roleList: [],
|
|
|
+ roleSelData: {},
|
|
|
+ showStaffArea: true,
|
|
|
+ miniCodeSrc: "",
|
|
|
+ memberData: {},
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ 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() {
|
|
|
+ cashUpdate(this.form).then((res) => {
|
|
|
+ this.$msg("操作成功");
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.navigateBack();
|
|
|
+ }, 1300)
|
|
|
+ });
|
|
|
+ },
|
|
|
+ formSubmit(e) {
|
|
|
+ let rules = [
|
|
|
+ {
|
|
|
+ name: "cashName",
|
|
|
+ rule: ["required"],
|
|
|
+ msg: ["请输入姓名"],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "cashAccount",
|
|
|
+ rule: ["required"],
|
|
|
+ msg: ["请输入卡号"],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "cashBank",
|
|
|
+ rule: ["required"],
|
|
|
+ msg: ["请输入开户行"],
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ let formData = e.detail.value;
|
|
|
+ let checkRes = form.validation(formData, rules);
|
|
|
+ if (!checkRes) {
|
|
|
+ this.confirmFn();
|
|
|
+ } else {
|
|
|
+ this.$msg(checkRes);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.app-content {
|
|
|
+ min-height: calc(100vh - 20upx);
|
|
|
+ padding-top: 20upx;
|
|
|
+}
|
|
|
+.prompt-text {
|
|
|
+ color: $fontColor3;
|
|
|
+ padding-left: 30upx;
|
|
|
+ margin-bottom: 30upx;
|
|
|
+}
|
|
|
+// ---
|
|
|
+.module-com {
|
|
|
+ margin-bottom: 20upx;
|
|
|
+ .member-wrap {
|
|
|
+ .member-det {
|
|
|
+ font-size: 24upx;
|
|
|
+ margin-left: 20upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .remark-wrap {
|
|
|
+ align-items: flex-start;
|
|
|
+ .remark {
|
|
|
+ height: 240upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+// 按钮
|
|
|
+.confirm-btn {
|
|
|
+ width: calc(100% - 60upx);
|
|
|
+ margin: 60upx 30upx 20upx;
|
|
|
+ .admin-button-com {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|