Commit 8a841f4d by 胡悦

修复

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