submit
This commit is contained in:
parent
acb4539165
commit
95668bb1ad
@ -1,5 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<tm-tabbar :autoSelect="false" v-model:active="acc">
|
<div class="main">
|
||||||
|
<div class="content1">
|
||||||
|
<div class="wrap1" @click="acc=0">
|
||||||
|
<div class="wrap1_1">
|
||||||
|
<img v-show="acc===0" style="width: 52rpx;height:52rpx" src="../../static/zu618.png" alt="">
|
||||||
|
<img v-show="acc!==0" style="width: 52rpx;height:52rpx" src="../../static/zu759@3x.png" alt="">
|
||||||
|
</div>
|
||||||
|
<div :style="{color: acc===0?'#EB783C':'#000'}" class="wrap1_2">
|
||||||
|
选票
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="wrap2" @click="acc=1">
|
||||||
|
<div class="wrap2_1">
|
||||||
|
<img v-show="acc===0" style="width: 52rpx;height:52rpx" src="../../static/zu628.png" alt="">
|
||||||
|
<img v-show="acc!==0" style="width: 52rpx;height:52rpx" src="../../static/zu-44.png" alt="">
|
||||||
|
</div>
|
||||||
|
<div :style="{color: acc===1?'#EB783C':'#000'}" class="wrap2_2">我的</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- <tm-tabbar :autoSelect="false" v-model:active="acc">
|
||||||
<tm-tabbar-item
|
<tm-tabbar-item
|
||||||
@click="acc = 0"
|
@click="acc = 0"
|
||||||
activeColor="#EB783C"
|
activeColor="#EB783C"
|
||||||
@ -17,8 +37,7 @@
|
|||||||
<img v-else style="width: 100%;height: 100%" src="../../static/zu-44.png" alt="">
|
<img v-else style="width: 100%;height: 100%" src="../../static/zu-44.png" alt="">
|
||||||
</div>
|
</div>
|
||||||
</tm-tabbar-item>
|
</tm-tabbar-item>
|
||||||
</tm-tabbar>
|
</tm-tabbar>-->
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import {ref, defineEmits, watch,} from 'vue'
|
import {ref, defineEmits, watch,} from 'vue'
|
||||||
@ -28,3 +47,43 @@ watch(acc,()=>{
|
|||||||
emit('update:modelValue',acc.value)
|
emit('update:modelValue',acc.value)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.main{
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: 9;
|
||||||
|
height: 170rpx;
|
||||||
|
width: 750rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
.content1{
|
||||||
|
padding-right: 222rpx;
|
||||||
|
padding-left: 222rpx;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
.wrap1{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
margin-right: 206rpx;
|
||||||
|
.wrap1_2{
|
||||||
|
margin-top: 4rpx;
|
||||||
|
color: #000;
|
||||||
|
font-size: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.wrap2{
|
||||||
|
margin-right: 206rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
.wrap2_2{
|
||||||
|
margin-top: 4rpx;
|
||||||
|
color: #000;
|
||||||
|
font-size: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -13,7 +13,7 @@ export const getInfo = () => {
|
|||||||
}
|
}
|
||||||
export const ticketlist = (data) => {
|
export const ticketlist = (data) => {
|
||||||
return uniReq.post({
|
return uniReq.post({
|
||||||
url: '/ticket/ticketList',
|
url: '/api/ticket/ticketList',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -29,7 +29,6 @@ export const upload = (data) => {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -17,12 +17,13 @@ export default uniRequest.created({
|
|||||||
return config
|
return config
|
||||||
},
|
},
|
||||||
response(response) {
|
response(response) {
|
||||||
|
uni.hideLoading()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: response.data.msg,
|
title: response.data.msg,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 3000
|
duration: 50000
|
||||||
})
|
})
|
||||||
uni.hideLoading()
|
|
||||||
return response.data
|
return response.data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,6 @@ type HttpMethod =
|
|||||||
| 'options'
|
| 'options'
|
||||||
| 'TRACE'
|
| 'TRACE'
|
||||||
| 'trace';
|
| 'trace';
|
||||||
|
|
||||||
interface RequestOptions {
|
interface RequestOptions {
|
||||||
baseUrl?: string;
|
baseUrl?: string;
|
||||||
url?: string;
|
url?: string;
|
||||||
@ -25,7 +24,7 @@ interface RequestOptions {
|
|||||||
dataType?: string,
|
dataType?: string,
|
||||||
responseType?: string,
|
responseType?: string,
|
||||||
sslVerify?: boolean,
|
sslVerify?: boolean,
|
||||||
withCredentials?: boolean
|
withCredentials?: boolean,
|
||||||
firstIpv4?: boolean,
|
firstIpv4?: boolean,
|
||||||
enableHttp2?: boolean,
|
enableHttp2?: boolean,
|
||||||
enableQuic?: boolean,
|
enableQuic?: boolean,
|
||||||
@ -85,11 +84,9 @@ class uniRequest {
|
|||||||
setDefaultHeader(header: Record<string, string>): void {
|
setDefaultHeader(header: Record<string, string>): void {
|
||||||
this.defaultHeader = header;
|
this.defaultHeader = header;
|
||||||
}
|
}
|
||||||
|
|
||||||
static created(options: RequestOptions) {
|
static created(options: RequestOptions) {
|
||||||
return new uniRequest(options);
|
return new uniRequest(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
request(options: RequestOptions): Promise<any> {
|
request(options: RequestOptions): Promise<any> {
|
||||||
options = this.buildRequestOptions(options)
|
options = this.buildRequestOptions(options)
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
@ -36,7 +36,6 @@ const res=await getInfo()
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
width: 200rpx;
|
width: 200rpx;
|
||||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Loading…
Reference in New Issue
Block a user