瀏覽代碼

couponCode 使用者 添加链接

DengTao 8 年之前
父節點
當前提交
686bd83ca1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      www/protected/views/couponCode/index.php

+ 2 - 1
www/protected/views/couponCode/index.php

@@ -181,7 +181,8 @@ $(function(){
         columns:[[
         columns:[[
             {field:'code', title:'兑换码', width:80},
             {field:'code', title:'兑换码', width:80},
             {field:'user', title:'使用者', width:70,formatter: function(value, row){
             {field:'user', title:'使用者', width:70,formatter: function(value, row){
-                return row['user'].user_name;
+
+                return '<a href="javascript:;" onclick="parent.load_url(\'<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=rUser&id='+row['user'].id+'\');">'+ row['user'].user_name +'</a>';
             }},
             }},
 
 
             {field:'channel', title:'批次号', width:200},
             {field:'channel', title:'批次号', width:200},