Commit 84ff20ef authored by lvtz's avatar lvtz

fix 未授权时习作广场事件处理

parent 46de6e50
......@@ -212,6 +212,7 @@ Component({
}
}).catch(() => {
wx.hideLoading();
console.log('dsadsad');
this.data.submiting = false;
this.triggerEvent('hidecommenteditor', {
integral: 0
......
......@@ -93,6 +93,7 @@ Component({
data: {
imageRoot: app.globalData.imageRoot,
imageVersion: app.globalData.imageVersion,
visitor: app.globalData.visitor,
localImageRoot: '../../../images/',
customerId: 0,
activtySchoolInfo: {
......@@ -107,6 +108,7 @@ Component({
fingureAnimation:false,
},
created () {
console.log(this.data.visitor);
},
attached () {
},
......@@ -526,6 +528,9 @@ Component({
})
},
goThemeIndex (e) {
if (!LocalStorage.getItem('visitor')) {
return;
}
const item = e.currentTarget.dataset.subject;
// if(item.subject_type == 2){
// wx.redirectTo({
......
......@@ -278,7 +278,7 @@
<image class="location-icon" src="{{imageRoot}}2b/organizationalmgt/mapa.png?{{imageVersion}}" ></image>
<text class="location-address" >{{clock.location_address}}</text>
</view>
<view class="operate-box {{type == 1 ? 'detail-operate-box' :''}}">
<view class="operate-box {{type == 1 ? 'detail-operate-box' :''}}" wx:if="{{visitor}}">
<!-- <view class="view-num">浏览{{clock.visit_pv_count && clock.visit_pv_count!=0 ?clock.visit_pv_count:1}}次</view> -->
<image class="sharetipsicon" wx:if="{{sharetipsShow}}" src="{{imageRoot}}2c/clockitemv2/sharetipsicon.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
<view class="opt-box">
......
This diff is collapsed.
......@@ -25,6 +25,9 @@ function wxRequest ({url, data, header, method, dataType, responseType, errorres
_header.Authorization = visitor.token;
} else { // 出现登录窗口或者跳转到登录页面
wx.hideLoading();
if (_url == 'https://qxapi.qingxiao.online/daka/v3/student/comment' && _method == 'POST') {
reject();
}
return
}
} else if (_role == '2b') {
......
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