Commit 5ca713ee by xuzhenghua

bug

parent 95e7986c
......@@ -73,7 +73,8 @@ body {
line-height: 1.5;
color: $body-color;
background-color: $body-bg;
font-size: 0.24rem;
//font-size: 0.24rem;
font-size: 12px;
padding-bottom: constant(safe-area-inset-bottom);
}
......@@ -498,3 +499,16 @@ input[type="radio"]:checked:before {
color: #333333;
font-weight: 600;
}
.am-modal-button-group-h{
.am-modal-button {
font-size: 15px;
}
}
.am-modal-alert-content, .am-modal-propmt-content{
color: #333;
font-size: 15px;
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6,7 +6,7 @@
text-align: center;
i {
font-size: 18px !important;
font-size: 22px !important;
}
i:nth-of-type(1) {
......
.tagLately, .tagHot{
.tagLately, .tagHot {
display: block;
max-width: 100%;
overflow: hidden;
margin-right: 10px;
margin-bottom: 10px;
font-size:12px;
padding:4px 10px;
border-radius: 11px;
font-size: 12px;
padding: 4px 10px;
border-radius: 14px;
float: left;
background-color: #F5F5F5;
line-height: 20px;
color: #666;
}
.tagHot{
.tagHot {
color: #333;
}
\ No newline at end of file
......@@ -37,7 +37,7 @@
}
.index-swiper {
margin-top: 7px;
//margin-top: 7px;
height: 168px;
.swiper-container {
......@@ -203,6 +203,7 @@
width: 100px;
height: 72px;
margin-right: 8px;
border-radius: 3px;
}
.item-content .item-title, .item-teacher, .item-time {
......
import React, { Component } from 'react'
import './index.scss'
import { getParam } from "@/utils"
import { getParam, http } from "@/utils"
import { connect } from "react-redux"
import { Flex } from 'antd-mobile'
import {browser} from "@/utils"
......@@ -19,6 +19,7 @@ class Group extends Component {
countdown: props.countdown,
now_groupon_list: [],
}
console.log(props);
}
// 查看更多
......@@ -53,63 +54,24 @@ class Group extends Component {
isShowMore: false,
alreadyIn: false,
});
const { pdd_price, number, data } = this.state;
if (browser.isWeixin) {
let share = this.state.share;
this.setState({
share: !share,
});
let shareData = {
title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,
desc: data.course_title, // 分享描述
link: location.origin + `/detail??id=${data.course_id}`, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl: data.image_name, // 分享图标
};
this.props.invitedFriends();
}
http.post(`${API['base-api']}/m/sale/signature`).then(res => {
const {nonce_str, signature, timestamp} = res.data;
wx.config({
"debug": false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
"appId": 'wx23dac6775ac82877', // 必填,公众号的唯一标识
"timestamp": timestamp, // 必填,生成签名的时间戳
"nonceStr": nonce_str, // 必填,生成签名的随机串
"signature": signature, // 必填,签名
jsApiList: [
'hideMenuItems',
'showMenuItems',
'updateAppMessageShareData',
'updateTimelineShareData',
'onMenuShareWeibo',
'onMenuShareAppMessage',
], // 必填,需要使用的JS接口列表
});
});
wx.ready(function () { //需在用户可能点击分享按钮前就先调用
wx.hideAllNonBaseMenuItem();
wx.showMenuItems({
menuList: ['menuItem:share:appMessage', 'menuItem:share:timeline'] // 要显示的菜单项,所有menu项见附录3
componentWillReceiveProps(nextProps) {
if (nextProps.courseInfo && nextProps.courseInfo.courseInfo && nextProps.courseInfo.courseInfo.course_info && nextProps.courseInfo.courseInfo.course_info.pdd_group_info) {
let now_groupon_list = nextProps.courseInfo.courseInfo.course_info.pdd_group_info.now_groupon_list;
if (now_groupon_list && now_groupon_list.length > 0) {
now_groupon_list.map(item => {
item.end_time -= 1;
return item;
});
wx.updateAppMessageShareData({
...shareData,
success: function () {
// 设置成功
}
this.setState({
now_groupon_list,
})
wx.updateTimelineShareData({
...shareData,
success: function () {
// 设置成功
}
})
});
} else {
Toast.info('请在微信中使用分享功能!', 2);
}
}
componentWillReceiveProps(nextProps) {
this.setState({
countdown: nextProps.countdown,
countdown: nextProps.countdown
})
}
......@@ -117,7 +79,7 @@ class Group extends Component {
if (this.props.courseInfo && this.props.courseInfo.courseInfo && this.props.courseInfo.courseInfo.course_info && this.props.courseInfo.courseInfo.course_info.pdd_group_info) {
let now_groupon_list = this.props.courseInfo.courseInfo.course_info.pdd_group_info.now_groupon_list;
if (now_groupon_list && now_groupon_list.length > 0) {
setInterval(() => {
// setInterval(() => {
now_groupon_list.map(item => {
item.end_time -= 1;
return item;
......@@ -125,7 +87,7 @@ class Group extends Component {
this.setState({
now_groupon_list,
})
}, 1000);
// }, 1000);
}
}
}
......
......@@ -123,7 +123,8 @@ class OutLine extends Component {
{
// 返现课程 是返现课程 未开课 已开课 是返现课程 未开课 已开课 已练习
introduce.is_aist && (!item.is_open || introduce.is_baoming === 0) &&
<i className='aist aist_close'></i>
<i className='aist iconfont iconiconfront-74'></i>
}
</h2>
{
......
......@@ -142,10 +142,8 @@
}
.aist {
display: inline-block;
position: absolute;
width: 22px;
height: 22px;
line-height: 33px;
right: 22px;
top: 50%;
transform: translateY(-50%);
......
import React, {Component} from 'react'
import React, { Component } from 'react'
import './index.scss'
import {api, getParam, http, browser} from "@/utils";
import {Toast} from 'antd-mobile';
import {Link, withRouter} from "react-router-dom";
import {compose} from "redux";
import {connect} from "react-redux";
import {differenceInHours, differenceInMinutes, differenceInSeconds} from "date-fns";
import { getParam, http, browser } from "@/utils";
import { Toast } from 'antd-mobile';
import { Link, withRouter } from "react-router-dom";
import { compose } from "redux";
import { connect } from "react-redux";
import { differenceInHours, differenceInMinutes, differenceInSeconds } from "date-fns";
class Single extends Component {
......@@ -270,7 +270,7 @@ class Single extends Component {
{
!browser.isWeixin &&
<p onClick={this.check.bind(this, '1')}>
<i className='iconfont iconzhifubaox-'></i>
<i className='iconfont iconalipay'></i>
<span>支付宝</span>
<i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '1' ? 'redioed' : ''}`}></i>
</p>
......
......@@ -119,7 +119,7 @@
margin-top: 10px;
position: relative;
.iconzhifubaox- {
.iconalipay {
font-size: 22px;
color: #01aaef;
}
......
......@@ -84,7 +84,7 @@
.cancel {
color: $color_333;
border: 1px solid $bg_333;
border: 1px solid $bg_999;
margin-right: 15px;
}
......
......@@ -156,7 +156,6 @@
.order-bar-text {
flex: 1;
font-weight: 500;
text-align: right;
color: #323233;
padding-right: 20px;
......@@ -206,6 +205,11 @@
}
.order-prefer {
.am-list-body{
&::after{
display: none;
}
}
.am-list-content {
font-size: 15px !important;
}
......@@ -231,6 +235,12 @@
.am-list-content .iconiconfront-22.question-mark {
font-size: 24px;
}
.am-list-body{
&::before, &::after{
display: none;
}
}
.balance-used {
font-size: 24px;
color: #0099FF;
......
......@@ -10,6 +10,7 @@
font-size: 15px;
color: #333333;
}
.number {
font-size: 12px;
color: #666666;
......@@ -21,13 +22,19 @@
}
.pay-type-list {
.am-list-body {
&::after {
display: none;
}
}
.am-list-header {
color: #333333;
font-size: 15px;
background-color: #fff;
}
.iconzhifubaox- {
.iconalipay {
font-size: 22px;
color: #01aaef;
}
......@@ -48,6 +55,7 @@
border-radius: 50%;
background-color: #c1c1c1;
}
.am-radio-inner:after {
display: block;
border-color: #fff;
......@@ -61,6 +69,7 @@
width: 20px;
height: 20px;
}
.am-radio.am-radio-checked .am-radio-inner:after {
display: block;
}
......@@ -108,7 +117,7 @@
background-color: #FFF;
padding-bottom: 10px;
.check-title{
.check-title {
color: #333333;
font-size: 16px;
text-align: center;
......@@ -124,6 +133,7 @@
.am-list-item .am-list-line .am-list-extra {
flex-basis: 16%;
}
.am-radio-inner {
width: 20px;
height: 20px;
......@@ -131,12 +141,14 @@
border: 1px solid #BFBFBF;
background-color: #fff;
}
.am-radio-inner:after {
display: block;
border-color: #fff;
top: 0;
right: 6px;
}
.am-radio.am-radio-checked .am-radio-inner {
background-color: #009aff;
border: 1px solid #FFF;
......@@ -144,6 +156,7 @@
width: 20px;
height: 20px;
}
.am-radio.am-radio-checked .am-radio-inner:after {
display: block;
}
......@@ -186,7 +199,6 @@
.v-list-item {
padding: 10px 15px;
background-color: #fff;
border-bottom: 1px solid #e7eaf1;
.content {
border: none;
......
......@@ -48,7 +48,7 @@ class Purchased extends Component {
const uid = user && user.data && user.data.uid
return (
<div className='purchased-box'>
<HeaderBar title='已购课程' cart={false} href='/my'></HeaderBar>
<HeaderBar arrow={true} title='已购课程' cart={false} href='/my' />
<Loading isLoading={this.state.isLoading}>
{
this.state.data && this.state.data.length > 0 ?
......
......@@ -4,7 +4,7 @@ html, body, #root {
.purchased-box {
width: 100%;
height: 100%;
background-color: $bg_f5f5f5;
//background-color: $bg_f5f5f5;
.tip {
......
......@@ -59,6 +59,8 @@ class Search extends PureComponent {
/>
<Loading isLoading={this.state.isLoading}>
<div className="search-main">
{
searchHistory.length > 0 &&
<div className="search-land">
<div className='search-history'>
<span>最近搜索</span>
......@@ -66,7 +68,7 @@ class Search extends PureComponent {
</div>
<div className="search-tag">
{
searchHistory.length > 0 ?
searchHistory.map((v, i) => {
return (
<Link
......@@ -77,10 +79,10 @@ class Search extends PureComponent {
</Link>
)
})
: <div className={'no_search_history'} style={{textAlign: 'center', padding: '20px'}}>暂无历史</div>
}
</div>
</div>
}
<div className="search-land search-hot">
<label className={'search-history'}>
<span>热门搜索</span>
......
......@@ -51,7 +51,7 @@
color: $color_666;
padding: 30px 0;
text-align: center;
background-color: $bg_ccc;
background-color: #f5f5f5;
}
.status {
......
.search-head{
height:44px;
display: flex;
background-color: #F7F9FC;
border-bottom: 1px solid #eee;
.left{
width:44px;
height:44px;
line-height:44px;
.search-head {
height: 44px;
display: flex;
background-color: #F7F9FC;
border-bottom: 1px solid #eee;
.left {
width: 44px;
height: 44px;
line-height: 44px;
text-align: center;
img{
width:14px;
height:14px;
img {
width: 14px;
height: 14px;
display: block;
padding:15px;
padding: 15px;
}
}
.center{
.center {
flex: 1;
.am-search{
.am-search {
background-color: #F7F9FC;
.am-search-input{
background-color: #EBEFF5;
border-radius:44px;
.am-search-input {
background: #F0F2F6;
border-radius: 44px;
}
}
.am-search-start {
.am-search-input {
background: #fff;
border-radius: 44px;
}
.right{
width:44px;
height:44px;
line-height:44px;
.am-icon-md{
padding:11px;
}
}
.right-btn{
width:auto;
.submit-btn{
.right {
width: 44px;
height: 44px;
line-height: 44px;
.am-icon-md {
padding: 11px;
}
}
.right-btn {
width: auto;
.submit-btn {
line-height: 30px;
border:0;
height:30px;
margin:7px 0px;
border: 0;
height: 30px;
margin: 7px 0px;
padding: 0 12px;
margin-left:0;
border-radius:3px;
margin-left: 0;
border-radius: 3px;
font-size: $font_14;
color: $color_333;
}
}
}
.am-search{
.am-search {
height: 43px;
padding: 0;
}
\ No newline at end of file
html, body, #root {
height: 100%!important;
height: 100% !important;
}
.cart-page {
......@@ -202,7 +202,6 @@ html, body, #root {
width: 100%;
display: flex;
justify-content: space-between;
border-top: 1px solid #eee;
background-color: rgba(255, 255, 255, 1);
height: 50px;
......@@ -252,7 +251,7 @@ html, body, #root {
line-height: 50px;
text-align: center;
font-size: $font_16;
background-color: $bg_ff3131;
background-color: #999;
color: $white;
span {
......@@ -262,7 +261,7 @@ html, body, #root {
}
div.active {
background-color: #ff5b05;
background-color: #ff3131;
color: #fff;
}
}
......@@ -270,5 +269,6 @@ html, body, #root {
.am-navbar-light {
background-color: $bg_f7f9fc;
}
}
......@@ -36,7 +36,7 @@ html, body, #root {
flex: 1 1 auto;
overflow-y: auto;
box-sizing: border-box;
background: $bg_f5f5f5;
//background: $bg_f5f5f5;
}
.active {
......
.camp-test-container {
height: 100vh;
width: 100vw;
background-color: #F7F8F9;
.icon {
......@@ -39,6 +40,7 @@
.camp-test-time {
span {
color: #111111;
font-size: 14px;
}
}
.icon-close {
......@@ -223,6 +225,7 @@
border: 1px solid #0099FF;
color: #0099FF;
border-radius: 17px;
font-size: 16px;
}
.first_question {
border: 1px solid #999999;
......
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