25 lines
367 B
JavaScript
25 lines
367 B
JavaScript
const { httpRequest } = getApp();
|
|
|
|
Page({
|
|
data: {
|
|
kfImg: ''
|
|
},
|
|
onShow() {
|
|
this.getkefu();
|
|
},
|
|
getkefu() {
|
|
const paramenter = {
|
|
path: '/getkefu',
|
|
method: 'GET',
|
|
}
|
|
httpRequest(paramenter).then(res => {
|
|
console.log(res, "getkefu")
|
|
if (res.status == 1) {
|
|
const { data } = res;
|
|
this.setData({
|
|
kfImg: data.wxkf,
|
|
})
|
|
}
|
|
})
|
|
}
|
|
}) |