347617796@qq.com 3 年 前
コミット
3347a5b23a

+ 4 - 3
app.js

@@ -152,7 +152,9 @@ App({
           } else if (res.data.code == 401) {
             that.globalData.showToast("授权已过期");
             reject(res);
-          } else {
+          } else if(res.data.code == 3000) {
+            reject(res);
+          }else{
             that.globalData.showToast(res.data.msg);
             reject(res);
           }
@@ -242,7 +244,7 @@ App({
                 that.getUserList();//缓存人员列表
                 if (isStart && !getIsStart.data) {//判断是否需要打开引导
                   dd.reLaunch({
-                    url: '../../start/start'
+                    url: '../start/start'
                   })
                 } else {
                   callBack(true);
@@ -256,7 +258,6 @@ App({
               that.globalData.showToast(res.msg)
             }
           }).catch(err => {
-            // console.log(err)
             errBack(err.data);
             return
             if (err.data.code == 2001) {

+ 1 - 4
pages/begin/begin.js

@@ -10,10 +10,8 @@ Page({
    that.loginAll();
   },
   loginAll(){
-      // dd.showLoading();
       app.login(app.globalData.corpId, function (is) {
         if(is){
-          // dd.hideLoading();
           dd.reLaunch({
             url: '../workbench/index/index'
           })
@@ -23,8 +21,7 @@ Page({
           })
         }
       },function(data){
-        console.log(data,that.data.num)
-        if(data.code==2001&&data.msg!='企业授权已过期'){
+        if(data.code==3000){
           if(that.data.num==3){ return false}
           setTimeout(function(){ 
             let num=that.data.num;

+ 2 - 2
pages/statistics/prizeBuckleDetail/prizeBuckleDetail.axml

@@ -13,14 +13,14 @@
         <view class="laber">任务描述</view>
         <view class="flex-1">{{dataDetail.remark.customize || dataDetail.remark.rule}}</view>
       </view>
-      <!-- <view class="flex-box" a:if="{{dataDetail.files.length>0}}">
+      <view class="flex-box" a:if="{{dataDetail.files.length>0}}">
         <view class="laber">图片</view>
         <view class="flex-1 flex-box flex-d-wrap">
           <block a:for="{{dataDetail.files}}" a:for-item="imgs" a:for-index="idx">
             <image class="imgs" catchTap="showImg" mode="scaleToFill" src="{{imgs}}" data-index="{{idx}}" data-item="{{dataDetail.files}}"/>
           </block>
         </view>
-      </view> -->
+      </view>
       <view class="flex-box flex-v-ce" a:if="{{dataDetail.rule_list}}">
         <view class="laber">规则分类</view>
         <view class="flex-1">{{dataDetail.rule_list }}</view>