22 lines
386 B
JavaScript
22 lines
386 B
JavaScript
import { imageBasUrl } from '../../utils/config';
|
|
const { httpRequest } = getApp();
|
|
|
|
Page({
|
|
data: {
|
|
imageBasUrl,
|
|
codeImage: ''
|
|
},
|
|
onShow() {
|
|
// .get('/getGuidecode')
|
|
const paramenter = {
|
|
path: '/getGuidecode',
|
|
method: 'GET',
|
|
}
|
|
httpRequest(paramenter).then(res => {
|
|
console.log(res, "getGuidecode")
|
|
this.setData({
|
|
codeImage: res.data.code,
|
|
})
|
|
})
|
|
}
|
|
}) |