diff --git a/miniprogram/apis/consumer.ts b/miniprogram/apis/consumer.ts index 05422bc..27634ae 100644 --- a/miniprogram/apis/consumer.ts +++ b/miniprogram/apis/consumer.ts @@ -16,3 +16,10 @@ export function bindPhoneList() { }) } +export function phoneChose(data: any) { + return request({ + url: '/consumer/phoneChose', + method: 'POST', + data + }) +} diff --git a/miniprogram/apis/phone.ts b/miniprogram/apis/phone.ts index 9e340fc..f624513 100644 --- a/miniprogram/apis/phone.ts +++ b/miniprogram/apis/phone.ts @@ -28,9 +28,10 @@ export function evaluateLaunch(data: any) { data }) } -export function cleanPhoneDate(phone: any) { +export function cleanPhoneDate(phone: any, name: any) { return request({ - url: `/phone/cleanPhoneDate?phone=${phone}`, + // url: `/phone/cleanPhoneDate?phone=${phone}`, + url: `/phone/cleanPhoneDate?phone=${phone}&name=${name}`, method: 'DELETE', }) } @@ -50,3 +51,11 @@ export function labelStatistics(phone: string) { method: 'GET', }) } + + +export function getCleanReturn() { + return request({ + url: `/phone/getCleanReturn`, + method: 'GET', + }) +} \ No newline at end of file diff --git a/miniprogram/app.ts b/miniprogram/app.ts index 07b3d2b..699ad89 100644 --- a/miniprogram/app.ts +++ b/miniprogram/app.ts @@ -100,14 +100,13 @@ App({ }).then((res: any) => { wx.setStorageSync('Authorization', res.d) // this.getBindPhoneList() + + resolve(true) + console.log('resolve'); bindPhoneList().then(res => { - // wx.setStorageSync('accountList', res.d) - // this.globalData.accountList = res.d + console.log('##2##',res); wx.setStorageSync('accountList', res.d) - console.log(wx.getStorageSync('userInfo').phone,res.d); - wx.setStorageSync('userInfo', res.d.find(item => item.phone === wx.getStorageSync('userInfo').phone) || res.d[0]) - // this.globalData.userInfo = res.d[0] }) // this.getUserInfo().then(() => { // resolve(true) diff --git a/miniprogram/assets/images/pay/icon_faild.png b/miniprogram/assets/images/pay/icon_faild.png new file mode 100644 index 0000000..3c0581f Binary files /dev/null and b/miniprogram/assets/images/pay/icon_faild.png differ diff --git a/miniprogram/assets/images/pay/icon_success.png b/miniprogram/assets/images/pay/icon_success.png new file mode 100644 index 0000000..3fd75af Binary files /dev/null and b/miniprogram/assets/images/pay/icon_success.png differ diff --git a/miniprogram/assets/images/searchResult/cStar_0.5.png b/miniprogram/assets/images/searchResult/cStar_0.5.png new file mode 100644 index 0000000..5ad1859 Binary files /dev/null and b/miniprogram/assets/images/searchResult/cStar_0.5.png differ diff --git a/miniprogram/assets/images/searchResult/cStar_0.png b/miniprogram/assets/images/searchResult/cStar_0.png new file mode 100644 index 0000000..b40cc53 Binary files /dev/null and b/miniprogram/assets/images/searchResult/cStar_0.png differ diff --git a/miniprogram/assets/images/searchResult/cStar_1.png b/miniprogram/assets/images/searchResult/cStar_1.png new file mode 100644 index 0000000..8fdfa4c Binary files /dev/null and b/miniprogram/assets/images/searchResult/cStar_1.png differ diff --git a/miniprogram/assets/images/searchResult/icon_my.png b/miniprogram/assets/images/searchResult/icon_my.png new file mode 100644 index 0000000..ed7a43e Binary files /dev/null and b/miniprogram/assets/images/searchResult/icon_my.png differ diff --git a/miniprogram/assets/images/searchResult/icon_search.png b/miniprogram/assets/images/searchResult/icon_search.png new file mode 100644 index 0000000..282b2a8 Binary files /dev/null and b/miniprogram/assets/images/searchResult/icon_search.png differ diff --git a/miniprogram/components/dialog/dialog.wxml b/miniprogram/components/dialog/dialog.wxml index 3a9ae86..7479a0a 100644 --- a/miniprogram/components/dialog/dialog.wxml +++ b/miniprogram/components/dialog/dialog.wxml @@ -5,7 +5,7 @@ 提示 - 您即将进入全国人力资源信息数据验证平台,邀请对方授权个人信息报告,操作流程如下: + {{position!=='my'?'您即将进入全国人力资源信息数据验证平台,邀请对方授权个人信息报告,操作流程如下':'您即将进入全国人力资源信息数据验证平台,生成个人信息报告,操作流程如下:'}} 1 diff --git a/miniprogram/components/guide/guide.scss b/miniprogram/components/guide/guide.scss index bab34bc..dbf577b 100644 --- a/miniprogram/components/guide/guide.scss +++ b/miniprogram/components/guide/guide.scss @@ -1,28 +1,29 @@ /* components/guide/guide.wxss */ -.guide-cmp { - font-size: 24rpx; - // font-weight: bold; - // font-family: YouSheBiaoTiHei; - // font-weight: 400; - color: #FFFFFF; +.route{ position: fixed; top: 30rpx; right: 0; z-index: 100; +} +.guide-cmp { + font-size: 24rpx; + color: #FFFFFF; + // position: fixed; + // top: 30rpx; + // right: 0; + // z-index: 100; // background: #3A61B1; - width: 172rpx; + width: 140rpx; height: 50rpx; border: 1px solid #FFFFFF; border-right: 0; border-radius: 25px 0px 0px 25px; font-family: PingFang SC; font-weight: 500; - // border-top-left-radius: 20rpx; - // border-bottom-left-radius: 20rpx; display: flex; justify-content: center; align-items: center; - // font-style: italic; + margin-bottom: 10rpx; .icon_guideClose { width: 11rpx; @@ -148,9 +149,15 @@ } .my { - width: 127rpx; + width: 142rpx; height: 58rpx; background: #6571D9; border-radius: 29rpx 0px 0px 29rpx; border: 0; + padding-left: 1px; +} + +.icon_search { + width: 19rpx; + height: 21rpx; } \ No newline at end of file diff --git a/miniprogram/components/guide/guide.ts b/miniprogram/components/guide/guide.ts index 325d595..5a655b1 100644 --- a/miniprogram/components/guide/guide.ts +++ b/miniprogram/components/guide/guide.ts @@ -10,7 +10,7 @@ Component({ }, title: { type: String, - value: '查看我的号码' + value: '我的主页' } }, diff --git a/miniprogram/components/guide/guide.wxml b/miniprogram/components/guide/guide.wxml index 251d4a7..bf6673f 100644 --- a/miniprogram/components/guide/guide.wxml +++ b/miniprogram/components/guide/guide.wxml @@ -1,5 +1,23 @@ -{{title}} + + + + + 查号码 + + + 我的主页 + + + + + 查号码 + + + \ No newline at end of file diff --git a/miniprogram/components/star/star.ts b/miniprogram/components/star/star.ts index 5ba201b..32fdc4e 100644 --- a/miniprogram/components/star/star.ts +++ b/miniprogram/components/star/star.ts @@ -80,6 +80,33 @@ Component({ bgImg_all: "/assets/images/searchResult/star_1.png" } ], + stars_half: [ + { + bgImg: "/assets/images/searchResult/cStar_1.png", + bgImg_half: "/assets/images/searchResult/cStar_0.5.png", + bgImg_all: "/assets/images/searchResult/cStar_0.png" + }, + { + bgImg: "/assets/images/searchResult/cStar_1.png", + bgImg_half: "/assets/images/searchResult/cStar_0.5.png", + bgImg_all: "/assets/images/searchResult/cStar_0.png" + }, + { + bgImg: "/assets/images/searchResult/cStar_1.png", + bgImg_half: "/assets/images/searchResult/cStar_0.5.png", + bgImg_all: "/assets/images/searchResult/cStar_0.png" + }, + { + bgImg: "/assets/images/searchResult/cStar_1.png", + bgImg_half: "/assets/images/searchResult/cStar_0.5.png", + bgImg_all: "/assets/images/searchResult/cStar_0.png" + }, + { + bgImg: "/assets/images/searchResult/cStar_1.png", + bgImg_half: "/assets/images/searchResult/cStar_0.5.png", + bgImg_all: "/assets/images/searchResult/cStar_0.png" + } + ], cStars: [ { bgImg: "/assets/images/searchResult/cStar.png", diff --git a/miniprogram/components/userInfo/userInfo.scss b/miniprogram/components/userInfo/userInfo.scss index 602d577..2510205 100644 --- a/miniprogram/components/userInfo/userInfo.scss +++ b/miniprogram/components/userInfo/userInfo.scss @@ -4,6 +4,14 @@ display: flex; align-items: center; margin-bottom: 50rpx; + position: fixed; + background: #7B8EFF; + width: 100%; + left: 0; + top: 0rpx; + padding: 30rpx 0 0 30rpx; + height: 150rpx; + align-items: flex-start; .avatar { width: 77rpx; diff --git a/miniprogram/components/userInfo/userInfo.ts b/miniprogram/components/userInfo/userInfo.ts index eb05463..800f218 100644 --- a/miniprogram/components/userInfo/userInfo.ts +++ b/miniprogram/components/userInfo/userInfo.ts @@ -26,11 +26,13 @@ Component({ */ methods: { show() { - if (!this.data.realName) { - this.setData({ - visible: true - }) - } + console.log('show'); + + // if (!this.data.realName) { + this.setData({ + visible: true + }) + // } }, close() { this.setData({ diff --git a/miniprogram/components/userInfo/userInfo.wxml b/miniprogram/components/userInfo/userInfo.wxml index b519aaf..447734a 100644 --- a/miniprogram/components/userInfo/userInfo.wxml +++ b/miniprogram/components/userInfo/userInfo.wxml @@ -1,7 +1,9 @@ - {{phone}} + + {{phone}} + diff --git a/miniprogram/pages/index/index.scss b/miniprogram/pages/index/index.scss index 77757ea..97e18dc 100644 --- a/miniprogram/pages/index/index.scss +++ b/miniprogram/pages/index/index.scss @@ -1,7 +1,7 @@ /**index.wxss**/ page { background: #7E8BFF; - height: 100%; + // height: 100%; background: url("https://chrivc.obs.cn-north-4.myhuaweicloud.com/1cde69cc683a42219c12e8e7e4f6bed0:生意伙伴人品如何@2x.png"); background-size: 100%; } diff --git a/miniprogram/pages/index/index.ts b/miniprogram/pages/index/index.ts index 853213e..35be354 100644 --- a/miniprogram/pages/index/index.ts +++ b/miniprogram/pages/index/index.ts @@ -32,10 +32,22 @@ Page({ }) return } - if (phone.length !== 11) { + // if (phone.length !== 11) { + // wx.showToast({ + // icon: 'none', + // title: '手机号格式错误' + // }) + // return + // } + // let reg = ''; + // console.log((reg.test(phone)) + + // console.log(/^1[3|4|5|7|8][0-9]{9}$/.test(phone)); + + if (!/^1[3|4|5|7|8][0-9]{9}$/.test(phone)) { wx.showToast({ icon: 'none', - title: '请输入手机号格式错误' + title: '手机号格式错误!' }) return } @@ -63,16 +75,17 @@ Page({ wx.chooseContact({ success: t => { let temp = t.phoneNumber.replaceAll('-', '').replaceAll(' ', '') - if (temp.length !== 11) { + let reg = /^1[3|4|5|7|8][0-9]{9}$/; + if (reg.test(temp)) { + this.setData({ + phone:temp + }) + } + else { wx.showToast({ icon: 'none', title: '手机号格式错误!' }) - return - } else { - this.setData({ - phone: temp - }) } }, fail: e => console.log(e), diff --git a/miniprogram/pages/index/index.wxml b/miniprogram/pages/index/index.wxml index 21f7aaf..0e54bc3 100644 --- a/miniprogram/pages/index/index.wxml +++ b/miniprogram/pages/index/index.wxml @@ -25,7 +25,7 @@ --> - + 通讯录选取 diff --git a/miniprogram/pages/login/login.ts b/miniprogram/pages/login/login.ts index 2e75fed..6770353 100644 --- a/miniprogram/pages/login/login.ts +++ b/miniprogram/pages/login/login.ts @@ -48,6 +48,13 @@ Page({ }) return } + if (!/^1[3|4|5|7|8][0-9]{9}$/.test(phone)) { + wx.showToast({ + icon: 'none', + title: '手机号格式错误!' + }) + return + } sendSms({ phone, }).then(() => { diff --git a/miniprogram/pages/my/my.scss b/miniprogram/pages/my/my.scss index badadc8..9b66cb9 100644 --- a/miniprogram/pages/my/my.scss +++ b/miniprogram/pages/my/my.scss @@ -14,6 +14,13 @@ page { align-items: center; margin-bottom: 50rpx; padding: 30rpx 30rpx; + background: #7B8EFF; + // width: 100%; + // position: absolute; + // top: 0rpx; + // padding-top: 30rpx; + // height: 150rpx; + // align-items: flex-start; .btn_switch { font-size: 22rpx; @@ -83,8 +90,10 @@ page { } .layout_f { + overflow: auto; + height: 1300rpx; background: #fff; - height: 1278rpx; + // height: 1278rpx; border-radius: 32rpx 32rpx 16rpx 16rpx; // .line { @@ -779,6 +788,122 @@ page { bottom: 42rpx; } +.clearLayout { + background: #FFFFFF; + padding: 0 57rpx 45rpx 57rpx; + border-radius: 24rpx; + margin: 65rpx; + + .title { + font-size: 32rpx; + font-family: PingFang SC; + font-weight: bold; + color: #3E3E3E; + text-align: center; + margin-top: 42rpx; + margin-bottom: 27rpx; + } + + .content { + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 500; + color: #9F9F9F; + + text { + color: #FF2A00; + } + } + + .form { + .formItem { + width: 100%; + height: 77rpx; + background: #F7F7F7; + display: flex; + align-items: center; + margin-bottom: 30rpx; + border-radius: 6px; + + &:first-child { + + margin-top: 30rpx; + } + + input { + padding-left: 36rpx; + } + } + } + + .exit { + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 500; + color: #9F9F9F; + margin-top: 20rpx; + text-align: center; + } +} + +.payLayout { + background: #FFFFFF; + position: relative; + width: 100%; + border-radius: 24rpx 24rpx 0px 0px; + padding: 78rpx 30rpx 40rpx 30rpx; + + .payMoney { + font-size: 49rpx; + font-family: PingFang SC; + font-weight: bold; + color: #3E3E3E; + text-align: center; + + text { + font-size: 83rpx; + } + } + + .payType { + border-radius: 8px; + display: flex; + justify-content: space-between; + // background: red; + background: #F7F7F7; + align-items: center; + padding: 27rpx 46rpx 37rpx 43rpx; + margin-top: 40rpx; + margin-bottom: 90rpx; + + .payName { + display: flex; + align-items: center; + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 500; + color: #3E3E3E; + } + } + + .icon_wxPay { + width: 49rpx; + height: 45rpx; + margin-right: 21rpx; + } + + .gou { + width: 40rpx; + height: 40rpx; + } + + .btn_goPay { + display: flex; + align-items: center; + justify-content: center; + } +} + .shareLayout { display: flex; flex-direction: column; @@ -958,15 +1083,15 @@ page { .recordItem { background: #FAFAFA; - border-radius: 20px; - padding: 30rpx; + border-radius: 20rpx; + padding: 20rpx; display: flex; margin-bottom: 20rpx; .avatar { width: 70rpx; height: 70rpx; - margin-right: 30rpx; + margin-right: 20rpx; } .detail { diff --git a/miniprogram/pages/my/my.ts b/miniprogram/pages/my/my.ts index 2fd8f7b..386f918 100644 --- a/miniprogram/pages/my/my.ts +++ b/miniprogram/pages/my/my.ts @@ -1,7 +1,7 @@ // pages/my/my.ts const app = getApp() -import { bindPhoneList } from "../../apis/consumer"; -import { info, cleanPhoneDate, labelStatistics } from "../../apis/phone"; +import { bindPhoneList, phoneChose } from "../../apis/consumer"; +import { info, cleanPhoneDate, labelStatistics, getCleanReturn } from "../../apis/phone"; import { list } from "../../apis/phone"; import { sysConfig } from "../../apis/config"; Page({ @@ -18,7 +18,12 @@ Page({ dialogSwitchAccount: false, dialogCommentRecord: false, dialogTagRecord: false, - commentRecordList: [] + commentRecordList: [], + visible: false, + dialogClear: false, + dialogGoPay: false, + form_phone: '', + form_name: '' }, handleTagRecord() { const { checkCondition } = this.data @@ -156,29 +161,59 @@ Page({ }) }, handleClear() { - this.selectComponent('#shadow2').show() + // this.selectComponent('#shadow2').show() + this.setData({ + dialogClear: true, + form_name: '', + form_phone: this.data.userInfo.phone + }) }, goPay() { - wx.navigateTo({ - url: `/pages/pay/pay?phone=${this.data.userInfo.phone}` - }) - // return new Promise((resolve, reject) => { - // cleanPhoneDate(this.data.userInfo.phone).then((res: any) => { - // wx.requestPayment({ - // ...res.d, - // success: (res: any) => { - // resolve(res) - // }, - // fail: (err: any) => { - // wx.showToast({ - // icon: 'none', - // title: '支付失败, 请稍后再试!' - // }) - // reject(err) - // } - // }) - // }) + // wx.navigateTo({ + // url: `/pages/pay/pay?phone=${this.data.userInfo.phone}` // }) + let userInfo = wx.getStorageSync('userInfo'); + return new Promise((resolve, reject) => { + cleanPhoneDate(this.data.form_phone, this.data.form_name).then((res: any) => { + wx.requestPayment({ + ...res.d, + success: (res: any) => { + resolve(res) + bindPhoneList().then((resp: any) => { + wx.showToast({ + icon: 'none', + title: '支付完成' + }) + wx.setStorageSync('userInfo', resp.d.find((consumer: any) => consumer.id === userInfo.id)) + }) + // userInfo.evaluatedTimes = 0 + // wx.setStorageSync('userInfo', userInfo) + // wx.navigateBack({ + // delta: 1 + // }) + // this.getInfo() + this.setData({ + dialogClear: false, + dialogGoPay: false + }) + getCleanReturn().then(response => { + console.log(response); + wx.navigateTo({ + url: `/pages/pay/pay?result=${response.d === 'true'}` + }) + // } + }) + }, + fail: (err: any) => { + wx.showToast({ + icon: 'none', + title: '支付失败, 请稍后再试!' + }) + reject(err) + } + }) + }) + }) }, dialogInviteShow() { console.log('dialogInviteShow'); @@ -217,6 +252,7 @@ Page({ dialogSwitchAccount: false }) wx.setStorageSync("userInfo", accList) + phoneChose({ phone: accList.phone }) this.getInfo() }, goBind() { @@ -264,6 +300,67 @@ Page({ }) }) }, + show() { + if (!this.data.realName) { + this.setData({ + visible: true + }) + } + }, + close() { + this.setData({ + visible: false + }) + }, + goChrivc() { + wx.navigateToMiniProgram({ + appId: 'wx1da91ccb94c17c99', + path: 'pages/information/information', + success(res) { + // 打开成功 + } + }) + }, + handleConfirmPay() { + const { form_name, form_phone } = this.data + if (!form_name) { + wx.showToast({ + icon: 'none', + title: '请输入您的真实姓名' + }) + return + } + + if (!form_phone) { + wx.showToast({ + icon: 'none', + title: '请输入您的手机号码' + }) + return + } + + if (!/^1[3|4|5|7|8][0-9]{9}$/.test(form_phone)) { + wx.showToast({ + icon: 'none', + title: '手机号格式错误!' + }) + return + } + + this.setData({ + dialogGoPay: true, + }) + }, + handleCloseClear() { + this.setData({ + dialogClear: false + }) + }, + closeDialogGoPay() { + this.setData({ + dialogGoPay: false + }) + }, /** * 生命周期函数--监听页面加载 */ @@ -377,13 +474,13 @@ Page({ const promise = new Promise(resolve => { setTimeout(() => { resolve({ - title: '您对我的印象评价是什么?', + title: '邀请您到【众评】上对我做出印象评价', path: `/pages/searchResult/searchResult?phone=${this.data.userInfo.phone}`, }) }) }) return { - title: '您对我的印象评价是什么?', + title: '邀请您到【众评】上对我做出印象评价', path: '/pages/login/login', promise } diff --git a/miniprogram/pages/my/my.wxml b/miniprogram/pages/my/my.wxml index d679af7..efa6a51 100644 --- a/miniprogram/pages/my/my.wxml +++ b/miniprogram/pages/my/my.wxml @@ -1,14 +1,14 @@ - + - {{userInfo.phone}} + {{userInfo.phone}} @@ -17,11 +17,24 @@ + + + + 实名认证 + + + 手机号码已完成全国人力资源信息数据验证平台实名认证的用户,将通过“实名认证”标签展示,用户可前往“全国人力资源信息数据验证平台”小程序完成本人实名认证。 + 前往认证 + + + + + {{tools.toFix(consumer.totalAverage)}} - + @@ -35,7 +48,7 @@ 邀请好友评价 - 查看详情记录 + 查看详情记录 @@ -92,7 +105,7 @@ 来自匿名用户 - + {{tools.dateFormat(now,item.createDate)}} @@ -153,9 +166,40 @@ - + + + 清空所有评价数据 + 为确保操作为用户本人,您需要进行一次实名认证,费用¥{{money}}。清空后所有的分数和印象标签将清零。 + + + + + + + + + 提交认证,确认支付 + 退出 + + - + + + + {{money}} + + + 微信支付 + + + + + 确认支付 + + + + + diff --git a/miniprogram/pages/pay/pay.scss b/miniprogram/pages/pay/pay.scss index 3a3d85e..c43e807 100644 --- a/miniprogram/pages/pay/pay.scss +++ b/miniprogram/pages/pay/pay.scss @@ -69,4 +69,35 @@ left: 0; display: flex; justify-content: center; +} + +.page-payResult { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding-top: 172rpx; + + .icon_result { + width: 161rpx; + height: 208rpx; + } + + .title { + font-size: 36rpx; + font-family: PingFang SC; + font-weight: bold; + color: #3E3E3E; + text-align: center; + margin-top: 26rpx; + } + + .context { + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 500; + color: #A1A1A1; + margin-top: 23rpx; + margin-bottom: 36rpx; + } } \ No newline at end of file diff --git a/miniprogram/pages/pay/pay.ts b/miniprogram/pages/pay/pay.ts index e13c905..d191874 100644 --- a/miniprogram/pages/pay/pay.ts +++ b/miniprogram/pages/pay/pay.ts @@ -20,8 +20,8 @@ Page({ resolve(res) bindPhoneList().then((resp: any) => { wx.showToast({ - icon:'none', - title:'支付完成' + icon: 'none', + title: '支付完成' }) wx.setStorageSync('userInfo', resp.d.find((consumer: any) => consumer.id === userInfo.id)) }) @@ -42,13 +42,21 @@ Page({ }) }) }, + goMy() { + wx.redirectTo({ + url: '/pages/my/my' + }) + }, /** * 生命周期函数--监听页面加载 */ onLoad(options) { + console.log(options); + this.setData({ - phone: options.phone + // phone: options.phone + result: options.result }) }, diff --git a/miniprogram/pages/pay/pay.wxml b/miniprogram/pages/pay/pay.wxml index cf8164a..c29e6cd 100644 --- a/miniprogram/pages/pay/pay.wxml +++ b/miniprogram/pages/pay/pay.wxml @@ -1,6 +1,6 @@ - + + + + {{result==='true'?'操作成功!':'操作失败!'}} + {{result==='true'?'您的评价数据已经全部清空':'您的实名认证信息有误,请重新填写'}} + 回我的主页 \ No newline at end of file diff --git a/miniprogram/pages/privacy/privacy.ts b/miniprogram/pages/privacy/privacy.ts index 803902c..229eaf4 100644 --- a/miniprogram/pages/privacy/privacy.ts +++ b/miniprogram/pages/privacy/privacy.ts @@ -5,7 +5,7 @@ Page({ * 页面的初始数据 */ data: { - nodes: `

本应用非常重视用户隐私政策并严格遵守相关的法律规定。请您仔细阅读《隐私政策》后再继续使用。如果您继续使用我们的服务,表示您已经充分阅读和理解我们协议的全部内容。


本小程序尊重并保护所有使用服务用户的个人隐私权。为了给您提供更准确、更优质的服务,本应用会按照本隐私权政策的规定使用和披露您的个人信息。除本隐私权政策另有规定外,在未征得您事先许可的情况下,本应用不会将这些信息对外披露或向第三方提供。本应用会不时更新本隐私权政策。您在同意本应用服务使用协议之时,即视为您已经同意本隐私权政策全部内容。


1. 适用范围


(a) 在您注册本应用小程序帐号时,您根据小程序要求提供的个人注册信息;


(b) 在您使用本应用网络服务,或访问本应用平台网页时,本应用自动接收并记录的您的浏览器和计算机上的信息,包括但不限于您的IP地址、浏览器的类型、使用的语言、访问日期和时间、软硬件特征信息及您需求的网页记录等数据;


(c) 本应用通过合法途径从商业伙伴处取得的用户个人数据。


(d)本应用严禁用户发布不良信息,如裸露、色情和亵渎内容,发布的内容我们会进行审核,一经发现不良信息,会禁用该用户的所有权限,予以封号处理。


2. 信息使用


(a)本应用不会向任何无关第三方提供、出售、出租、分享或交易您的个人登录信息。如果我们存储发生维修或升级,我们会事先发出推送消息来通知您,请您提前允许本应用消息通知。


(b) 本应用亦不允许任何第三方以任何手段收集、编辑、出售或者无偿传播您的个人信息。任何本应用平台用户如从事上述活动,一经发现,本应用有权立即终止与该用户的服务协议。


(c) 为服务用户的目的,本应用可能通过使用您的个人信息,向您提供您感兴趣的信息,包括但不限于向您发出产品和服务信息,或者与本应用合作伙伴共享信息以便他们向您发送有关其产品和服务的信息(后者需要您的事先同意)


3. 信息披露


在如下情况下,本应用将依据您的个人意愿或法律的规定全部或部分的披露您的个人信息:


(a) 未经您事先同意,我们不会向第三方披露;


(b)为提供您所要求的产品和服务,而必须和第三方分享您的个人信息;


(c) 根据法律的有关规定,或者行政或司法机构的要求,向第三方或者行政、司法机构披露;


(d) 如您出现违反中国有关法律、法规或者本应用服务协议或相关规则的情况,需要向第三方披露;


(e) 如您是适格的知识产权投诉人并已提起投诉,应被投诉人要求,向被投诉人披露,以便双方处理可能的权利纠纷;


4. 信息存储和交换


本应用收集的有关您的信息和资料将保存在本应用及(或)其关联公司的服务器上,这些信息和资料可能传送至您所在国家、地区或本应用收集信息和资料所在地的境外并在境外被访问、存储和展示。


5. Cookie的使用


(a) 在您未拒绝接受cookies的情况下,本应用会在您的计算机上设定或取用cookies,以便您能登录或使用依赖于cookies的本应用平台服务或功能。本应用使用cookies可为您提供更加周到的个性化服务,包括推广服务。


(b) 您有权选择接受或拒绝接受cookies。您可以通过修改浏览器设置的方式拒绝接受cookies。但如果您选择拒绝接受cookies,则您可能无法登录或使用依赖于cookies的本应用网络服务或功能。


(c) 通过本应用所设cookies所取得的有关信息,将适用本政策。


6.本隐私政策的更改


(a)如果决定更改隐私政策,我们会在本政策中、本公司网站中以及我们认为适当的位置发布这些更改,以便您了解我们如何收集、使用您的个人信息,哪些人可以访问这些信息,以及在什么情况下我们会透露这些信息。


(b)本公司保留随时修改本政策的权利,因此请经常查看。如对本政策作出重大更改,本公司会通过网站通知的形式告知。


方披露自己的个人信息,如联络方式或者邮政地址。请您妥善保护自己的个人信息,仅在必要的情形下向他人提供。如您发现自己的个人信息泄密,尤其是本应用用户名及密码发生泄露,请您立即联络本应用客服,以便本应用采取相应措施。


感谢您花时间了解我们的隐私政策!我们将尽全力保护您的个人信息和合法权益,再次感谢您的信任!

+ nodes: `

本应用非常重视用户隐私政策并严格遵守相关的法律规定。请您仔细阅读《隐私政策》后再继续使用。如果您继续使用我们的服务,表示您已经充分阅读和理解我们协议的全部内容。


本小程序尊重并保护所有使用服务用户的个人隐私权。为了给您提供更准确、更优质的服务,本应用会按照本隐私权政策的规定使用和披露您的个人信息。除本隐私权政策另有规定外,在未征得您事先许可的情况下,本应用不会将这些信息对外披露或向第三方提供。本应用会不时更新本隐私权政策。您在同意本应用服务使用协议之时,即视为您已经同意本隐私权政策全部内容。


1. 适用范围


(a) 在您注册本应用小程序帐号时,您根据小程序要求提供的个人注册信息;


(b) 在您使用本应用网络服务,或访问本应用平台网页时,本应用自动接收并记录的您的浏览器和计算机上的信息,包括但不限于您的IP地址、浏览器的类型、使用的语言、访问日期和时间、软硬件特征信息及您需求的网页记录等数据;


(c) 本应用通过合法途径从商业伙伴处取得的用户个人数据。


(d)本应用严禁用户发布不良信息,如裸露、色情和亵渎内容,发布的内容我们会进行审核,一经发现不良信息,会禁用该用户的所有权限,予以封号处理。


2. 信息使用


(a)本应用不会向任何无关第三方提供、出售、出租、分享或交易您的个人登录信息。如果我们存储发生维修或升级,我们会事先发出推送消息来通知您,请您提前允许本应用消息通知。


(b) 本应用亦不允许任何第三方以任何手段收集、编辑、出售或者无偿传播您的个人信息。任何本应用平台用户如从事上述活动,一经发现,本应用有权立即终止与该用户的服务协议。


(c) 为服务用户的目的,本应用可能通过使用您的个人信息,向您提供您感兴趣的信息,包括但不限于向您发出产品和服务信息,或者与本应用合作伙伴共享信息以便他们向您发送有关其产品和服务的信息(后者需要您的事先同意)


3. 信息披露


在如下情况下,本应用将依据您的个人意愿或法律的规定全部或部分的披露您的个人信息:


(a) 未经您事先同意,我们不会向第三方披露;


(b)为提供您所要求的产品和服务,而必须和第三方分享您的个人信息;


(c) 根据法律的有关规定,或者行政或司法机构的要求,向第三方或者行政、司法机构披露;


(d) 如您出现违反中国有关法律、法规或者本应用服务协议或相关规则的情况,需要向第三方披露;


(e) 如您是适格的知识产权投诉人并已提起投诉,应被投诉人要求,向被投诉人披露,以便双方处理可能的权利纠纷;


4. 信息存储和交换


本应用收集的有关您的信息和资料将保存在本应用及(或)其关联公司的服务器上,这些信息和资料可能传送至您所在国家、地区或本应用收集信息和资料所在地的境外并在境外被访问、存储和展示。


5. Cookie的使用


(a) 在您未拒绝接受cookies的情况下,本应用会在您的计算机上设定或取用cookies,以便您能登录或使用依赖于cookies的本应用平台服务或功能。本应用使用cookies可为您提供更加周到的个性化服务,包括推广服务。


(b) 您有权选择接受或拒绝接受cookies。您可以通过修改浏览器设置的方式拒绝接受cookies。但如果您选择拒绝接受cookies,则您可能无法登录或使用依赖于cookies的本应用网络服务或功能。


(c) 通过本应用所设cookies所取得的有关信息,将适用本政策。


6.本隐私政策的更改


(a)如果决定更改隐私政策,我们会在本政策中、本公司网站中以及我们认为适当的位置发布这些更改,以便您了解我们如何收集、使用您的个人信息,哪些人可以访问这些信息,以及在什么情况下我们会透露这些信息。


(b)本公司保留随时修改本政策的权利,因此请经常查看。如对本政策作出重大更改,本公司会通过网站通知的形式告知。



感谢您花时间了解我们的隐私政策!我们将尽全力保护您的个人信息和合法权益,再次感谢您的信任!

 

  diff --git a/miniprogram/pages/report/report.json b/miniprogram/pages/report/report.json index 063671f..eb7e613 100644 --- a/miniprogram/pages/report/report.json +++ b/miniprogram/pages/report/report.json @@ -4,6 +4,7 @@ "usingComponents": { "btn": "/components/btn/btn", "not": "/components/not/not", - "navBar":"/components/navBar/navBar" + "navBar":"/components/navBar/navBar", + "filter": "/components/filter/filter" } } \ No newline at end of file diff --git a/miniprogram/pages/report/report.wxml b/miniprogram/pages/report/report.wxml index d7a2b12..ecf8a5d 100644 --- a/miniprogram/pages/report/report.wxml +++ b/miniprogram/pages/report/report.wxml @@ -22,7 +22,7 @@ 生成时间: - 2022-05-18 11:20 + 报告备注: diff --git a/miniprogram/pages/searchResult/searchResult.scss b/miniprogram/pages/searchResult/searchResult.scss index dc94d4f..82a844a 100644 --- a/miniprogram/pages/searchResult/searchResult.scss +++ b/miniprogram/pages/searchResult/searchResult.scss @@ -3,7 +3,13 @@ page { // background: #7E8BFF; background: url('https://chrivc.obs.cn-north-4.myhuaweicloud.com/3fde540348f34b58afa6763a4a3d76b8:b9d570d9205696a5034b961fb962184093024b006b1ac-FWgr.png'); background-size: cover; - background-position: 92% 100%; + background-position: 100%; +} + +.overflowBox { + // background: url('https://chrivc.obs.cn-north-4.myhuaweicloud.com/3fde540348f34b58afa6763a4a3d76b8:b9d570d9205696a5034b961fb962184093024b006b1ac-FWgr.png'); + // background-size: cover; + // background-position: 92% 100%; } .page-overflow-hidden { @@ -15,7 +21,11 @@ page { .searchResult-page { // background: #7E8BFF; // margin-top: 150rpx; - padding: 30rpx 30rpx; + // padding: 30rpx 30rpx; + padding: 30rpx 30rpx 0 30rpx; + // background: url('https://chrivc.obs.cn-north-4.myhuaweicloud.com/3fde540348f34b58afa6763a4a3d76b8:b9d570d9205696a5034b961fb962184093024b006b1ac-FWgr.png'); + // background-size: cover; + // background-position: 92% 100%; // .userInfo_box { @@ -97,6 +107,7 @@ page { .layout_top { display: flex; justify-content: space-between; + margin-bottom: 20rpx; .layout_title { @@ -104,7 +115,7 @@ page { font-family: PingFang SC; font-weight: bold; color: #4F536B; - margin-bottom: 20rpx; + // margin-bottom: 20rpx; } .layout_operation { @@ -233,14 +244,15 @@ page { .btn_operation { display: flex; - position: absolute; - bottom: 42rpx; + // position: relative; + position: fixed; + bottom: 50rpx; .btn_share { - background: none; + background: #7B8EFF; border-radius: 44rpx; border: 1px solid #fff; - width: 199rpx; + width: 204rpx; height: 88rpx; font-size: 34rpx; font-family: PingFang SC; @@ -372,15 +384,15 @@ page { .recordItem { background: #FAFAFA; - border-radius: 20px; - padding: 30rpx; + border-radius: 20rpx; + padding: 20rpx; display: flex; margin-bottom: 20rpx; .avatar { width: 70rpx; height: 70rpx; - margin-right: 30rpx; + margin-right: 20rpx; } .detail { @@ -476,6 +488,7 @@ page { padding-bottom: 18rpx; padding-top: 28rpx; border-bottom: 1px solid rgba(210, 210, 210, .27); + width: 100%; &:first-child { padding-top: 10rpx; @@ -774,4 +787,8 @@ page { } } } +} + +.zhanwei { + height: 150rpx; } \ No newline at end of file diff --git a/miniprogram/pages/searchResult/searchResult.ts b/miniprogram/pages/searchResult/searchResult.ts index 4199f0a..24e3c38 100644 --- a/miniprogram/pages/searchResult/searchResult.ts +++ b/miniprogram/pages/searchResult/searchResult.ts @@ -19,7 +19,7 @@ Page({ consumer: {}, listQuery: { current: 1, - size: 10, + size: 99999, phone: undefined }, userInfo: app.globalData.userInfo, @@ -71,9 +71,19 @@ Page({ }, handleComment() { let { consumer, tagListOrigin, } = this.data - let row = consumer.evaluateLabelIds?consumer.evaluateLabelIds.split(','):[] + + + let row = consumer.evaluateLabelIds ? consumer.evaluateLabelIds.split(',') : [] // console.log(row); + if (!consumer.evaluateLabelIds) { + tagListOrigin.map((item: any) => { + item.map((itm: any) => { + itm.checked = false + }) + }) + } + let tagList = [] tagListOrigin.map((o: any) => { o.map((g: any) => { @@ -146,7 +156,11 @@ Page({ }) }, getSysConfig() { + console.log('getSysConfig'); + sysConfig().then(res => { + console.log('###'); + console.log(res); this.setData({ checkCondition: res.d.checkCondition }) @@ -207,7 +221,15 @@ Page({ }, getInfo() { + console.log('getInfo'); + console.log('Authorization', wx.getStorageSync('Authorization')); + console.log('global', app.globalData); + + info({ phone: this.data.phone, type: 1 }).then(res => { + console.log('###getInfo'); + console.log(res); + this.setData({ consumer: res.d, }) @@ -217,18 +239,23 @@ Page({ }) } }) + console.log('getInfo-end'); + }, getCommentRecords() { + console.log('getCommentRecords'); + let payload = { ...this.data.listQuery, phone: this.data.phone } list(payload).then(res => { - console.log(res); + // console.log(res); this.setData({ commentRecordList: res.d.records }) }) + console.log('getCommentRecords-end'); }, getTagList() { console.log('getTagList'); @@ -319,7 +346,8 @@ Page({ tagList({ current: 1, size: 99999 }).then(res => { - // console.log(res); + console.log('###2'); + console.log(res); tagListOrigin = res.d let arr = [] Object.keys(res.d).forEach(key => { @@ -327,21 +355,22 @@ Page({ res.d[key].map(item => item.checked = false) arr.push(res.d[key]) }) - // console.log(arr); - - // tagListOrigin.map(item => item.checked = false) - // console.log('tagListOrigin', tagListOrigin1); this.setData({ tagListOrigin: arr }) }) + console.log('tagListOrigin1n-end'); }, getEtcData() { + console.log('getEtcData-start'); + etcData(this.data.phone).then(res => { console.log(res); }) + console.log('getEtcData-end'); + }, handleScore(e) { const { score } = e.detail @@ -387,7 +416,7 @@ Page({ }) }, handleTagRecord() { - + const { userInfo, checkCondition } = this.data if (!userInfo) { @@ -407,7 +436,7 @@ Page({ overflow: 'hidden' } }) - + this.getTagRecord() // this.getCommentRecords() } @@ -437,17 +466,22 @@ Page({ this.setData({ phone: options.phone }) - this.getInfo() + if (app.globalData.openId) { + this.getInfo() + this.getSysConfig() + this.getTagListOrigin() + } }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady() { - this.getTagListOrigin() + this.setData({ now: Math.floor(new Date().getTime() / 1000) }) + }, /** @@ -459,7 +493,7 @@ Page({ userInfo: wx.getStorageSync('userInfo'), accountList: wx.getStorageSync("accountList") }) - this.getSysConfig() + // this.getBindPhoneList() }, diff --git a/miniprogram/pages/searchResult/searchResult.wxml b/miniprogram/pages/searchResult/searchResult.wxml index 41fe3c8..2fbe2bd 100644 --- a/miniprogram/pages/searchResult/searchResult.wxml +++ b/miniprogram/pages/searchResult/searchResult.wxml @@ -1,101 +1,108 @@ - + + - 分数已隐藏 - 暂无评价 - {{tools.toFix(consumer.totalAverage)}} + + 分数已隐藏 + 暂无评价 + {{tools.toFix(consumer.totalAverage)}} - - - - - - - - - - - 至今: - - 已有{{consumer.accessTimes}}人次查看,共获得{{consumer.totalSize}}次评价 - 其中实名认证用户 {{consumer.evaluatedScore?consumer.realNameSize:'***'}} 次 实名认证用户平均评价 {{consumer.evaluatedScore?tools.toFix(consumer.realNameAverage):'**'}} - 评价对方可查看分数 - 详情记录> - 查看详情记录> - - - - - 印象标签 - 查看所有印象标签 - - - - 暂未收到任何印象标签 - - - {{item.content}} - x{{item.contentCount}} - - - - 共收到{{consumer.labelCount}}条印象标签,其中“{{consumer.labelVoList[0].content}}”获得了{{consumer.labelVoList[0].contentCount}}次点击 - + + - - - 全国人力资源信息数据验证平台个人信息报告 - - - - - 对方尚未进行全国人力资源信息数据验证平台实名认证,暂未提供个人信息报告,您可申请查验,邀请对方实名认证并授权报告 - - - 对方已进行全国人力资源信息数据验证平台实名认证,暂未提供个人信息报告查询通道,您可以邀请对方授权报告 - - - 对方已进行全国人力资源信息数据验证平台实名认证,并已授权个人信息报告 - - - - - 邀请实名认证 - - - 邀请授权报告 - - - 立即查看 - - + + + 至今: + 已有 {{consumer.accessTimes}} 人次查看,共获得 {{consumer.totalSize}} 次评价 + 其中实名认证用户 {{consumer.realNameSize}} 次 实名认证用户平均评价 {{consumer.evaluatedScore?tools.toFix(consumer.realNameAverage):'**'}} + 评价对方可查看分数 + 详情记录> + 查看详情记录> + + + + 印象标签 + 查看所有印象标签 + + + + 暂未收到任何印象标签 + + + + + + + {{item.content}} + x{{item.contentCount}} + + - - - - - 我已评价 - {{tools.toFix(consumer.evaluatedScore)}} - - 还未评价对方,快来评价吧~ + + + + 共收到{{consumer.labelCount}}条印象标签{{!consumer.evaluatedScore?'':',其中“'+consumer.labelVoList[0].content+'”获得了'+consumer.labelVoList[0].contentCount+'次点击'}} + + + + + + 全国人力资源信息数据验证平台个人信息报告 + + + + + 对方尚未进行全国人力资源信息数据验证平台实名认证,暂未提供个人信息报告,您可申请查验,邀请对方实名认证并授权报告 + + + 对方已进行全国人力资源信息数据验证平台实名认证,暂未提供个人信息报告查询通道,您可以邀请对方授权报告 + + + 对方已进行全国人力资源信息数据验证平台实名认证,并已授权个人信息报告 + + + + + 邀请实名认证 + + + 邀请授权报告 + + + 评价对方可查看报告 + + + 立即查看 + + - {{consumer.evaluatedScore===null?'我要评价':'修改/更新评价'}} + + + + + + 我已评价 + {{tools.toFix(consumer.evaluatedScore)}} + + + 还未评价对方,快来评价吧~ + + {{consumer.evaluatedScore===null?'我要评价':'修改/更新评价'}} + + + @@ -104,14 +111,14 @@ 评价对方后,即可查看对方众评数据 {{form.score}} - + 印象标签: - + {{item.content}} - x + x @@ -131,7 +138,7 @@ 提交 - + 不太了解,先评价一般 提示:提交后可再次修改更新评价 @@ -151,7 +158,7 @@ 来自匿名用户 - + {{tools.dateFormat(now,item.createDate)}} diff --git a/miniprogram/utils/request.ts b/miniprogram/utils/request.ts index b1fb9f2..d9b9844 100644 --- a/miniprogram/utils/request.ts +++ b/miniprogram/utils/request.ts @@ -1,6 +1,6 @@ // export const baseUrl = 'https://www.chrivc.com/api'; -export const baseUrl = 'https://app.pc.seemore.club'; -// export const baseUrl = 'http://office.xianci.info:19092'; +// export const baseUrl = 'https://app.pc.seemore.club'; +export const baseUrl = 'http://office.xianci.info:19092'; // export const baseUrl = 'http://192.168.168.189:9090'; // export const baseUrl = 'http://120.77.82.246:18085'; // export const baseUrl = 'http://192.168.168.234:18085'; diff --git a/project.private.config.json b/project.private.config.json index 183c84f..8da0100 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -14,6 +14,31 @@ "query": "id=1553205783638884354&type=2&active=3", "launchMode": "default", "scene": null + }, + { + "name": "", + "pathName": "pages/searchResult/searchResult", + "query": "phone=13408085719", + "launchMode": "default", + "scene": null + }, + { + "name": "", + "pathName": "pages/searchResult/searchResult", + "query": "phone=13408085719", + "launchMode": "default", + "scene": null, + "partialCompile": { + "enabled": true, + "pages": [] + } + }, + { + "name": "", + "pathName": "pages/pay/pay", + "query": "result=false", + "launchMode": "default", + "scene": null } ] }