wupengfei 1 年之前
父節點
當前提交
003d397bff

+ 3 - 2
.idea/workspace.xml

@@ -3,7 +3,8 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/static/admin.js" beforeDir="false" afterPath="$PROJECT_DIR$/public/static/admin.js" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/controller/ActivityQrcode.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/ActivityQrcode.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/view/activity_qrcode/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/activity_qrcode/index.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -382,7 +383,7 @@
       <workItem from="1690246325106" duration="23791000" />
       <workItem from="1690332708631" duration="20337000" />
       <workItem from="1690419501541" duration="21049000" />
-      <workItem from="1690505259271" duration="6642000" />
+      <workItem from="1690505259271" duration="7394000" />
     </task>
     <servers />
   </component>

+ 8 - 0
application/operate/controller/ActivityQrcode.php

@@ -38,6 +38,14 @@ class ActivityQrcode extends Controller
     }
 
 
+    public function _index_page_filter(&$data)
+    {
+        foreach ($data as &$v)
+        {
+            $v['detail_url'] =  'https://'.$_SERVER['HTTP_HOST']."/dist/#/activity-detail?id=".$v['id'].'&tg='.$v['tg_param'];
+        }
+    }
+
     /**
      * 添加
      * @auth true

+ 2 - 2
application/operate/view/activity_qrcode/index.html

@@ -18,7 +18,7 @@
             <th class='text-left nowrap'>ID</th>
             <th class='text-left nowrap'>活动标题</th>
             <th class='text-left nowrap'>手机号</th>
-            <th class='text-left nowrap'>推广链接</th>
+            <th class='text-left nowrap'>推广链接</th>
             <th class='text-left nowrap'>推广码</th>
             <th class="text-left" style="width: 20%">操作</th>
         </tr>
@@ -30,7 +30,7 @@
             <td class='text-left nowrap'>{$vo.id|default=''}</td>
             <td class='text-left nowrap'>{$vo.act_title}</td>
             <td class='text-left nowrap'>{$vo.phone}</td>
-            <td class='text-left nowrap'>{$vo.qrcode}</td>
+            <td class='text-left nowrap'>{$vo.detail_url}</td>
             <td class='text-left nowrap'> <img data-tips-image="{$vo.qrcode|default=''}"  src="{$vo.qrcode|default=''}" height="50px" width="50px"></td>
             <td class='text-left' style="width: 20%">
                 <span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','del','{$vo.id}');">删 除</span>