Commit 84ff20ef authored by lvtz's avatar lvtz

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

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