lyuis 7 mēneši atpakaļ
vecāks
revīzija
8176ae9253
4 mainītis faili ar 68 papildinājumiem un 27 dzēšanām
  1. 1 0
      package/jobIntention/basicInfo.vue
  2. 7 0
      pages.json
  3. 1 1
      pages/my/index.vue
  4. 59 26
      pages/my/setup.vue

+ 1 - 0
package/jobIntention/basicInfo.vue

@@ -194,6 +194,7 @@
 			    sizeType: ["compressed"],
 			    sourceType: ["album", "camera"],
 			    success: (res) => {
+					console.log(res.tempFilePaths[0])
 				  that.$queue.uploadFile(res.tempFilePaths[0],function(path){
 					  if(path)
 						that.avatar = path;

+ 7 - 0
pages.json

@@ -352,6 +352,13 @@
 				"navigationStyle": "custom"
 			}
 		},
+		{
+			"path": "pages/my/attachment",
+			"style": {
+				"navigationBarTitleText": "管理附件",
+				"navigationStyle": "custom"
+			}
+		},
 		{
 			"path": "pages/my/ruleCenter",
 			"style": {

+ 1 - 1
pages/my/index.vue

@@ -206,7 +206,7 @@
 										<view class=""> 在线简历 </view>
 									</view>
 									<view class="jobServer-box-btn-item flex justify-center flex-wrap"
-										@click="refresh()">
+										@click="goNav('/pages/my/attachment')">
 										<image src="../../static/images/index/cpbk.svg" mode=""></image>
 										<view class=""> 附件简历 </view>
 									</view>

+ 59 - 26
pages/my/setup.vue

@@ -16,14 +16,20 @@
 		<view class="usermain">
 			
 			<!-- 我的公司 -->
-			<view class="usermain-item item-padding">
-				<view class="usermain-item-title">我的公司</view>
+			<view class="usermain-item item-padding" @click="goNavNoLogin('/my/setting/mimi')">
+				<view class="usermain-item-title">隐私协议</view>
 				<view>
 					<u-icon name="arrow-right"></u-icon>
 				</view>
 			</view>
-			<view class="usermain-item item-padding">
-				<view class="usermain-item-title">我的公司</view>
+			<view class="usermain-item item-padding" @click="goNavNoLogin('/my/setting/xieyi')">
+				<view class="usermain-item-title">用户协议</view>
+				<view>
+					<u-icon name="arrow-right"></u-icon>
+				</view>
+			</view>
+			<view class="usermain-item item-padding" @click="goNavNoLogin('/my/setting/about')">
+				<view class="usermain-item-title">关于我们</view>
 				<view>
 					<u-icon name="arrow-right"></u-icon>
 				</view>
@@ -65,7 +71,8 @@
 				zhiFuBao: '',
 				zhiFuBaoName: '',
 				sex: 1,
-				age: 0
+				age: 0,
+				arr:[]
 			};
 		},
 		computed: {
@@ -214,28 +221,32 @@
 			},
 			getUserInfo() {
 				let userId = uni.getStorageSync('userId')
-				this.$Request.get("/app/user/selectUserById").then(res => {
-					if (res.code == 0) {
-						this.$queue.setData('avatar', res.data.avatar);
-						this.$queue.setData('userId', res.data.userId);
-						this.$queue.setData('userName', res.data.userName);
-						this.$queue.setData('phone', res.data.phone);
-						this.$queue.setData('age', res.data.age);
-						this.$queue.setData('weChatNum',res.data.weChatNum)
-						this.weChatNum = res.data.weChatNum
-						this.sex = res.data.sex
-						this.age = res.data.age
-						this.phone = res.data.phone;
-						this.avatar = res.data.avatar;
-						this.userName = res.data.userName;
-						if (this.userName == null) {
-							this.userName = res.data.nickName;
-						} else {
-							this.userName = res.data.userName;
+				if (userId) {
+					this.$Request.getT("/app/common/type/310").then((res) => {
+						//消息未读提醒
+						if (res.code == 0) {
+							if (res.data && res.data.value) {
+								this.arr.push(res.data.value);
+							}
 						}
-					}
-					uni.hideLoading();
-				});
+					});
+					this.$Request.getT("/app/common/type/337").then((res) => {
+						//预约成功通知(通用)
+						if (res.code == 0) {
+							if (res.data && res.data.value) {
+								this.arr.push(res.data.value);
+							}
+						}
+					});
+					this.$Request.getT("/app/common/type/338").then((res) => {
+						//订单状态通知
+						if (res.code == 0) {
+							if (res.data && res.data.value) {
+								this.arr.push(res.data.value);
+							}
+						}
+					});
+				}
 
 
 			},
@@ -341,6 +352,28 @@
 					},
 				});
 			},
+			goNavNoLogin(e) {
+				// #ifdef MP-WEIXIN
+				if (uni.getStorageSync("sendMsg")) {
+					// console.log('授权+1')
+					wx.requestSubscribeMessage({
+						tmplIds: this.arr,
+						success(re) {
+							var datas = JSON.stringify(re);
+							if (datas.indexOf("accept") != -1) {
+								// console.log(re)
+							}
+						},
+						fail: (res) => {
+							// console.log(res)
+						},
+					});
+				}
+				// #endif
+				uni.navigateTo({
+					url: e,
+				});
+			},
 		},
 		// userphone(){
 		// 	uni.navigateTo({