diff --git a/jsFile/requst.js b/jsFile/requst.js index d3811bb..325795e 100644 --- a/jsFile/requst.js +++ b/jsFile/requst.js @@ -63,7 +63,7 @@ const request = (method, url, options) => { methods = 'GET' headers = { 'Content-Type': 'application/json; charset=UTF-8', - 'Authorization': 'Bearer '+uni.getStorageSync('token') || '' + 'token':uni.getStorageSync('token') || '' } break; case 'post': diff --git a/pages/dataQuery/client.vue b/pages/dataQuery/client.vue index b7ff8e7..2fdd1f7 100644 --- a/pages/dataQuery/client.vue +++ b/pages/dataQuery/client.vue @@ -3,22 +3,20 @@ - + - 湖南争鸣光电科技有限公司 - 编号:KH20220304-002 - - 弱电安防 - 弱电安防 - 弱电安防 + {{item.name}} + 编号:{{item.code}} + + {{key}} - 13 + {{item.num}} - 湖南省长沙市高新开发区谷园路109号像素大厦1205 + {{item.address}} @@ -39,11 +37,53 @@ dataList:[ { name:'湖南争鸣光电科技有限公司', - code:"KH20220304-002" - } + code:"KH20220304-002", + icon:["弱电安防","弱电安防","弱电安防"], + num:"12", + address:"湖南省长沙市高新开发区谷园路109号像素大厦1205" + }, + { + name:'湖南争鸣光电科技有限公司', + code:"KH20220304-002", + icon:["弱电安防","弱电安防","弱电安防"], + num:"11", + address:"湖南省长沙市高新开发区谷园路109号像素大厦1205" + }, + { + name:'湖南争鸣光电科技有限公司', + code:"KH20220304-002", + icon:["弱电安防","弱电安防","弱电安防"], + num:"12", + address:"湖南省长沙市高新开发区谷园路109号像素大厦1205" + }, + { + name:'湖南争鸣光电科技有限公司', + code:"KH20220304-002", + icon:["弱电安防","弱电安防","弱电安防"], + num:"14", + address:"湖南省长沙市高新开发区谷园路109号像素大厦1205" + }, + { + name:'湖南争鸣光电科技有限公司', + code:"KH20220304-002", + icon:["弱电安防","弱电安防","弱电安防"], + num:"15", + address:"湖南省长沙市高新开发区谷园路109号像素大厦1205" + }, + { + name:'湖南争鸣光电科技有限公司', + code:"KH20220304-002", + icon:["弱电安防","弱电安防","弱电安防"], + num:"16", + address:"湖南省长沙市高新开发区谷园路109号像素大厦1205" + }, ], } }, + onLoad(option) { + console.log(option) + console.log( option.key_word,"--------") + }, methods: { // 前往客户详情 goDetail(index){ diff --git a/pages/dataQuery/details.vue b/pages/dataQuery/details.vue index 15aba7e..d6d6e38 100644 --- a/pages/dataQuery/details.vue +++ b/pages/dataQuery/details.vue @@ -1,23 +1,23 @@