Commit 87fc3cc7 by xuzhenghua

bug

parent 18394e59
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -147,11 +147,9 @@ class MyTreasure extends Component {
// 拆宝箱--拆
toSplitTreasure = (params) => {
alert('split')
http.post(`${API.home}/sys/split_treasure`, params).then(res => {
const { code, data } = res.data;
if(code === 200) {
alert(JSON.stringify(data))
// 拆宝箱弹窗--成功
this.showSuccessSplit(data);
......@@ -394,9 +392,7 @@ class MyTreasure extends Component {
// 第三:奖品,现金红包--提现
toFecthMoney = () => {
const { history } = this.props;
alert(getParam('version'));
if(getParam('version')) {
alert(0);
SendMessageToApp('toAccount')
}else {
history.push('/scholarship');
......
......@@ -63,6 +63,7 @@ class YearCourse extends Component {
key: ""
},
followBarcode: '',
qrUrl:'',
sum:'',
removable:'',
currentId:''
......@@ -298,6 +299,9 @@ class YearCourse extends Component {
.then(res => {
const {errno, data, msg} = res.data
if (errno == 0) {
this.setState({
qrUrl:data.url
})
QRCode.toDataURL(data.url, (err, url) => {
this.setState({
followBarcode: url,
......@@ -380,7 +384,7 @@ class YearCourse extends Component {
saveImage = () => {
let version = getParam('version')
version = typeof version === 'string' ? version.replace('.', '').replace('.', '').slice(0, 3) : ''
const QRCodeUrl = '//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg'
const QRCodeUrl = this.state.qrUrl
if (version && parseInt(version) < 451) {
Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false)
} else {
......
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