修改顶部navigator样式

This commit is contained in:
qiaomu 2024-05-09 16:29:45 +08:00
parent 05853b819f
commit ada2d71136
5 changed files with 10 additions and 8 deletions

View File

@ -6,7 +6,8 @@
"van-field": "@vant/weapp/field/index", "van-field": "@vant/weapp/field/index",
"van-icon": "@vant/weapp/icon/index", "van-icon": "@vant/weapp/icon/index",
"van-tab": "@vant/weapp/tab/index", "van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index" "van-tabs": "@vant/weapp/tabs/index",
"navigator": "/components/navigator/index"
}, },
"navigationBarTitleText": "绑定商户" "navigationStyle": "custom"
} }

View File

@ -1,5 +1,6 @@
<!--pages/handleLogin/index.wxml--> <!--pages/handleLogin/index.wxml-->
<!-- <topbar /> --> <!-- <topbar /> -->
<navigator title="绑定商户" canBack="{{true}}" />
<van-tabs> <van-tabs>
<van-tab title="扫码绑定"> <van-tab title="扫码绑定">
<view class="codeContent"> <view class="codeContent">

View File

@ -1,7 +1,9 @@
{ {
"usingComponents": { "usingComponents": {
"van-image": "@vant/weapp/image/index" "van-image": "@vant/weapp/image/index",
"navigator": "/components/navigator/index"
}, },
"navigationBarTitleText": "二维码" "navigationBarTitleText": "二维码",
"navigationStyle": "custom"
} }

View File

@ -8,7 +8,7 @@
</view> </view>
</view> --> </view> -->
<navigator title="二维码" canBack="{{true}}" />
<view class="wrapper"> <view class="wrapper">
<view class="image"> <view class="image">
<van-image width="400rpx" height="400rpx" src="{{url}}" /> <van-image width="400rpx" height="400rpx" src="{{url}}" />

View File

@ -1,7 +1,5 @@
/* pages/qrCode/index.wxss */ /* pages/qrCode/index.wxss */
.wrapper { .wrapper {
width: 100vw;
height: 100vh;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -22,7 +20,6 @@
.tenement { .tenement {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.name { .name {
@ -33,4 +30,5 @@
margin: 50rpx 40rpx; margin: 50rpx 40rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-top: 10vh;
} }