Commit 48a89f2c authored by liwei's avatar liwei

修改了bug

parent 66192b6d
<template> <template>
<!-- 使用z-paging-swiper为根节点可以免计算高度 --> <!-- 使用z-paging-swiper为根节点可以免计算高度 -->
<z-paging-swiper> <z-paging-swiper>
<!-- 发表动态按钮-->
<view :class="['add',isOpen ? 'add2':'']"> <view :class="['add',isOpen ? 'add2':'']">
<image @click='goPage("/pagescommunity/newsRelease/newsRelease")' src="../../static/images/102.png" mode=""/> <image @click='goPage("/pagescommunity/newsRelease/newsRelease")' src="../../static/images/102.png" mode=""/>
</view> </view>
...@@ -8,7 +9,8 @@ ...@@ -8,7 +9,8 @@
<!-- 注意!此处的z-tabs为独立的组件,可替换为第三方的tabs,若需要使用z-tabs,请在插件市场搜索z-tabs并引入,否则会报插件找不到的错误 --> <!-- 注意!此处的z-tabs为独立的组件,可替换为第三方的tabs,若需要使用z-tabs,请在插件市场搜索z-tabs并引入,否则会报插件找不到的错误 -->
<template #top> <template #top>
<view class=""> <view class="">
<u-navbar title="个人中心" :placeholder="true"> <u-navbar title="页头" :placeholder="true">
<!-- 通知中心-->
<template slot="left"> <template slot="left">
<view style="position: relative;" @click="goMessage"> <view style="position: relative;" @click="goMessage">
<image class="left" @click="goMessage" src="../../static/images/101.png" mode=""></image> <image class="left" @click="goMessage" src="../../static/images/101.png" mode=""></image>
...@@ -16,6 +18,7 @@ ...@@ -16,6 +18,7 @@
:max="99" :offset="[-6,-8]" :absolute="true"></u-badge> :max="99" :offset="[-6,-8]" :absolute="true"></u-badge>
</view> </view>
</template> </template>
<!-- tab标签-->
<template slot="center"> <template slot="center">
<u-tabs :list="list" @click="tabClick" :current="current" lineColor="#86A6F3" :activeStyle="{ <u-tabs :list="list" @click="tabClick" :current="current" lineColor="#86A6F3" :activeStyle="{
color: '#303133', color: '#303133',
...@@ -41,8 +44,7 @@ ...@@ -41,8 +44,7 @@
:currentIndex="current" @changeOpen="changeOpen"></ListVue> :currentIndex="current" @changeOpen="changeOpen"></ListVue>
</swiper-item> </swiper-item>
</swiper> </swiper>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM> <login @change="getUserInfo" :isLoginPop="isLoginPop && tabIndex != 1" class="my-select"></login>
<login @change="getUserInfo" :isLoginPop="isLoginPop&&tabIndex!=1" class="my-select"></login>
</z-paging-swiper> </z-paging-swiper>
</template> </template>
...@@ -51,7 +53,6 @@ ...@@ -51,7 +53,6 @@
import empty from '@/components/empty.vue' import empty from '@/components/empty.vue'
import ListVue from '../../pagesArticle/components/List.vue'; import ListVue from '../../pagesArticle/components/List.vue';
import login from '../../components/login/login.vue'; import login from '../../components/login/login.vue';
import ELM from '@/components/elm-toast/index.vue';
export default { export default {
options: { options: {
styleIsolation: 'shared' styleIsolation: 'shared'
...@@ -59,8 +60,7 @@ ...@@ -59,8 +60,7 @@
components: { components: {
ItemVue, ItemVue,
empty, empty,
ListVue, ListVue
ELM
}, },
data() { data() {
return { return {
...@@ -122,7 +122,6 @@ ...@@ -122,7 +122,6 @@
path: '/pages/tab/community', path: '/pages/tab/community',
} }
} }
}, },
// 自定义页面的分享到朋友圈 // 自定义页面的分享到朋友圈
onShareTimeline(res) { onShareTimeline(res) {
...@@ -164,10 +163,8 @@ ...@@ -164,10 +163,8 @@
this.arr.splice(idx, 1) this.arr.splice(idx, 1)
this.total -= 1 this.total -= 1
} else { } else {
this.tipMsg = res.data.msg;
this.$refs.elm.showDialog();
}
}
}) })
}, },
// 点赞 // 点赞
...@@ -199,8 +196,7 @@ ...@@ -199,8 +196,7 @@
this.arr.splice(idx, 1, obj) this.arr.splice(idx, 1, obj)
} else { } else {
console.log(res.data.msg) console.log(res.data.msg)
this.tipMsg = res.data.msg;
this.$refs.elm.showDialog();
return; return;
} }
...@@ -253,12 +249,6 @@ ...@@ -253,12 +249,6 @@
}) })
}, },
goMessage() { goMessage() {
if (uni.getStorageSync('info') != '') {
this.tipMsg = "开源版暂未开放,敬请期待!如需旗舰版,可联系作者微信(MMRWXM)咨询";
this.$refs.elm.showDialog();
} else {
this.isLoginPop = true
}
}, },
getUserInfo(e) { getUserInfo(e) {
...@@ -325,9 +315,6 @@ ...@@ -325,9 +315,6 @@
if (res.data.code == 200) { if (res.data.code == 200) {
this.isLoginPop = false; this.isLoginPop = false;
this.isConfirm = true; this.isConfirm = true;
this.tipMsg = "登录成功";
this.$refs.elm.showDialog();
var info = { var info = {
birthday: res.data.data.info.birthday, birthday: res.data.data.info.birthday,
city: res.data.data.info.city, city: res.data.data.info.city,
...@@ -344,8 +331,7 @@ ...@@ -344,8 +331,7 @@
url: '/pagesintroduction/selfIntroduction?code=' + code url: '/pagesintroduction/selfIntroduction?code=' + code
}); });
} else { } else {
this.tipMsg = res.data.msg;
this.$refs.elm.showDialog();
} }
}, },
confirm() { confirm() {
......
...@@ -17,12 +17,12 @@ ...@@ -17,12 +17,12 @@
</view> </view>
</view> </view>
<image v-else @click="goPage(info)" :src="info.headPortrait" mode="aspectFill"></image> <image v-else @click="gotoUserInfo(info)" :src="info.headPortrait" mode="aspectFill"></image>
</view> </view>
<view class="center"> <view class="center">
<template v-if="!isState"> <template v-if="!isState">
<view class="name"> <view class="name">
<text @click="goPage(info)">{{info.nickName}}</text> <text @click="gotoUserInfo(info)">{{info.nickName}}</text>
<image v-if="info.gender!='MALE'" class="gender" src="../../static/images/like/famale.png" mode=""> <image v-if="info.gender!='MALE'" class="gender" src="../../static/images/like/famale.png" mode="">
</image> </image>
<image v-else class="gender" src="../../static/images/like/male.png" mode=""></image> <image v-else class="gender" src="../../static/images/like/male.png" mode=""></image>
...@@ -171,8 +171,6 @@ ...@@ -171,8 +171,6 @@
], ],
shadowStyle: { shadowStyle: {
'backgroundImage': 'linear-gradient(-180deg, rgba(255, 255, 255, 0) 50%, #fff 100%)', 'backgroundImage': 'linear-gradient(-180deg, rgba(255, 255, 255, 0) 50%, #fff 100%)',
// paddingTop: "100px",
// marginTop: "-100px",
justifyContent: 'flex-end' justifyContent: 'flex-end'
}, },
tipMsg: '', tipMsg: '',
...@@ -187,10 +185,10 @@ ...@@ -187,10 +185,10 @@
this.$emit("selectShare", this.info) this.$emit("selectShare", this.info)
}, },
goDetail() { goDetail() {
this.tipMsg = "开源版暂未开放,敬请期待!如需旗舰版,可联系作者微信(MMRWXM)咨询";
this.$refs.elm.showDialog();
}, },
goPage(item) { //查看用户详情
gotoUserInfo(item) {
uni.navigateTo({ uni.navigateTo({
url: '/pageslike/like/userInfo?id=' + item.userId url: '/pageslike/like/userInfo?id=' + item.userId
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment