347617796@qq.com 3 anos atrás
pai
commit
e69b528e2f

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

@@ -80,7 +80,7 @@
       </view>
     </block>
     <block a:else>
-        <view class="log" catchTap="openLog">查看日志详情内容 <text style="font-size: 36rpx;padding-left:10rpx;">»</text></view>
+        <view a:if="{{see_log==1}}" class="log" catchTap="openLog">查看日志详情内容 <text style="font-size: 36rpx;padding-left:10rpx;">»</text></view>
     </block>
   </view>
   <view class="bottom flex-box flex-flex-center-center" a:if="{{dataDetail.recorder_id==userId&&dataDetail.process.length==1&&(dataDetail.event_type==3||dataDetail.event_type==4)}}">

+ 9 - 1
pages/statistics/prizeBuckleDetail/prizeBuckleDetail.js

@@ -5,7 +5,8 @@ Page({
   data: {
     date: app.globalData.month,
     review_id:'',
-    userId:''
+    userId:'',
+    see_log:1,
   },
   onLoad(e) {
     that = this;
@@ -18,8 +19,15 @@ Page({
           review_id:e.id
         })
         that.getDetail(e.id);
+        that.cheakAx();
     }
   },
+ cheakAx() {
+    app.$get("api/integral/site/config", {  }).then((res) => {
+      var data = res.data.data;
+      this.setData({ see_log: data.see_log? data.see_log:0})
+    })
+	},
   openCx() {
     dd.confirm({
       title: '撤销奖扣',

+ 3 - 1
pages/workbench/index/index.js

@@ -45,9 +45,11 @@ Page({
   onLoad() {
     that = this;
     chart1, chart2, chart3 = '';
+
   },
   onShow() {
     if (app.globalData.userData) {
+      dd.setNavigationBar({ title: app.globalData.userData.name });
       that.getUserData();
       that.getGg();
       that.getNotice();
@@ -67,6 +69,7 @@ Page({
     } else {
       app.login(app.globalData.corpId,function (is) {
         if (is) {
+          dd.setNavigationBar({ title: app.globalData.userData.name });
           if (app.globalData.isCreator) {
             that.setMenuList("creator");
           } else if (app.globalData.isAdministrator) {
@@ -380,7 +383,6 @@ Page({
       if (values[0]) {
         let data = values[0].data.data;
         var task = data.task;
-        dd.setNavigationBar({ title: data.name });
         var ratio = task.reward.point === 0 || task.deduction.point === 0 ? '-' : `${task.ratio.ratio}:1`
         var target_ratio = task.ratio.target_ratio <= 0 ? '0:0' : `${task.ratio.target_ratio}:1`
         data.ratio = {