24 lines
415 B
JavaScript
24 lines
415 B
JavaScript
|
|
import kamiApi from "../../../api/kamiApi"
|
||
|
|
import tool from "../../../utils/tool"
|
||
|
|
|
||
|
|
Page({
|
||
|
|
|
||
|
|
data: {
|
||
|
|
code: null,
|
||
|
|
logoImg: null,
|
||
|
|
},
|
||
|
|
goback(){
|
||
|
|
wx.navigateBack(1)
|
||
|
|
},
|
||
|
|
handleJiHuo(){
|
||
|
|
let code = this.data.code
|
||
|
|
kamiApi.active({code}).then(res=>{
|
||
|
|
|
||
|
|
})
|
||
|
|
},
|
||
|
|
onLoad(){
|
||
|
|
const clientConfig = tool.data.get('CLIENT_CONFIG')
|
||
|
|
this.setData({logoImg: clientConfig.CLIENT_LOGO})
|
||
|
|
}
|
||
|
|
|
||
|
|
})
|