You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
928 B
40 lines
928 B
<script>
|
|
import Define from './common/define.js'
|
|
export default {
|
|
onLaunch: function() {
|
|
uni.addInterceptor('request',{
|
|
invoke(args) {
|
|
console.log('interceptor-invoke',args);
|
|
args.url = Define.BaseUrl + args.url;
|
|
var token = uni.getStorageSync(Define.StoreKeys.WeChatLoginToken);
|
|
args.header['outsourcing.partner.userapp.token'] = token;
|
|
},
|
|
success(args) {
|
|
console.log('interceptor-success',args);
|
|
},
|
|
fail(err) {
|
|
console.log('interceptor-fail',err)
|
|
},
|
|
complete(res) {
|
|
console.log('interceptor-complete',res)
|
|
}
|
|
});
|
|
},
|
|
onShow: function() {
|
|
|
|
},
|
|
onHide: function() {
|
|
|
|
},
|
|
globalData:{
|
|
Define,
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
/*每个页面公共css */
|
|
@import "@/uni_modules/uview-ui/index.scss";
|
|
@import "common/demo.scss";
|
|
.uni-picker-container .uni-picker .uni-picker-action-confirm{color: #d7b57c!important;}
|
|
</style>
|
|
|