Commit cc86ca6d by wangshuo

合并00

parents 06436c37 4a26b69a
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -63,6 +63,7 @@ class YearCourse extends Component { ...@@ -63,6 +63,7 @@ class YearCourse extends Component {
key: "" key: ""
}, },
followBarcode: '', followBarcode: '',
qrUrl:'',
sum:'', sum:'',
removable:'', removable:'',
currentId:'' currentId:''
...@@ -298,6 +299,9 @@ class YearCourse extends Component { ...@@ -298,6 +299,9 @@ class YearCourse extends Component {
.then(res => { .then(res => {
const {errno, data, msg} = res.data const {errno, data, msg} = res.data
if (errno == 0) { if (errno == 0) {
this.setState({
qrUrl:data.url
})
QRCode.toDataURL(data.url, (err, url) => { QRCode.toDataURL(data.url, (err, url) => {
this.setState({ this.setState({
followBarcode: url, followBarcode: url,
...@@ -380,7 +384,7 @@ class YearCourse extends Component { ...@@ -380,7 +384,7 @@ class YearCourse extends Component {
saveImage = () => { saveImage = () => {
let version = getParam('version') let version = getParam('version')
version = typeof version === 'string' ? version.replace('.', '').replace('.', '').slice(0, 3) : '' 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) { if (version && parseInt(version) < 451) {
Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false) Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false)
} else { } 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