Commit 2eab5f7d by sunerhu

1.修复分享重复登录--待测试

parent aae2918a
......@@ -9,6 +9,9 @@
"statusbar" : {
"immersed" : false
},
"compatible" :{
"ignoreVersion": true
},
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
......
<template>
<view class="container">
<view class="shareheader" style="" v-if="coursesharing != 1">
<view class="shareheader" style="" v-if="coursesharing != 1 || uni.getStorageSync('h5_coursesharing')">
<view class="iconfont icon-youjiantou" style="margin-left: 30rpx;" @click="goBack()">
</view>
<view class="share-entrance">
......@@ -163,12 +163,14 @@
coursesharing: null,
serialsNo: null,
shareCode: null,
sharelogin: false
sharelogin: false,
startTime:''
};
},
methods: {
close(val) {
if (val) {
this.startTime = Date.parse(new Date()) / 1000;
this.sharelogin = false
this.userId = val
uni.setStorageSync('cffp_userId', this.userId);
......@@ -478,12 +480,15 @@
onLoad(option) {
this.fileId = option.fileId;
if (option.coursesharing) {
this.userId = ''
this.coursesharing = option.coursesharing
this.serialsNo = option.serialsNo
this.shareCode = option.shareCode
this.shareUserId = option.shareUserId
this.getuserRead()
let endTime = Date.parse(new Date()) / 1000;
if((endTime - startTime) > 3600 * 24) {
this.userId = ''
}
uni.setStorageSync('h5_coursesharing', this.coursesharing);
// this.getshareData()
}
......
......@@ -145,7 +145,7 @@
// 获取列表数据
getqueryTeamAchievement() {
if(this.CffpOrgInfoReqVO.endDate < this.CffpOrgInfoReqVO.startDate) {
if (this.CffpOrgInfoReqVO.endDate < this.CffpOrgInfoReqVO.startDate) {
uni.showToast({
title: '截止日期不能小于起始日期',
duration: 1000,
......@@ -157,9 +157,9 @@
api.queryTeamAchievement(this.CffpOrgInfoReqVO).then(res => {
if (res) {
this.dataList = res.data.list
this.totalOrder = res.data.totalOrder? res.data.totalOrder: '0'
? this.totalCoursePrice = res.data.totalCoursePrice? res.data.totalCoursePrice: '0'
this.totalIncome = res.data.totalIncome?res.data.totalIncome: '0'
this.totalOrder = res.data.totalOrder ? res.data.totalOrder : '0'
this.totalCoursePrice = res.data.totalCoursePrice ? res.data.totalCoursePrice : '0'
this.totalIncome = res.data.totalIncome ? res.data.totalIncome : '0'
this.sortswitch()
}
})
......@@ -207,14 +207,17 @@
display: flex;
justify-content: center;
margin: 0 40rpx;
.timeSelectContent{
.timeSelectContent {
margin: 0 40rpx;
}
}
.header-time{
.header-time {
border: 1px solid #EFEDED;
padding: 10rpx 15rpx;
}
.content-btn {
display: flex;
justify-content: space-between;
......@@ -325,17 +328,20 @@
.title {
margin: auto;
}
.box-title{
.box-title {
display: flex;
justify-content: space-between;
text-align: center;
}
.box-content{
.box-content {
display: flex;
justify-content: space-between;
text-align: center;
}
.box-title-flex{
.box-title-flex {
flex: 1;
font-size: 26rpx;
}
......
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