Commit 8a841f4d by 胡悦

修复

1 parent 044ed417
import {
Button, Form, Field, CellGroup, List
Button, Form, Field, CellGroup, List, Cell
} from 'vant'
export const components = [
Button, Form, Field, CellGroup, List
Button, Form, Field, CellGroup, List, Cell
]
\ No newline at end of file
import axios from './axios'
import { useUserStore } from '../store/user'
const PATH = 'rop-scrm-renewal/router/'
const PATH = 'rop-scrm-renewal/router'
let sessionId = useUserStore().sessionId
const req: any = (url: string, data: any, method = 'POST', ) => {
if (sessionId) data.sessionId = sessionId
data.method = url
return axios({
url: PATH + url,
url: PATH,
method,
data
})
......
......@@ -43,7 +43,7 @@
</div>
</div>
</div>
<div class="wrapper-history-list">
<div class="wrapper-history-list" :style="{'height': innerHeight - (280 + 10 + 28) + 'px'}">
<div class="history-list-top">
<img class="top-img" src="@/assets/images/list-info.png" alt="" />
</div>
......@@ -77,6 +77,8 @@ const toLogin = () => {
const logout = () => {
isLogin.value = false;
};
const innerHeight = ref(window.innerHeight)
console.log(innerHeight)
// 跳到积分使用记录页面
const toUseList = () => {
router.push("/uselist");
......@@ -86,7 +88,6 @@ const list = reactive([]);
// const loading = ref<boolean>(true);
// const finished = ref<boolean>(false);
const onload = (): void => {
console.log(111);
list.push(
{
id: "01",
......@@ -168,7 +169,7 @@ onMounted(() => {
border-radius: 4px;
margin: 0 16px 28px;
width: calc(100% - 32px);
height: 300px;
// height: 300px;
.history-list-top {
text-align: center;
padding: 16px 0;
......@@ -178,6 +179,7 @@ onMounted(() => {
}
}
.nodata {
margin-top: 40px;
text-align: center;
&-img {
width: 147px;
......
......@@ -43,10 +43,10 @@ const formSize = ref('large')
const register = reactive({
name: '胡悦',
mobile: '18873336682',
captcha: '123456 ',
plateNo: '34254324',
captcha: '8652 ',
plateNo: '粤B1V566',
bankName: '阿斯顿发',
bankNo: '2发送',
bankNo: '2342324325',
cardName: ''
})
let timeout: number | undefined = undefined
......@@ -72,11 +72,11 @@ const getCode = async() => {
const res = await req('scrm.api.renewal.customer.captcha.get', params)
}
const onRegister = (values: object) => {
const onRegister = async(values: object) => {
const params = {...register}
params.cardName = params.name
console.log(params)
// const res = await req('scrm.api.renewal.customer.resigter', params)
const res = await req('scrm.api.renewal.customer.register', params)
Notify({type: 'success', message: '注册成功'})
router.push('/registerSuccess')
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!