Browse Source

静态页面

xcx 4 years ago
parent
commit
b933e3aee8

+ 2
- 2
config/index.js View File

@@ -12,8 +12,8 @@ module.exports = {
12 12
     assetsPublicPath: '/',
13 13
     proxyTable: {
14 14
       '/api': {
15
-        target: 'http://127.0.0.1:8080',
16
-        // target: 'https://app.xnsport.cn',
15
+        // target: 'http://127.0.0.1:8080',
16
+        target: 'https://api.xnsport.cn',
17 17
         // target: 'http://123.57.65.31:9004',
18 18
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
19 19
         pathRewrite: { '^/api': '/api' }

+ 17
- 4
src/pages/WoDe/GeRenSheZhi/ZhangHuSheZhi/BangDingZhiFuBao/index.vue View File

@@ -3,7 +3,18 @@
3 3
     <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderBack="true" MainHeaderTitle="绑定支付宝" @UserInfoChange="Init">
4 4
       <div class="PageContainer">
5 5
         <div class="Form">
6
-          <input type="text" placeholder="请输入支付宝账号" v-model="AliAccount">
6
+          <div class="flex-h">
7
+            <span>支付宝账号</span>
8
+            <div class="flex-item">
9
+              <input type="text" placeholder="请输入支付宝账号" v-model="AliAccount">
10
+            </div>
11
+          </div>
12
+          <div class="flex-h">
13
+            <span>真实姓名</span>
14
+            <div class="flex-item">
15
+              <input type="text" placeholder="请输入真实姓名" v-model="RealName">
16
+            </div>
17
+          </div>
7 18
         </div>
8 19
         <div class="Btn">
9 20
           <a @click="ToBindIdCard">确认</a>
@@ -22,6 +33,7 @@ export default {
22 33
   data () {
23 34
     return {
24 35
       AliAccount: '',
36
+      RealName: '',
25 37
       DataLock: false
26 38
     }
27 39
   },
@@ -37,7 +49,6 @@ export default {
37 49
   },
38 50
   mounted () {
39 51
     this.$nextTick(() => {
40
-      this.AliAccount = (this.UserInfo || {}).alipayUser
41 52
     })
42 53
   },
43 54
   methods: {
@@ -48,6 +59,8 @@ export default {
48 59
       'UpdateUserInfo'
49 60
     ]),
50 61
     Init () {
62
+      this.AliAccount = (this.UserInfo || {}).alipayUser
63
+      this.RealName = (this.UserInfo || {}).realName
51 64
     },
52 65
     ToBindIdCard () {
53 66
       if (this.DataLock) return
@@ -57,9 +70,9 @@ export default {
57 70
         this.DataLock = false
58 71
         return false
59 72
       }
60
-      this.UpdateUserInfo({ urlData: { id: this.UserInfo.customerId }, data: { alipayUser: this.AliAccount } }).then(() => {
73
+      this.UpdateUserInfo({ urlData: { id: this.UserInfo.customerId }, data: { alipayUser: this.AliAccount, realName: this.RealName } }).then(() => {
61 74
         this.Toast('绑定支付宝成功')
62
-        this.EditUserInfo({ name: 'alipayUser', value: this.AliAccount })
75
+        this.EditUserInfo({ name: 'alipayUser', value: this.AliAccount }, { name: 'realName', value: this.RealName })
63 76
         this.DataLock = false
64 77
         this.$router.go(-1)
65 78
       }).catch((res) => {

+ 25
- 6
src/pages/WoDe/GeRenSheZhi/ZhangHuSheZhi/BangDingZhiFuBao/page.scss View File

@@ -11,13 +11,32 @@
11 11
     overflow-y: scroll;
12 12
     -webkit-overflow-scrolling: touch;
13 13
     > .Form {
14
-      padding: 0.15rem;
15 14
       background: #fff;
16
-      > input {
17
-        display: block;
18
-        font-size: 0.14rem;
19
-        line-height: 0.2rem;
20
-        width: 100%;
15
+      // > input {
16
+      //   display: block;
17
+      //   font-size: 0.14rem;
18
+      //   line-height: 0.2rem;
19
+      //   width: 100%;
20
+      // }
21
+      > div {
22
+        padding: 0 0.15rem;
23
+        align-items: center;
24
+        border-bottom: 0.01rem solid #f8f8f8;
25
+        > span {
26
+          font-size: 0.14rem;
27
+          min-width: 1rem;
28
+        }
29
+        > div {
30
+          > input {
31
+            display: block;
32
+            font-size: 0.14rem;
33
+            line-height: 0.2rem;
34
+            padding: 0.1rem 0;
35
+            background: none;
36
+            text-align: right;
37
+            width: 100%;
38
+          }
39
+        }
21 40
       }
22 41
     }
23 42
     > span {