liyongli 1 жил өмнө
parent
commit
9e8774e7c6

+ 2 - 1
app.json

@@ -16,7 +16,8 @@
   "window": {
   "window": {
     "navigationBarTextStyle": "white",
     "navigationBarTextStyle": "white",
     "navigationBarTitleText": "首页",
     "navigationBarTitleText": "首页",
-    "navigationBarBackgroundColor": "#d8af7a"
+    "navigationBarBackgroundColor": "#d8af7a",
+    "navigationStyle": "custom"
   },
   },
   "tabBar": {
   "tabBar": {
     "color": "#2F2F2F",
     "color": "#2F2F2F",

+ 16 - 0
app.wxss

@@ -8,3 +8,19 @@ page {
   font-size: 20px;
   font-size: 20px;
   font-weight: 500;
   font-weight: 500;
 }
 }
+
+.van-nav-bar {
+  background-color: #ffffff00!important;
+}
+
+.van-nav-bar__title,
+.van-nav-bar__arrow {
+  color: #ffffff!important;
+}
+
+.nav-bar {
+  position: absolute;
+  width: 750rpx;
+  top: 0;
+  color: #ffffff!important;
+}

+ 4 - 0
pages/admin/index.js

@@ -14,6 +14,10 @@ Page({
   size: 2,
   size: 2,
   total: 0,
   total: 0,
   T: undefined,
   T: undefined,
+
+  goBack(){
+    wx.navigateBack();
+  },
   conclusion(e) {
   conclusion(e) {
     if (this.T) clearTimeout(this.T);
     if (this.T) clearTimeout(this.T);
     setTimeout(() => {
     setTimeout(() => {

+ 2 - 1
pages/admin/index.json

@@ -1,6 +1,7 @@
 {
 {
   "navigationBarTitleText": "管理员审核",
   "navigationBarTitleText": "管理员审核",
   "usingComponents": {
   "usingComponents": {
-    "van-empty": "@vant/weapp/empty/index"
+    "van-empty": "@vant/weapp/empty/index",
+    "van-nav-bar": "@vant/weapp/nav-bar/index"
   }
   }
 }
 }

+ 5 - 0
pages/admin/index.wxml

@@ -1,4 +1,9 @@
 <!--pages/admin/index.wxml-->
 <!--pages/admin/index.wxml-->
+<van-nav-bar
+  title="管理员审核"
+  class="nav-bar"
+  border="{{false}}"
+/>
 <swiper bindchange="change" class="swiper" wx:if="{{list.length}}" vertical cache-extent="{{1}}">
 <swiper bindchange="change" class="swiper" wx:if="{{list.length}}" vertical cache-extent="{{1}}">
   <swiper-item class="swiper-item" wx:for="{{list}}" wx:key="index">
   <swiper-item class="swiper-item" wx:for="{{list}}" wx:key="index">
     <image src="{{item.articleUrl}}" class="zp" mode="aspectFit" />
     <image src="{{item.articleUrl}}" class="zp" mode="aspectFit" />

+ 7 - 7
pages/downZS/index.js

@@ -7,15 +7,15 @@ Page({
   data: {
   data: {
     ls_url: "",
     ls_url: "",
     selectIndex: 0,
     selectIndex: 0,
-    users: [{
-        name: "李勇利"
-      },
-      {
-        name: "张云翔"
-      },
-    ]
+    users: []
   },
   },
   systemInfo: wx.getSystemInfoSync(),
   systemInfo: wx.getSystemInfoSync(),
+
+  
+  goBack(){
+    wx.navigateBack();
+  },
+
   /**
   /**
    * 生命周期函数--监听页面加载
    * 生命周期函数--监听页面加载
    */
    */

+ 2 - 1
pages/downZS/index.json

@@ -4,6 +4,7 @@
     "Container": "../../component/container/index",
     "Container": "../../component/container/index",
     "van-icon": "@vant/weapp/icon/index",
     "van-icon": "@vant/weapp/icon/index",
     "van-button": "@vant/weapp/button/index",
     "van-button": "@vant/weapp/button/index",
-    "van-empty": "@vant/weapp/empty/index"
+    "van-empty": "@vant/weapp/empty/index",
+    "van-nav-bar": "@vant/weapp/nav-bar/index"
   }
   }
 }
 }

+ 7 - 0
pages/downZS/index.wxml

@@ -1,5 +1,12 @@
 <!--pages/downZS/index.wxml-->
 <!--pages/downZS/index.wxml-->
 <view class="downZS">
 <view class="downZS">
+  <van-nav-bar
+  title="专家评审"
+  class="nav-bar"
+  left-arrow
+  border="{{false}}"
+  bind:click-left="goBack"
+/>
   <Container>
   <Container>
     <swiper wx:if="{{ls_url.length}}" indicator-dots="{{true}}"	indicator-color="#ffffff"	indicator-active-color="#91725d" style="height:575rpx" 	bindchange="change">
     <swiper wx:if="{{ls_url.length}}" indicator-dots="{{true}}"	indicator-color="#ffffff"	indicator-active-color="#91725d" style="height:575rpx" 	bindchange="change">
       <swiper-item wx:for="{{ls_url}}" wx:key="index" style="padding-top: 15rpx;">
       <swiper-item wx:for="{{ls_url}}" wx:key="index" style="padding-top: 15rpx;">

+ 4 - 1
pages/expert/index.js

@@ -13,7 +13,10 @@ Page({
   page: 1,
   page: 1,
   size: 10,
   size: 10,
   total: 0,
   total: 0,
-
+  
+  goBack(){
+    wx.navigateBack();
+  },
   showimge(e) {
   showimge(e) {
     wx.previewImage({
     wx.previewImage({
       urls: [e.currentTarget.dataset.url],
       urls: [e.currentTarget.dataset.url],

+ 2 - 1
pages/expert/index.json

@@ -2,6 +2,7 @@
   "navigationBarTitleText": "专家评审",
   "navigationBarTitleText": "专家评审",
   "usingComponents": {
   "usingComponents": {
     "Container": "../../component/container/index",
     "Container": "../../component/container/index",
-    "van-checkbox": "@vant/weapp/checkbox/index"
+    "van-checkbox": "@vant/weapp/checkbox/index",
+    "van-nav-bar": "@vant/weapp/nav-bar/index"
   }
   }
 }
 }

+ 7 - 0
pages/expert/index.wxml

@@ -1,4 +1,11 @@
 <!--pages/expert/index.wxml-->
 <!--pages/expert/index.wxml-->
+<van-nav-bar
+  title="专家评审"
+  class="nav-bar"
+  left-arrow
+  border="{{false}}"
+  bind:click-left="goBack"
+/>
 <scroll-view 	scroll-y="{{true}}" bindscrolltolower="scrollbottom">
 <scroll-view 	scroll-y="{{true}}" bindscrolltolower="scrollbottom">
   <view class="list_item" wx:for="{{list}}" wx:key="index">
   <view class="list_item" wx:for="{{list}}" wx:key="index">
     <Container>
     <Container>

+ 0 - 1
pages/login/index.js

@@ -54,7 +54,6 @@ Page({
       })
       })
     }, 300);
     }, 300);
   },
   },
-
   /**
   /**
    * 生命周期函数--监听页面加载
    * 生命周期函数--监听页面加载
    */
    */

+ 4 - 0
pages/modify/index.js

@@ -35,6 +35,10 @@ Page({
   id: undefined,
   id: undefined,
   area: [],
   area: [],
   changeSelectArea: [0, 0, 0],
   changeSelectArea: [0, 0, 0],
+  
+  goBack(){
+    wx.navigateBack();
+  },
   change(e) {
   change(e) {
     const key = e.target.dataset.key || '';
     const key = e.target.dataset.key || '';
     const value = e.detail.value;
     const value = e.detail.value;

+ 2 - 1
pages/modify/index.json

@@ -4,6 +4,7 @@
     "Container": "../../component/container/index",
     "Container": "../../component/container/index",
     "van-radio": "@vant/weapp/radio/index",
     "van-radio": "@vant/weapp/radio/index",
     "van-radio-group": "@vant/weapp/radio-group/index",
     "van-radio-group": "@vant/weapp/radio-group/index",
-    "van-button": "@vant/weapp/button/index"
+    "van-button": "@vant/weapp/button/index",
+    "van-nav-bar": "@vant/weapp/nav-bar/index"
   }
   }
 }
 }

+ 7 - 0
pages/modify/index.wxml

@@ -1,4 +1,11 @@
 <!--pages/application/index.wxml-->
 <!--pages/application/index.wxml-->
+<van-nav-bar
+  title="报名信息"
+  class="nav-bar"
+  left-arrow
+  border="{{false}}"
+  bind:click-left="goBack"
+/>
 <scroll-view class="scrollarea" scroll-y type="list">
 <scroll-view class="scrollarea" scroll-y type="list">
   <view class="index_main">
   <view class="index_main">
     <Container style="margin-top: -100rpx;">
     <Container style="margin-top: -100rpx;">

+ 4 - 1
pages/sph/index.json

@@ -1,5 +1,8 @@
 {
 {
   "navigationBarTitleText": "",
   "navigationBarTitleText": "",
   "navigationBarBackgroundColor": "#000",
   "navigationBarBackgroundColor": "#000",
-  "usingComponents": {}
+  "navigationStyle": "default",
+  "usingComponents": {
+    "van-nav-bar": "@vant/weapp/nav-bar/index"
+  }
 }
 }

+ 4 - 0
pages/userData/index.js

@@ -87,6 +87,10 @@ Page({
       })
       })
     })
     })
   },
   },
+
+  goBack(){
+    wx.navigateBack();
+  },
   /**
   /**
    * 生命周期函数--监听页面加载
    * 生命周期函数--监听页面加载
    */
    */

+ 2 - 1
pages/userData/index.json

@@ -4,6 +4,7 @@
     "Container": "../../component/container/index",
     "Container": "../../component/container/index",
     "van-icon": "@vant/weapp/icon/index",
     "van-icon": "@vant/weapp/icon/index",
     "van-search": "@vant/weapp/search/index",
     "van-search": "@vant/weapp/search/index",
-    "van-empty": "@vant/weapp/empty/index"
+    "van-empty": "@vant/weapp/empty/index",
+    "van-nav-bar": "@vant/weapp/nav-bar/index"
   }
   }
 }
 }

+ 7 - 0
pages/userData/index.wxml

@@ -1,4 +1,11 @@
 <!--pages/userData/index.wxml-->
 <!--pages/userData/index.wxml-->
+<van-nav-bar
+  title="报名信息"
+  class="nav-bar"
+  left-arrow
+  border="{{false}}"
+  bind:click-left="goBack"
+/>
 <scroll-view class="scrollarea" scroll-y type="list">
 <scroll-view class="scrollarea" scroll-y type="list">
   <view class="index_main">
   <view class="index_main">
     <Container>
     <Container>

+ 1 - 0
pages/userData/index.wxss

@@ -8,6 +8,7 @@
   box-sizing: border-box;
   box-sizing: border-box;
   color: #A57044;
   color: #A57044;
   position: relative;
   position: relative;
+  min-height: 100vh;
 }
 }
 
 
 .card {
 .card {

+ 3 - 1
pages/webview/index.js

@@ -7,7 +7,9 @@ Page({
   data: {
   data: {
     url: ""
     url: ""
   },
   },
-
+  goBack(){
+    wx.navigateBack();
+  },
   /**
   /**
    * 生命周期函数--监听页面加载
    * 生命周期函数--监听页面加载
    */
    */

+ 3 - 1
pages/webview/index.json

@@ -1,4 +1,6 @@
 {
 {
   "navigationBarTitleText": "",
   "navigationBarTitleText": "",
-  "usingComponents": {}
+  "usingComponents": {
+    "van-nav-bar": "@vant/weapp/nav-bar/index"
+  }
 }
 }

+ 6 - 0
pages/webview/index.wxml

@@ -1,2 +1,8 @@
 <!--pages/webview/index.wxml-->
 <!--pages/webview/index.wxml-->
+<van-nav-bar
+  title=""
+  class="nav-bar"
+  border="{{false}}"
+  bind:click-left="goBack"
+/>
 <web-view src="{{url}}"></web-view>
 <web-view src="{{url}}"></web-view>