...
|
...
|
@@ -9,6 +9,7 @@ |
|
|
namespace app\portal\controller;
|
|
|
|
|
|
use cmf\controller\WeChatBaseController;
|
|
|
use EasyWeChat\Foundation\Application;
|
|
|
use think\Db;
|
|
|
|
|
|
class IndexController extends WeChatBaseController
|
...
|
...
|
@@ -204,6 +205,25 @@ class IndexController extends WeChatBaseController |
|
|
}else{
|
|
|
$data_goods_recommend_new = null;
|
|
|
}
|
|
|
//分享
|
|
|
$options=config('wechat_config');
|
|
|
$app = new Application($options);
|
|
|
$js = $app->js;
|
|
|
$jssdk=$js->config(array('onMenuShareAppMessage', 'onMenuShareTimeline'), false,false,true);
|
|
|
$this->assign('jssdk',$jssdk);
|
|
|
$arr = [];
|
|
|
if($data_my_user['status'] == 3){
|
|
|
$arr['status_id'] = 2;
|
|
|
$arr['my_user_id'] = $data_my_user['id'];
|
|
|
}else if($data_my_user['status'] = 4) {
|
|
|
$arr['status'] = 3;
|
|
|
$arr['my_user_id'] = $data_my_user['id'];
|
|
|
}else{
|
|
|
$arr['status'] = '';
|
|
|
$arr['my_user_id'] = '';
|
|
|
}
|
|
|
$url = cmf_url('portal/index',$arr,false,true);
|
|
|
$this->assign('url',$url);
|
|
|
$this -> assign('data_goods_recommend_new',$data_goods_recommend_new);
|
|
|
$this -> assign('data_goods_hot',$data_goods_hot);
|
|
|
return $this -> fetch();
|
...
|
...
|
@@ -354,7 +374,6 @@ class IndexController extends WeChatBaseController |
|
|
}
|
|
|
}
|
|
|
return json_encode($data_salesman_goods);
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|