12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <template>
- <view class="main">
- <view class="form_group">
- <view class="lable re">手机号</view>
- <input type="digit" v-model="item.phone" placeholder="请输入手机号" />
- </view>
- <view class="bz">
- <text class="icon"></text>
- <text>请输入在医院预留的手机号</text>
- </view>
- <button class="btn" @click="add()">确认</button>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- item: {}
- };
- },
- methods: {
- add() {
- this.http.request({
- url: '/app/user/bind',
- method: 'POST',
- data: this.item,
- success: (res) => {
- uni.showModal({
- title: '提示',
- content: '绑定成功',
- showCancel: false,
- success: (res) => {
- uni.$emit('bind');
- uni.navigateBack();
- }
- });
- }
- });
- }
- }
- };
- </script>
- <style lang="scss">
- .btn {
- margin-top: 35px;
- }
- </style>
|