优化页面
This commit is contained in:
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../VerifyLogin.js");Math||a();const a=()=>"../../pages/NewAddedPk/NewAddedPk2.js",o={__name:"tabBar",props:{tabIndex:Number},setup(a){let o=e.ref(!1),n=e.reactive([{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Pk.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/PKClick.png",text:"PK",pagePath:"/pages/Home/Home",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Forum.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Forumclick.png",text:"论坛",pagePath:"/pages/Forum/Forum",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/jiahao.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/jiahao.png",text:"",pagePath:"/pages/c/c",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Message.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Messageclick.png",text:"消息"},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Mine.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Mineclick.png",text:"我的",pagePath:"/pages/Mine/Mine",middleClass:""}]);e.onMounted((()=>{!function(){let e=n.length;if(e%2){o.value=!0;let t=Math.floor(e/2);n[t].middleClass="mid-button"}}()})),e.index.getSystemInfo({success:function(e){console.log("机型",e.deviceType),e.safeArea.top>40&&console.log("苹果的底部栏大小",e.safeArea.top)}});const s=e.ref();const c=()=>!1;function i(a,o){3===o?t.VerifyLogin().then((t=>{t&&e.index.redirectTo({url:"/TUIKit/components/TUIConversation/index",animationType:"none"})})):2===o?t.VerifyLogin().then((e=>{e&&s.value.open()})):4===o?t.VerifyLogin().then((t=>{t&&e.index.switchTab({url:"/pages/Mine/Mine",animationType:"none"})})):e.index.switchTab({url:a.pagePath})}return(t,l)=>({a:e.f(e.unref(n),((t,o,n)=>({a:a.tabIndex==o?t.selectedIconPath:t.iconPath,b:e.t(t.text),c:a.tabIndex==o?"#1DD2F9":"#A7A3A3",d:e.n("list-item flex flex-column flex-middle "+t.middleClass),e:e.o$1((e=>i(t,o)),o),f:o}))),b:e.n(!0===e.unref(o)?"tab-list-middle":"tab-list-default"),c:e.o$1(c),d:e.sr(s,"9fec1596-0",{k:"createModule"})})}},n=e._export_sfc(o,[["__scopeId","data-v-9fec1596"]]);wx.createComponent(n);
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../VerifyLogin.js");Math||a();const a=()=>"../../pages/NewAddedPk/NewAddedPk2.js",o={__name:"tabBar",props:{tabIndex:Number},setup(a){let o=e.ref(!1),n=e.reactive([{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Pk.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/PKClick.png",text:"PK",pagePath:"/pages/Home/Home",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Forum.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Forumclick.png",text:"论坛",pagePath:"/pages/Forum/Forum",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/jiahao.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/jiahao.png",text:"",pagePath:"/pages/c/c",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Message.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Messageclick.png",text:"消息"},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Mine.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Mineclick.png",text:"我的",pagePath:"/pages/Mine/Mine",middleClass:""}]);e.onMounted((()=>{!function(){let e=n.length;if(e%2){o.value=!0;let t=Math.floor(e/2);n[t].middleClass="mid-button"}}()})),e.index.getSystemInfo({success:function(e){console.log("机型",e.deviceType),e.safeArea.top>40&&console.log("苹果的底部栏大小",e.safeArea.top)}});const s=e.ref();const c=()=>!1;function i(a,o){3===o?t.VerifyLogin().then((t=>{t&&e.index.redirectTo({url:"/TUIKit/components/TUIConversation/index",animationType:"none"})})):2===o?t.VerifyLogin().then((e=>{e&&s.value.open()})):4===o?t.VerifyLogin().then((t=>{t&&e.index.switchTab({url:"/pages/Mine/Mine",animationType:"none"})})):e.index.switchTab({url:a.pagePath})}return(t,l)=>({a:e.f(e.unref(n),((t,o,n)=>({a:a.tabIndex==o?t.selectedIconPath:t.iconPath,b:e.t(t.text),c:a.tabIndex==o?"#1DD2F9":"#A7A3A3",d:e.n("list-item flex flex-column flex-middle "+t.middleClass),e:e.o$1((e=>i(t,o)),o),f:o}))),b:e.n(!0===e.unref(o)?"tab-list-middle":"tab-list-default"),c:e.o$1(c),d:e.sr(s,"6301df5e-0",{k:"createModule"})})}},n=e._export_sfc(o,[["__scopeId","data-v-6301df5e"]]);wx.createComponent(n);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="tab-block data-v-9fec1596"><view class="{{['tab-list', 'flex', 'flex-center', 'data-v-9fec1596', b]}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="{{['data-v-9fec1596', item.d]}}" bindtap="{{item.e}}"><view class="item-img-box data-v-9fec1596"><image class="item-img data-v-9fec1596" src="{{item.a}}"/></view><view class="item-text font-20 data-v-9fec1596" style="{{'color:' + item.c}}">{{item.b}}</view></view></view><view class="data-v-9fec1596" catchtouchmove="{{c}}"></view><new-added-pk class="createModule r data-v-9fec1596" u-r="createModule" u-i="9fec1596-0" bind:__l="__l"></new-added-pk></view>
|
||||
<view class="tab-block data-v-6301df5e"><view class="{{['tab-list', 'flex', 'flex-center', 'data-v-6301df5e', b]}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="{{['data-v-6301df5e', item.d]}}" bindtap="{{item.e}}"><view class="item-img-box data-v-6301df5e"><image class="item-img data-v-6301df5e" src="{{item.a}}"/></view><view class="item-text font-20 data-v-6301df5e" style="{{'color:' + item.c}}">{{item.b}}</view></view></view><view class="data-v-6301df5e" catchtouchmove="{{c}}"></view><new-added-pk class="createModule r data-v-6301df5e" u-r="createModule" u-i="6301df5e-0" bind:__l="__l"></new-added-pk></view>
|
||||
@@ -1 +1 @@
|
||||
.flex.data-v-9fec1596{display:flex;flex-flow:row wrap}.flex-center.data-v-9fec1596{align-items:center;justify-content:center}.flex-column.data-v-9fec1596{flex-direction:column;align-items:center}.flex-middle.data-v-9fec1596{align-items:center}.font-20.data-v-9fec1596{font-size:20rpx}.tab-block.data-v-9fec1596{position:relative;position:fixed;bottom:0;z-index:999;background-size:contain;width:100vw;background-color:#fff;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.tab-block .tab-list.data-v-9fec1596{height:100rpx;padding:0;z-index:0}.tab-block .createModule.data-v-9fec1596{position:fixed;bottom:0;right:0;z-index:998;width:100vw}.tab-block .tab-list-default.data-v-9fec1596{background-color:#fff;border-top:1px #dddddd solid}.tab-block .tab-list-middle.data-v-9fec1596{position:relative;background-size:cover}.tab-block .list-item.data-v-9fec1596{flex:1}.tab-block .list-item .item-img-box.data-v-9fec1596{width:38rpx;height:38rpx;margin-bottom:9rpx;position:relative}.tab-block .list-item .item-img.data-v-9fec1596{width:38rpx;height:38rpx;color:red}.tab-block .mid-button.data-v-9fec1596{position:relative}.tab-block .mid-button .item-img-box.data-v-9fec1596{width:150rpx;height:150rpx;margin-bottom:9rpx;position:absolute;z-index:10;top:-104rpx}.tab-block .mid-button .item-img.data-v-9fec1596{width:150rpx;height:150rpx}.tab-block .mid-button .item-text.data-v-9fec1596{font-size:20rpx;position:absolute;z-index:1002;bottom:-40rpx;color:#393a41}.tab-block .tab-bar.data-v-9fec1596{height:30rpx;background-color:#fff}
|
||||
.flex.data-v-6301df5e{display:flex;flex-flow:row wrap}.flex-center.data-v-6301df5e{align-items:center;justify-content:center}.flex-column.data-v-6301df5e{flex-direction:column;align-items:center}.flex-middle.data-v-6301df5e{align-items:center}.font-20.data-v-6301df5e{font-size:20rpx}.tab-block.data-v-6301df5e{position:relative;position:fixed;bottom:0;z-index:2;background-size:contain;width:100vw;background-color:#fff;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.tab-block .tab-list.data-v-6301df5e{height:100rpx;padding:0;z-index:0}.tab-block .createModule.data-v-6301df5e{position:fixed;bottom:0;right:0;z-index:998;width:100vw}.tab-block .tab-list-default.data-v-6301df5e{background-color:#fff;border-top:1px #dddddd solid}.tab-block .tab-list-middle.data-v-6301df5e{position:relative;background-size:cover}.tab-block .list-item.data-v-6301df5e{flex:1}.tab-block .list-item .item-img-box.data-v-6301df5e{width:38rpx;height:38rpx;margin-bottom:9rpx;position:relative}.tab-block .list-item .item-img.data-v-6301df5e{width:38rpx;height:38rpx;color:red}.tab-block .mid-button.data-v-6301df5e{position:relative}.tab-block .mid-button .item-img-box.data-v-6301df5e{width:150rpx;height:150rpx;margin-bottom:9rpx;position:absolute;z-index:10;top:-104rpx}.tab-block .mid-button .item-img.data-v-6301df5e{width:150rpx;height:150rpx}.tab-block .mid-button .item-text.data-v-6301df5e{font-size:20rpx;position:absolute;z-index:1002;bottom:-40rpx;color:#393a41}.tab-block .tab-bar.data-v-6301df5e{height:30rpx;background-color:#fff}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t={data:()=>({title:"Hello",Select:!1}),onLoad(){},methods:{MakeAppointmentPK(){this.Select=!1,this.$emit("MakeAppointmentPK")},RealTimePk(){this.Select=!0,this.$emit("RealTimePk")},screening(){this.$emit("screening")},Search(){this.$emit("Search")}}};const i=e._export_sfc(t,[["render",function(t,i,n,c,o,a){return{a:e.o$1(((...e)=>a.MakeAppointmentPK&&a.MakeAppointmentPK(...e))),b:o.Select?"":1,c:o.Select?1:"",d:e.o$1(((...e)=>a.RealTimePk&&a.RealTimePk(...e))),e:o.Select?1:"",f:o.Select?"":1}}],["__scopeId","data-v-904c2621"]]);wx.createComponent(i);
|
||||
"use strict";const e=require("../../common/vendor.js"),t={data:()=>({title:"Hello",Select:!1}),onLoad(){},methods:{MakeAppointmentPK(){this.Select=!1,this.$emit("MakeAppointmentPK")},RealTimePk(){this.Select=!0,this.$emit("RealTimePk")},screening(){this.$emit("screening")},Search(){this.$emit("Search")}}};const n=e._export_sfc(t,[["render",function(t,n,i,c,o,s){return{a:e.o$1(((...e)=>s.MakeAppointmentPK&&s.MakeAppointmentPK(...e))),b:o.Select?"":1,c:o.Select?1:"",d:e.o$1(((...e)=>s.RealTimePk&&s.RealTimePk(...e))),e:o.Select?1:"",f:o.Select?"":1,g:e.o$1(((...e)=>s.screening&&s.screening(...e)))}}],["__scopeId","data-v-24bd955c"]]);wx.createComponent(n);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="topNavigation data-v-904c2621"><view bindtap="{{a}}" class="{{[b && 'Selectcss', c && 'NoSelectcss', 'RealTime', 'data-v-904c2621']}}">今日PK</view><view bindtap="{{d}}" class="{{[e && 'Selectcss', f && 'NoSelectcss', 'MakeAppointment', 'data-v-904c2621']}}">PK大厅</view></view>
|
||||
<view class="topNavigation data-v-24bd955c"><view bindtap="{{a}}" class="{{[b && 'Selectcss', c && 'NoSelectcss', 'RealTime', 'data-v-24bd955c']}}">今日PK</view><view bindtap="{{d}}" class="{{[e && 'Selectcss', f && 'NoSelectcss', 'MakeAppointment', 'data-v-24bd955c']}}">PK大厅</view><view bindtap="{{g}}" class="Screening data-v-24bd955c">筛选</view></view>
|
||||
@@ -1 +1 @@
|
||||
.topNavigation.data-v-904c2621{width:100%;height:114.5rpx;display:flex;align-items:center}.Screening.data-v-904c2621{width:93rpx;height:50rpx;background:#fff;border-radius:4rpx;font-size:23rpx;color:#3b3b3b;text-align:center;line-height:50rpx}.filter-icon.data-v-904c2621{width:33rpx;height:33rpx}.RealTime.data-v-904c2621{margin:0 39rpx 0 41rpx}.MakeAppointment.data-v-904c2621{margin-right:233rpx}.Screening.data-v-904c2621{margin-right:20rpx}.Selectcss.data-v-904c2621{width:146rpx;height:39rpx;font-size:42rpx;color:#0e1011;font-weight:600}.NoSelectcss.data-v-904c2621{font-weight:600;height:29rpx;color:#727a7b}
|
||||
.topNavigation.data-v-24bd955c{width:100%;height:114.5rpx;display:flex;align-items:center}.Screening.data-v-24bd955c{width:93rpx;height:50rpx;background:#fff;border-radius:4rpx;font-size:23rpx;color:#3b3b3b;text-align:center;line-height:50rpx}.filter-icon.data-v-24bd955c{width:33rpx;height:33rpx}.RealTime.data-v-24bd955c{margin:0 39rpx 0 41rpx}.MakeAppointment.data-v-24bd955c{margin-right:233rpx}.Screening.data-v-24bd955c{margin-right:20rpx}.Selectcss.data-v-24bd955c{width:146rpx;height:39rpx;font-size:42rpx;color:#0e1011;font-weight:600}.NoSelectcss.data-v-24bd955c{font-weight:600;height:29rpx;color:#727a7b}
|
||||
|
||||
Reference in New Issue
Block a user