Commit fda768b9 authored by lvtz's avatar lvtz

fix

parent 06256306
......@@ -496,9 +496,13 @@
justify-content: center;
}
.noticeDailog .content{
width:600rpx;
width: 600rpx;
height: 350rpx;
background:rgba(255,255,255,1);
border-radius:20rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.noticeDailog .content .title{
font-size:28rpx;
......@@ -507,7 +511,7 @@
color:rgba(0,0,0,1);
text-align: center;
line-height: 1;
padding: 34rpx 0 75rpx 0;
padding-top: 34rpx;
}
.noticeDailog .content .text{
font-size:28rpx;
......@@ -516,11 +520,10 @@
color:rgba(0,0,0,1);
line-height: 1;
text-align: center;
padding-bottom: 65rpx;
}
.noticeDailog .content .text view{
line-height: 50rpx;
line-height: 50rpx;
}
.noticeDailog .content .text text{
color: #65B8F4;
......
......@@ -195,28 +195,29 @@ Page({
currentImgShareUrl: 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2b/classreviewshare/carda_s_share.png',
})
}
this.userShow(this.data.sid);
}
}).catch((err)=>{
wx.hideLoading();
})
},
userShow (school_id) {
const visitor = LocalStorage.getItem('visitor')
studentidentity({
school_id,
}).then((res) => {
const {data, code} = res;
if(code == 200 && data){
this.setData({
userInfo: data.student.formal_school_student,
})
// this.userShow(this.data.sid);
this.generateCustomerQrcode()
}
}).catch((err)=>{
wx.hideLoading();
})
},
// userShow (school_id) {
// const visitor = LocalStorage.getItem('visitor')
// studentidentity({
// school_id,
// }).then((res) => {
// const {data, code} = res;
// if(code == 200 && data){
// this.setData({
// userInfo: data.student.formal_school_student,
// })
// this.generateCustomerQrcode()
// }
// }).catch((err)=>{
// wx.hideLoading();
// })
// },
saveAndGenerate(){
if(this.data.selectCardLong){
wx.previewImage({
......@@ -274,7 +275,7 @@ Page({
views: [
{
type: 'image',
url: this.data.type==1?`${this.data.imageRoot}2b/common/class-student.png?${this.data.imageVersion}`: (this.data.userInfo.avatar? imagify(this.data.userInfo.avatar, 'image/resize,w_320/format,jpg/quality,q_50'):`${this.data.imageRoot}common/empty/avatar_user.png?${this.data.imageVersion}`) ,
url: this.data.type==1?`${this.data.imageRoot}2b/common/class-student.png?${this.data.imageVersion}`: (this.data.reviewDetail.formal_school_student && this.data.reviewDetail.formal_school_student.avatar? imagify(this.data.reviewDetail.formal_school_student.avatar, 'image/resize,w_320/format,jpg/quality,q_50'):`${this.data.imageRoot}common/empty/avatar_user.png?${this.data.imageVersion}`) ,
top: 20,
left: 329,
width: 93,
......@@ -298,7 +299,7 @@ Page({
},
{
type: 'text',
content: this.data.type==1? this.data.className: this.data.userInfo.name,
content: this.data.type==1? this.data.className: this.data.reviewDetail.formal_school_student.name,
fontSize: 28,
color: '#000000',
textAlign: 'center',
......@@ -387,7 +388,7 @@ Page({
views: [
{
type: 'image',
url: this.data.type==1?`${this.data.imageRoot}2b/common/class-student.png?${this.data.imageVersion}`: (this.data.userInfo.avatar? imagify(this.data.userInfo.avatar, 'image/resize,w_320/format,jpg/quality,q_50'):`${this.data.imageRoot}common/empty/avatar_user.png?${this.data.imageVersion}`) ,
url: this.data.type==1?`${this.data.imageRoot}2b/common/class-student.png?${this.data.imageVersion}`: (this.data.reviewDetail.formal_school_student && this.data.reviewDetail.formal_school_student.avatar? imagify(this.data.reviewDetail.formal_school_student.avatar, 'image/resize,w_320/format,jpg/quality,q_50'):`${this.data.imageRoot}common/empty/avatar_user.png?${this.data.imageVersion}`) ,
top: 20,
left: 329,
width: 93,
......@@ -403,7 +404,7 @@ Page({
},
{
type: 'text',
content: this.data.type==1? this.data.className: this.data.userInfo.name,
content: this.data.type==1? this.data.className: this.data.reviewDetail.formal_school_student.name,
fontSize: 28,
color: '#000000',
textAlign: 'center',
......
......@@ -5,9 +5,9 @@
<image class="cardbg" src="{{currentImgUrl}}"></image>
<view class="cardcontent">
<image class="avatar" src="{{imageRoot}}2b/common/class-student.png?{{imageVersion}}" wx:if="{{type==1}}"></image>
<image class="avatar" src="{{filter.imagify(userInfo.avatar, 'image/resize,w_320/format,jpg/quality,q_50')}}" wx:elif="{{userInfo.avatar}}"></image>
<image class="avatar" src="{{filter.imagify(reviewDetail.formal_school_student.avatar, 'image/resize,w_320/format,jpg/quality,q_50')}}" wx:elif="{{reviewDetail.formal_school_student.avatar}}"></image>
<image class="avatar" src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}" wx:else></image>
<view class="nickname">{{type==1? className: userInfo.name}}</view>
<view class="nickname">{{type==1? className: reviewDetail.formal_school_student.name}}</view>
<view class="imgbox" wx:if="{{hasReviewImg.length>0}}">
<canvas-drag id="canvas-drag" graph="{{graph2}}" width="520" height="440" enableUndo="{{true}}"></canvas-drag>
<cover-image class="icon-angle icon-angle-lt" src="{{imageRoot}}2b/classreviewshare/icon_angle_lr.png?{{imageVersion}}"></cover-image>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment