Browse Source

feat(招聘) 首页 社招

xing.li 4 years ago
commit
17fb24d524
56 changed files with 807 additions and 0 deletions
  1. 8 0
      .idea/.gitignore
  2. 6 0
      .idea/misc.xml
  3. 8 0
      .idea/modules.xml
  4. 9 0
      .idea/recruit.iml
  5. 6 0
      .idea/vcs.xml
  6. 19 0
      app.js
  7. 48 0
      app.json
  8. 1 0
      app.wxss
  9. BIN
      images/icons/add.png
  10. BIN
      images/icons/assess.png
  11. BIN
      images/icons/camera.png
  12. BIN
      images/icons/close.png
  13. BIN
      images/icons/defult-user.png
  14. BIN
      images/icons/index-active.png
  15. BIN
      images/icons/index.png
  16. BIN
      images/icons/left.png
  17. BIN
      images/icons/location.png
  18. BIN
      images/icons/next-gray.png
  19. BIN
      images/icons/next.png
  20. BIN
      images/icons/order-active.png
  21. BIN
      images/icons/order.png
  22. BIN
      images/icons/person-active.png
  23. BIN
      images/icons/person.png
  24. BIN
      images/icons/phone.png
  25. BIN
      images/icons/reduce.png
  26. BIN
      images/icons/right.png
  27. BIN
      images/icons/shop-icon.png
  28. BIN
      images/icons/tel.png
  29. BIN
      images/icons/user.png
  30. 66 0
      pages/companyProfile/companyProfile.js
  31. 9 0
      pages/companyProfile/companyProfile.json
  32. 5 0
      pages/companyProfile/companyProfile.wxml
  33. 1 0
      pages/companyProfile/companyProfile.wxss
  34. 71 0
      pages/index/index.js
  35. 8 0
      pages/index/index.json
  36. 23 0
      pages/index/index.wxml
  37. 61 0
      pages/index/index.wxss
  38. 48 0
      pages/index1/index1.js
  39. 9 0
      pages/index1/index1.json
  40. 23 0
      pages/index1/index1.wxml
  41. 61 0
      pages/index1/index1.wxss
  42. 66 0
      pages/person/person.js
  43. 3 0
      pages/person/person.json
  44. 2 0
      pages/person/person.wxml
  45. 1 0
      pages/person/person.wxss
  46. 66 0
      pages/school/school.js
  47. 3 0
      pages/school/school.json
  48. 2 0
      pages/school/school.wxml
  49. 1 0
      pages/school/school.wxss
  50. 66 0
      pages/sociology/sociology.js
  51. 3 0
      pages/sociology/sociology.json
  52. 2 0
      pages/sociology/sociology.wxml
  53. 1 0
      pages/sociology/sociology.wxss
  54. 75 0
      project.config.json
  55. 7 0
      sitemap.json
  56. 19 0
      utils/util.js

+ 8 - 0
.idea/.gitignore

@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 数据源本地存储已忽略文件
+/../../../:\recruit\.idea/dataSources/
+/dataSources.local.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/

+ 6 - 0
.idea/misc.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
+    <output url="file://$PROJECT_DIR$/out" />
+  </component>
+</project>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/recruit.iml" filepath="$PROJECT_DIR$/.idea/recruit.iml" />
+    </modules>
+  </component>
+</project>

+ 9 - 0
.idea/recruit.iml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4">
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>

+ 19 - 0
app.js

@@ -0,0 +1,19 @@
+// app.js
+App({
+  onLaunch() {
+    // 展示本地存储能力
+    const logs = wx.getStorageSync('logs') || []
+    logs.unshift(Date.now())
+    wx.setStorageSync('logs', logs)
+
+    // 登录
+    wx.login({
+      success: res => {
+        // 发送 res.code 到后台换取 openId, sessionKey, unionId
+      }
+    })
+  },
+  globalData: {
+    userInfo: null
+  }
+})

+ 48 - 0
app.json

@@ -0,0 +1,48 @@
+{
+  "pages":[
+    "pages/index/index",
+    "pages/index1/index1",
+    "pages/person/person",
+    "pages/sociology/sociology",
+    "pages/school/school",
+    "pages/companyProfile/companyProfile"
+    
+  ],
+  "window":{
+    "backgroundTextStyle":"light",
+    "navigationBarBackgroundColor": "#fff",
+    "navigationBarTitleText": "Weixin",
+    "navigationBarTextStyle":"black"
+  },
+  "tabBar": {
+    "color": "#444",
+    "selectedColor": "#1296db",
+    "backgroundColor": "#ffffff",
+    "list": [{
+      "pagePath": "pages/index/index",
+      "text": "首页",
+      "iconPath": "images/icons/index.png",
+      "selectedIconPath": "images/icons/index-active.png"
+    },
+    {
+      "pagePath": "pages/sociology/sociology",
+      "text": "社招",
+      "iconPath": "images/icons/order.png",
+      "selectedIconPath": "images/icons/order-active.png"
+    },
+    {
+      "pagePath": "pages/school/school",
+      "text": "校招",
+      "iconPath": "images/icons/order.png",
+      "selectedIconPath": "images/icons/order-active.png"
+    },
+    {
+      "pagePath": "pages/person/person",
+      "text": "我的",
+      "iconPath": "images/icons/person.png",
+      "selectedIconPath": "images/icons/person-active.png"
+    }]
+  },
+  "style": "v2",
+  "sitemapLocation": "sitemap.json"
+}

+ 1 - 0
app.wxss

@@ -0,0 +1 @@
+

BIN
images/icons/add.png


BIN
images/icons/assess.png


BIN
images/icons/camera.png


BIN
images/icons/close.png


BIN
images/icons/defult-user.png


BIN
images/icons/index-active.png


BIN
images/icons/index.png


BIN
images/icons/left.png


BIN
images/icons/location.png


BIN
images/icons/next-gray.png


BIN
images/icons/next.png


BIN
images/icons/order-active.png


BIN
images/icons/order.png


BIN
images/icons/person-active.png


BIN
images/icons/person.png


BIN
images/icons/phone.png


BIN
images/icons/reduce.png


BIN
images/icons/right.png


BIN
images/icons/shop-icon.png


BIN
images/icons/tel.png


BIN
images/icons/user.png


+ 66 - 0
pages/companyProfile/companyProfile.js

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

+ 9 - 0
pages/companyProfile/companyProfile.json

@@ -0,0 +1,9 @@
+{
+  "usingComponents": {},
+  "navigationBarBackgroundColor": "#fff",
+  "navigationBarTextStyle": "black",
+  "navigationBarTitleText": "公司介绍",
+  "backgroundColor": "#fff",
+  "backgroundTextStyle": "light"
+
+}

+ 5 - 0
pages/companyProfile/companyProfile.wxml

@@ -0,0 +1,5 @@
+<!--pages/companyProfile/companyProfile.wxml-->
+<text>沪上阿姨隶属于上海臻敬实业有限公司,五谷茶饮开创者,以“时髦之茶,源自沪上”为品牌定位,专注于为年轻消费者提供健康、好喝、不贵的新式现制茶饮。自2013年将五谷与茶跨界搭配首创性提出五谷茶饮的概念后,沪上阿姨又创新性将水果酸奶引入茶饮赛道、创新性开创五谷水果茶系列,持续引领五谷茶品类创新,致力传递健康谷物自然之美。
+以上海人民广场为出发点,沪上阿姨不断向全国拓展,如今已在全国300多个城市开业超过3000家门店,年销量超过1亿杯,成为天津、山东、安徽、河北等区域强势领导品牌。2020年11月,沪上阿姨获得嘉御基金近亿元人民币A轮融资,正加速迈向“百城万店,造福万家”的企业愿景,目标成为一家受人尊敬的百年茶饮品牌。</text>
+
+<text>2019年9月,沪上阿姨新IP符号诞生。一位身着典雅旗袍、翘着兰花指、有颗美人痣、手拿吸管向顾客眨眼的年轻“小阿姨”,代替了原来的上海阿姨形象,兼具老上海的腔调与新上海的活力。</text>

+ 1 - 0
pages/companyProfile/companyProfile.wxss

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

+ 71 - 0
pages/index/index.js

@@ -0,0 +1,71 @@
+// pages/index/index.js
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: function (options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload: function () {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh: function () {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom: function () {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage: function () {
+
+  },
+  gotoCompanyProfile:function(){
+    wx.navigateTo({
+      url: '../companyProfile/companyProfile'
+    })
+  }
+})

+ 8 - 0
pages/index/index.json

@@ -0,0 +1,8 @@
+{
+  "usingComponents": {},
+  "navigationBarBackgroundColor": "#fff",
+  "navigationBarTextStyle": "black",
+  "navigationBarTitleText": "首页",
+  "backgroundColor": "#fff",
+  "backgroundTextStyle": "light"
+}

+ 23 - 0
pages/index/index.wxml

@@ -0,0 +1,23 @@
+
+<view class="container">
+<view class="top" bindtap="gotoCompanyProfile">
+  <image class="top_img" src="https://www.hsayi.com/images/aacc93851bcd1442b1b531a64b88832e.png"></image>
+</view>
+<view class="bottom">
+  <view class="left">
+    <view class="left_1" bindtap="gotoCompanyProfile">
+      <view>公司简介</view>
+    </view>
+    <view class="left_2">社招岗位</view>
+    <view class="left_3">员工待遇</view>
+    <view class="left_4">企业文化</view>
+  </view>
+  <view class="right">
+    <view class="right_1">校招岗位</view>
+    <view class="right_2">工作环境</view>
+    <view class="right_3">校招行程</view>
+    <view class="right_4">个人中心</view>
+  </view>
+</view>
+
+</view>

+ 61 - 0
pages/index/index.wxss

@@ -0,0 +1,61 @@
+Page {
+  width: 100%;
+  height: 100%;
+  background-color: #F7F7F7;
+}
+
+.container {
+  width: 100%;
+  background-color: #F7F7F7;
+  display: flex;
+  flex-flow: column nowrap;
+  justify-content: space-between;
+}
+.top{
+  height: 400rpx;
+  width: 100%;
+ 
+}
+.top_img{
+  height: 400rpx;
+  width: 100%;
+}
+.bottom{
+  /* height: 1000rpx; */
+  padding: 30rpx 20rpx;
+  display: flex;
+  flex-flow: row nowrap;
+  justify-content: space-between;
+}
+.left{
+  width: 345rpx;
+}
+.left_1,.left_3,.right_2,.right_4{
+  height: 120rpx;
+  background-color: #DBA901;
+  color: #fff;
+  border-radius: 10rpx;
+  border:4rpx solid #000; 
+  display: flex;
+  flex-flow: row nowrap;
+  justify-content: center;
+  align-items: center;
+  margin-bottom: 20rpx;
+}
+.left_2,.left_4,.right_1,.right_3{
+  height: 240rpx;
+  background-color:#0489B1;
+  color: #fff;
+  border-radius: 10rpx;
+  border:4rpx solid #000; 
+  display: flex;
+  flex-flow: row nowrap;
+  justify-content: center;
+  align-items: center;
+  margin-bottom: 20rpx;
+}
+
+.right{
+  width: 345rpx;
+  margin-left: 20rpx;
+}

+ 48 - 0
pages/index1/index1.js

@@ -0,0 +1,48 @@
+// index.js
+// 获取应用实例
+const app = getApp()
+
+Page({
+  data: {
+    motto: 'Hello World',
+    userInfo: {},
+    hasUserInfo: false,
+    canIUse: wx.canIUse('button.open-type.getUserInfo'),
+    canIUseGetUserProfile: false,
+    canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName') // 如需尝试获取用户信息可改为false
+  },
+  // 事件处理函数
+  bindViewTap() {
+    wx.navigateTo({
+      url: '../logs/logs'
+    })
+  },
+  onLoad() {
+    if (wx.getUserProfile) {
+      this.setData({
+        canIUseGetUserProfile: true
+      })
+    }
+  },
+  getUserProfile(e) {
+    // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认,开发者妥善保管用户快速填写的头像昵称,避免重复弹窗
+    wx.getUserProfile({
+      desc: '展示用户信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
+      success: (res) => {
+        console.log(res)
+        this.setData({
+          userInfo: res.userInfo,
+          hasUserInfo: true
+        })
+      }
+    })
+  },
+  getUserInfo(e) {
+    // 不推荐使用getUserInfo获取用户信息,预计自2021年4月13日起,getUserInfo将不再弹出弹窗,并直接返回匿名的用户个人信息
+    console.log(e)
+    this.setData({
+      userInfo: e.detail.userInfo,
+      hasUserInfo: true
+    })
+  }
+})

+ 9 - 0
pages/index1/index1.json

@@ -0,0 +1,9 @@
+{
+  "usingComponents": {},
+  "navigationBarBackgroundColor": "#fff",
+  "navigationBarTextStyle": "black",
+  "navigationBarTitleText": "首页",
+  "backgroundColor": "#fff",
+  "backgroundTextStyle": "light"
+
+}

+ 23 - 0
pages/index1/index1.wxml

@@ -0,0 +1,23 @@
+
+<view class="container">
+<view class="top">
+  <image class="top_img" src="https://www.hsayi.com/images/aacc93851bcd1442b1b531a64b88832e.png"></image>
+</view>
+<view class="bottom">
+  <view class="left">
+    <view class="left_1" bindtap="gotoCompanyProfile">
+      <view>公司简介</view>
+    </view>
+    <view class="left_2">社招岗位</view>
+    <view class="left_3">员工待遇</view>
+    <view class="left_4">企业文化</view>
+  </view>
+  <view class="right">
+    <view class="right_1">校招岗位</view>
+    <view class="right_2">工作环境</view>
+    <view class="right_3">校招行程</view>
+    <view class="right_4">个人中心</view>
+  </view>
+</view>
+
+</view>

+ 61 - 0
pages/index1/index1.wxss

@@ -0,0 +1,61 @@
+Page {
+  width: 100%;
+  height: 100%;
+  background-color: #F7F7F7;
+}
+
+.container {
+  width: 100%;
+  background-color: #F7F7F7;
+  display: flex;
+  flex-flow: column nowrap;
+  justify-content: space-between;
+}
+.top{
+  height: 400rpx;
+  width: 100%;
+ 
+}
+.top_img{
+  height: 400rpx;
+  width: 100%;
+}
+.bottom{
+  /* height: 1000rpx; */
+  padding: 30rpx 20rpx;
+  display: flex;
+  flex-flow: row nowrap;
+  justify-content: space-between;
+}
+.left{
+  width: 345rpx;
+}
+.left_1,.left_3,.right_2,.right_4{
+  height: 120rpx;
+  background-color: #DBA901;
+  color: #fff;
+  border-radius: 10rpx;
+  border:4rpx solid #000; 
+  display: flex;
+  flex-flow: row nowrap;
+  justify-content: center;
+  align-items: center;
+  margin-bottom: 20rpx;
+}
+.left_2,.left_4,.right_1,.right_3{
+  height: 240rpx;
+  background-color:#0489B1;
+  color: #fff;
+  border-radius: 10rpx;
+  border:4rpx solid #000; 
+  display: flex;
+  flex-flow: row nowrap;
+  justify-content: center;
+  align-items: center;
+  margin-bottom: 20rpx;
+}
+
+.right{
+  width: 345rpx;
+  margin-left: 20rpx;
+}

+ 66 - 0
pages/person/person.js

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

+ 3 - 0
pages/person/person.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

+ 2 - 0
pages/person/person.wxml

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

+ 1 - 0
pages/person/person.wxss

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

+ 66 - 0
pages/school/school.js

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

+ 3 - 0
pages/school/school.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

+ 2 - 0
pages/school/school.wxml

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

+ 1 - 0
pages/school/school.wxss

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

+ 66 - 0
pages/sociology/sociology.js

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

+ 3 - 0
pages/sociology/sociology.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

+ 2 - 0
pages/sociology/sociology.wxml

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

+ 1 - 0
pages/sociology/sociology.wxss

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

+ 75 - 0
project.config.json

@@ -0,0 +1,75 @@
+{
+  "description": "项目配置文件",
+  "packOptions": {
+    "ignore": []
+  },
+  "setting": {
+    "urlCheck": true,
+    "es6": true,
+    "enhance": false,
+    "postcss": true,
+    "preloadBackgroundData": false,
+    "minified": true,
+    "newFeature": false,
+    "coverView": true,
+    "nodeModules": false,
+    "autoAudits": false,
+    "showShadowRootInWxmlPanel": true,
+    "scopeDataCheck": false,
+    "uglifyFileName": false,
+    "checkInvalidKey": true,
+    "checkSiteMap": true,
+    "uploadWithSourceMap": true,
+    "compileHotReLoad": false,
+    "useMultiFrameRuntime": true,
+    "useApiHook": true,
+    "useApiHostProcess": true,
+    "babelSetting": {
+      "ignore": [],
+      "disablePlugins": [],
+      "outputPath": ""
+    },
+    "enableEngineNative": false,
+    "bundle": false,
+    "useIsolateContext": true,
+    "useCompilerModule": true,
+    "userConfirmedUseCompilerModuleSwitch": false,
+    "userConfirmedBundleSwitch": false,
+    "packNpmManually": false,
+    "packNpmRelationList": [],
+    "minifyWXSS": true
+  },
+  "compileType": "miniprogram",
+  "libVersion": "2.17.0",
+  "appid": "wxe15e2156252a1dd1",
+  "projectname": "miniprogram-1",
+  "debugOptions": {
+    "hidedInDevtools": []
+  },
+  "scripts": {},
+  "staticServerOptions": {
+    "baseURL": "",
+    "servePath": ""
+  },
+  "isGameTourist": false,
+  "condition": {
+    "search": {
+      "list": []
+    },
+    "conversation": {
+      "list": []
+    },
+    "game": {
+      "list": []
+    },
+    "plugin": {
+      "list": []
+    },
+    "gamePlugin": {
+      "list": []
+    },
+    "miniprogram": {
+      "list": []
+    }
+  }
+}

+ 7 - 0
sitemap.json

@@ -0,0 +1,7 @@
+{
+  "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
+  "rules": [{
+  "action": "allow",
+  "page": "*"
+  }]
+}

+ 19 - 0
utils/util.js

@@ -0,0 +1,19 @@
+const formatTime = date => {
+  const year = date.getFullYear()
+  const month = date.getMonth() + 1
+  const day = date.getDate()
+  const hour = date.getHours()
+  const minute = date.getMinutes()
+  const second = date.getSeconds()
+
+  return `${[year, month, day].map(formatNumber).join('/')} ${[hour, minute, second].map(formatNumber).join(':')}`
+}
+
+const formatNumber = n => {
+  n = n.toString()
+  return n[1] ? n : `0${n}`
+}
+
+module.exports = {
+  formatTime
+}