@@ -44,8 +44,8 @@ Page({
onLoad(options) {
this.setData({
sa_competitorid: options.id,
- isAdmin: wx.getStorageSync('auth').wcompetitor.options.some(v => v == "admin"), //是否具有管理权限
- })
+ isAdmin: wx.getStorageSync('auth').wPublicCustomer.options.some(v => v == "admin"), //是否具有管理权限
+ })
this.getDetail();
},
//详情按钮回调
@@ -19,10 +19,10 @@ class HTTP {
})
}
_request(url, resolve, reject, data, method, header, loading) {
- if (loading) wx.showLoading({
+ /* if (loading) wx.showLoading({
title: '加载中...',
mask: true
+ }) */
wx.request({
url: baseUrl + url,
data: data,
@@ -31,11 +31,11 @@ class HTTP {
timeout: 60000,
success: (res) => {
resolve(res.data);
- if (loading) wx.hideLoading();
+ // if (loading) wx.hideLoading();
fial: (err) => {
reject(err);
- if (loading) wx.hideLoading()
+ // if (loading) wx.hideLoading()
complete: (res) => {
if (res.errMsg != 'request:ok') {