edit-sylive-user
This commit is contained in:
@@ -273,7 +273,7 @@ class Sylive_data_entity{
|
||||
$select = "bizId,userId,{$filed} as t";
|
||||
$total = $this->ci->act_user_model->count($where);
|
||||
if($total){
|
||||
$rows = $this->ci->act_user_model->select($where,"t desc",$page,$size,$select);
|
||||
$rows = $this->ci->act_user_model->select($where,"t desc,id desc",$page,$size,$select);
|
||||
$user_ids = implode(',',array_column($rows,'userId'));
|
||||
$user_rows = [];
|
||||
if($user_ids){
|
||||
@@ -401,11 +401,16 @@ class Sylive_data_entity{
|
||||
if($total){
|
||||
$rows = $this->ci->mdSytActivityKpiData->select_groupby($groupby, $where, $order, $page, $page_size, $select);
|
||||
$org_rows = [];
|
||||
if($groupby=='cfUserId'){
|
||||
if($groupby=='cfUserId'){//顾问
|
||||
$user_ids = implode(',',array_column($rows,'cfUserId'));
|
||||
if($user_ids){
|
||||
$org_rows = $this->ci->user_model->map('userId','',["userId in ($user_ids)"=>null],'','','','userId,uname as name');
|
||||
}
|
||||
$biz_ids = implode(',',array_column($rows,'teamId2'));
|
||||
$biz_rows = [];
|
||||
if($biz_ids){
|
||||
$biz_rows = $this->ci->market_sylive_organization_model->map('organizationId','',["organizationId in ($biz_ids)"=>null],'','','','organizationId,organizationName');
|
||||
}
|
||||
}else{
|
||||
$team_ids = implode(',',array_column($rows,'teamId2'));
|
||||
if($team_ids){
|
||||
@@ -415,16 +420,19 @@ class Sylive_data_entity{
|
||||
$num_tip = $where['kpi'] == 'order' ? '单' : '人';
|
||||
$start = $page>1 ? ($page-1)*$page_size : 0;
|
||||
foreach ($rows as $key=>$val) {
|
||||
$biz_name = '';
|
||||
if($groupby=='cfUserId'){
|
||||
$org = $org_rows[$val['cfUserId']] ? $org_rows[$val['cfUserId']][0] : [];
|
||||
$tip = $teamId==$val['cfUserId'] ? '本人' : '';
|
||||
$biz = $biz_rows[$val['teamId2']] ? $biz_rows[$val['teamId2']][0] : [];
|
||||
$biz_name = $biz['organizationName'] ? "({$biz['organizationName']})" : '';
|
||||
}else{
|
||||
$org = $org_rows[$val['teamId2']] ? $org_rows[$val['teamId2']][0] : [];
|
||||
$tip = $teamId==$val['teamId2'] ? '我的团队' : '';
|
||||
}
|
||||
$lists[] = [
|
||||
'ranking' => $start+$key+1,
|
||||
'name' => $org['name'],
|
||||
'name' => $org['name'].$biz_name,
|
||||
'num' => $val['t'].$num_tip,
|
||||
'tip' => $tip,
|
||||
];
|
||||
|
||||
@@ -114,6 +114,7 @@ class Act extends Wx {
|
||||
}else{
|
||||
$info['live_url'] = "https://live.haodian.cn/watch/{$row['channelId']}?userid={$userid}&ts={$ts}&sign={$sign}";
|
||||
}
|
||||
$info['my_url'] = http_host_com('home')."/h5/market/sylive/act/userinfo?skey={$skey}&type=my";
|
||||
//微信分享
|
||||
$wx_info = $this->share_info($row);
|
||||
$info['show_code'] = $is_show_code ? 1 : 0;
|
||||
@@ -447,6 +448,9 @@ class Act extends Wx {
|
||||
. '&s_time=' . $row['timeStart']);
|
||||
$subscribemsg = "https://mp.weixin.qq.com/mp/subscribemsg?action=get_confirm&appid={$config['appid']}&scene=0&template_id={$this->template_id}&redirect_url={$sub_redirect_url}&reserved=test#wechat_redirect";
|
||||
redirect($subscribemsg);
|
||||
}elseif($type=='my'){ //跳转我的
|
||||
$my_url = http_host_com('home')."/h5/market/sylive/ucenter?skey={$skey}";
|
||||
redirect($my_url);
|
||||
}else{
|
||||
$user = $this->user_model->get(['userId'=>$this->uid],'unionid,nickname,headimg');
|
||||
$userid = $user['unionid'] ? $user['unionid'] : $this->uid;
|
||||
|
||||
@@ -86,7 +86,8 @@ class Item extends Wx{
|
||||
'need_shop' => $need_shop,
|
||||
'live_url' => $live_url,
|
||||
'a_id' => $a_id,
|
||||
'ifAddress' => $row['ifAddress']
|
||||
'ifAddress' => $row['ifAddress'],
|
||||
'protocolTitle' => $act['protocolTitle']
|
||||
];
|
||||
$this->data['province_arr'] = $province_arr;
|
||||
$this->data['city_arr'] = $city_arr;
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
require_once 'Common.php';
|
||||
require_once COMMPATH . 'third_party/phpqrcode/phpqrcode.php';
|
||||
|
||||
class Test extends Wx {
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index(){
|
||||
//微信分享
|
||||
$wx_info = $this->share_info();
|
||||
$this->data['sign_package'] = $wx_info['sign_package'];
|
||||
$this->show_view('h5/market/sylive/act/test');
|
||||
}
|
||||
}
|
||||
@@ -141,7 +141,8 @@ class Ucenter extends Wx{
|
||||
'introTitle' => '权益说明',
|
||||
'content' => $item['descrip'] ? $item['descrip'] : '',
|
||||
'order' => $order,
|
||||
'skey' => $this->data['skey']
|
||||
'skey' => $this->data['skey'],
|
||||
'ifAddress' => $item['ifAddress']
|
||||
];
|
||||
$this->data['info'] = $info;
|
||||
$this->show_view('h5/market/sylive/ucenter/detail');
|
||||
|
||||
@@ -19,7 +19,10 @@
|
||||
<a class="block bg-999 pt20 pb20 text-center font-36 color-fff ulib-r10" href="javascript:;">活动已结束</a>
|
||||
</template>
|
||||
</div>
|
||||
<? $this->load->view('h5/market/sylive/nav_my') ?>
|
||||
<a class="bottom-opt pt15 bg-1a1a1a ulib-r750 text-center color-fff" :href="info.my_url">
|
||||
<i class="iconfont icon-wode text-middle font-36"></i>
|
||||
<div class="font-22">我的</div>
|
||||
</a>
|
||||
<!--直播字幕-->
|
||||
<div>
|
||||
<div class="notice-shadow"></div>
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
<body class="bg-f6">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div class="bg-f6" id="app" ref="app">
|
||||
<div>
|
||||
<wx-open-launch-weapp
|
||||
id='launch-btn'
|
||||
:username="wechat_ghid1"
|
||||
:path="wechat_url1">
|
||||
<template>
|
||||
<button class="btn" style="width:300px;height:60px;">链接测试东风</button>
|
||||
</template>
|
||||
<script type="text/wxtag-template">
|
||||
<button class="btn" style="width:300px;height:60px;">链接测试东风</button>
|
||||
</script>
|
||||
</wx-open-launch-weapp>
|
||||
</div>
|
||||
<div style="margin-top:50px;">
|
||||
<wx-open-launch-weapp
|
||||
id='launch-btn'
|
||||
:username="wechat_ghid2"
|
||||
:path="wechat_url2">
|
||||
<template>
|
||||
<button class="btn" style="width:300px;height:60px;">链接测试美家卡</button>
|
||||
</template>
|
||||
<script type="text/wxtag-template">
|
||||
<button class="btn" style="width:300px;height:60px;">链接测试美家卡</button>
|
||||
</script>
|
||||
</wx-open-launch-weapp>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
let hostUrl = ''
|
||||
var app = new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
wechat_ghid1:'gh_54cc250f3a1a',
|
||||
wechat_url1:'subpackage/pages/testDrive/testDrive',
|
||||
wechat_ghid2:'gh_083b599d5bd3',
|
||||
wechat_url2:'pages/test/index',
|
||||
},
|
||||
created(){
|
||||
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
},
|
||||
})
|
||||
Vue.config.ignoredElements = ['wx-open-launch-weapp', 'wx-open-subscribe'];
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
wx.config({
|
||||
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印
|
||||
appId: "<?=$sign_package['appId']?>", // 必填,公众号的唯一标识
|
||||
timestamp: "<?=$sign_package['timestamp']?>", // 必填,生成签名的时间戳
|
||||
nonceStr: "<?=$sign_package['nonceStr']?>", // 必填,生成签名的随机串
|
||||
signature: "<?=$sign_package['signature']?>",// 必填,签名
|
||||
jsApiList: ["openLocation", "updateAppMessageShareData", "updateTimelineShareData"], // 必填,需要使用的JS接口列表
|
||||
openTagList: ['wx-open-launch-weapp'] // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
|
||||
});
|
||||
wx.ready(function () {
|
||||
});
|
||||
wx.error(function (res) {
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
@@ -89,7 +89,7 @@
|
||||
<label class="text-middle"><input class="text-middle" type="checkbox" v-model="isXYChecked" />
|
||||
<span class="text-middle ml5">我已阅读并同意</span>
|
||||
</label>
|
||||
<a class="text-middle color-ff0000" :href="'/h5/market/sylive/item/agreement?a_id='+info['a_id']">《关于用户门票须知》</a>
|
||||
<a class="text-middle color-ff0000" :href="'/h5/market/sylive/item/agreement?a_id='+info['a_id']">《{{info.protocolTitle}}》</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt30">
|
||||
@@ -390,7 +390,7 @@
|
||||
this.isShowSuccess = false
|
||||
},
|
||||
showSuccess: function (){
|
||||
if(this.info.ifAddress){ //需要填写收货地址
|
||||
if(this.info.ifAddress>0){ //需要填写收货地址
|
||||
this.isShowSuccess = true;
|
||||
//选择省市初始化
|
||||
setTimeout(function () {
|
||||
|
||||
@@ -12,8 +12,10 @@
|
||||
</div>
|
||||
<div class="uinfo absolute wp100 pr100 pl100">
|
||||
<div class="space-nowrap"><span>{{info.order.uname}}</span><span class="font-28">·{{info.order.utel}}</span></div>
|
||||
<div class="mt10 uinfoadd font-22 ulib-rl750" v-if="show_address" @click="showAdd()"><i class="iconfont mr5 icon-dizhi"></i>{{show_address}}</div>
|
||||
<div class="mt10 uinfoadd font-22 ulib-rl750" v-else @click="showAdd()"><i class="iconfont mr5 icon-zengjia"></i>(完善收货地址)</div>
|
||||
<template v-if="info.ifAddress>0">
|
||||
<div class="mt10 uinfoadd font-22 ulib-rl750" v-if="show_address" @click="showAdd()"><i class="iconfont mr5 icon-dizhi"></i>{{show_address}}</div>
|
||||
<div class="mt10 uinfoadd font-22 ulib-rl750" v-else @click="showAdd()"><i class="iconfont mr5 icon-zengjia"></i>(完善收货地址)</div>
|
||||
</template>
|
||||
</div>
|
||||
<!-- <div class="uinfo absolute box-center pt15 pb15 pl30 pr30 font-32 ulib-r750 space-nowrap">{{info.order.uname}} · {{info.order.utel}}</div>-->
|
||||
<div class="odslogan absolute box-center text-center color-e4bc93 space-nowrap">
|
||||
|
||||
Reference in New Issue
Block a user