main
liudan 2 years ago
parent 3f3109e47a
commit db6695d965
  1. 2
      common/api.js
  2. 9
      pages/index/index.vue
  3. 9
      pages/index/searchPage.vue

@ -17,7 +17,7 @@ export const getsmsCode = (params, config = {}) => http.post('/sms/send', params
//手机验证码登录
export const mobileLogin = (params, config = {}) => http.post('/user/mobilelogin', params, config);
//首页菜单导航
export const indexNav = (params, config = {custom: { auth: true }}) => http.post('/wx_menu/index', params, config);
export const indexNav = (params, config = {}) => http.post('/wx_menu/index', params, config);
// APP下载地址
export const downloadApp = (params, config = {}) => http.post('/app_url/index', params, config);
//上传图片

@ -116,9 +116,14 @@
indexNavHandle(){
let params={
sort:'weigh',
order:'desc'
// order:'desc'
}
indexNav(params).then(res=>{
indexNav(params, {
custom: { auth: true },
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
}).then(res=>{
this.list = res.rows
})
},

@ -127,9 +127,14 @@ export default{
limit:this.limit,
wx_category_id:this.wx_category_id,
sort:'weigh',
order:'desc'
order:'asc'
}
listData(params).then(res=>{
listData(params,{
custom: { auth: true },
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
}).then(res=>{
if(res.searchList.length==0){
this.noSearch = true;
this.contentList = res.rows

Loading…
Cancel
Save