Przeglądaj źródła

全部工作地址页面

LiFei 6 lat temu
rodzic
commit
c23cff47c3

+ 2 - 1
app.json

@@ -52,7 +52,8 @@
     "pages/pt-tip/index",
     "pages/collection-list/index",
     "pages/interview/index",
-    "pages/set/index"
+    "pages/set/index",
+    "pages/address/index"
   ],
   "window": {
     "backgroundTextStyle": "light",

+ 24 - 0
pages/address/index.js

@@ -0,0 +1,24 @@
+import {
+  imgServerUrl
+} from '../../config/config.js'
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    imgServerUrl: imgServerUrl
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: function (options) {
+    this.setData({
+      addressList: wx.getStorageSync('addressList'),
+    })
+    console.log(this.data.addressList)
+  },
+
+ 
+})

+ 4 - 0
pages/address/index.json

@@ -0,0 +1,4 @@
+{
+  "navigationBarTitleText": "全部工作地点",
+  "usingComponents": {}
+}

+ 10 - 0
pages/address/index.wxml

@@ -0,0 +1,10 @@
+<view class='addlist' wx:for="{{addressList}}" wx:for-index="idx" wx:for-item="item" wx:key='*this'>
+  <view class='addressdeatil'>
+    <view class='address'>{{item.adname}}{{item.address?item.address:""}}</view>
+    <view class='adname'>{{item.adname}}</view>
+  </view>
+
+  <view class='jiantou'>
+    <!-- <image class='rightjt' src='{{imgServerUrl}}/images/happyjob/right.png'></image> -->
+  </view>
+</view>

+ 43 - 0
pages/address/index.wxss

@@ -0,0 +1,43 @@
+.addlist {
+  display: flex;
+  flex-direction: row;
+  align-items: center;
+  justify-content: space-between;
+  width: 100%;
+  border-bottom: 1rpx solid rgba(221,221,221,1);
+}
+
+.addressdeatil {
+  display: flex;
+  flex-direction: column;
+}
+
+.address {
+  font-size: 32rpx;
+  font-family: SourceHanSansCN-Regular;
+  font-weight: 400;
+  color: rgba(82, 82, 85, 1);
+  margin-top: 30rpx;
+  margin-left: 30rpx;
+}
+
+.adname {
+  font-size: 24rpx;
+  font-family: SourceHanSansCN-Regular;
+  font-weight: 400;
+  color: rgba(154, 154, 156, 1);
+  margin-top: 13rpx;
+  margin-left: 30rpx;
+  margin-bottom: 30rpx;
+}
+
+.jiantou {
+  width: 18rpx;
+  height: 30rpx;
+  margin-right: 30rpx;
+}
+
+.rightjt {
+  width: 100%;
+  height: 100%;
+}

+ 7 - 1
pages/detail/index.js

@@ -370,7 +370,7 @@ Page({
       url: '../pt-detail/index?gd=' + groupId + '&pc=' + self.data.positionCategory + '&pd=' + self.data.hpPositionId,
     })
   },
-  
+
   // 所有拼工
   allPt(e) {
     this.setData({
@@ -418,4 +418,10 @@ Page({
       'err': err
     });
   },
+  toaddressdetail() {
+    wx.setStorageSync("addressList", this.data.postitionDetail.hpPositionAddressList);
+    wx.navigateTo({
+      url: '../address/index' ,
+    })
+  }
 })

+ 3 - 3
pages/detail/index.wxml

@@ -43,7 +43,7 @@
       </view>
     </view>
     <block wx:if="{{postitionDetail.hpPositionAddressList[0].adname}}">
-      <view class='three'>
+      <view class='three' catchtap='toaddressdetail'>
         <view class='left'>
           <image src='{{imgServerUrl}}/images/happyjob/location.png'></image>
           <text>{{postitionDetail.hpPositionAddressList[0].adname}}{{postitionDetail.hpPositionAddressList[0].address?postitionDetail.hpPositionAddressList[0].address:""}}</text>
@@ -214,7 +214,7 @@
       </view>
     </view>
     <block wx:if="{{postitionDetail.hpPositionAddressList[0].adname}}">
-      <view class='three'>
+      <view class='three' catchtap='toaddressdetail'>
         <view class='left'>
           <image src='{{imgServerUrl}}/images/happyjob/location.png'></image>
           <text>{{postitionDetail.hpPositionAddressList[0].adname}}{{postitionDetail.hpPositionAddressList[0].address?postitionDetail.hpPositionAddressList[0].address:""}}</text>
@@ -442,7 +442,7 @@
         </view>
       </view>
     </view>
-    <view class='three'>
+    <view class='three' catchtap='toaddressdetail'>
       <view class='left'>
         <image src='{{imgServerUrl}}/images/happyjob/location.png'></image>
         <text>{{postitionDetail.hpPositionAddressList[0].adname}}{{postitionDetail.hpPositionAddressList[0].address}}</text>

+ 7 - 3
pages/mine/index.js

@@ -9,6 +9,9 @@ import {
   updataStorageData
 } from '../../utils/storage.js'
 import {
+  showToast
+} from '../../utils/tips.js'
+import {
   checkPhone
 } from '../../services/wx.js'
 var app = getApp()
@@ -119,10 +122,11 @@ Page({
         url: '../identification/index',
       })
     } else if (approveState == 3) {
+      showToast("已认证")
       //个人信息页面
-      wx.navigateTo({
-        url: '../user-form/index',
-      })
+      // wx.navigateTo({
+      //   url: '../user-form/index',
+      // })
     } else if (approveState == 2) {
       //认证不通过
       wx.navigateTo({