Liuyi
2024-10-08 404ebee9f47d2d80353e64974193e3e31e7b91b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<script setup>
import { onMounted,ref} from 'vue';
import{ creatUserArchive } from '../../api/index.js'
 
const form = ref({
    waterCardNumber:'',
    userName:'',
    userPhone:'',
    remark:'',
})
async function submit(){
    await creatUserArchive(form.value).then((res) =>{
        if(res.code == 200){
            uni.showToast({
                title: '绑定成功',
                image: '../../static/images/other/success.svg',
                duration:500     
            })
            uni.navigateBack()
        }
    })
}
onMounted(() =>{
})
</script>
<template>
    <view class="container">
        <view class="content">
            <navbar title="绑定会员卡"></navbar>
            <view class="main">
                <view class="title">请填写卡及个人信息</view>
                <view class="form">
                    <view class="form-item card-item">
                        <text>卡号:</text>
                        <input v-model="form.waterCardNumber" placeholder="请输入卡号"/>
                        <image src="../../static/images/addCard/code.png" alt=""></image>
                    </view>
                    <view class="form-item">
                        <text>姓名:</text>
                        <input v-model="form.userName" placeholder="请输入姓名"/>
                    </view>
                    <view class="form-item">
                        <text>联系方式:</text>
                        <input v-model="form.userPhone" placeholder="请输入手机号"/>
                    </view>
                    <!-- <view class="form-item">
                        <text>区域:</text>
                        <input v-model="form.waterCardNumber" placeholder="请选择区域"/>
                    </view>
                    <view class="form-item">
                        <text>地址:</text>
                        <input v-model="form.waterCardNumber" placeholder="请输入地址"/>
                    </view> -->
                    <view class="form-item">
                        <text>备注:</text>
                        <input v-model="form.remark" placeholder="请输入内容"/>
                    </view>
                </view>
                <view class="tips">
                    <text>1、完成实名认证,方便遗失挂失及补卡等。</text>
                    <text>2、绑卡后,运营商可以看到您实名时填写的 姓名和电话。</text>
                </view>
                <view class="subBtn" @click="submit()">提交信息</view>
            </view>
        </view>
    </view>
</template>
 
<style lang="scss" scoped>
       .container{
           width:100%;
           height:100vh;
           .content{
               width:100%;
               height:100vh;
               .navbar{
                   width:100%;
                   height:176rpx;
                   background: linear-gradient(to bottom,#5EA1FA,#8BC1FC);
                   display: flex;
                   align-items: flex-end;
                   padding-bottom:24rpx;
                   box-sizing: border-box;
                   image{
                       width:20rpx;
                       height:40rpx;
                       margin-left:32rpx;
                   }
                   text{
                       font-weight: 400;
                       font-size: 36rpx;
                       color: #000000;
                       margin-left: 234rpx;
                       
                   }
               }
           .main{
               width:100%;
               height: calc(100vh - 176rpx);
               background:linear-gradient(to top,#FFFFFF,#E8EFFF);
               padding:0 32rpx 38rpx;
               box-sizing:border-box;
               .title{
                   width:100%;
                   height:130rpx;
                   text-align:left;
                   line-height:130rpx;
                   // background: #e6e6e6; 
               }
               .form{
                   height: 700rpx;
                   width:100%;
                   background: #FFFFFF;
                   border-radius: 24rpx;
                   .form-item{
                       height:100rpx;
                       width:96%;
                       border-bottom:1px solid rgba(226,226,226,0.6);
                       display: flex;
                       justify-content:space-between;
                       align-items: center;
                       margin: 0 auto;
                       text{
                           width:160rpx;
                           font-weight:400;
                           font-size: 32rpx;
                           color: #000000;
                           margin-left: 24rpx;
                           // margin-right: 82rpx;
                       }
                       input{
                           width: 450rpx;
                           :deep(.uni-input-placeholder ){
                               font-weight: 300;
                               font-size:32rpx;
                               color: #ccc;
                           }
                       }
                   }
                   .card-item{
                       input{
                         width:375rpx;
                         }
                         image{
                             width:44rpx;
                             height:44rpx;
                         }
                   }
               }
               .tips{
                   width: 100%;
                   padding:0 20rpx;
                   box-sizing: border-box;
                   display: flex;
                   justify-content: space-between;
                   align-items: flex-start;
                   flex-direction: column;
                   margin-top:56rpx;
                   font-weight: 300;
                   font-size: 32rpx;
                   color: #484848;
                   text:first-child{
                       margin-bottom:28rpx;
                   }
               }
               .subBtn{
                   width: 100%;
                   height: 98rpx;
                   background-color:#5EA1FA;
                   border-radius: 50rpx;
                   font-weight: 300;
                   font-size: 36rpx;
                   color: #FFFFFF;
                   text-align: center;
                   line-height:98rpx;
                   margin-top: 236rpx;
                   letter-spacing:2px;
               }
           }
       }
   }
</style>