function setHeader()
{
// 公共响应头
header('Content-Type: Application/json');
// 如果需要跨域,写在这里
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: Authorization,Referer, token-type,Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With,sign');
header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE,OPTIONS');
}
export default {
data() {
return {
}
},
onLoad(options) {
},
onShow() {
},
// 下拉刷新
onPullDownRefresh() {
setTimeout(function() {
uni.stopPullDownRefresh();
}, 500);
},
onShareAppMessage(res) {
},
onShareTimeline() {
return {
title: '',
query:'',
imageUrl: ''
}
},
methods: {
}
}
1.radio
<radio class="wrapperFooterBoxRadio" :checked="is_agreement" @click="onCheckRadioApi"></radio>
data() {
return {
is_agreement:false,
}
},
onLoad(options) {
},
methods: {
onCheckRadioApi() {
this.is_agreement = this.is_agreement == true?false:true
},
}
{
"path": "pages/home/my",
"style": {
"navigationBarTitleText": "我的",
"enablePullDownRefresh": true
}
},
// 下拉刷新
onPullDownRefresh() {
console.log('下拉刷新')
setTimeout(function() {
uni.stopPullDownRefresh();
}, 1000);
// 接口整合一个
this.getUserFindApi()
this.getStatusApi()
},
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。