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