This commit is contained in:
jiangrui 2023-05-10 16:56:25 +08:00
parent b2db1120d5
commit 28531c6ae8
63 changed files with 1958 additions and 193 deletions

0
miniprogram/apis/card.js Normal file
View File

11
miniprogram/apis/card.ts Normal file
View File

@ -0,0 +1,11 @@
import { request } from '../utils/request'
export function businessCard(data) {
return request({
url: '/consumer/businessCard',
method: 'PUT',
data
})
}
// /consumer/businessCard

View File

@ -1,6 +1,7 @@
{
"pages": [
"pages/index/index",
"pages/card/card",
"pages/shareTimeLine/shareTimeLine",
"pages/QA/QA",
"pages/service/service",
@ -45,12 +46,15 @@
"pages/question/question",
"pages/questionDetail/questionDetail",
"pages/whiteList/whiteList",
"pages/validComment/validComment",
"pages/commentResult/commentResult",
"pages/addAuthName/addAuthName"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "评",
"navigationBarTitleText": "评",
"navigationBarTextStyle": "black"
},

View File

@ -61,7 +61,10 @@ App<IAppOption>({
console.log('appShow', options)
const { path, query } = options
let { q, source } = query
if (['pages/apply/apply', 'pages/reportPreview/reportPreview', 'pages/scanLogin/scanLogin'].includes(path)) {
console.log('query.source', source);
if (source) this.globalData.smsCode = source
if (['pages/index/index'].includes(path)) {
let pageQueryStr = ''
if (q) {
q = decodeURIComponent(q)
@ -69,14 +72,15 @@ App<IAppOption>({
const queryObj = querystrToObj(decodeURIComponent(querystrToObj(queryStr).query))
pageQueryStr = decodeURIComponent(querystrToObj(queryStr).query)
source = queryObj.source
}
const backPage = `/${path}?${pageQueryStr}`
console.log(backPage)
wx.setStorageSync('QSource', source)
wx.setStorageSync('backPage', backPage)
// const backPage = `/${path}?${pageQueryStr}`
// console.log(backPage,this.smsCode)
// wx.setStorageSync('QSource', source)
// wx.setStorageSync('backPage', backPage)
} else {
wx.removeStorageSync('QSource')
wx.removeStorageSync('backPage')
// wx.removeStorageSync('QSource')
// wx.removeStorageSync('backPage')
}
},
// 登录
@ -95,16 +99,19 @@ App<IAppOption>({
this.globalData.unionId = res.d.unionId
login({
openId: res.d.openId,
unionId: res.d.unionId,
// ...res.d,
loginType: 1
loginType: 1,
smsCode: this.globalData.smsCode
}).then((res: any) => {
wx.setStorageSync('Authorization', res.d)
// this.getBindPhoneList()
console.log('QSource', this.globalData.smsCode);
resolve(true)
console.log('resolve');
// console.log('resolve');
bindPhoneList().then(res => {
console.log('##2##',res);
// console.log('##2##', res);
wx.setStorageSync('accountList', res.d)
wx.setStorageSync('userInfo', res.d.find(item => item.phone === wx.getStorageSync('userInfo').phone) || res.d[0])
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 956 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 828 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 802 B

View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -85,3 +85,7 @@ $member: #653E12;
background: #FFFFFF;
}
}
.default1{
border: 1px solid #C3C3C3;
box-sizing: border-box;
}

View File

@ -24,11 +24,19 @@ Component({
type: String,
value: '24rpx'
},
bgColor:{
type:String,
bgColor: {
type: String,
},
padding:{
type:String,
padding: {
type: String,
},
fontWeight: {
type: String,
value: 'initial'
},
fontColor: {
type: String,
value: ''
}
},

View File

@ -1,5 +1,4 @@
<!-- components/btn/btn.wxml -->
<view class="btn-cmp {{type}} {{plain&&'plain'}}"
style="font-size:{{fontSize}};width:{{width}};height:{{height}};background:{{bgColor}};padding:{{padding}}">
<view class="btn-cmp {{type}} {{plain&&'plain'}}" style="font-size:{{fontSize}};color:{{fontColor}};width:{{width}};height:{{height}};background:{{bgColor}};padding:{{padding}};font-weight: {{fontWeight}};">
<slot></slot>
</view>

View File

@ -51,8 +51,8 @@
<view class="timeLine_item" wx:if="{{position==='my'}}">
<view class="step">5</view>
<view class="timeLine_content">
<view>返回众评,选择证书展示</view>
<view class="contentText">完成电子证书授权后,返回众评再次选择想要展示的个人信息报告及对应的授权电子证书即可。</view>
<view>返回与评™,选择证书展示</view>
<view class="contentText">完成电子证书授权后,返回与评™再次选择想要展示的个人信息报告及对应的授权电子证书即可。</view>
<!-- <image class="invite_pic" src="/assets/images/searchResult/invite_pic1.png"></image> -->
</view>
</view>

View File

@ -43,4 +43,17 @@
height: 30rpx;
}
}
.cStars_half {
margin-right: 17rpx;
&:last-child{
margin-right: 0;
}
image{
width: 30rpx !important;
height: 30rpx !important;
}
// width: 30rpx;
// height: 30rpx;
}
}

View File

@ -151,7 +151,34 @@ Component({
bgImg_all: "/assets/images/searchResult/cStar_active.png"
}
],
cStars_half: [
{
bgImg: "/assets/images/card/cStar_0.png",
bgImg_half: "/assets/images/card/cStar_0.5.png",
bgImg_all: "/assets/images/card/cStar_1.png"
},
{
bgImg: "/assets/images/card/cStar_0.png",
bgImg_half: "/assets/images/card/cStar_0.5.png",
bgImg_all: "/assets/images/card/cStar_1.png"
},
{
bgImg: "/assets/images/card/cStar_0.png",
bgImg_half: "/assets/images/card/cStar_0.5.png",
bgImg_all: "/assets/images/card/cStar_1.png"
},
{
bgImg: "/assets/images/card/cStar_0.png",
bgImg_half: "/assets/images/card/cStar_0.5.png",
bgImg_all: "/assets/images/card/cStar_1.png"
},
{
bgImg: "/assets/images/card/cStar_0.png",
bgImg_half: "/assets/images/card/cStar_0.5.png",
bgImg_all: "/assets/images/card/cStar_1.png"
}
],
},
},
/**

View File

@ -4,12 +4,13 @@
display: flex;
align-items: center;
margin-bottom: 50rpx;
position: fixed;
// position: fixed;
position: relative;
background: #7B8EFF;
width: 100%;
left: 0;
top: 0rpx;
padding: 30rpx 0 0 30rpx;
// padding: 30rpx 0 0 30rpx;
height: 150rpx;
align-items: flex-start;
@ -48,6 +49,7 @@
margin: 65rpx;
border-radius: 24rpx;
width: 100%;
z-index:99;
.dialog_title {
font-size: 32rpx;

View File

@ -5,7 +5,7 @@ Page({
*
*/
data: {
nodes: `<p><span style="font-size: 15px;"><span style="color: rgb(63, 63, 63);"><strong><span style="color: rgb(63, 63, 63); font-family: 微软雅黑, &quot;sans-serif&quot;;">1、什么是众评数据?</span></strong><strong><span style="font-family: 微软雅黑, &quot;sans-serif&quot;;"></span></strong></span><span style="color: rgb(63, 63, 63);"><strong><span style="font-family: 微软雅黑, &quot;sans-serif&quot;;"></span></strong></span><br/></span></p><p><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(127, 127, 127); font-size: 14px;">众评数据是基于手机号码统计的相关数据,数据包括综合评价、标签、全国人力资源信息数据验证平台个人信息报告。</span></p><p style="margin-left:0;text-indent:0"><span style="color: rgb(63, 63, 63); font-size: 15px;"><strong><span style="color: rgb(63, 63, 63); font-size: 15px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2、什么是全国人力资源信息数据验证平台个人信息报告</span></strong></span></p><p><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(127, 127, 127); font-size: 14px;">个人信息报告所有数据均通过全国人力资源信息数据验证平台收录,由报告主体授权后展示在众评数据中,主要用于个人增信展示或提供给他人查验。</span></p><p style="margin-left:0;text-indent:0"><span style="color: rgb(63, 63, 63); font-size: 15px;"><strong><span style="color: rgb(63, 63, 63); font-size: 15px; font-family: 微软雅黑, &quot;sans-serif&quot;;">3、什么是实名认证用户</span></strong></span></p><p><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(127, 127, 127); font-size: 14px;">手机号码已完成全国人力资源信息数据验证平台实名认证的用户,通过“实名认证”标签展示,用户需要实名认证可前往“全国人力资源信息数据验证平台”完成实名认证流程。</span></p><p style="margin-left:0;text-indent:0"><span style="color: rgb(63, 63, 63); font-size: 15px;"><strong><span style="color: rgb(63, 63, 63); font-size: 15px; font-family: 微软雅黑, &quot;sans-serif&quot;;">4、如何绑定多个手机号码</span></strong></span></p><p><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(127, 127, 127); font-size: 14px;">通过“切换手机号”更换当前登录手机号,如需绑定其他号码,可通过手机号及验证码新增绑定手机号。</span></p><p style="margin-left:0;text-indent:0"><span style="color: rgb(63, 63, 63); font-size: 15px;"><strong><span style="color: rgb(63, 63, 63); font-size: 15px; font-family: 微软雅黑, &quot;sans-serif&quot;;">5、如何查看评价及标签详情</span></strong></span></p><p><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(127, 127, 127); font-size: 14px;">本人被评价人数达到3人后可开通查看评价及标签详情权限您可邀请好友为您综合评价。</span></p>`
nodes: `<p><span style="font-size: 15px;"><span style="color: rgb(63, 63, 63);"><strong><span style="color: rgb(63, 63, 63); font-family: 微软雅黑, &quot;sans-serif&quot;;">1、什么是与评™数据?</span></strong><strong><span style="font-family: 微软雅黑, &quot;sans-serif&quot;;"></span></strong></span><span style="color: rgb(63, 63, 63);"><strong><span style="font-family: 微软雅黑, &quot;sans-serif&quot;;"></span></strong></span><br/></span></p><p><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(127, 127, 127); font-size: 14px;">与评™数据是基于手机号码统计的相关数据,数据包括综合评价、标签、全国人力资源信息数据验证平台个人信息报告。</span></p><p style="margin-left:0;text-indent:0"><span style="color: rgb(63, 63, 63); font-size: 15px;"><strong><span style="color: rgb(63, 63, 63); font-size: 15px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2、什么是全国人力资源信息数据验证平台个人信息报告</span></strong></span></p><p><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(127, 127, 127); font-size: 14px;">个人信息报告所有数据均通过全国人力资源信息数据验证平台收录,由报告主体授权后展示在与评™数据中,主要用于个人增信展示或提供给他人查验。</span></p><p style="margin-left:0;text-indent:0"><span style="color: rgb(63, 63, 63); font-size: 15px;"><strong><span style="color: rgb(63, 63, 63); font-size: 15px; font-family: 微软雅黑, &quot;sans-serif&quot;;">3、什么是实名认证用户</span></strong></span></p><p><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(127, 127, 127); font-size: 14px;">手机号码已完成全国人力资源信息数据验证平台实名认证的用户,通过“实名认证”标签展示,用户需要实名认证可前往“全国人力资源信息数据验证平台”完成实名认证流程。</span></p><p style="margin-left:0;text-indent:0"><span style="color: rgb(63, 63, 63); font-size: 15px;"><strong><span style="color: rgb(63, 63, 63); font-size: 15px; font-family: 微软雅黑, &quot;sans-serif&quot;;">4、如何绑定多个手机号码</span></strong></span></p><p><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(127, 127, 127); font-size: 14px;">通过“切换手机号”更换当前登录手机号,如需绑定其他号码,可通过手机号及验证码新增绑定手机号。</span></p><p style="margin-left:0;text-indent:0"><span style="color: rgb(63, 63, 63); font-size: 15px;"><strong><span style="color: rgb(63, 63, 63); font-size: 15px; font-family: 微软雅黑, &quot;sans-serif&quot;;">5、如何查看评价及标签详情</span></strong></span></p><p><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(127, 127, 127); font-size: 14px;">本人被评价人数达到3人后可开通查看评价及标签详情权限您可邀请好友为您综合评价。</span></p>`
},
/**

View File

@ -0,0 +1,8 @@
{
"navigationBarTitleText": "口碑名片",
"usingComponents": {
"btn":"/components/btn/btn",
"painter": "/components/painter/painter",
"star":"/components/star/star"
}
}

View File

@ -0,0 +1,412 @@
/* pages/card/card.wxss */
page {
background: #F9F9F9;
}
.card {
// background: #F9F9F9;
// padding: 30rpx;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding-top: 20rpx;
.card-box {
box-sizing: border-box;
width: 719rpx;
height: 382rpx;
background: url('https://chrivc.obs.cn-north-4.myhuaweicloud.com/09f36e4cf9474682b194f3c0694d239d:card_bg.png')no-repeat;
background-size: cover;
.top {
margin-bottom: 40rpx;
padding-top: 20rpx;
padding-left: 60rpx;
padding-right: 60rpx;
.nameAndScore {
display: flex;
justify-content: space-between;
align-items: center;
.name {
font-size: 48rpx;
font-family: PingFang SC;
font-weight: 800;
color: #FFFFFF;
}
.score {
font-size: 64rpx;
font-family: Alibaba PuHuiTi;
font-weight: 800;
color: #FFFFFF;
text {
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
margin-right: 9rpx;
}
}
}
.positionAndTags {
display: flex;
justify-content: space-between;
.position {
font-size: 32rpx;
font-family: PingFang SC;
font-weight: bold;
color: #FFFFFF;
width: 350rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.company {
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
margin-top: 5rpx;
width: 350rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tagsAndStar {
display: flex;
flex-direction: column;
.tags {
display: flex;
justify-content: flex-end;
margin-top: 10rpx;
.tagItem {
position: relative;
background: #2235B6;
border-radius: 22rpx;
width: 124rpx;
height: 43rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
margin-bottom: 5rpx;
margin-left: 26rpx;
.numTag {
font-size: 14rpx;
font-family: Alibaba PuHuiTi;
font-weight: 800;
font-style: italic;
color: #FFFFFF;
background: #FF662A;
border-radius: 9px 8px 8px 4px;
width: 36rpx;
height: 19rpx;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
right: -25rpx;
top: 0;
}
}
.moreTag {
font-size: 48rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
width: 81rpx;
height: 43rpx;
background: #2235B6;
border-radius: 22rpx;
line-height: 8px;
text-align: center;
margin-left: 27rpx;
// display: flex;
// justify-content: center;
// align-items: center;
}
}
}
}
}
.bottom {
padding-left: 60rpx;
.btn_copy {
margin-left: 20rpx;
text-decoration: underline;
color: rgba(255, 255, 255, .43);
}
text {
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
}
.icon_phone {
width: 21.8rpx;
height: 20rpx;
margin-right: 9rpx;
}
.icon_email {
width: 22rpx;
height: 19.7rpx;
margin-right: 9rpx;
margin-left: 42rpx;
}
.introduce {
padding-right: 60rpx;
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
opacity: 0.43;
margin-top: 20rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.card-box-bg {
width: 689rpx;
height: 362rpx;
position: absolute;
left: 0;
top: 0;
z-index: 0;
}
}
// .zhanwei{
// background: red;
// height: 200rpx;
// width: 100%;
// position: relative;
// top: -20px;
// }
.card-info-box {
margin: 15rpx;
border-radius: 24rpx;
background: #fff;
padding: 40rpx;
box-sizing: border-box;
margin-top: 20rpx;
.title {
font-size: 30rpx;
font-family: PingFang SC;
font-weight: bold;
color: #3E3E3E;
display: flex;
justify-content: space-between;
.btn_edit {
font-size: 30rpx;
font-family: PingFang SC;
font-weight: 500;
color: #6571D9;
display: flex;
align-items: center;
.icon_edit {
width: 28rpx;
height: 28rpx;
margin-right: 10rpx;
}
}
}
.item {
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 400;
color: #9F9F9F;
margin-top: 40rpx;
display: flex;
align-items: center;
}
.btnItem {
display: flex;
justify-content: flex-end;
}
text {
display: inline-block;
width: 140rpx;
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
color: #3E3E3E;
}
}
.otherLayout {
background: #fff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.welcome {
margin: 70rpx;
position: relative;
font-size: 30rpx;
font-family: PingFang SC;
font-weight: 500;
color: #AEAEAE;
.icon_quote {
width: 25rpx;
height: 24rpx;
position: absolute;
top: -40rpx;
left: -36rpx;
}
.quote_end {
transform: rotate(180deg);
position: absolute;
top: inherit;
left: inherit;
bottom: -49rpx;
right: -34rpx;
}
}
.icon_logo {
width: 176rpx;
height: 73rpx;
margin-top: 207rpx;
}
.icon_slogan {
width: 428rpx;
height: 41rpx;
margin-top: 21rpx;
}
.description {
margin: 36rpx 50rpx;
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: #CACACA;
line-height: 38rpx;
text {
text-decoration: underline;
}
.icon_q {
width: 19rpx;
height: 19rpx;
}
}
}
.btns {
display: flex;
justify-content: center;
position: fixed;
bottom: 42rpx;
}
}
.canvas {
position: fixed;
opacity: 0;
left: 200%;
top: 200%;
z-index: -10;
}
.shareBtn {
// width="442rpx" height="88rpx" fontSize="30rpx" style="margin-left: 30rpx;
width: 442rpx;
height: 88rpx;
font-size: 30rpx;
margin-left: 30rpx !important;
background: #6571D9;
font-size: 30rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
border-radius: 44rpx;
display: flex;
justify-content: center;
align-items: center;
}
.explain-box {
background: rgba(0, 0, 0, .5);
width: 100%;
height: 100%;
position: fixed;
left: 0;
top: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 99;
.explain {
background: #fff;
border-radius: 24rpx;
// padding: 24rpx 58rpx 41rpx 58rpx;
margin: 60rpx;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding-bottom: 42rpx;
.title {
font-size: 32rpx;
font-family: PingFang SC;
font-weight: bold;
color: #3E3E3E;
margin-bottom: 26rpx;
margin-top: 42rpx;
}
.content {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 500;
color: #9F9F9F;
margin-bottom: 33rpx;
padding: 0 58rpx;
}
}
}

View File

@ -0,0 +1,326 @@
// pages/card/card.ts
// import { card } from '../../utils/painter'
import { info } from "../../apis/phone";
import { businessCard } from "../../apis/card";
Page({
/**
*
*/
data: {
cardPainter: {},
isEdit: false,
companyName: "",
consumerId: "",
email: "",
introduction: "",
name: "",
office: "",
phone: "",
businessCard: null,
labelOptions: [],
dialogExplain: false,
type: 0,
info: {},
dialogDetail: false,
detailInfo: '',
detailTitle: ''
},
// saveImage() {
// let screenWidth = wx.getSystemInfoSync().screenWidth;
// let screenHeight = wx.getSystemInfoSync().screenHeight;
// let canvasContext = wx.createCanvasContext('myCanvas');
// wx.createSelectorQuery().select('#saveArea').boundingClientRect(function (rect) {
// let top = rect.top;
// let left = rect.left;
// let width = rect.width;
// let height = rect.height;
// console.log(top, left, width, height);
// canvasContext.drawImage('../../assets/images/card/card_bg.png', 0, 100, screenWidth, screenHeight);
// // 将第二个绘制操作放在canvasContext.draw()方法中
// canvasContext.draw(false, () => {
// // 在回调函数中调用wx.canvasToTempFilePath()方法进行保存图片
// wx.canvasToTempFilePath({
// canvasId: 'myCanvas',
// x: left,
// y: top,
// width: width,
// height: height,
// destWidth: screenWidth * 2,
// destHeight: screenHeight * 2,
// success: function (res) {
// wx.saveImageToPhotosAlbum({
// filePath: res.tempFilePath,
// success: function () {
// wx.showToast({
// title: '保存成功'
// });
// },
// fail: function () {
// wx.showToast({
// title: '保存失败'
// });
// }
// });
// }
// });
// });
// }).exec();
// },
handleEdit() {
console.log('handleEdit');
const { isEdit } = this.data
this.setData({
isEdit: !isEdit
})
// if (isEdit) {
// const { companyName, email, introduction, office, phone } = this.data
// const payload = {
// companyName, email, introduction, office, phone
// }
// businessCard(payload).then(res => {
// console.log(res);
// this.getInfo(phone)
// })
// }
// },
},
handleCancelEdit() {
console.log('handleCancelEdit');
this.setData({
isEdit: false
})
},
handleSearch(){
wx.navigateTo({
url:`/pages/searchResult/searchResult?phone=${this.data.phone}`
})
},
handleSave() {
const { companyName, email, introduction, office, phone } = this.data
const payload = {
companyName, email, introduction, office, phone
}
businessCard(payload).then((res: any) => {
console.log(res);
if (res.c === 200) {
wx.showToast({
icon: 'none',
title: '保存成功'
})
this.getInfo(phone)
this.setData({
isEdit: false
})
}
})
},
handleSaveContract() {
const info = this.data.info.businessCard
wx.addPhoneContact({
firstName: info.name,
email: info.email,
organization: info.companyName,
title: info.office,
mobilePhoneNumber:this.data.phone
})
},
handleDetail() {
const { phone } = this.data
wx.navigateTo({
url: `/pages/searchResult/searchResult?phone=${phone}`
})
},
closeDetail() {
this.setData({
dialogDetail: false
})
},
showExplain() {
this.setData({
dialogExplain: true
})
},
closeExplain() {
this.setData({
dialogExplain: false
})
},
// onImgOK(e: WechatMiniprogram.CustomEvent) {
// const { path } = e.detail
// this.setData({
// shareImg: path
// })
// // wx.showShareImageMenu({ //分享给朋友
// // path,
// // success: (res) => {
// // console.log("分享成功:", res);
// // },
// // fail: (err) => {
// // console.log("分享失败:", err);
// // wx.showToast({
// // title: "分享失败",
// // duration: 2000
// // })
// // },
// // })
// },
handleDialogDetail(e: WechatMiniprogram.BaseEvent) {
console.log(e);
const { title, info } = e.currentTarget.dataset
if (info) {
this.setData({
dialogDetail: true,
detailInfo: info,
detailTitle: title
})
}
},
getInfo(phone: string) {
const { type } = this.data
info({ phone, type, businessCard: true }).then((res: any) => {
let { labelVoList } = res.d
if (res.d.businessCard) {
const { companyName, email, introduction, office } = res.d.businessCard
if(labelVoList){
labelVoList = labelVoList.slice(0, 1)
}
this.setData({
businessCard: res.d.businessCard,
companyName,
email,
introduction,
office,
labelOptions: labelVoList,
info: res.d
})
} else {
this.setData({
info: res.d,
labelOptions: labelVoList,
})
}
// this.setData({
// businessCard: res.d.businessCard,
// companyName,
// email,
// introduction,
// office,
// labelOptions: res.d.labelVoList.slice(0, 2),
// info: res.d
// })
})
// this.downLoadCard()
},
phoneCall() {
wx.makePhoneCall({
phoneNumber: this.data.phone,
})
},
// async downLoadCard() {
// console.log('downLoadCard');
// const cardPainter = await card()
// this.setData({
// cardPainter
// })
// },
handleCopy(e) {
const { email } = e.currentTarget.dataset
wx.setClipboardData({
data: email,
success(res) {
wx.showToast({
title: '复制成功',
icon: 'none'
})
// wx.getClipboardData({
// success(res) {
// console.log(res.data) // data
// }
// })
}
})
},
/**
* --
*/
onLoad(options) {
console.log(options);
const { type, phone } = options
this.setData({
type: Number(type),
phone
})
this.getInfo(phone)
},
/**
* --
*/
onReady() {
},
/**
* --
*/
onShow() {
},
/**
* --
*/
onHide() {
},
/**
* --
*/
onUnload() {
},
/**
* --
*/
onPullDownRefresh() {
},
/**
*
*/
onReachBottom() {
},
/**
*
*/
onShareAppMessage() {
const promise = new Promise(resolve => {
setTimeout(() => {
resolve({
title: '您好,这是我的口碑名片,请收下',
imageUrl: this.data.shareImg,
path: `/pages/card/card?phone=${this.data.phone}&type=1`,
})
})
})
return {
title: '您好,这是我的口碑名片,请收下',
path: '/pages/card/card',
promise
}
}
})

View File

@ -0,0 +1,103 @@
<wxs src="../../utils/tools.wxs" module="tools" />
<view class="card" style="background: {{type==0?'#f9f9f9':'#fff'}};">
<view id="saveArea">
<view class="card-box">
<view class="top">
<view class="nameAndScore">
<view class="name">{{info.businessCard.name}}</view>
<view class="score"><text>口碑指数</text>{{tools.toFix(info.totalAverage)}}</view>
</view>
<view class="positionAndTags">
<view style="padding-top: 10rpx;">
<view class="position" bindtap="handleDialogDetail" data-title="职位" data-info="{{info.businessCard.office}}">{{info.businessCard.office||'暂无职位信息'}}</view>
<view class="company" bindtap="handleDialogDetail" data-title="公司名称" data-info="{{info.businessCard.companyName}}">{{info.businessCard.companyName||'暂无公司信息'}}</view>
</view>
<view class="tagsAndStar">
<!-- <view class="tagItem" wx:for="{{labelOptions}}" wx:key="index" data-item="{{item}}" wx:if="{{index<2}}">
{{item.content}}
<view class="numTag">x{{item.contentCount}}</view>
</view> -->
<star score="{{info.totalAverage}}" starType="cStars_half" size="34rpx" />
<view class="tags">
<view class="tagItem" wx:if="{{labelOptions}}">
{{labelOptions[0].content}}
<view class="numTag">x{{labelOptions[0].contentCount}}</view>
</view>
<view class="moreTag" bindtap="handleSearch">...</view>
</view>
</view>
</view>
</view>
<view class="bottom">
<image class="icon_phone" src="/assets/images/card/icon_phone.png"></image><text bindtap="phoneCall">{{phone}}</text>
<image class="icon_email" src="/assets/images/card/icon_email.png"></image>
<text>{{info.businessCard.email||'暂未添加邮箱'}}</text>
<text class="btn_copy" bindtap="handleCopy" data-email="{{info.businessCard.email}}">复制</text>
<view class="introduce">
{{info.businessCard.introduction||'暂未添加自我介绍'}}
</view>
</view>
</view>
<view class="card-info-box" wx:if="{{type==0}}">
<view class="title">名片信息<view class="btn_edit" bindtap="handleEdit" wx:if="{{!isEdit}}">
<image class="icon_edit" src="/assets/images/card/icon_edit.png" />编辑
</view>
</view>
<view class="item"><text>公司:</text><input disabled="{{!isEdit}}" model:value="{{companyName}}" placeholder="您所在的公司" /></view>
<view class="item"><text>职位:</text><input disabled="{{!isEdit}}" model:value="{{office}}" placeholder="您的职位信息" /></view>
<view class="item"><text>邮箱:</text><input disabled="{{!isEdit}}" model:value="{{email}}" placeholder="您的邮箱" /></view>
<view class="item"><text>自我介绍:</text><input disabled="{{!isEdit}}" model:value="{{introduction}}" maxlength="20" placeholder="20字以内" /></view>
<view class="item btnItem" wx:if="{{isEdit}}">
<btn plain width="150rpx" height="60rpx" bindtap="handleCancelEdit">退出编辑</btn>
<btn width="150rpx" height="60rpx" style="margin-left: 28rpx;" bindtap="handleSave">保存</btn>
</view>
</view>
</view>
<view class="otherLayout" wx:if="{{type!=0}}">
<!-- <view class="welcome">
<image class="icon_quote" src="/assets/images/card/icon_quote.png"></image>
<image class="icon_quote quote_end" src="/assets/images/card/icon_quote.png"></image>
HI很高兴认识你这是我的与评口碑名片想了解更多信息就点击下方按钮进入查看吧~
</view> -->
<btn type="primary" plain width="572rpx" height="90rpx" fontSize="32rpx" bindtap="handleSaveContract" style="margin-top:20rpx;margin-bottom: 20rpx;">保存至通讯录</btn>
<btn type="primary" width="572rpx" height="90rpx" fontSize="32rpx" bindtap="handleDetail">查看更多口碑评价</btn>
<image class="icon_logo" src="/assets/images/card/icon_logo.png"></image>
<image class="icon_slogan" src="/assets/images/card/icon_slogan.png"></image>
<view class="description">与评™是<text bindtap="showExplain">全国人力资源信息数据验证平台 </text>
<image class="icon_q" src="/assets/images/card/icon_q.png"></image> 授权并监管的一款个人综合社交评价工具,根据国家《中华人民共和国网络安全法》《互联网信息服务管理办法》等条例规定,所有基础数据存储、隐私安全保障、用户行为数据溯源均由全国人力资源信息数据验证平台提供相应接口及支撑,国家监管确保与评不向第三方提供原始数据信息。
</view>
</view>
<!-- <canvas class='canvas card' width="253px" height="253px" canvas-id='cardQr'></canvas> -->
<!-- <painter class="painter-cmp" palette="{{cardPainter}}" bind:imgOK="onImgOK" /> -->
<view class="btns" wx:if="{{type==0}}">
<!-- <btn type="primary" plain width="211rpx" height="88rpx" fontSize="30rpx" bindtap="handleEdit">{{isEdit?'保存':'编辑'}}</btn> -->
<button class="shareBtn" open-type="share">
分享我的名片
</button>
</view>
<view class="explain-box" wx:if="{{dialogExplain}}">
<view class="explain">
<view class="title">全国人力资源信息数据验证平台</view>
<view class="content">
全国人力资源信息数据验证平台”是由中国防伪行业协会“全国产品防伪溯源验证公共平台”建立的国家数据平台。中国防伪行业协会的业务指导部门为国家市场监督管理总局,党建工作机构为中央和国家机关工作委员会。
</view>
<btn width="505rpx" height="80rpx" fontSize="28rpx" bindtap="closeExplain">我已了解</btn>
</view>
</view>
<view class="explain-box" wx:if="{{dialogDetail}}">
<view class="explain" style="width: 100%;">
<view class="title">{{detailTitle}}</view>
<view class="content">
{{detailInfo}}
</view>
<btn fontSize="28rpx" bindtap="closeDetail">关闭</btn>
</view>
</view>
</view>

View File

@ -0,0 +1,5 @@
{
"usingComponents": {
"btn":"/components/btn/btn"
}
}

View File

@ -0,0 +1,29 @@
/* pages/commentResult/commentResult.wxss */
.box {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
margin-top: 156rpx;
.icon_status {
width: 161rpx;
height: 208rpx;
}
.title {
font-size: 36rpx;
font-family: PingFang SC;
font-weight: bold;
color: #3E3E3E;
margin-bottom: 23rpx;
}
.content {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 500;
color: #A1A1A1;
margin-bottom: 36rpx;
}
}

View File

@ -0,0 +1,80 @@
// pages/commentResult/commentResult.ts
Page({
/**
*
*/
data: {
status: 'faild'
},
goback(){
wx.navigateBack({
delta: 1
})
},
/**
* --
*/
onLoad(options) {
this.setData({
status: options.status
})
if (options.status === 'success') {
setTimeout(() => {
wx.redirectTo({
url: `/pages/searchResult/searchResult?phone=${options.phone}`
})
}, 3000)
}
},
/**
* --
*/
onReady() {
},
/**
* --
*/
onShow() {
},
/**
* --
*/
onHide() {
},
/**
* --
*/
onUnload() {
},
/**
* --
*/
onPullDownRefresh() {
},
/**
*
*/
onReachBottom() {
},
/**
*
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,7 @@
<!--pages/commentResult/commentResult.wxml-->
<view class="box">
<image class="icon_status" src="/assets/images/comment/icon_{{status}}.png"></image>
<view class="title">操作{{status==='faild'?'失败':'成功'}}</view>
<view class="content">{{status==='faild'?'您的实名认证信息有误,请重新填写':'即将跳转至上一页'}}</view>
<btn width="303rpx" wx:if="{{status==='faild'}}" height="78rpx" fontSize="32rpx" plain bind:tap="goback">返回重新填写</btn>
</view>

View File

@ -1,6 +1,7 @@
{
"navigationStyle": "custom",
"usingComponents": {
"btn": "/components/btn/btn"
"btn": "/components/btn/btn",
"message-box": "/components/message/message"
}
}

View File

@ -2,7 +2,7 @@
page {
background: #7E8BFF;
// height: 100%;
background: url("https://chrivc.obs.cn-north-4.myhuaweicloud.com/1cde69cc683a42219c12e8e7e4f6bed0:生意伙伴人品如何@2x.png");
background: url("https://chrivc.obs.cn-north-4.myhuaweicloud.com/ee3b42fbe99b4b79bed33816b87a02d2:组 4 拷贝@2x.png");
background-size: 100%;
}
@ -21,9 +21,9 @@ page {
flex-direction: column;
.name {
width: 135rpx;
height: 61rpx;
margin-bottom: 17rpx;
width: 176rpx;
height: 73rpx;
margin-bottom: 20rpx;
}
.slogan {
@ -38,10 +38,20 @@ page {
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
color: #C4CAFF;
line-height: 22px;
opacity: 0.58;
margin-bottom: 31rpx;
text-align: center;
text {
color: #fff;
opacity: 1;
}
.icon_q {
width: 19rpx;
height: 19rpx;
}
}
.pic {
@ -56,6 +66,8 @@ page {
// border-radius: 32rpx;
// margin-top: 36rpx;
// padding: 64rpx 48rpx;
margin-top: 96rpx;
margin-bottom: 35rpx;
.top {
display: flex;
@ -89,7 +101,7 @@ page {
color: #FFFFFF;
display: flex;
justify-content: center;
margin-top: 180rpx;
margin-top: 30rpx;
}
}
@ -112,12 +124,14 @@ page {
display: flex;
align-items: center;
margin-bottom: 25rpx;
justify-content: center;
.sourceItem {
display: flex;
align-items: center;
margin-right: 25rpx;
.icon_seemore {
width: 26.8rpx;
height: 26rpx;
@ -135,7 +149,38 @@ page {
height: 25.6rpx;
margin-right: 7rpx;
}
text {
color: #C4CAFF;
}
}
.sourceLogos {
margin-right: 10px;
.icon_gh {
width: 34.6rpx;
height: 33.4rpx;
margin-right: 9rpx;
}
.icon_fw {
width: 34.9rpx;
height: 33.4rpx;
// margin-right: 7rpx;
}
}
.sourceNames {
.name {
font-size: 20rpx;
font-family: PingFang SC;
font-weight: 500;
color: #C4CAFF;
}
}
}
@ -176,3 +221,46 @@ page {
}
}
}
.explain-box {
background: rgba(0, 0, 0, .5);
width: 100%;
height: 100%;
position: fixed;
left: 0;
top: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 99;
.explain {
background: #fff;
border-radius: 24rpx;
// padding: 24rpx 58rpx 41rpx 58rpx;
margin: 60rpx;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding-bottom: 42rpx;
.title {
font-size: 32rpx;
font-family: PingFang SC;
font-weight: bold;
color: #3E3E3E;
margin-bottom: 26rpx;
margin-top: 42rpx;
}
.content {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 500;
color: #9F9F9F;
margin-bottom: 33rpx;
padding: 0 58rpx;
}
}
}

View File

@ -16,6 +16,7 @@ Page({
canIUseGetUserProfile: false,
canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName'), // 如需尝试获取用户信息可改为false
// isBind: false
dialogExplain: false
},
// 事件处理函数
handleResult() {
@ -78,7 +79,7 @@ Page({
let reg = /^1[3|4|5|7|8][0-9]{9}$/;
if (reg.test(temp)) {
this.setData({
phone:temp
phone: temp
})
}
else {
@ -114,6 +115,17 @@ Page({
}
})
},
showExplain() {
this.setData({
dialogExplain: true
})
},
closeExplain() {
this.setData({
dialogExplain: false
})
},
onLoad() {
// @ts-ignore
if (wx.getUserProfile) {

View File

@ -4,18 +4,7 @@
<image class="name" src="/assets/images/index/name.png"></image>
<image class="slogan" src="/assets/images/index/slogan.png"></image>
</view>
<view class="source">
<view class="sourceItem">
<image class="icon_seemore" src="/assets/images/index/icon_seemore.png"></image>
<text>四川私慕科技有限公司</text>
</view>
<view class="sourceItem">
<image class="icon_gh" src="/assets/images/index/icon_gh.png"></image>
<image class="icon_fw" src="/assets/images/index/icon_fw.png"></image>
<text>全国人力资源信息数据验证平台</text>
</view>
</view>
<view class="description">众评是四川私慕科技有限公司与全国人力资源信息数据验证平台共同推出的一款个人综合社交评价工具,所有关键数据存储、隐私安全保障、用户行为数据溯源均由全国人力资源信息数据验证平台提供相应接口及支撑。</view>
<view class="search_box">
<!-- <view class="top"> -->
<!-- <view>手机号:</view> -->
@ -31,16 +20,50 @@
</btn>
</view>
<!-- <view>
<input type="number" maxlength="11" placeholder="输入一个手机号码,查看此号码的评数据" model:value="{{phone}}" />
<input type="number" maxlength="11" placeholder="输入一个手机号码,查看此号码的评数据" model:value="{{phone}}" />
</view> -->
<view class="btns">
<btn type="primary45" width="100%" height="90rpx" fontSize="32rpx" style="margin-bottom: 27rpx;" bindtap="handleResult">查看评数据</btn>
<btn type="primary45" width="100%" height="90rpx" fontSize="32rpx" style="margin-bottom: 27rpx;" bindtap="handleResult">查看评数据</btn>
<btn type="default45" width="100%" fontSize="32rpx" height="90rpx" bindtap="checkMy">查看我的号码</btn>
</view>
</view>
<view class="source">
<!-- <view class="sourceItem">
<image class="icon_fw" src="/assets/images/index/icon_fw.png"></image>
<text>中国防伪行业协会</text>
</view>
<text style="margin-right: 20rpx;">|</text>
<view class="sourceItem">
<image class="icon_gh" src="/assets/images/index/icon_gh.png"></image>
<text>全国人力资源信息数据验证平台</text>
</view> -->
<view class="sourceLogos">
<image class="icon_gh" src="/assets/images/index/icon_gh.png"></image>
<image class="icon_fw" src="/assets/images/index/icon_fw.png"></image>
</view>
<view class="sourceNames">
<view class="name" style="letter-spacing: 3.1px;">中 国 防 伪 行 业 协 会</view>
<view class="name">全国人力资源信息数据验证平台</view>
</view>
</view>
<!-- <view class="description">与评是四川私慕科技有限公司与全国人力资源信息数据验证平台共同推出的一款个人综合社交评价工具,所有关键数据存储、隐私安全保障、用户行为数据溯源均由全国人力资源信息数据验证平台提供相应接口及支撑。</view> -->
<view class="description">与评™是<text bindtap="showExplain">全国人力资源信息数据验证平台 </text>
<image class="icon_q" src="/assets/images/index/icon_q.png"></image> 授权并监管的一款个人综合社交评价工具,根据国家《中华人民共和国网络安全法》《互联网信息服务管理办法》等条例规定,所有基础数据存储、隐私安全保障、用户行为数据溯源均由全国人力资源信息数据验证平台提供相应接口及支撑,国家监管确保与评不向第三方提供原始数据信息。
</view>
<view class="footer">
<view bindtap="goPrivacy">《隐私政策》| </view>
<view bindtap="goService">《用户协议》| </view>
<view bindtap="goQA"> Q&A</view>
</view>
<view class="explain-box" wx:if="{{dialogExplain}}">
<view class="explain">
<view class="title">全国人力资源信息数据验证平台</view>
<view class="content">
全国人力资源信息数据验证平台”是由中国防伪行业协会“全国产品防伪溯源验证公共平台”建立的国家数据平台。中国防伪行业协会的业务指导部门为国家市场监督管理总局,党建工作机构为中央和国家机关工作委员会。
</view>
<btn width="505rpx" height="80rpx" fontSize="28rpx" bindtap="closeExplain">我已了解</btn>
</view>
</view>
<!-- <message-box id="shadow2" iconShow="{{false}}" title="全国人力资源信息数据验证平台" message="全国人力资源信息数据验证平台”是由中国防伪行业协会“全国产品防伪溯源验证公共平台”建立的国家数据平台。中国防伪行业协会的业务指导部门为国家市场监督管理总局,党建工作机构为中央和国家机关工作委员会。" confirmText="我已了解" bind:confirm="closeExplain" /> -->
</view>

View File

@ -71,3 +71,31 @@
justify-content: center;
margin-top: 46rpx;
}
.privacy {
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
font-family: PingFang SC;
font-weight: 500;
color: #8D8D8D;
margin-top: 25rpx;
.checkbox {
width: 28rpx;
height: 28rpx;
background: #FFFFFF;
border: 2rpx solid #D4D4D4;
border-radius: 8rpx;
display: flex;
justify-content: center;
align-items: center;
margin-right: 10rpx;
image {
width: 17rpx;
height: 13rpx;
}
}
}

View File

@ -19,6 +19,7 @@ Page({
sending: false,
sendNum: 60,
sendTimer: 0,
isChecked: false
},
/**
@ -36,7 +37,13 @@ Page({
send() {
console.log('send');
if (!this.data.isChecked) {
wx.showToast({
icon: 'none',
title: '请先阅读并勾选隐私政策和用户协议'
})
return
}
if (this.data.sending) return
// const rsa = new RSA()
// rsa.setPublicKey(this.data.publicKey)
@ -85,6 +92,27 @@ Page({
defaultLogin() {
const { phone, code } = this.data
if (!phone) {
wx.showToast({
icon: 'none',
title: '手机号不能为空'
})
return
}
if (!code) {
wx.showToast({
icon: 'none',
title: '验证码不能为空'
})
return
}
if (!this.data.isChecked) {
wx.showToast({
icon: 'none',
title: '请先阅读并勾选隐私政策和用户协议'
})
return
}
bindPhone({ phone, code }).then(res => {
if (res.c === 200) {
bindPhoneList().then(resp => {
@ -96,11 +124,18 @@ Page({
// wx.redirectTo({
// url: `/pages/my/my?phone=${phone}`
// })
let from = wx.getStorageSync('from')
if (from.page === 'comment') {
wx.removeStorageSync('from')
wx.redirectTo({
url: `/pages/searchResult/searchResult?phone=${from.phone}`
})
} else {
wx.redirectTo({
url: `/pages/my/my`
})
}
})
}
})
@ -122,6 +157,23 @@ Page({
url: "/pages/agreement/agreement"
})
},
handleChecked() {
console.log('handleChecked');
this.setData({
isChecked: !this.data.isChecked
})
},
goPrivacy() {
wx.navigateTo({
url: '/pages/privacy/privacy'
})
},
goService() {
wx.navigateTo({
url: '/pages/service/service'
})
},
/**
* --

View File

@ -17,6 +17,7 @@
</view>
<view class="btn_login">
<btn width="518rpx" height="88rpx" fontSize="34rpx" bindtap="defaultLogin">立即绑定</btn>
<btn width="518rpx" height="88rpx" fontSize="34rpx" bindtap="defaultLogin">立即登录</btn>
</view>
<view class="privacy"><view class="checkbox" bindtap="handleChecked"><image wx:if="{{isChecked}}" src="/assets/images/comment/icon_checked.png"></image></view>我已同意<text bindtap="goPrivacy">《隐私政策》</text>和<text bindtap="goService">《用户协议》</text></view>
</view>

View File

@ -101,6 +101,23 @@ page {
// background: #F9F9F9;
// height: 7rpx;
// }
.btn_clear {
text-decoration: underline;
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: #ACACAC;
display: flex;
align-items: center;
justify-content: center;
margin-top: 30rpx;
.icon_clear {
width: 27rpx;
height: 27rpx;
margin-right: 6rpx;
}
}
.scoreLayout {
font-size: 53rpx;

View File

@ -23,7 +23,8 @@ Page({
dialogClear: false,
dialogGoPay: false,
form_phone: '',
form_name: ''
form_name: '',
dialogCard: false
},
handleTagRecord() {
const { checkCondition } = this.data
@ -361,6 +362,26 @@ Page({
dialogGoPay: false
})
},
handleSearchOther(){
wx.navigateTo({
url:'/pages/index/index'
})
},
handleCard() {
const { realName, phone } = this.data.userInfo
if (realName) {
wx.navigateTo({
url: `/pages/card/card?phone=${phone}&type=0`,
})
} else {
// this.dialogCard = true
this.setData({
dialogCard: true,
visible: true
})
}
},
/**
* --
*/
@ -474,13 +495,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
}

View File

@ -23,7 +23,7 @@
<view class="dialog_title">实名认证</view>
<view class="dialog_content">
<view class="dialogToLogin">
<text>手机号码已完成全国人力资源信息数据验证平台实名认证的用户,将通过“实名认证”标签展示,用户可前往“全国人力资源信息数据验证平台”小程序完成本人实名认证。</text>
<text>{{dialogCard?'创建口碑名片需先通过“全国人力资源信息数据验证平台”实名认证。':'手机号码已完成全国人力资源信息数据验证平台实名认证的用户,将通过“实名认证”标签展示,用户可前往“全国人力资源信息数据验证平台”小程序完成本人实名认证。'}}</text>
<btn fontSize="24rpx" width="374rpx" height="64rpx" bindtap="goChrivc">前往认证</btn>
</view>
</view>
@ -84,9 +84,13 @@
</view>
</view>
</view>
<view class="btn_clear" bindtap="handleClear">
<image class="icon_clear" src="/assets/images/my/icon_clear.png"></image>清空评价数据
</view>
<view class="btns_fixed_bottom" style="display: flex;justify-content: space-between;">
<btn fontSize="30rpx" width="330rpx" height="88rpx" plain bindtap="handleClear">清空所有评价数据</btn>
<btn fontSize="30rpx" width="330rpx" height="88rpx" bindtap="handleShare" style="margin-left: 28rpx;" bindtap="showDialogShare">邀请好友评价</btn>
<btn fontSize="28rpx" width="220rpx" height="88rpx" plain bindtap="handleSearchOther" type="default1" fontColor="#7A7A7A">查他人号码</btn>
<btn fontSize="28rpx" width="220rpx" height="88rpx" plain bindtap="handleCard" style="margin-left: 14rpx;">口碑名片</btn>
<btn fontSize="28rpx" width="220rpx" height="88rpx" bindtap="handleShare" style="margin-left: 14rpx;" bindtap="showDialogShare">邀请好友评价</btn>
</view>
</view>
</view>
@ -172,10 +176,10 @@
<view class="content">为确保操作为用户本人,您需要进行一次实名认证,费用<text>¥{{money}}</text>。清空后所有的分数和印象标签将清零。</view>
<view class="form">
<view class="formItem">
<input type="text" placeholder="真实姓名" model:value="{{form_name}}"/>
<input type="text" placeholder="真实姓名" model:value="{{form_name}}" />
</view>
<view class="formItem">
<input type="text" placeholder="手机号码" model:value="{{form_phone}}" disabled="true"/>
<input type="text" placeholder="手机号码" model:value="{{form_phone}}" disabled="true" />
</view>
</view>
<btn width="100%" height="80rpx" fontSize="28rpx" bindtap="handleConfirmPay">提交认证,确认支付</btn>
@ -185,7 +189,7 @@
<shadow position="bottom" wx:if="{{dialogGoPay}}">
<view class="payLayout">
<btnClose bindtap="closeDialogGoPay"/>
<btnClose bindtap="closeDialogGoPay" />
<view class="payMoney">¥<text>{{money}}</text></view>
<view class="payType">
<view class="payName">
@ -206,7 +210,7 @@
<view class="shareBox">
<image class="avatar" src="/assets/images/searchResult/a-ziyuan106@2x.png"></image>
<view class="phone">{{userInfo.phone}}</view>
<view class="contentText">“邀请您到【众评】上对我做出印象评价,国家平台隐私保护,完全匿名”</view>
<view class="contentText">“邀请您到【与评™】上对我做出印象评价,国家平台隐私保护,完全匿名”</view>
<star score="0" starType="cStars" size="40rpx" />
<image class="sharePic" src="https://chrivc.obs.cn-north-4.myhuaweicloud.com/4b02ae3ccca446df82aa7ba1d7fa591e:sharePic.png"></image>
</view>

View File

@ -1,4 +1,4 @@
{
"navigationBarTitleText": "众评小程序隐私政策",
"navigationBarTitleText": "与评™小程序隐私政策",
"usingComponents": {}
}

View File

@ -29,7 +29,7 @@
<view class="flex space-between">
<view class="btn_certification" bindtap="goReport">查看证书>
</view>
<btn wx:if="{{!item.checked}}" fontSize="24rpx" width="266rpx" height="56rpx" bindtap="handleEtc" data-id="{{item.electronicCertificateId}}">添加至众评个人主页</btn>
<btn wx:if="{{!item.checked}}" fontSize="24rpx" width="266rpx" height="56rpx" bindtap="handleEtc" data-id="{{item.electronicCertificateId}}">添加至与评™个人主页</btn>
</view>
</view>
<!-- <view class="reportItem">
@ -41,7 +41,7 @@
<view class="flex space-between">
<view class="btn_certification">查看证书>
</view>
<btn fontSize="24rpx" width="266rpx" height="56rpx">添加至众评个人主页</btn>
<btn fontSize="24rpx" width="266rpx" height="56rpx">添加至与评™个人主页</btn>
</view>
</view> -->
</view>

View File

@ -311,8 +311,10 @@ Page({
},
submitComment() {
console.log('submitComment');
const { phone, form, tagList, userInfo } = this.data
let { phone, form, tagList, userInfo } = this.data
let evaluateLabelIds = tagList.map(m => m.id).toString();
let evaluateLabelLevels = tagList.map(m => m.evaluateLevel);
if (form.score === 0) {
wx.showToast({
icon: 'none',
@ -320,13 +322,46 @@ Page({
})
return
}
form.evaluateLabelIds = evaluateLabelIds
form.phone = phone
wx.removeStorageSync('from')
if (form.score < 3) {
if (!userInfo.phone) {
wx.navigateTo({
url: '/pages/login/login'
})
wx.setStorageSync('from', { page: 'comment', phone })
return
}
wx.setStorageSync('commentParams', form)
wx.navigateTo({
url: `/pages/validComment/validComment?phone=${phone}&sponsorPhone=${userInfo.phone}`
})
} else if (evaluateLabelLevels.indexOf(2) > -1) {
if (!userInfo.phone) {
wx.navigateTo({
url: '/pages/login/login'
})
return
}
wx.setStorageSync('commentParams', form)
// wx.navigateTo({
// url: '/pages/validComment/validComment'
// })
wx.navigateTo({
url: `/pages/validComment/validComment?phone=${phone}&sponsorPhone=${userInfo.phone}`
})
} else {
let paylod = {
evaluateLabelIds,
phone,
score: form.score,
sponsorPhone: userInfo.phone || undefined
}
// console.log(paylod);
console.log(paylod);
evaluateLaunch(paylod).then(res => {
console.log(res);
@ -339,6 +374,7 @@ Page({
})
this.getInfo()
})
}
},
getTagListOrigin() {
console.log('tagListOrigi1n');

View File

@ -3,7 +3,7 @@
<view class="searchResult-page {{popup?'page-overflow-hidden':''}}">
<guide title="查号码" realName="{{accountList.length>0}}"></guide>
<userInfo phone="{{phone}}" realName="{{consumer.realName}}" />
<view class="zhanwei"></view>
<!-- <view class="zhanwei"></view> -->
<view class="overflowBox">
<view wx:if="{{!consumer.evaluatedScore}}" class="noRatingValue">分数已隐藏</view>
@ -108,7 +108,7 @@
<view class="dialog" style="max-height: 90%;">
<btnClose bindtap="dialogCommentClose" />
<view class="dialog_title">评价对方</view>
<view class="dialog_subTitle" wx:if="{{!consumer.evaluatedScore}}">评价对方后,即可查看对方众评数据</view>
<view class="dialog_subTitle" wx:if="{{!consumer.evaluatedScore}}">评价对方后,即可查看对方与评™数据</view>
<star score="{{form.score}}" starKey="c" starType="cStars" bind:setScore="handleScore" />
<view class="cStarScore">{{form.score}}</view>
<view class="dialog_content" style="overflow: auto;height: 500rpx;">
@ -193,44 +193,7 @@
</shadow>
<!-- 邀请实名认证提示框 -->
<dialog visible="{{dialogInvite}}" bind:close="closeInvite" />
<!-- <shadow position="center" wx:if="{{dialogInvite}}">
<view class="dialog dialog_center">
<btnClose bindtap="hideDialogInvite" />
<view class="dialog_title">标题</view>
<view class="dialog_content">
<view class="dialogToLogin">
<text>您即将进入全国人力资源信息数据验证平台,邀请对方授权个人信息报告,操作流程如下:</text>
<view class="timeLine">
<view class="timeLine_item">
<view class="step">1</view>
<view class="timeLine_content">
<view>登录小程序</view>
<view class="contentText">通过手机号+验证码登录小程序;</view>
<image class="invite_pic" src="/assets/images/searchResult/invite_pic1.png"></image>
</view>
</view>
<view class="timeLine_item">
<view class="step">2</view>
<view class="timeLine_content">
<view>实名认证</view>
<view class="contentText">基于国家数据平台的信息安全规范,平台用户均为实名用户,请先完成实名认证。</view>
<image class="invite_pic" src="/assets/images/searchResult/invite_pic1.png"></image>
</view>
</view>
<view class="timeLine_item">
<view class="step">3</view>
<view class="timeLine_content">
<view>查验他人</view>
<view class="contentText">进入查验他人页面,输入准确的姓名和手机号码,向他人发起实名查验申请,他人同意并授权后即可查看其个人信息报告。</view>
<image class="invite_pic" src="/assets/images/searchResult/invite_pic1.png"></image>
</view>
</view>
</view>
<btn fontSize="24rpx" width="403rpx" height="64rpx">跳转至溯源优才小程序</btn>
</view>
</view>
</view>
</shadow> -->
<shadow position="bottom" wx:if="{{dialogTagRecord}}">
<view class="dialog" style="max-height: 90%;">
<btnClose bindtap="dialogTagRecordClose" />

View File

@ -1,4 +1,4 @@
{
"navigationBarTitleText": "众评用户服务协议",
"navigationBarTitleText": "与评™用户服务协议",
"usingComponents": {}
}

View File

@ -6,13 +6,13 @@ Page({
*/
data: {
nodes:`<p style="text-align: left;">
<span style="background-color: white; color: rgb(17, 17, 17); font-family: 微软雅黑, &quot;sans-serif&quot;;">使使</span>
<span style="background-color: white; color: rgb(17, 17, 17); font-family: 微软雅黑, &quot;sans-serif&quot;;">使使</span>
</p>
<p style="text-align: left;">
<span style="background-color: white; color: rgb(17, 17, 17); font-family: 微软雅黑, &quot;sans-serif&quot;;"><br/></span>
</p>
<p>
<span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111;background:white">使</span>
<span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111;background:white">使</span>
</p>
<p>
<span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111;background:white"><br/></span>
@ -39,7 +39,7 @@ Page({
<span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111"></span><span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111;background:white"> </span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111"></span><span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111;background:white">使 </span>
<span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111"></span><span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111;background:white">使 </span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111"></span><span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111;background:white"> </span>
@ -69,7 +69,7 @@ Page({
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);">使 </span>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);">使 </span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
@ -78,13 +78,13 @@ Page({
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">1</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);"> 使 </span>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);"> 使 </span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 </span></span>
</p>
<p>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);">使 使使使使 使/ </span>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);">使 使使使使 使/ </span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">3</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
@ -96,7 +96,7 @@ Page({
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">4</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);">使</span>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);">使</span>
</p>
<p>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);"><br/></span>
@ -114,7 +114,7 @@ Page({
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">1</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);">使 </span>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);">使 </span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
@ -141,58 +141,58 @@ Page({
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">5</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">6</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">6</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">7</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">7</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p style="margin-left:7px">
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);">便使使使</span>
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);">便使使使</span>
</p>
<p style="margin-left:7px">
<span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white; font-size: 14px; color: rgb(127, 127, 127);"><br/></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 20px;"><strong><span style="color: rgb(38, 38, 38);"><span style="font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使</span></span></strong></span><span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111;background:white"> </span>
<span style="font-size: 20px;"><strong><span style="color: rgb(38, 38, 38);"><span style="font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使</span></span></strong></span><span style=";font-family:&#39;微软雅黑&#39;,&#39;sans-serif&#39;;color:#111111;background:white"> </span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 20px;"><strong><span style="color: rgb(38, 38, 38);"><span style="font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"><br/></span></span></strong></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 </span></span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">1</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">3</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">3</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 </span></span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">4</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"></span></span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">5</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> / 使 </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">5</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> / 使 </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">1</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">1</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 </span></span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">1</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p style="margin-left:0;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 使 </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 使 </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
@ -207,7 +207,7 @@ Page({
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">1</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">3</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
@ -225,7 +225,7 @@ Page({
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">1</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">广广 </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">广广广 </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">广广广 </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">3</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">广</span></span>
@ -240,7 +240,7 @@ Page({
<strong><span style="font-size: 20px; color: rgb(38, 38, 38);"><span style="font-size: 20px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"><br/></span></span></strong>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="color: rgb(127, 127, 127); font-size: 14px;"><span style="color: rgb(127, 127, 127); font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="color: rgb(127, 127, 127); font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使使 </span></span>
<span style="color: rgb(127, 127, 127); font-size: 14px;"><span style="color: rgb(127, 127, 127); font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="color: rgb(127, 127, 127); font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使使 </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="color: rgb(127, 127, 127); font-size: 14px;"><span style="color: rgb(127, 127, 127); font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="color: rgb(127, 127, 127); font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"> </span></span>
@ -261,7 +261,7 @@ Page({
<span style="font-size: 14px;"><span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">5</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"></span></span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(17, 17, 17); background: white;"> </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="color: rgb(127, 127, 127); font-size: 14px;"><span style="color: rgb(127, 127, 127); font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="color: rgb(127, 127, 127); font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 </span></span>
<span style="color: rgb(127, 127, 127); font-size: 14px;"><span style="color: rgb(127, 127, 127); font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;"></span><span style="color: rgb(127, 127, 127); font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px;"><span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">1</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"></span></span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(17, 17, 17); background: white;"> </span></span>
@ -318,7 +318,7 @@ Page({
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">1</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"></span></span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; color: rgb(17, 17, 17); background: white;"> </span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使使</span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使使</span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;"><br/></span></span>
@ -333,7 +333,7 @@ Page({
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">1</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">/ </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 </span></span>
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">2</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">使 </span></span>
</p>
<p style="margin-left:7px;text-indent:0">
<span style="font-size: 14px; color: rgb(127, 127, 127);"><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;;">3</span><span style="font-size: 14px; font-family: 微软雅黑, &quot;sans-serif&quot;; background: white;">便 </span></span>

View File

@ -68,7 +68,7 @@
<view class="shareBox">
<image class="avatar" src="/assets/images/searchResult/a-ziyuan106@2x.png"></image>
<view class="contentText">“邀请您到【众评】上对我做出印象评价,国家平台隐私保护,完全匿名”</view>
<view class="contentText">“邀请您到【与评™】上对我做出印象评价,国家平台隐私保护,完全匿名”</view>
<star score="0" starType="cStars" size="40rpx" />
<image class="sharePic" src="https://chrivc.obs.cn-north-4.myhuaweicloud.com/4b02ae3ccca446df82aa7ba1d7fa591e:sharePic.png"></image>
<view style="display: flex;justify-content: center;margin-top: 39rpx;margin-bottom: 10rpx;">

View File

@ -0,0 +1,8 @@
{
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "",
"usingComponents": {
"btn":"/components/btn/btn"
}
}

View File

@ -0,0 +1,46 @@
/* pages/validComment/validComment.wxss */
page {
background: #F6F6F6;
.tip {
padding: 24rpx 30rpx;
background: #FFEBEB;
font-size: 22rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FF614C;
margin-bottom: 20rpx;
}
.form {
.form-box-item {
margin-bottom: 20rpx;
background: #fff;
padding: 36rpx 30rpx 10rpx 30rpx;
.form-label {
margin-bottom: 24rpx;
}
.form-item {
border-bottom: 1px solid #EBEBEB;
&:last-child {
border-bottom: 0;
}
input {
height: 88rpx;
}
}
}
}
}
.center{
display: flex;
justify-content: center;
}
.mt30{
margin-top: 30rpx;
}

View File

@ -0,0 +1,138 @@
// pages/validComment/validComment.ts
import { evaluateLaunch } from "../../apis/phone";
Page({
/**
*
*/
data: {
// form: {
name: "",
phone: "",
sponsorName: "",
sponsorPhone: "",
// },
commentParams: {}
},
submit() {
const { name, phone, sponsorName, sponsorPhone, commentParams } = this.data
if (!name) {
wx.showToast({
icon: 'none',
title: '请输入对方姓名'
})
return
}
if (!phone) {
wx.showToast({
icon: 'none',
title: '请输入对方手机号'
})
return
}
if (!sponsorName) {
wx.showToast({
icon: 'none',
title: '请输入您的姓名'
})
return
}
if (!sponsorPhone) {
wx.showToast({
icon: 'none',
title: '请输入您的手机号'
})
return
}
const payload = {
evaluateLabelIds: commentParams.evaluateLabelIds,
score: commentParams.score,
name,
phone,
sponsorName,
sponsorPhone
}
// console.log(payload);
evaluateLaunch(payload).then(res => {
// console.log(res);
if (res.c === 200) {
wx.navigateTo({
url: `/pages/commentResult/commentResult?phone=${payload.phone}&status=success`
})
} else if (res.c === 501007) {
wx.showToast({
icon: 'none',
// image: '/assets/images/comment/fail.png',
title: res.m,
duration: 2000
})
} else {
wx.navigateTo({
url: `/pages/commentResult/commentResult?status=faild`
})
}
})
},
/**
* --
*/
onLoad(options) {
console.log(options, wx.getStorageSync('commentParams'));
this.setData({
commentParams: wx.getStorageSync('commentParams'),
sponsorPhone: options.sponsorPhone,
phone: options.phone,
})
},
/**
* --
*/
onReady() {
},
/**
* --
*/
onShow() {
},
/**
* --
*/
onHide() {
},
/**
* --
*/
onUnload() {
},
/**
* --
*/
onPullDownRefresh() {
},
/**
*
*/
onReachBottom() {
},
/**
*
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,28 @@
<!--pages/validComment/validComment.wxml-->
<view>
<view class="tip">根据《中华人民共和国网络安全法》《互联网信息服务管理办法》法律法规和国家有关规定,为规避恶意评价、随意诋毁他人,现按照“后台实名、前台匿名”原则,要求本平台记录低分评价前,须验证评价人确实认识被评价人,同时要求评价人为实名用户,请放心验证,您和对方的实名信息以及您的评价细节数据受国家平台监管,遵守最高等级隐私信息安全保护,不会对任何第三方透露。</view>
<view class="form">
<view class="form-box-item">
<view class="form-label">验证对方信息</view>
<view class="form-item">
<input type="text" model:value="{{name}}" placeholder="请输入对方姓名" />
</view>
<view class="form-item">
<input type="text" model:value="{{phone}}" placeholder="请输入对方手机号" disabled />
</view>
</view>
<view class="form-box-item">
<view class="form-label">验证用户本人信息</view>
<view class="form-item">
<input type="text" model:value="{{sponsorName}}" placeholder="请输入您的姓名" />
</view>
<view class="form-item">
<input type="text" model:value="{{sponsorPhone}}" placeholder="请输入您的手机号" disabled />
</view>
</view>
</view>
<view class="center mt30">
<btn width="518rpx" height="88rpx" fontSize="34rpx" bind:tap="submit" fontWeight="bold">提交认证</btn>
</view>
</view>

View File

@ -1,19 +1,90 @@
import { loadImg } from './util'
import { parseTime } from './index'
export async function card(QRCode: string) {
export async function card() {
const scale = 2;
const bg = await loadImg('https://chrivc.obs.cn-north-4.myhuaweicloud.com/cab0fd6a9335480bbc882968f5a356f4:组 1 拷贝 6.png')
const bg = await loadImg('https://chrivc.obs.cn-north-4.myhuaweicloud.com/09f36e4cf9474682b194f3c0694d239d:card_bg.png')
const tags = [{
type: 'text',
text: '特别靠谱',
css: {
width: `${124 * scale}rpx`,
height: `${34.86 * scale}rpx`,
display: 'inline-block',
textAlign: 'center',
padding: `${11 * scale}rpx 0 ${11 * scale}rpx 0`,
background: '#2235B6',
borderRadius: `${22 * scale}rpx`,
color: '#ffffff',
fontSize: `${22 * scale}rpx`,
// fontWeight: 'bold',
top: `${150 * scale}rpx`,
left: `${391 * scale}rpx`,
}
},
{
type: 'text',
text: '才华横溢',
css: {
width: `${124 * scale}rpx`,
height: `${43 * scale}rpx`,
textAlign: 'center',
padding: `${11 * scale}rpx`,
boxSizing: 'border-box',
background: '#2235B6',
borderRadius: `${22 * scale}rpx`,
color: '#ffffff',
fontSize: `${22 * scale}rpx`,
top: `${150 * scale}rpx`,
left: `${559 * scale}rpx`,
}
}]
const tagNums = [{
type: 'text',
text: 'x50',
css: {
width: `${36 * scale}rpx`,
height: `${19 * scale}rpx`,
textAlign: 'center',
padding: `${4 * scale}rpx ${6 * scale}rpx ${5 * scale}rpx ${3 * scale}rpx`,
fontWeight: 'bold',
fontStyle: 'italic',
background: '#FF662A',
borderRadius: `${9 * scale}rpx ${8 * scale}rpx ${8 * scale}rpx ${4 * scale}rpx`,
color: '#ffffff',
fontSize: `${14 * scale}rpx`,
top: `${145 * scale}rpx`,
left: `${508 * scale}rpx`,
}
},
{
type: 'text',
text: 'x99',
css: {
textAlign: 'center',
padding: `${4 * scale}rpx ${6 * scale}rpx ${5 * scale}rpx ${3 * scale}rpx`,
fontWeight: 'bold',
fontStyle: 'italic',
background: '#FF662A',
boxSizing: 'border-box',
borderRadius: `${9 * scale}rpx ${8 * scale}rpx ${8 * scale}rpx ${4 * scale}rpx`,
color: '#ffffff',
fontSize: `${14 * scale}rpx`,
top: `${145 * scale}rpx`,
left: `${665 * scale}rpx`,
}
},
]
return {
width: `${429 * scale}rpx`,
height: `${546 * scale}rpx`,
width: `${719 * scale}rpx`,
height: `${382 * scale}rpx`,
views: [
// 背景
{
type: 'image',
url: bg.path,
css: {
width: `${429 * scale}rpx`,
height: `${546 * scale}rpx`,
width: `${719 * scale}rpx`,
height: `${382 * scale}rpx`,
left: '0rpx',
top: '0rpx'
}
@ -29,17 +100,189 @@ export async function card(QRCode: string) {
// left: `${82 * scale}rpx`,
// }
// },
{
type: 'text',
text: '高叶',
css: {
color: '#ffffff',
fontSize: `${48 * scale}rpx`,
fontWeight: 'bold',
top: `${59 * scale}rpx`,
left: `${60 * scale}rpx`,
}
},
{
type: 'text',
text: '4.5',
css: {
color: '#ffffff',
fontSize: `${78 * scale}rpx`,
fontWeight: 'bold',
top: `${56 * scale}rpx`,
left: `${509 * scale}rpx`,
}
},
{
type: 'text',
text: '分',
css: {
color: '#ffffff',
fontSize: `${48 * scale}rpx`,
fontWeight: 'bold',
top: `${78 * scale}rpx`,
left: `${632 * scale}rpx`,
}
},
...tags,
...tagNums,
// {
// type: 'text',
// text: '溯源优才',
// text: '特别靠谱',
// css: {
// color: '#3A61B1',
// fontSize: `${48 * scale}rpx`,
// fontWeight: 'bold',
// top: `${59 * scale}rpx`,
// left: `${142 * scale}rpx`,
// width: `${124 * scale}rpx`,
// height: `${34.86 * scale}rpx`,
// display: 'inline-block',
// textAlign: 'center',
// padding: `${11 * scale}rpx 0 ${11 * scale}rpx 0`,
// background: '#2235B6',
// borderRadius: `${22 * scale}rpx`,
// color: '#ffffff',
// fontSize: `${22 * scale}rpx`,
// // fontWeight: 'bold',
// top: `${150 * scale}rpx`,
// left: `${391 * scale}rpx`,
// }
// },
// {
// type: 'text',
// text: 'x50',
// css: {
// width: `${36 * scale}rpx`,
// height: `${19 * scale}rpx`,
// textAlign: 'center',
// padding: `${4 * scale}rpx`,
// fontWeight: 'bold',
// fontStyle: 'italic',
// background: '#FF662A',
// borderRadius: `${9 * scale}rpx ${8 * scale}rpx ${8 * scale}rpx ${4 * scale}rpx`,
// color: '#ffffff',
// fontSize: `${14 * scale}rpx`,
// top: `${145 * scale}rpx`,
// left: `${504 * scale}rpx`,
// }
// },
// {
// type: 'text',
// text: '才华横溢',
// css: {
// width: `${124 * scale}rpx`,
// height: `${43 * scale}rpx`,
// textAlign: 'center',
// padding: `${11 * scale}rpx`,
// boxSizing: 'border-box',
// background: '#2235B6',
// borderRadius: `${22 * scale}rpx`,
// color: '#ffffff',
// fontSize: `${22 * scale}rpx`,
// top: `${150 * scale}rpx`,
// left: `${559 * scale}rpx`,
// }
// },
// {
// type: 'text',
// text: 'x99',
// css: {
// textAlign: 'center',
// padding: `${4 * scale}rpx ${6 * scale}rpx ${5 * scale}rpx ${3 * scale}rpx`,
// fontWeight: 'bold',
// fontStyle: 'italic',
// background: '#FF662A',
// boxSizing: 'border-box',
// borderRadius: `${9 * scale}rpx ${8 * scale}rpx ${8 * scale}rpx ${4 * scale}rpx`,
// color: '#ffffff',
// fontSize: `${14 * scale}rpx`,
// top: `${145 * scale}rpx`,
// left: `${665 * scale}rpx`,
// }
// },
{
type: 'text',
text: '暂无职位信息',
css: {
color: '#ffffff',
fontSize: `${32 * scale}rpx`,
top: `${143 * scale}rpx`,
left: `${60 * scale}rpx`,
}
},
{
type: 'text',
text: '暂无公司信息',
css: {
color: '#ffffff',
fontSize: `${24 * scale}rpx`,
fontWeight: 'bold',
top: `${184 * scale}rpx`,
left: `${60 * scale}rpx`,
}
},
{
type: 'image',
url: '/assets/images/card/icon_phone.png',
text: '暂无公司信息',
css: {
color: '#ffffff',
top: `${268 * scale}rpx`,
left: `${61 * scale}rpx`,
}
},
{
type: 'text',
text: '18702872377',
css: {
color: '#ffffff',
fontSize: `${24 * scale}rpx`,
fontWeight: 'bold',
top: `${258 * scale}rpx`,
left: `${92 * scale}rpx`,
}
},
{
type: 'image',
url: '/assets/images/card/icon_email.png',
text: '暂无公司信息',
css: {
color: '#ffffff',
// fontSize: `${48 * scale}rpx`,
// fontWeight: 'bold',
top: `${268 * scale}rpx`,
left: `${289 * scale}rpx`,
}
},
{
type: 'text',
text: '暂未添加邮箱',
css: {
color: '#ffffff',
fontSize: `${24 * scale}rpx`,
fontWeight: 'bold',
top: `${258 * scale}rpx`,
left: `${324 * scale}rpx`,
}
},
{
type: 'text',
text: '自我介绍 : 暂未添加自我介绍',
css: {
color: 'rgba(255,255,255,.43)',
fontSize: `${24 * scale}rpx`,
// fontWeight: 'bold',
maxLines: "1",
top: `${301 * scale}rpx`,
left: `${63 * scale}rpx`,
}
},
// {
// type: 'text',
// text: '全国人力资源信息数据验证平台',
@ -51,28 +294,28 @@ export async function card(QRCode: string) {
// left: `${61 * scale}rpx`,
// }
// },
{
type: 'rect',
css: {
top: `${187 * scale}rpx`,
left: `${71 * scale}rpx`,
width: `${293 * scale}rpx`,
height: `${293 * scale}rpx`,
borderRadius: `${10 * scale}rpx`,
color: "#FFFFFF"
},
},
// {
// type: 'rect',
// css: {
// top: `${187 * scale}rpx`,
// left: `${71 * scale}rpx`,
// width: `${293 * scale}rpx`,
// height: `${293 * scale}rpx`,
// borderRadius: `${10 * scale}rpx`,
// color: "#FFFFFF"
// },
// },
// 二维码
{
type: 'image',
url: QRCode,
css: {
width: `${253 * scale}rpx`,
height: `${253 * scale}rpx`,
top: `${207 * scale}rpx`,
left: `${91 * scale}rpx`,
}
}
// {
// type: 'image',
// url: QRCode,
// css: {
// width: `${253 * scale}rpx`,
// height: `${253 * scale}rpx`,
// top: `${207 * scale}rpx`,
// left: `${91 * scale}rpx`,
// }
// }
]
}
}

View File

@ -1,6 +1,5 @@
// 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';
@ -30,7 +29,7 @@ export function request(config: WechatMiniprogram.RequestOption) {
Authorization: wx.getStorageSync('Authorization')
},
timeout: 60000,
success: (res:any) => {
success: (res: any) => {
const { data } = res
if (data.c !== 200) {
wx.nextTick(() => {
@ -56,6 +55,17 @@ export function request(config: WechatMiniprogram.RequestOption) {
title: msg
})
}
if (data.c === 501007 || data.c === 501006) {
resolve(data)
}
// if (data.c === 501006) {
// wx.showToast({
// duration: 1500,
// icon: 'none',
// image: '/assets/images/comment/fail.png',
// title: msg
// })
// }
reject(data)
})
} else {

5
typings/index.d.ts vendored
View File

@ -13,8 +13,9 @@ interface IAppOption {
userInfo?: WechatMiniprogram.UserInfo & UserInfo,
openId?: string,
unionId?: string,
ready?: Boolean
}
ready?: Boolean,
smsCode?: string,
},
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback,
getUserInfo: Function,
reload: Function,