Bladeren bron

更新 文案

王智慧 3 jaren geleden
bovenliggende
commit
ae9b6c546e

+ 14 - 5
miniprogram/app.json

@@ -19,25 +19,34 @@
     "navigationBarBackgroundColor": "#F6F6F6",
     "navigationBarTitleText": "汇很多",
     "navigationBarTextStyle": "black",
-    "navigationStyle": "custom",
     "pageOrientation": "portrait"
   },
   "tabBar": {
+    "selectedColor": "#1195db",
+    "color": "#8a8a8a",
     "list": [{
         "pagePath": "pages/index/index",
-        "text": "拍照"
+        "text": "随身拍",
+        "selectedIconPath": "./images/tabs/camera-.png",
+        "iconPath": "./images/tabs/camera.png"
       },
       {
         "pagePath": "pages/maritime/maritime",
-        "text": "海事"
+        "text": "海事",
+        "selectedIconPath": "./images/tabs/ship-.png",
+        "iconPath": "./images/tabs/ship.png"
       },
       {
         "pagePath": "pages/securityCheck/securityCheck",
-        "text": "安检"
+        "text": "安检",
+        "selectedIconPath": "./images/tabs/check-.png",
+        "iconPath": "./images/tabs/check.png"
       },
       {
         "pagePath": "pages/train/train",
-        "text": "培训"
+        "text": "培训",
+        "selectedIconPath": "./images/tabs/train-.png",
+        "iconPath": "./images/tabs/train.png"
       }
     ]
   },

BIN
miniprogram/images/tabs/camera-.png


BIN
miniprogram/images/tabs/camera.png


BIN
miniprogram/images/tabs/check-.png


BIN
miniprogram/images/tabs/check.png


BIN
miniprogram/images/tabs/ship-.png


BIN
miniprogram/images/tabs/ship.png


BIN
miniprogram/images/tabs/train-.png


BIN
miniprogram/images/tabs/train.png


+ 4 - 8
miniprogram/pages/index/index.js

@@ -25,16 +25,12 @@ Page({
       Object.keys(data).forEach(function (key) {
         wx.setStorageSync(key, data[key])
       })
-      wx.navigateTo({
-        url: '/pages/takePhoto/takePhoto',
-      })
-    } else {
-      wx.navigateTo({
-        url: '/pages/takePhoto/takePhoto',
-      })
-
     }
 
+    wx.navigateTo({
+      url: '/pages/takePhoto/takePhoto',
+    })
+
 
   },
   onLoad: function (options) {

+ 3 - 57
miniprogram/pages/maritime/maritime.js

@@ -1,66 +1,12 @@
 // pages/maritime/maritime.js
+import {
+  postApi
+} from "../../apis/api"
 Page({
-
-  /**
-   * 页面的初始数据
-   */
   data: {
 
   },
-
-  /**
-   * 生命周期函数--监听页面加载
-   */
   onLoad(options) {
 
   },
-
-  /**
-   * 生命周期函数--监听页面初次渲染完成
-   */
-  onReady() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onShow() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面隐藏
-   */
-  onHide() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面卸载
-   */
-  onUnload() {
-
-  },
-
-  /**
-   * 页面相关事件处理函数--监听用户下拉动作
-   */
-  onPullDownRefresh() {
-
-  },
-
-  /**
-   * 页面上拉触底事件的处理函数
-   */
-  onReachBottom() {
-
-  },
-
-  /**
-   * 用户点击右上角分享
-   */
-  onShareAppMessage() {
-
-  }
 })

+ 2 - 2
miniprogram/pages/maritime/maritime.wxml

@@ -1,2 +1,2 @@
-<!--pages/maritime/maritime.wxml-->
-<text>pages/maritime/maritime.wxml</text>
+<view class="tac" style="color:#777;font-size: 50rpx;margin-top: 20vh;">海事</view>
+<view class="tac" style="color:#777;font-size: 50rpx;margin-top: 20vh;">建设中...</view>

+ 3 - 57
miniprogram/pages/securityCheck/securityCheck.js

@@ -1,66 +1,12 @@
 // pages/securityCheck/securityCheck.js
+import {
+  postApi
+} from "../../apis/api"
 Page({
-
-  /**
-   * 页面的初始数据
-   */
   data: {
 
   },
-
-  /**
-   * 生命周期函数--监听页面加载
-   */
   onLoad(options) {
 
   },
-
-  /**
-   * 生命周期函数--监听页面初次渲染完成
-   */
-  onReady() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onShow() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面隐藏
-   */
-  onHide() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面卸载
-   */
-  onUnload() {
-
-  },
-
-  /**
-   * 页面相关事件处理函数--监听用户下拉动作
-   */
-  onPullDownRefresh() {
-
-  },
-
-  /**
-   * 页面上拉触底事件的处理函数
-   */
-  onReachBottom() {
-
-  },
-
-  /**
-   * 用户点击右上角分享
-   */
-  onShareAppMessage() {
-
-  }
 })

+ 2 - 2
miniprogram/pages/securityCheck/securityCheck.wxml

@@ -1,2 +1,2 @@
-<!--pages/securityCheck/securityCheck.wxml-->
-<text>pages/securityCheck/securityCheck.wxml</text>
+<view class="tac" style="color:#777;font-size: 50rpx;margin-top: 20vh;">安检</view>
+<view class="tac" style="color:#777;font-size: 50rpx;margin-top: 20vh;">建设中...</view>

+ 3 - 57
miniprogram/pages/train/train.js

@@ -1,66 +1,12 @@
 // pages/train/train.js
+import {
+  postApi
+} from "../../apis/api"
 Page({
-
-  /**
-   * 页面的初始数据
-   */
   data: {
 
   },
-
-  /**
-   * 生命周期函数--监听页面加载
-   */
   onLoad(options) {
 
   },
-
-  /**
-   * 生命周期函数--监听页面初次渲染完成
-   */
-  onReady() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onShow() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面隐藏
-   */
-  onHide() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面卸载
-   */
-  onUnload() {
-
-  },
-
-  /**
-   * 页面相关事件处理函数--监听用户下拉动作
-   */
-  onPullDownRefresh() {
-
-  },
-
-  /**
-   * 页面上拉触底事件的处理函数
-   */
-  onReachBottom() {
-
-  },
-
-  /**
-   * 用户点击右上角分享
-   */
-  onShareAppMessage() {
-
-  }
 })

+ 2 - 2
miniprogram/pages/train/train.wxml

@@ -1,2 +1,2 @@
-<!--pages/train/train.wxml-->
-<text>pages/train/train.wxml</text>
+<view class="tac" style="color:#777;font-size: 50rpx;margin-top: 20vh;">培训</view>
+<view class="tac" style="color:#777;font-size: 50rpx;margin-top: 20vh;">建设中...</view>