Sfoglia il codice sorgente

feature

短链地址添加
wangxin 3 anni fa
parent
commit
6dbce3030f
4 ha cambiato i file con 17 aggiunte e 67 eliminazioni
  1. 5 1
      config/config.js
  2. 10 8
      pages/interview-reg/index.js
  3. 1 57
      project.config.json
  4. 1 1
      project.private.config.json

+ 5 - 1
config/config.js

@@ -4,17 +4,21 @@ const rootUrl = "https://kf.hap-job.com"
 const imgServerUrl = "https://hpjobtest.oss-cn-shanghai.aliyuncs.com/uploadfiles/mina"//静态资源图片服务器地址
 const imgServerUrl_new = "https://hpjobtest.oss-cn-shanghai.aliyuncs.com"//图片服务器地址
 const captcha = '2078399419'
+const webViewUrl = 'https://hwd.hap-job.com/front'
+
 // 正式服
 // const apiUrl = "https://web.hap-job.com/happyjob"
 // const rootUrl = "https://web.hap-job.com"
 // const imgServerUrl = "https://happyjob.oss-cn-shanghai.aliyuncs.com/uploadfiles/mina" //图片服务器地址
 // const imgServerUrl_new = "https://happyjob.oss-cn-shanghai.aliyuncs.com" //图片服务器地址
 // const captcha = '2019232819'
+// const webViewUrl = 'https://hwcloud.hap-job.com/front'
 
 module.exports = {
   apiUrl,
   imgServerUrl,
   imgServerUrl_new,
   rootUrl, 
-  captcha
+	captcha,
+	webViewUrl
 }

+ 10 - 8
pages/interview-reg/index.js

@@ -1,4 +1,5 @@
 // pages/interview-reg/index.js
+import { webViewUrl } from '../../config/config'
 Page({
 	/**
 	 * 页面的初始数据
@@ -21,7 +22,7 @@ Page({
 	/**
 	 * 生命周期函数--监听页面初次渲染完成
 	 */
-	onReady() {},
+	onReady() { },
 
 	/**
 	 * 生命周期函数--监听页面显示
@@ -31,12 +32,13 @@ Page({
 			const options = this.data.options;
 			if (options.url) {
 				const data = Object.assign({}, options)
-				delete data.url
 				data.phone = wx.getStorageSync('phone')
 				data.memberId = wx.getStorageSync('member_id')
+				data.shortUrl = data.url
+				delete data.url
 				this.setData({
 					show: true,
-					url: options.url + '?' + Object.keys(data).map(value => [value, data[value]]).map(val => val.join('=')).join('&'),
+					url: webViewUrl + '/#/index' + '?' + Object.keys(data).map(value => [value, data[value]]).map(val => val.join('=')).join('&'),
 				});
 			}
 		} else {
@@ -59,25 +61,25 @@ Page({
 	/**
 	 * 生命周期函数--监听页面隐藏
 	 */
-	onHide() {},
+	onHide() { },
 
 	/**
 	 * 生命周期函数--监听页面卸载
 	 */
-	onUnload() {},
+	onUnload() { },
 
 	/**
 	 * 页面相关事件处理函数--监听用户下拉动作
 	 */
-	onPullDownRefresh() {},
+	onPullDownRefresh() { },
 
 	/**
 	 * 页面上拉触底事件的处理函数
 	 */
-	onReachBottom() {},
+	onReachBottom() { },
 
 	/**
 	 * 用户点击右上角分享
 	 */
-	onShareAppMessage() {},
+	onShareAppMessage() { },
 });

+ 1 - 57
project.config.json

@@ -26,7 +26,7 @@
 		"autoAudits": true,
 		"showShadowRootInWxmlPanel": true,
 		"scopeDataCheck": false,
-		"uglifyFileName": true,
+		"uglifyFileName": false,
 		"checkInvalidKey": true,
 		"checkSiteMap": true,
 		"uploadWithSourceMap": true,
@@ -59,215 +59,177 @@
 	"simulatorType": "wechat",
 	"simulatorPluginLibVersion": {},
 	"condition": {
-		"plugin": {
-			"list": []
-		},
-		"game": {
-			"list": []
-		},
-		"gamePlugin": {
-			"list": []
-		},
 		"miniprogram": {
 			"list": [
 				{
-					"id": 0,
 					"name": "拼团详情",
 					"pathName": "pages/pt-detail/index",
 					"query": "scene=gd%3D21%26pc%3D4%26pd%3D47",
 					"scene": 1012
 				},
 				{
-					"id": 1,
 					"name": "我的",
 					"pathName": "pages/mine/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "收支明细",
 					"pathName": "pages/payment-details/payment-details",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "我的积分",
 					"pathName": "pages/integral/integral",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": 5,
 					"name": "兑换",
 					"pathName": "pages/gift/gift",
 					"query": "type=gift&integral=46",
 					"scene": null
 				},
 				{
-					"id": 6,
 					"name": "兑换详情",
 					"pathName": "pages/gift-detail/gift-detail",
 					"query": "id=1&type=activity",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "任务列表",
 					"pathName": "pages/task/task",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": 8,
 					"name": "兑换记录",
 					"pathName": "pages/exchange-record/exchange-record",
 					"query": "type=activity",
 					"scene": null
 				},
 				{
-					"id": 9,
 					"name": "兑换详情",
 					"pathName": "pages/exchange-detail/exchange-detail",
 					"query": "id=36&type=gift",
 					"scene": null
 				},
 				{
-					"id": 10,
 					"name": "支付",
 					"pathName": "pages/integral-pay/integral-pay",
 					"query": "type=gift&money=0.01",
 					"scene": null
 				},
 				{
-					"id": 10,
 					"name": "提现",
 					"pathName": "pages/wallet/pages/withdrawal/withdrawal",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": 11,
 					"name": "实名认证",
 					"pathName": "pages/identification/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": 12,
 					"name": "首页",
 					"pathName": "pages/index/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "我的",
 					"pathName": "pages/mine/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "验证码",
 					"pathName": "pages/check-iphone/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": 21,
 					"name": "全职详情",
 					"pathName": "pages/detail/index",
 					"query": "hpPositionId=10&cate=3",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "搜索",
 					"pathName": "pages/search/index",
 					"query": "hpPositionId=216&cate=8",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "选择城市",
 					"pathName": "pages/city/index",
 					"query": "hpPositionId=216&cate=8",
 					"scene": null
 				},
 				{
-					"id": 24,
 					"name": "全职工作",
 					"pathName": "pages/fulltime/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "兼职工作",
 					"pathName": "pages/parttime/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "登陆",
 					"pathName": "pages/login/login",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "搜索结果",
 					"pathName": "pages/search-result/search-result",
 					"query": "searchVal=CRM",
 					"scene": null
 				},
 				{
-					"id": 23,
 					"name": "选择用户",
 					"pathName": "pages/select-info/index",
 					"query": "id=185",
 					"scene": null
 				},
 				{
-					"id": 24,
 					"name": "绑定手机号",
 					"pathName": "pages/bind-phone/index",
 					"query": "hpPositionId=10&cate=3",
 					"scene": null
 				},
 				{
-					"id": 24,
 					"name": "获取验证码",
 					"pathName": "pages/check-iphone/index",
 					"query": "phone=18861826922&title=薪资查询&url=/pages/expense/pages/wages/index",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "绑定手机号",
 					"pathName": "pages/bind-phone/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "入职奖励",
 					"pathName": "pages/reward/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "高薪急聘",
 					"pathName": "pages/jipin/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "选择信息",
 					"pathName": "pages/select-info/index",
 					"query": "",
@@ -280,126 +242,108 @@
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "提现结果",
 					"pathName": "pages/wallet/pages/withdrawal-result/withdrawal-result",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": 31,
 					"name": "简历",
 					"pathName": "pages/jianli/index",
 					"query": "hpUserResumeId=30969",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "个人资料",
 					"pathName": "pages/user-info/user-info",
 					"query": "hpUserResumeId=30969",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "求职意向",
 					"pathName": "pages/user-job/index",
 					"query": "hpUserResumeId=30969",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "选择城市",
 					"pathName": "pages/choose-city/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": 35,
 					"name": "工作经验",
 					"pathName": "pages/user-works/index",
 					"query": "hpUserResumeId=56629&index=0",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "薪资查询",
 					"pathName": "pages/expense/pages/wages/index",
 					"query": "hpUserResumeId=56629&index=0",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "入职奖励",
 					"pathName": "pages/expense/pages/return-fee/index",
 					"query": "hpUserResumeId=56629&index=0",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "返费详情",
 					"pathName": "pages/expense/pages/return-fee/detail",
 					"query": "hpUserResumeId=56629&index=0",
 					"scene": null
 				},
 				{
-					"id": 39,
 					"name": "人才交流签到",
 					"pathName": "pages/web-view/web-view",
 					"query": "url=http://192.168.1.96:8082/talent_exchange/index",
 					"scene": null
 				},
 				{
-					"id": 40,
 					"name": "面试登记",
 					"pathName": "pages/interview-registration/index",
 					"query": "url=http://192.168.19.118:8082/interview/xiapu&&registerCompanyId=1",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "身份认证",
 					"pathName": "pages/identification/index",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "打卡",
 					"pathName": "pages/clock/clock",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "打卡规则",
 					"pathName": "pages/clock/clock-rule/clock-rule",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": 44,
 					"name": "打卡成功",
 					"pathName": "pages/clock/clock-success/clock-success",
 					"query": "clockType=1&&time=2020-09-24  09:44:32",
 					"scene": null
 				},
 				{
-					"id": 45,
 					"name": "提交成功",
 					"pathName": "pages/result/index",
 					"query": "type=auth&status=2&from=clock",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "统计列表",
 					"pathName": "pages/clock/clock-tongji/list",
 					"query": "",
 					"scene": null
 				},
 				{
-					"id": -1,
 					"name": "统计首页",
 					"pathName": "pages/clock/clock-tongji/index",
 					"query": "",

+ 1 - 1
project.private.config.json

@@ -321,7 +321,7 @@
 				{
 					"name": "面试登记",
 					"pathName": "pages/interview-reg/index",
-					"query": "url=http://localhost:9525/talent/personalResume&referId=73c09f36476c45e1bf8bb20345fb05ad&orgCode=A02A08A01&userName=test&customerId=9&createBy=test&customerName=无锡绿点",
+					"query": "url=YbQJNj",
 					"launchMode": "default",
 					"scene": 1011
 				}