瀏覽代碼

静态页面

xcx 4 年之前
父節點
當前提交
b933e3aee8

+ 2
- 2
config/index.js 查看文件

12
     assetsPublicPath: '/',
12
     assetsPublicPath: '/',
13
     proxyTable: {
13
     proxyTable: {
14
       '/api': {
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
         // target: 'http://123.57.65.31:9004',
17
         // target: 'http://123.57.65.31:9004',
18
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
18
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
19
         pathRewrite: { '^/api': '/api' }
19
         pathRewrite: { '^/api': '/api' }

+ 17
- 4
src/pages/WoDe/GeRenSheZhi/ZhangHuSheZhi/BangDingZhiFuBao/index.vue 查看文件

3
     <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderBack="true" MainHeaderTitle="绑定支付宝" @UserInfoChange="Init">
3
     <MainPageContainer :ShowMainHeader="true" :ShowMainHeaderBack="true" MainHeaderTitle="绑定支付宝" @UserInfoChange="Init">
4
       <div class="PageContainer">
4
       <div class="PageContainer">
5
         <div class="Form">
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
         </div>
18
         </div>
8
         <div class="Btn">
19
         <div class="Btn">
9
           <a @click="ToBindIdCard">确认</a>
20
           <a @click="ToBindIdCard">确认</a>
22
   data () {
33
   data () {
23
     return {
34
     return {
24
       AliAccount: '',
35
       AliAccount: '',
36
+      RealName: '',
25
       DataLock: false
37
       DataLock: false
26
     }
38
     }
27
   },
39
   },
37
   },
49
   },
38
   mounted () {
50
   mounted () {
39
     this.$nextTick(() => {
51
     this.$nextTick(() => {
40
-      this.AliAccount = (this.UserInfo || {}).alipayUser
41
     })
52
     })
42
   },
53
   },
43
   methods: {
54
   methods: {
48
       'UpdateUserInfo'
59
       'UpdateUserInfo'
49
     ]),
60
     ]),
50
     Init () {
61
     Init () {
62
+      this.AliAccount = (this.UserInfo || {}).alipayUser
63
+      this.RealName = (this.UserInfo || {}).realName
51
     },
64
     },
52
     ToBindIdCard () {
65
     ToBindIdCard () {
53
       if (this.DataLock) return
66
       if (this.DataLock) return
57
         this.DataLock = false
70
         this.DataLock = false
58
         return false
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
         this.Toast('绑定支付宝成功')
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
         this.DataLock = false
76
         this.DataLock = false
64
         this.$router.go(-1)
77
         this.$router.go(-1)
65
       }).catch((res) => {
78
       }).catch((res) => {

+ 25
- 6
src/pages/WoDe/GeRenSheZhi/ZhangHuSheZhi/BangDingZhiFuBao/page.scss 查看文件

11
     overflow-y: scroll;
11
     overflow-y: scroll;
12
     -webkit-overflow-scrolling: touch;
12
     -webkit-overflow-scrolling: touch;
13
     > .Form {
13
     > .Form {
14
-      padding: 0.15rem;
15
       background: #fff;
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
     > span {
42
     > span {