master
xingyy 9 months ago
parent acb4539165
commit 95668bb1ad

@ -1,5 +1,25 @@
<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
@click="acc = 0"
activeColor="#EB783C"
@ -17,8 +37,7 @@
<img v-else style="width: 100%;height: 100%" src="../../static/zu-44.png" alt="">
</div>
</tm-tabbar-item>
</tm-tabbar>
</tm-tabbar>-->
</template>
<script setup>
import {ref, defineEmits, watch,} from 'vue'
@ -28,3 +47,43 @@ watch(acc,()=>{
emit('update:modelValue',acc.value)
})
</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) => {
return uniReq.post({
url: '/ticket/ticketList',
url: '/api/ticket/ticketList',
data
})
}
@ -29,7 +29,6 @@ export const upload = (data) => {
} catch (e) {
return e
}
}
}
})

@ -17,12 +17,13 @@ export default uniRequest.created({
return config
},
response(response) {
uni.hideLoading()
uni.showToast({
title: response.data.msg,
icon: 'none',
duration: 3000
duration: 50000
})
uni.hideLoading()
return response.data
}
}

@ -13,7 +13,6 @@ type HttpMethod =
| 'options'
| 'TRACE'
| 'trace';
interface RequestOptions {
baseUrl?: string;
url?: string;
@ -25,7 +24,7 @@ interface RequestOptions {
dataType?: string,
responseType?: string,
sslVerify?: boolean,
withCredentials?: boolean
withCredentials?: boolean,
firstIpv4?: boolean,
enableHttp2?: boolean,
enableQuic?: boolean,
@ -85,11 +84,9 @@ class uniRequest {
setDefaultHeader(header: Record<string, string>): void {
this.defaultHeader = header;
}
static created(options: RequestOptions) {
return new uniRequest(options);
}
request(options: RequestOptions): Promise<any> {
options = this.buildRequestOptions(options)
options = options || {};

@ -36,7 +36,6 @@ const res=await getInfo()
display: flex;
align-items: center;
flex-direction: column;
.btn {
background: transparent;
width: 200rpx;

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Loading…
Cancel
Save