main
liudan 2 years ago
parent 7c97fd4d5e
commit 243c4a189a
  1. 4
      common/http.interceptor.js
  2. 4
      manifest.json
  3. 11
      pages/detail/detail.vue
  4. 11
      pages/my/collection.vue
  5. 9
      pages/my/look.vue
  6. 2
      pages/my/my.vue
  7. 11
      pages/my/share.vue

@ -69,7 +69,7 @@ module.exports = (vm) => {
icon:'none' icon:'none'
}); });
if(data.code==401){ if(data.code==401){
uni.reLaunch({ uni.navigateTo({
url:'/pages/login/login' url:'/pages/login/login'
}) })
} }
@ -79,7 +79,7 @@ module.exports = (vm) => {
}, (response) => { }, (response) => {
if(response.data.code==401){ if(response.data.code==401){
uni.reLaunch({ uni.navigateTo({
url:'/pages/login/login' url:'/pages/login/login'
}) })
} }

@ -2,8 +2,8 @@
"name" : "留学万象", "name" : "留学万象",
"appid" : "__UNI__CF90E01", "appid" : "__UNI__CF90E01",
"description" : "", "description" : "",
"versionName" : "4.0.0", "versionName" : "6.0.0",
"versionCode" : 400, "versionCode" : 600,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

@ -108,6 +108,17 @@
}, },
addShare(){ addShare(){
if(!uni.getStorageSync('userInfo')){
uni.showToast({
title:'请登录后操作',
icon:'none'
});
uni.navigateTo({
url:"/pages/login/login"
})
return;
}
let routes = this.$mp.page.route let routes = this.$mp.page.route
let that = this; let that = this;
// ifdef APP // ifdef APP

@ -1,6 +1,6 @@
<template> <template>
<view class="editInfo"> <view class="editInfo">
<view class="status_bar"><!-- 这里是状态栏 --></view> <view class="status_bar"><!-- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬<EFBFBD><EFBFBD> --></view>
<u-navbar height="50" :autoBack="true"> <u-navbar height="50" :autoBack="true">
<view <view
class="u-nav-slot" class="u-nav-slot"
@ -15,11 +15,14 @@
</view> </view>
</view> </view>
</u-navbar> </u-navbar>
<view class="editInfoContent"> <view class="editInfoContent" v-if="list.length>0">
<view class="lookItem" @click="godetails(item)" v-for="(item,index) in list" :key="index"> <view class="lookItem" @click="godetails(item)" v-for="(item,index) in list" :key="index">
{{item.wxcategory.name}} {{item.wxcategory.name}}
</view> </view>
</view> </view>
<view class="empty" v-else>
暂无数据
</view>
</view> </view>
</template> </template>
@ -72,4 +75,8 @@ export default{
margin-bottom:20upx; margin-bottom:20upx;
} }
} }
.empty{
margin-top:120px;
text-align: center;
}
</style> </style>

@ -15,11 +15,14 @@
</view> </view>
</view> </view>
</u-navbar> </u-navbar>
<view class="editInfoContent"> <view class="editInfoContent" v-if="list.length>0">
<view class="lookItem" @click="godetails(item)" v-for="(item,index) in list" :key="index"> <view class="lookItem" @click="godetails(item)" v-for="(item,index) in list" :key="index">
{{item.wxcategory.name}} {{item.wxcategory.name}}
</view> </view>
</view> </view>
<view class="empty" v-else>
暂无数据
</view>
</view> </view>
</template> </template>
@ -72,4 +75,8 @@ export default{
margin-bottom:20upx; margin-bottom:20upx;
} }
} }
.empty{
margin-top:120px;
text-align: center;
}
</style> </style>

@ -105,7 +105,7 @@
} }
}, },
goLogin(){ goLogin(){
uni.reLaunch({ uni.navigateTo({
url:'/pages/login/login' url:'/pages/login/login'
}) })
}, },

@ -1,6 +1,6 @@
<template> <template>
<view class="editInfo"> <view class="editInfo">
<view class="status_bar"><!-- 这里是状态栏 --></view> <view class="status_bar"></view>
<u-navbar height="50" :autoBack="true"> <u-navbar height="50" :autoBack="true">
<view <view
class="u-nav-slot" class="u-nav-slot"
@ -15,11 +15,14 @@
</view> </view>
</view> </view>
</u-navbar> </u-navbar>
<view class="editInfoContent"> <view class="editInfoContent" v-if="list.length>0">
<view class="lookItem" @click="godetails(item)" v-for="(item,index) in list" :key="index"> <view class="lookItem" @click="godetails(item)" v-for="(item,index) in list" :key="index">
{{item.wxcategory.name}} {{item.wxcategory.name}}
</view> </view>
</view> </view>
<view class="empty" v-else>
暂无数据
</view>
</view> </view>
</template> </template>
@ -72,4 +75,8 @@ export default{
margin-bottom:20upx; margin-bottom:20upx;
} }
} }
.empty{
margin-top:120px;
text-align: center;
}
</style> </style>
Loading…
Cancel
Save