소스 검색

去除人生报告1

JXDS18FUJT 1 년 전
부모
커밋
8009215453
5개의 변경된 파일47개의 추가작업 그리고 26개의 파일을 삭제
  1. 31 25
      src/custom-tab-bar/index.js
  2. 1 1
      src/custom-tab-bar/index.wxml
  3. 15 0
      src/pages/buyExamTool/index.vue
  4. BIN
      src/static/imgs/tool-active.png
  5. BIN
      src/static/imgs/tool.png

+ 31 - 25
src/custom-tab-bar/index.js

@@ -3,8 +3,8 @@ Component({
 	data: {
 		//默认是2
 		active: 2,
-		isBazi:false,
-		
+		isBazi: false,
+
 		list2: [
 			{
 				"pagePath": "/pages/carVideo/index",
@@ -39,11 +39,17 @@ Component({
 			"text": "教学视频"
 		},
 		{
-			"pagePath": "/pages/future/index",
-			"iconPath": "/static/imgs/fortune.png",
-			"selectedIconPath": "/static/imgs/fortune-active.png",
-			"text": "人生报告"
+			"pagePath": "/pages/buyExamTool/index",
+			"iconPath": "/static/imgs/tool.png",
+			"selectedIconPath": "/static/imgs/tool-active.png",
+			"text": "驾考神器"
 		},
+		// {
+		// 	"pagePath": "/pages/future/index",
+		// 	"iconPath": "/static/imgs/fortune.png",
+		// 	"selectedIconPath": "/static/imgs/fortune-active.png",
+		// 	"text": "人生报告"
+		// },
 		{
 			"pagePath": "/pages/user/index",
 			"iconPath": "/static/imgs/user.png",
@@ -51,30 +57,30 @@ Component({
 			"text": "我的"
 		}]
 	},
-	attached(){
-		let that =this
+	attached() {
+		let that = this
 		// const baseUrl = wx.getSystemInfoSync().platform === 'devtools' ? 'https://nbjk1.zzxcx.net/nbjk-admin/' : 'https://nbjk.zzxcx.net/nbjk-admin/'
-		const baseUrl =  wx.getStorageSync("NODE_ENV")==='development'? 'https://nbjk1.zzxcx.net/nbjk-admin/' : 'https://nbjk.zzxcx.net/nbjk-admin/'
-	
+		const baseUrl = wx.getStorageSync("NODE_ENV") === 'development' ? 'https://nbjk1.zzxcx.net/nbjk-admin/' : 'https://nbjk.zzxcx.net/nbjk-admin/'
+
 		wx.request({
-			url:baseUrl+"open-api/system/dict/data/configKey/IS_BAZI",
-			method:'GET',
-			success(res){
-				
-				if(res.data.data=='1'){
-				
+			url: baseUrl + "open-api/system/dict/data/configKey/IS_BAZI",
+			method: 'GET',
+			success(res) {
+
+				if (res.data.data == '1') {
+
 					that.setData({
-						isBazi:true,
-					
+						isBazi: true,
+
 					})
 				}
-				else{
+				else {
 					that.setData({
-						isBazi:false,
-					
+						isBazi: false,
+
 					})
 				}
-			
+
 
 			}
 		})
@@ -84,10 +90,10 @@ Component({
 		switchTab(e) {
 			const data = e.currentTarget.dataset
 			const url = data.path
-			
-			if(url=='/pages/future/index'){
+
+			if (url == '/pages/future/index') {
 				wx.navigateTo({
-					url:'/pages/future/index'
+					url: '/pages/future/index'
 				})
 				return
 

+ 1 - 1
src/custom-tab-bar/index.wxml

@@ -2,7 +2,7 @@
 <view class="ipone">
 <view class="tab-bar">
   <view class="tab-bar-border"></view>
-  <view wx:for="{{list}}" wx:key="index" hidden="{{!isBazi&&index==2}}" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
+  <view wx:for="{{list}}" wx:key="index"  class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
   <view>
       <image src="{{active === index ? item.selectedIconPath : item.iconPath}}"></image>
     <view style="color: {{active === index ? selectedColor : color}}">{{item.text}}</view>

+ 15 - 0
src/pages/buyExamTool/index.vue

@@ -0,0 +1,15 @@
+<template>
+    <div>
+
+    </div>
+</template>
+
+<script>
+    export default {
+        
+    }
+</script>
+
+<style lang="less" scoped>
+
+</style>

BIN
src/static/imgs/tool-active.png


BIN
src/static/imgs/tool.png