Commit b2b9d805 by sunchao

页面刷新导致传参错误bug修复,销售课程返回上一页

parent ab8f72a6
<template>
<view class="top">
<text class="iconfont icon-youjiantou" @click="goBack()"></text>
<text>公告列表</text>
</view>
<view class="container">
<view class="top">
<view class="iconfont icon-youjiantou" @click="goBack()">
</view>
<view style="width: 55%;text-align: left;">
公告列表
</view>
<!-- <view class="clear">
<text class="iconfont icon-weibiaoti544"></text>
<text>清除未读</text>
</view> -->
</view>
<view class="content">
<view class="announcement_wrapper" v-for="(item,index) in announcementLists" :key="index">
<text class="iconfont icon-zizhutuiguang"></text>
......@@ -76,33 +69,24 @@
<style lang="scss">
.top{
display: flex;
height: 100rpx;
height: 80rpx;
justify-content: space-between;
align-items: center;
position: relative;
width: 100%;
margin: 0 auto;
background: #fff;
padding-right: 20rpx;
.icon-youjiantou{
display: inline-block;
transform: rotate(180deg);
font-size: 30rpx;
width: 50rpx;
height: 50rpx;
z-index: 1;
}
.clear{
display: flex;
align-items: center;
.icon-weibiaoti544{
color: #5359cd;
font-size: 50rpx;
}
text:nth-child(2){
color: #999999;
font-size: 20rpx;
}
text:nth-child(2){
width: 100%;
text-align: center;
position: absolute;
}
}
.content{
padding: 20rpx;
......
......@@ -66,7 +66,7 @@
justify-content: space-between;
align-items: center;
position: relative;
width: 95%;
width: 100%;
margin: 0 auto;
.icon-youjiantou{
display: inline-block;
......@@ -92,7 +92,6 @@
padding-bottom: 20rpx;
}
.content{
margin-top: 20rpx;
padding: 20rpx;
background: #fff;
word-break: break-word;
......
......@@ -235,7 +235,7 @@
let dataWXform = {
href: "https://mdev.zuihuibi.cn/cffp/pages/courseDetail/courseDetail?fileId=" + this.fileId +
'&coursesharing=1' + '&serialsNo=' + nanoid() + '&shareCode=' + shareCode + '&shareUserId=' +
this.userId,
this.userId + '&jumpUrl=' + new Date(),
title: this.courseInfo.fileTitle,
summary: `加入我们开启学习之旅`,
imageUrl: this.courseInfo.displayImage,
......
......@@ -302,7 +302,7 @@
if(this.deviceType == 3){
this.tipsFlag = true;
this.paymentBtnDisabled = false;
let url = window.location.href + `&isRedirect=1&amount=${this.amount}`;
let url = window.location.href + `&isRedirect=1&amount=${this.amount}&jumptime=${new Date()}`;
window.history.replaceState(null, '',url);
return;
}
......
<template>
<view class="container">
<!-- 时间选择 -->
<view class="timeSelectContent">
<picker mode="date" :value="queryDate" :end="maxDate" fields="month" @change="bindDateChange">
<view class="uni-input">{{queryDate}}</view>
</picker>
<i class="iconfont icon-youjiantou"></i>
<view class="top">
<text class="iconfont icon-youjiantou zuojiantou" @click="goBack()"></text>
<view class="timeSelectContent">
<picker mode="date" :value="queryDate" :end="maxDate" fields="month" @change="bindDateChange">
<view class="uni-input">{{queryDate}}</view>
</picker>
<i class="iconfont icon-youjiantou xiajiantou"></i>
</view>
</view>
<!-- 销售统计 -->
<view class="saleStatisticalContent">
......@@ -175,23 +178,35 @@
<style lang="scss">
.container{
height: 100%;
.timeSelectContent{
background-color: #fff;
padding: 10rpx 0;
.top{
display: flex;
justify-content: center;
align-items: baseline;
color: #333;
.iconfont{
color: #999;
font-size: 24rpx;
transform: rotate(90deg);
margin-left: 8rpx;
align-items: center;
background: #fff;
.zuojiantou{
display: inline-block;
transform: rotate(180deg);
font-size: 30rpx;
z-index: 1;
}
.timeSelectContent{
width: 100%;
background-color: #fff;
padding: 20rpx 0;
display: flex;
justify-content: center;
align-items: baseline;
color: #333;
.iconfont{
color: #999;
font-size: 24rpx;
transform: rotate(90deg);
margin-left: 8rpx;
}
}
}
.saleStatisticalContent{
background-color: #fff;
margin: 10rpx 20rpx;
margin: 10rpx 0;
padding: 20rpx 14rpx;
display: flex;
flex-wrap: wrap;
......
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