提交 e910dd2e 编写于 作者: Z zhaoshuangshi

列表首页=》发起开源项目按钮样式修改,添加导航组件实现页面返回功能

上级 b931f1d0
......@@ -9,8 +9,9 @@
"backgroundColor": "#fff",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationStyle": "custom",
"navigationBarTextStyle": "black"
"navigationStyle": "default",
"navigationBarTextStyle": "black",
"navigationBarTitleText":"【CSDN】DAO实验室"
},
"usingComponents": {
"cu-custom": "./components/colorui/components/cu-custom"
......
......@@ -3743,3 +3743,19 @@ scroll-view.cu-steps .cu-item {
.text-shadow {
text-shadow: 2rpx 4rpx 6rpx rgba(0, 0, 0, 0.4);
}
.addBox{
background-color: #39B54A;
position: fixed;
bottom: 70rpx;
right: 40rpx;
color: #fff;
border-radius: 50%;
width: 98rpx;
height: 100rpx;
line-height: 103rpx;
text-align: center;
}
/* .topNav{
background-color: #fff;
} */
......@@ -5,9 +5,17 @@ const app = getApp()
Page({
data: {
// markdown:" # DAO中国实验室"
nbFrontColor: '#000000',
nbBackgroundColor: '#ffffff',
},
onLoad(){
this.setData({
nbTitle: '新标题',
nbLoading: true,
nbFrontColor: '#ffffff',
nbBackgroundColor: '#000000',
}),
this.loadProjects();
// let that = this;
// wx.request({
......
<view class="cu-bar solid-bottom padding ">
<view class="action " bindtap="toNewPage">
<text class="icon-edit margin-top-lg" style="color: #84868E;font-size: small;"> 发起开源项目</text>
</view>
</view>
<!-- <view class="margin " style=" margin-top:50rpx; background:#1C1F27;" wx:if="{{markdown}}">
......@@ -16,10 +12,10 @@
</view> -->
<!-- background:#1C1F27; -->
<view class="cu-card padding-left padding-right padding-top" wx:for="{{projects}}" bindtap="itemClick" data-id="{{item._id}}">
<view class="flex align-start align-start padding-bottom padding-top bg-gray" style="height: auto;" >
<view class="cu-card padding-left padding-right padding-top" wx:for="{{projects}}" bindtap="itemClick" data-id="{{item._id}}">
<view class="flex align-start align-start padding-bottom padding-top bg-gray" style="height: auto;" >
<view style="height: auto; width: 100%;" class="margin-left margin-right-lg">
<view style="height: auto; width: 100%;" class="margin-left margin-right-lg">
<view class="text-xl text-black" style="font-weight: 400;">{{item.title}}
</view>
<view class="text-black text-sm flex margin-top-sm">
......@@ -36,4 +32,11 @@
</view>
<view class="action" style="width:180rpx"><button class="cu-btn round bg-green shadow" >查看项目</button></view>
</view>
</view>
<view class="addBox" bindtap="toNewPage">
<view class="action " >
<text class="margin-top-lg" style="font-size:40px;"> +</text>
</view>
</view>
\ No newline at end of file
......@@ -4,4 +4,5 @@ Page{
.cu-list.menu>.cu-item:after {
border-bottom: 1rpx solid #1C1F27;
}
\ No newline at end of file
}
<view class="cu-bar padding ">
<!-- <view class="cu-bar padding ">
<view class="action ">
<!-- <text class="icon-home margin-top-lg" style="color: #84868E;font-size: small;"> 首页</text> -->
<text class="icon-home margin-top-lg" style="color: #84868E;font-size: small;"> 首页</text>
</view>
</view>
</view> -->
<!-- <view class="cu-tabbar-height"></view> -->
<view wx:if="{{project}}" class="padding-top">
<view wx:if="{{project}}" >
<!-- background:#1C1F27; bg-gray-->
<view >
<view class="margin bg-gray">
......
<view class="cu-bar solid-bottom padding ">
<!-- <view class="cu-bar solid-bottom padding ">
<view class="action ">
<!-- <text class="icon-edit margin-top-lg" style="color: #84868E;font-size: small;"> 发起开源项目</text> -->
<text class="icon-edit margin-top-lg" style="color: #84868E;font-size: small;"> 发起开源项目</text>
</view>
</view>
</view> -->
<form bindsubmit='submit' report-submit='true'>
<view class="margin bg-gray" style=" margin-top:50rpx; ">
<view class="margin bg-gray">
<view class="padding-xs flex align-center " >
<view class="flex-sub text-center padding-top padding-bottom solid-bottom">
<view class=" text-xl padding-bottom-xs padding-top-xs">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册