Browse Source

feat(招聘) 个人中心 我的简历 我的投递 我的收藏

xing.li 4 years ago
parent
commit
f343b36ad5

+ 2 - 1
app.json

@@ -13,7 +13,8 @@
     "pages/record/record",
     "pages/resume/resume",
     "pages/employeeBenefits/employeeBenefits",
-    "pages/corporateCulture/corporateCulture"
+    "pages/corporateCulture/corporateCulture",
+    "pages/prompt/prompt"
   
     
   ],

BIN
images/icons/hsay.png


BIN
images/icons/no_data.png


+ 136 - 0
pages/prompt/prompt.js

@@ -0,0 +1,136 @@
+// pages/prompt/prompt.js
+const app = getApp()
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    companyName:"沪上阿姨"
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: async function (options) {
+    console.log(options)
+    let page = options.page
+    if (options.page === 'pages/appointment/appointment') {
+      page = `${page}?shopId=${options.shopId}&productId=${options.productId}`
+    }
+    if(options.storeId && options.tableId){
+      this.setData({
+        storeId: options.storeId,
+        tableId: options.tableId,
+      })
+    }
+    this.setData({
+      fromPage: page
+    })
+    let userInfo = await app.getWxUserInfo()
+    console.log(userInfo);
+    if (userInfo){
+      this.setData({
+        userInfo: userInfo,
+        hasUserInfo: true,
+        hasMobile: userInfo.mobile ? true : false
+      })
+    }
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload: function () {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh: function () {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom: function () {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage: function () {
+
+  },
+  getInfo : async function(e){
+    const _self = this
+    let userInfo = e.detail.userInfo
+    userInfo['encryptedData'] = e.detail.encryptedData
+    userInfo['iv'] = e.detail.iv
+    let info = await app.wxLogin(userInfo);
+    let hasMobile = false;
+    if (info.mobile){
+      hasMobile = true
+    }
+    _self.setData({
+      hasUserInfo: true,
+      userInfo: info,
+      hasMobile: hasMobile,
+    })
+
+    if(_self.data.fromPage=="pages/personorder/personorder"){
+      wx.switchTab({
+        url: '/'+_self.data.fromPage,
+      })
+      return;
+    }/* else{
+      wx.redirectTo({
+        url: '/'+_self.data.fromPage,
+      })
+    } */
+    if(_self.data.fromPage=="pages/comments/comments"){
+      wx.redirectTo({
+        url: '../comments/comments?title=我的评论&commentstype=my',
+      })
+      return;
+    }
+
+    if(_self.data.fromPage=="pages/food/food"){
+      wx.redirectTo({
+        url: '/'+_self.data.fromPage+"?tableId="+this.data.tableId+"&storeId="+this.data.storeId,
+      })
+      return;
+    }
+
+    wx.redirectTo({
+      url: '/'+_self.data.fromPage,
+    })
+
+    console.log(_self.data.fromPage)
+   
+  }
+})

+ 3 - 0
pages/prompt/prompt.json

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

+ 18 - 0
pages/prompt/prompt.wxml

@@ -0,0 +1,18 @@
+<!--pages/prompt/prompt.wxml-->
+<view class="container">
+    <view class="logo">
+        <image class="logo-img" src="/images/icons/hsay.png"  >
+            
+        </image>
+        <view class="info ">{{companyName}}</view>
+    </view>
+    <view class="desc">
+        <view class="text-h f16">为提供更优质的服务,{{companyName}}需要获取以下信息:</view>
+        <view class="text-f ">
+            
+            你的公开信息(昵称,头像等)</view>
+    </view>
+    <view class="confirm">
+        <button open-type="getUserInfo" bindgetuserinfo="getInfo" type="primary">确认</button>
+    </view>
+</view>

+ 62 - 0
pages/prompt/prompt.wxss

@@ -0,0 +1,62 @@
+.container .logo {
+  height: 400rpx;
+  position: relative;
+}
+
+.container .logo > .logo-img {
+  width: 200rpx;
+  height: 200rpx;
+  border-radius: 50%;
+  position: absolute;
+  bottom: 100rpx;
+  left: 50%;
+  transform: translateX(-50%);
+}
+
+.container .logo > .info {
+  width: 100%;
+  height: 50rpx;
+  text-align: center;
+  letter-spacing: 3rpx;
+  position: absolute;
+  bottom: 10rpx;
+  font-size: 22px;
+}
+
+.container .desc {
+  width: 90%;
+  margin: 50rpx auto;
+}
+
+.container .desc .text-h {
+  height: 100rpx;
+  padding: 0 20rpx 20rpx 20rpx;
+}
+
+.container .desc .text-f {
+  padding: 0 50rpx;
+  color: #999;
+  font-size: 13px;
+  position: relative;
+}
+
+.container .desc .text-f::before {
+  content: "";
+  width: 6rpx;
+  height: 6rpx;
+  background-color: #999;
+  position: absolute;
+  top: 15rpx;
+  left: 25rpx;
+  border-radius: 50%;
+}
+
+.container .confirm {
+  width: 80%;
+  margin: 100rpx auto;
+}
+
+.container .confirm > button {
+  width: 100%;
+  font-weight: 400;
+}

+ 4 - 0
pages/schoolTrip/schoolTrip.wxml

@@ -1,7 +1,11 @@
 
 
 <view class="content" >
+  <view class="no_data_view">
+    <image src='/images/icons/no_data.png' class="no_data_img"></image>
   <view class="text">
  暂无数据
 </view>
+  </view>
+
 </view>

+ 13 - 1
pages/schoolTrip/schoolTrip.wxss

@@ -1,6 +1,7 @@
 .content{
   background-color: #F2F2F2;
   padding: 20rpx;
+  
 }
 Page {
   width: 100%;
@@ -8,10 +9,21 @@ Page {
   background-color: #F2F2F2;
 }
 .text{
-  background-color: #fff;
+ 
   padding: 20rpx;
   border-radius: 10rpx;
   text-align: center;
   color: #667580;
   font-size: 28rpx;
+}
+.no_data_img{
+  height: 300rpx;
+  width: 300rpx;
+}
+.no_data_view{
+  margin-top: 200rpx;
+  display: flex;
+  flex-flow: column nowrap;
+  justify-content: center;
+  align-items: center;
 }

+ 1 - 1
pages/sociology/sociology.wxml

@@ -3,7 +3,7 @@
 <view class="content" >
     <view class="header">
       <view class="top">
-        <image class="c_img" src="https://www.hsayi.com/uploads/allimg/20210217/1-21021H0402UC.png"></image>
+        <image class="c_img" src="/images/icons/hsay.png"></image>
         <view class="top_right">
           <view class="c_name">沪上阿姨</view>
           <view class="desc">茶饮连锁品牌</view>

+ 6 - 0
project.private.config.json

@@ -39,6 +39,12 @@
         {
           "name": "pages/record/record",
           "pathName": "pages/record/record",
+          "query": "",
+          "scene": null
+        },
+        {
+          "name": "pages/schoolTrip/schoolTrip",
+          "pathName": "pages/schoolTrip/schoolTrip",
           "scene": null
         }
       ]