提交 b504f1ba authored 作者: lihuihui's avatar lihuihui

发布问题页面拦截

上级 2a0dfbb2
...@@ -6,6 +6,7 @@ Page({ ...@@ -6,6 +6,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
isUseAccountLogin:true,
sort: [ sort: [
{ isShow: false, str: '' }, { isShow: false, str: '' },
{ isShow: false, str: 'tag' } { isShow: false, str: 'tag' }
...@@ -36,6 +37,8 @@ Page({ ...@@ -36,6 +37,8 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
this.setData('isUseAccountLogin', wx.getStorageSync('isUseAccountLogin'))
this.cid = options.cid this.cid = options.cid
this.sid = options.sid this.sid = options.sid
wx.showLoading({ title: '页面加载中...', mask: true }) wx.showLoading({ title: '页面加载中...', mask: true })
......
<!--pages/learnSystem/courseContent/courseDiscuss/courseDiscuss.wxml--> <!--pages/learnSystem/courseContent/courseDiscuss/courseDiscuss.wxml-->
<view class='pub-ques'> <view class='pub-ques' wx:if='{{!isUseAccountLogin}}'>
<view class='ask'> <view class='ask'>
<image class='img' src='./icons/ask.png' mode='aspectFill'></image> <image class='img' src='./icons/ask.png' mode='aspectFill'></image>
<view class="txt" bindtap='publishDiscuss'>发布问题 ...</view> <view class="txt" bindtap='publishDiscuss'>发布问题 ...</view>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论