update 咨询需要登录
This commit is contained in:
parent
8317f9c19f
commit
333b945181
5
App.vue
5
App.vue
@ -271,7 +271,9 @@ export default {
|
||||
onHide: function () {
|
||||
//console.log('App Hide')
|
||||
},
|
||||
|
||||
onTabItemTap(e){
|
||||
console.log("没有触发",e)
|
||||
},
|
||||
methods: {
|
||||
...mapMutations([
|
||||
"logout",
|
||||
@ -282,6 +284,7 @@ export default {
|
||||
"reloadUserResource",
|
||||
"setMsgNum",
|
||||
]),
|
||||
|
||||
parseScene(scene) {
|
||||
// 解析scene参数,如"page=pages/detail/index&id=123"
|
||||
const params = {};
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
<view class="popup-box">
|
||||
<view class="head-img"></view>
|
||||
<view
|
||||
v-if="showCloseIcon"
|
||||
class="uni-icon uni-icon-closeempty"
|
||||
color="#888"
|
||||
@click="close"
|
||||
@ -38,6 +39,10 @@ export default {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
showCloseIcon:{
|
||||
type:Boolean,
|
||||
default:true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
|
||||
@ -110,6 +110,7 @@
|
||||
</movable-view>
|
||||
</movable-area>
|
||||
</view>
|
||||
<loginPopup :show="showLoginPopup" @close="closeLoginPopup" :showCloseIcon="false"></loginPopup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -118,7 +119,7 @@ import diy from "../../components/themes/diy.vue";
|
||||
import dateUtil from "../../helpers/util_date";
|
||||
import statusBar from "../../components/status-bar.vue";
|
||||
import uniBadge from "@/components/uni-badge.vue";
|
||||
|
||||
import loginPopup from "@/components/loginPopup.vue";
|
||||
// 瀑布流组件
|
||||
|
||||
import WaterfallsFlow from "../../components/WaterfallsFlow/WaterfallsFlow.vue";
|
||||
@ -176,6 +177,7 @@ export default {
|
||||
page: 1,
|
||||
loading: true,
|
||||
screenHeight: 0,
|
||||
showLoginPopup:false,
|
||||
};
|
||||
},
|
||||
computed: mapState([
|
||||
@ -193,8 +195,16 @@ export default {
|
||||
statusBar,
|
||||
WaterfallsFlow,
|
||||
uniBadge,
|
||||
loginPopup
|
||||
},
|
||||
mounted() {
|
||||
|
||||
|
||||
if(!this.hasLogin){
|
||||
this.showLoginPopup = true
|
||||
}
|
||||
|
||||
|
||||
let view = uni.createSelectorQuery().in(this).select(".movableArea");
|
||||
let that = this;
|
||||
|
||||
@ -252,6 +262,8 @@ export default {
|
||||
this.setData({
|
||||
refresh: true,
|
||||
});
|
||||
|
||||
|
||||
},
|
||||
|
||||
onReady() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user