roose 5 年之前
父节点
当前提交
10e55b6da5
共有 5 个文件被更改,包括 42 次插入238 次删除
  1. 37 36
      app.json
  2. 1 1
      commpents/navbar/navbar.wxml
  3. 2 82
      pages/my/index.js
  4. 2 22
      pages/my/index.wxml
  5. 0 97
      pages/my/index.wxss

+ 37 - 36
app.json

@@ -1,46 +1,47 @@
 {
   "pages": [
+    "pages/my/index",
     "pages/home/index",
     "pages/bank/index",
-    "pages/my/index",
     "pages/market/index",
     "pages/policy/index"
   ],
- "tabBar": {
-    "position":"bottom",
-    "borderStyle":"white",
+  "tabBar": {
+    "position": "bottom",
+    "borderStyle": "white",
     "selectedColor": "#E9021D",
-    "list": [{
-      "pagePath": "pages/home/index",
-      "text": "首页",
-      "iconPath": "/images/home.png",
-      "selectedIconPath": "/images/home_fill.png"
-    },
-    {
-      "pagePath": "pages/bank/index",
-      "text": "我要融资",
-      "iconPath": "/images/duijie.png",
-      "selectedIconPath": "/images/duijie_fill.png"
-    },
-    {
-      "pagePath": "pages/market/index",
-      "text": "金融超市",
-      "iconPath": "/images/recharge.png",
-      "selectedIconPath": "/images/recharge_fill.png"
-    },
-    {
-      "pagePath": "pages/policy/index",
-      "text": "政策解读",
-      "iconPath": "/images/news_hot.png",
-      "selectedIconPath": "/images/news_hot_fill.png"
-    },
-    {
-      "pagePath": "pages/my/index",
-      "text": "我的",
-      "iconPath": "/images/people.png",
-      "selectedIconPath": "/images/people_fill.png"
-    }
-  ]
+    "list": [
+      {
+        "pagePath": "pages/my/index",
+        "text": "我的",
+        "iconPath": "/images/people.png",
+        "selectedIconPath": "/images/people_fill.png"
+      },
+      {
+        "pagePath": "pages/home/index",
+        "text": "首页",
+        "iconPath": "/images/home.png",
+        "selectedIconPath": "/images/home_fill.png"
+      },
+      {
+        "pagePath": "pages/bank/index",
+        "text": "我要融资",
+        "iconPath": "/images/duijie.png",
+        "selectedIconPath": "/images/duijie_fill.png"
+      },
+      {
+        "pagePath": "pages/market/index",
+        "text": "金融超市",
+        "iconPath": "/images/recharge.png",
+        "selectedIconPath": "/images/recharge_fill.png"
+      },
+      {
+        "pagePath": "pages/policy/index",
+        "text": "政策解读",
+        "iconPath": "/images/news_hot.png",
+        "selectedIconPath": "/images/news_hot_fill.png"
+      }
+    ]
   },
   "usingComponents": {
     "van-button": "../../miniprogram_npm/vant-weapp/button/index",
@@ -83,4 +84,4 @@
   },
   "style": "v2",
   "sitemapLocation": "sitemap.json"
-}
+}

+ 1 - 1
commpents/navbar/navbar.wxml

@@ -3,7 +3,7 @@
 	<view style='display: flex; justify-content: space-around;flex-direction: column'>
 		<view class='nav-capsule' style='height: {{height*2 + 44}}px;' wx:if='{{navbarData.showCapsule}}'>
 			<view bindtap='_navbackMess' wx:if='{{!share}}' style="width:50px;padding:0 0 0 30rpx;">
-				<image src='/pages/images/notice.png' style="width:44rpx;height:44rpx;margin-top:10rpx;"></image>
+				<image src='/images/notice.png' style="width:44rpx;height:44rpx;margin-top:10rpx;"></image>
 			</view>
 		</view>
 		<view class='nav-capsule' style='height: {{height*2 + 44}}px;' wx:if='{{navbarData.showBack}}'>

+ 2 - 82
pages/my/index.js

@@ -1,14 +1,13 @@
 // pages/my/index.js
 const app = getApp()
 Page({
-
   /**
    * 页面的初始数据
    */
   data: {
     nvabarData: {
-      showCapsule: 1, //是否显示左上角图标,消息中心   1表示显示    0表示不显示
-      showBack: 0, //返回
+      showCapsule: 0, //是否显示左上角图标,消息中心   1表示显示    0表示不显示
+      showBack: 1, //返回
       title: '我的', //导航栏 中间的标题
       // 此页面 页面内容距最顶部的距离
       height: app.globalData.height * 2 + 20,
@@ -16,89 +15,10 @@ Page({
     active: 4,
 
   },
-  // 切换菜单
-  onChange(event) {
-    this.setData({
-      active: event.detail
-    });
-    if (event.detail == 0) {
-      wx.redirectTo({
-        url: '/pages/home/index'
-      })
-    } else if (event.detail == 1) {
-      wx.redirectTo({
-        url: '/pages/bank/index'
-      })
-    } else if (event.detail == 2) {
-      wx.redirectTo({
-        url: '/pages/market/index'
-      })
-    } else if (event.detail == 3) {
-      wx.redirectTo({
-        url: '/pages/policy/index'
-      })
-    } else if (event.detail == 4) {
-      wx.redirectTo({
-        url: '/pages/my/index'
-      })
-    }
-  },
-  // 企业认证
-  onattestation: function () {
-    wx.navigateTo({
-      url: '/pages/attestation/index'
-    })
-  },
-  // 我的融资
-  myFinanceBtn: function () {
-    wx.navigateTo({
-      url: '/pages/myFinance/index'
-    })
-  },
-  //贷款产品
-  myloanprojuct: function () {
-    wx.navigateTo({
-      url: '/pages/myloanprojuct/index'
-    })
-  },
-  // 密码修改
-  onUpdatePass: function () {
-    wx.navigateTo({
-      url: '/pages/updatePassword/index'
-    })
-  },
-  // 退出登录
-  onGoout: function () {
-    console.log('退出登录')
-    wx.removeStorage({
-      key: 'user',
-      success: function (res) {
-        console.log(res)
-        wx.showToast({
-          title: '退出成功',
-          icon: 'none',
-          duration: 1500
-        })
-      },
-    })
-    wx.navigateTo({
-      url: '/pages/login/index'
-    })
-  },
-
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-    if (wx.getStorageSync('user') == "") {
-      wx.redirectTo({
-        url: '/pages/login/index'
-      })
-    } else {
-      // wx.redirectTo({
-      //   url: '/pages/my/index'
-      // })
-    }
   },
 
   /**

+ 2 - 22
pages/my/index.wxml

@@ -1,24 +1,4 @@
 <nav-bar navbar-data='{{nvabarData}}'></nav-bar>
-<view class="home">
-	<view class="main">
-		<view class="topBtn">
-			<text class="title">需求状态查询</text>
-			<view class="topCLick">
-				<div catchtap="myFinanceBtn">
-					<image src="/pages/images/icon01.png"></image>
-					<button>我的融资</button>
-				</div>
-				<div catchtap="myloanprojuct">
-					<image src="/pages/images/icon02.png"></image>
-					<button>我的申请</button>
-				</div>
-			</view>
-		</view>
-		<view class="functBtn">
-			<button bindtap="onattestation">我的企业<span>></span></button>
-			<button bindtap="onUpdatePass">密码修改<span>></span></button>
-			<button bindtap="onGoout">退出登录<span>></span></button>
-		</view>
-	</view>
-	
+<view>
+		
 </view>

+ 0 - 97
pages/my/index.wxss

@@ -1,97 +0,0 @@
-.main {
-  float: left;
-  width: 92%;
-  margin: 0 30rpx;
-}
-
-.main .topBtn {
-  float: left;
-  width: 100%;
-  margin: 0 0 30rpx 0;
-}
-
-.main .topBtn .title {
-  float: left;
-  width: 100%;
-  font-size: 30rpx;
-  font-family: Source Han Sans SC;
-  font-weight: bold;
-  color: rgba(40, 40, 40, 1);
-  margin: 60rpx 0 30rpx 0;
-}
-
-.main .topBtn .topCLick {
-  float: left;
-  width: 100%;
-  height: 217rpx;
-  background: rgba(255, 255, 255, 1);
-  box-shadow: 0px 5px 20px 0px rgba(233, 237, 244, 1);
-  border-radius: 20px;
-}
-
-.main .topBtn .topCLick div {
-  float: left;
-  width: 120rpx;
-  text-align: center;
-  margin: 40rpx 110rpx;
-}
-
-.main .topBtn .topCLick div image {
-  float: left;
-  width: 99rpx;
-  height: 99rpx;
-  margin-left: 12rpx;
-
-}
-
-.main .topBtn .topCLick div button {
-  padding: 0;
-  width: 120rpx;
-  font-size: 30rpx;
-  font-family: Source Han Sans SC;
-  font-weight: 400;
-  color: rgba(40, 40, 40, 1);
-  background: transparent;
-}
-
-.main .functBtn {
-  float: left;
-  width: 100%;
-}
-
-.main .functBtn button {
-  float: left;
-  width: 100%;
-  height: 108rpx;
-  line-height: 108rpx;
-  text-align: left;
-  border-bottom: 1px solid #ccc;
-  background: transparent;
-  border-radius: 0;
-  font-size: 30rpx;
-  font-family: Source Han Sans SC;
-  font-weight: 400;
-  color: rgba(40, 40, 40, 1);
-  padding: 0;
-
-}
-
-.main .functBtn button span {
-  float: right;
-  padding: 0 20rpx 0 0;
-  color: #ccc;
-  font-size: 50rpx;
-}
-
-.home .down {
-  float: left;
-  width: 100%;
-  position: relative;
-  z-index: 999;
-}
-
-.home .down .tabber {
-  float: left;
-  width: 100%;
-  margin: 100rpx 0 0 0;
-}