Commit 5051ea4f by sunerhu

1.修改邀请加盟原生返回按钮不刷新接口,增加广播通知,刷新queryById 解决问题。

2.增加图片放大事件。
3.对课程列表样式进行微调
parent 3a31c0ab
......@@ -5,7 +5,7 @@
</view>
<view class="courseDetailBox">
<view class="title">
<h4>{{title}}</h4>
<text style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{title}}</text>
<!-- <text class="detailBtn" @click="viewDetail()" v-if="isNeedViewDetail">订单详情></text> -->
</view>
<view class="summaryBox" v-if="summaryBox">
......@@ -22,7 +22,7 @@
<template v-else-if="_tagList">
<view class="tagItem" v-for="tagItem in tagConcat(_tagList.v1,_tagList.v2)">{{tagItem}}</view>
</template>
</view>
</view>
</view>
......@@ -31,66 +31,68 @@
<script>
import api from "@/api/api";
export default {
name:"courseItem",
props:{
fileLecturerId:{
type:Number
name: "courseItem",
props: {
fileLecturerId: {
type: Number
},
thumbnailPath:{
type:String
thumbnailPath: {
type: String
},
title:{
type:String
title: {
type: String
},
summaryBox:{
type:String
summaryBox: {
type: String
},
dataList:{
type:Object
dataList: {
type: Object
},
isNeedViewDetail:{
type:Boolean,
isNeedViewDetail: {
type: Boolean,
// 销售课程传参判断是否需要显示订单详情字段 --暂时废弃
},
orderId:{
type:Number
orderId: {
type: Number
},
tagList:{
type:Object
tagList: {
type: Object
},
fileId:{
fileId: {
type: Number
}
},
data() {
return {
_tagList:{}
_tagList: {}
};
},
methods:{
tagConcat(v1,v2){
if(v1 && v2 && v2.indexOf(',') > 0 && v1.indexOf(',') > 0){
return [].concat(v2.split(',').split(','),v1.split(','))
}else if(v1 && v1.indexOf(',') > 0){
return [].concat(v2,v1.split(','))
}else if(v2 && v2.indexOf(',') > 0){
return [].concat(v2.split(','),v1)
}else{
return [].concat(v2,v1)
methods: {
tagConcat(v1, v2) {
if (v1 && v2 && v2.indexOf(',') > 0 && v1.indexOf(',') > 0) {
return [].concat(v2.split(',').split(','), v1.split(','))
} else if (v1 && v1.indexOf(',') > 0) {
return [].concat(v2, v1.split(','))
} else if (v2 && v2.indexOf(',') > 0) {
return [].concat(v2.split(','), v1)
} else {
return [].concat(v2, v1)
}
},
lecturerQuery(){
api.lecturerQuery({id:this.fileLecturerId}).then(res=>{
if(res['success']){
lecturerQuery() {
api.lecturerQuery({
id: this.fileLecturerId
}).then(res => {
if (res['success']) {
this._tagList['v1'] = res['data']['lecturerInfos'][0]['lecturerRankNames'];
this._tagList['v2'] = res['data']['lecturerInfos'][0]['lecturerName'];
}
})
}
},
updated() {
if(this.fileLecturerId){
if (this.fileLecturerId) {
this.lecturerQuery()
}
},
......@@ -99,55 +101,67 @@
</script>
<style lang="scss">
.itemContent{
.itemContent {
display: flex;
.thumbnailBox{
.thumbnailBox {
width: 300rpx;
margin-right: 26rpx;
image{
max-width: 100%;
image {
max-width: 100%;
height: auto;
}
}
.courseDetailBox{
.courseDetailBox {
width: 100%;
color: #333;
.title{
.title {
display: flex;
max-width: 380rpx;
width: 380rpx;
justify-content: space-between;
align-items: center;
.detailBtn{
font-size: 36rpx;
.detailBtn {
font-size: 24rpx;
color: #4A4A4A;
white-space: nowrap;
}
}
h4{
h4 {
font-size: 32rpx;
}
.summaryBox{
.summaryBox {
font-size: 24rpx;
margin: 10rpx 0;
text{
text {
margin-right: 20rpx;
}
}
.dataBox{
strong{
.dataBox {
strong {
color: #F15A1F;
font-size: 30rpx;
margin: 10rpx 20rpx 10rpx 0;
}
text{
text {
font-size: 28rpx;
}
}
.tagListBox{
.tagListBox {
display: flex;
flex-wrap: wrap;
margin-top: 20rpx;
.tagItem{
.tagItem {
color: #20279B;
font-size: 24rpx;
border-radius: 20rpx;
......@@ -162,4 +176,4 @@
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -44,7 +44,7 @@
<view class="title">
{{curTitle}}
</view>
<scroll-view scroll-y style="height: 100vh;">
<scroll-view scroll-y style="height: 100%;">
<view class="contract" v-html="curContract"></view>
</scroll-view>
......@@ -222,7 +222,7 @@
position: fixed;
bottom: 0;
width: 100%;
height: 70%;
height: 75%;
left: 0;
right: 0;
margin: 0 auto;
......
......@@ -49,8 +49,12 @@
<text class="iconfont icon-weibiaoti553"></text>
<view style="margin-top: 10px;" >点击添加毕业证照片</view>
</view>
<image :src="applyParam.lastGraduateCertificationOssPath" v-if="applyParam.lastGraduateCertificationOssPath"
@click="upLoadPhoto()" mode="widthFix"></image>
<!-- mode="widthFix" -->
<view class="photo_w" v-if="applyParam.lastGraduateCertificationOssPath">
<image :src="applyParam.lastGraduateCertificationOssPath"
@click="upLoadPhoto()" ></image>
</view>
<view class="tips">
<view>(jpg,png 文件大小不大于1mb)</view>
</view>
......@@ -101,7 +105,11 @@
},500)
},
onShow() {
uni.$on("ckqueryById", res => {
if(res == true){
this.queryById(null, uni.getStorageSync('cffp_userId'))
}
})
},
methods:{
educationLevelQuery(){
......@@ -195,4 +203,14 @@
<style lang="scss">
@import 'applyCommon.scss';
.photo_w{
height: 320rpx;
width: 80%;
margin: auto;
padding-bottom: 20rpx;
}
.photo_w image {
width: 100%;
height: 100%;
}
</style>
\ No newline at end of file
......@@ -31,11 +31,10 @@
<text class="iconfont icon-weibiaoti553" ></text>
<view class="choseBtn" >点击添加身份证正面</view>
</view>
<view class="content_wrapper">
<image :src="applyParam.idFrontPageOssPath" v-if="applyParam.idFrontPageOssPath"
<view class="content_w" v-if="applyParam.idFrontPageOssPath">
<image :src="applyParam.idFrontPageOssPath"
@click="upLoadPhoto('front')"></image>
</view>
<view class="tips">
<view>(正确示例:身份证正面,字体清晰)</view>
<view>(jpg,png 文件大小不大于1mb)</view>
......@@ -47,8 +46,10 @@
<text class="iconfont icon-weibiaoti553" ></text>
<view class="choseBtn" >点击添加身份证反面</view>
</view>
<image :src="applyParam.idBackPageOssPath" mode="widthFix" v-if="applyParam.idBackPageOssPath"
@click="upLoadPhoto('front')"></image>
<view class="content_w" v-if="applyParam.idBackPageOssPath">
<image :src="applyParam.idBackPageOssPath"
@click="upLoadPhoto('back')"></image>
</view>
<view class="tips">
<view>(正确示例:身份证反面,字体清晰)</view>
<view>(jpg,png 文件大小不大于1mb)</view>
......@@ -156,6 +157,7 @@
// url:`id-card?id=${res['data']['id']}`
url:`education`
});
uni.$emit("ckqueryById",true);
}else{
uni.showToast({
title: res['message'],
......@@ -208,5 +210,15 @@
}
}
}
.content_w{
height: 380rpx;
width: 76%;
margin: auto;
padding-bottom: 20rpx;
}
.content_w image {
width: 100%;
height: 100%;
}
</style>
\ No newline at end of file
......@@ -84,8 +84,9 @@
<style lang="scss">
.ulBox,.liBox{
padding-bottom: 30rpx;
display: flex;
}
.ulBox{
flex-direction: column;
......
......@@ -134,10 +134,12 @@
onShow() {
uni.$on("handClick", res => {
this.customerBasicInfo = res.data
// 清除监听
uni.$off('handClick');
})
},
onUnload() {
// 移除监听事件
uni.$off('handClick');
},
methods: {
close(){
this.bootpage = false
......
......@@ -54,6 +54,18 @@ export function CommonUpload(psrams) {
})
}
//图片放大
export function ckbigImg(params) {
wx.previewImage({
urls: [params], //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
current: '', // 当前显示图片的http链接,默认是第一个
success: function(res) {},
fail: function(res) {},
complete: function(res) {},
})
}
// 这个方法用来上传文件
export function uploadFilepdf(params) {
let requestVO = params
......
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