Commit b2b9d805 by sunchao

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

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