Commit 48a89f2c authored by liwei's avatar liwei

修改了bug

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