소스 검색

下周预测

xulihua 5 년 전
부모
커밋
6445356070
9개의 변경된 파일44개의 추가작업 그리고 7개의 파일을 삭제
  1. 2 1
      app.json
  2. 5 0
      pages/details/details.js
  3. 1 1
      pages/details/details.wxml
  4. 2 2
      pages/details/details.wxss
  5. 23 0
      pages/next/next.js
  6. 5 0
      pages/next/next.json
  7. 2 0
      pages/next/next.wxml
  8. 1 0
      pages/next/next.wxss
  9. 3 3
      project.config.json

+ 2 - 1
app.json

@@ -5,7 +5,8 @@
     "pages/rise/rise",
     "pages/drop/drop",
     "pages/me/me",
-    "pages/details/details"
+    "pages/details/details",
+    "pages/next/next"
   ],
   "window": {
     "backgroundTextStyle": "light",

+ 5 - 0
pages/details/details.js

@@ -368,6 +368,11 @@ Page({
    */
   onShareAppMessage: function () {
 
+  },
+  gotoNext:function(options){
+    wx.navigateTo({
+      url: '../next/next',
+    })
   },
   backBtn:function(){
     wx.navigateBack();

+ 1 - 1
pages/details/details.wxml

@@ -18,7 +18,7 @@
         
         </view>
         <view class="nextText"> 
-          <button>下周预测</button>
+          <button  bindtap="gotoNext">下周预测</button>
         </view>
   
 </scroll-view>

+ 2 - 2
pages/details/details.wxss

@@ -68,8 +68,8 @@
   border-radius:3px;
 }
 .nextText{
-  width:90%;
-  height:5%;
+  /* width:90%; */
+  /* height:5%; */
   background:#1C1C1C;  
   border-radius:3px;
   margin:0 auto;

+ 23 - 0
pages/next/next.js

@@ -0,0 +1,23 @@
+// pages/next/next.js
+Component({
+  /**
+   * 组件的属性列表
+   */
+  properties: {
+
+  },
+
+  /**
+   * 组件的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 组件的方法列表
+   */
+  methods: {
+
+  }
+})

+ 5 - 0
pages/next/next.json

@@ -0,0 +1,5 @@
+{
+  "component": true,
+  "navigationBarTitleText": "下周预测",
+  "usingComponents": {}
+}

+ 2 - 0
pages/next/next.wxml

@@ -0,0 +1,2 @@
+<!--pages/next/next.wxml-->
+<text>pages/next/next.wxml</text>

+ 1 - 0
pages/next/next.wxss

@@ -0,0 +1 @@
+/* pages/next/next.wxss */

+ 3 - 3
project.config.json

@@ -20,15 +20,15 @@
 		"checkInvalidKey": true,
 		"checkSiteMap": true,
 		"uploadWithSourceMap": true,
-		"compileHotReLoad": false,
 		"babelSetting": {
 			"ignore": [],
 			"disablePlugins": [],
 			"outputPath": ""
 		},
-		"useIsolateContext": true,
 		"useCompilerModule": true,
-		"userConfirmedUseCompilerModuleSwitch": false
+		"userConfirmedUseCompilerModuleSwitch": false,
+		"compileHotReLoad": false,
+		"useIsolateContext": true
 	},
 	"compileType": "miniprogram",
 	"libVersion": "2.11.1",