123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <template>
- <view class="formBox">
- <view class="from_item">
- <text class="label">账号验证</text>
- <input type="text" placeholder="输入验证码" v-model="model1.uname" placeholder-style="color:#000">
- </view>
- <view class="from_item">
- <text class="label">手机号码</text>
- <input type="text" placeholder="" v-model="model1.phone" placeholder-style="color:#000" disabled="true">
- </view>
- <view class="from_item">
- <text class="label">验证码</text>
- <input type="text" placeholder="请输入验证码" placeholder-style="color:#000">
- <text class="btn" @click="getCode">获取验证码</text>
- </view>
- <button class="submit" @click="submit">验证</button>
- </view>
-
- </template>
-
- <script setup lang="ts">
- import {
- reactive
- } from "vue";
- import {
- navTo
- } from "@/utils/utils"
- import {
- stringToJson
- } from "../../utils/network/encryption.js";
- import {
- request
- } from "../../utils/network/request.js";
- import {
- CardHangUpStatus
- } from "@/utils/network/api.js"
-
- let model1 = reactive({
- uname: '输入验证码',
- phone: '135****9090',
- code: ''
- })
-
- const getCode = () => {
- console.log(123);
- }
-
- const changeCardstatus = (type) => {
- //参数说明
- let options = {
- type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
- data: {
- cardId: '', //卡号
- obuId: "", //签号
- reason: "", //原因
- provider: '2', //挂起类型 2-有卡挂起,3-无卡挂起
- operation: "1", //1-卡挂起, 2-牵挂起, 3-卡签挂起, 4-卡解挂 ,5-签解挂
- orderId: '20230225155521777646302', //订单编号
- }, //请求参数
- method: "POST", //提交方式(默认POST)
- showLoading: true, //是否显示加载中(默认显示)
- };
-
- //调用方式
- request(CardHangUpStatus, options)
- .then((res) => {
- stringToJson(res.bizContent)
- if (stringToJson(res.statusCode) == 0) {
- navTo('/after-sale/card-release-pending/result')
- }
- })
- .catch((err) => {
- console.log(err);
- });
- }
-
- const submit = () => {
- console.log("111");
- changeCardstatus()
-
- }
- </script>
-
-
- <style>
- page {
- width: 100%;
- height: 100%;
- }
- </style>
-
- <style lang="scss" scoped>
- .formBox {
- height: 90%;
- width: 100%;
-
- // background-color: red;
- .from_item {
- padding: 30rpx;
- padding-top: 60rpx;
- position: relative;
-
- .label {
- font-size: 28rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #777777;
- }
-
- input {
- font-size: 32rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #333333;
- line-height: 58rpx;
- border-bottom: 1rpx solid #DCDCDC;
- margin-top: 50rpx;
- padding-bottom: 10rpx;
-
- }
-
- .btn {
- position: absolute;
- right: 45rpx;
- bottom: 48rpx;
- background: transparent;
- font-size: 30rpx;
- color: #15E5C1;
- z-index: 999;
-
- }
-
- }
-
- .submit {
- background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
- width: 670rpx;
- height: 80rpx;
- line-height: 80rpx;
- color: #fff;
- border-radius: 100rpx;
- position: fixed;
- bottom: 100rpx;
- left: 50%;
- transform: translate(-50%);
- font-size: 32rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #FFFFFF;
- line-height: 80rpx;
- }
- }
- </style>
|