| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 | <!-- header start --><include file="Public/Header" /><!-- header end --><style>	.statistic{clear: both;}	.st_le{display: inline-block;}	.st_le p{    width: 14rem;    padding-right: 0.5rem;    float: left;    border: solid #333 1px;    height: 11rem;    margin-right: .5rem; padding: .5rem}    .st_le span{ display: block; clear: both; }</style><!-- right content start  --><div class="content-right">	<div class="content">		<!-- form start -->		<form class="am-form view-list" action="{{:U('Admin/Statistic/total')}}" method="POST">			<div class="am-g">				<div style="width:500px;display: inline-block;">				<label>时间:</label>				  (含)<input name="start_time" class="datebb"  value="{{$start_time}}" autocomplete="off" style="width:12rem;border-left: 0.1rem solid;" />~				  (含)<input name="end_time" class="datebb" value="{{$end_time}}" autocomplete="off" style="width: 12rem;border-left: 0.1rem solid;" />				</div>				<button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">查询</button>			</div>        </form>        <!-- form end -->				<div class="statistic">            <!--<?php var_dump($source_type_names);?>-->			<div class="st_le">				<span >总  计:</span>				<p>总用户数: {{$mk['userAll_num']}}					<if condition="$mk['userAll']">						<foreach name="mk['userAll']" item="vo" >							<br/>							(来源){{$vo.user_origin}}:{{$vo.total}}						</foreach>					</if>				</p>				<p>总订购数:{{$mk['payAll_num']}}					<if condition="$mk['payAll']">						<foreach name="mk['payAll']" item="vo" >							<br/>							(来源){{$vo.user_origin}}:{{$vo.total}}						</foreach>					</if>				</p>				<p>转化率:{{$mk['FeeAll_num']}}%					<if condition="$mk['FeeAll']">						<foreach name="mk['FeeAll']" item="vo" k="key">							<br/>							(来源){{$key}}:{{$vo}}%						</foreach>					</if>				</p>							<span >条件统计:</span>                                <p style="color:red">新增用户:{{$mk['userUvNew_num']}}									<if condition="$mk['userUvNew']">										<foreach name="mk['userUvNew']" item="vo" >											<br/>											(来源){{$vo.user_origin}}:{{$vo.total}}										</foreach>									</if>								</p>                                <p style="color:red">未订购访问用户:{{$mk['noVipUv_num']}}									<if condition="$mk['noVipUv']">										<foreach name="mk['noVipUv']" item="vo" k="key">											<br/>											(来源){{$key}}:{{$vo}}										</foreach>									</if>								</p>                                <p style="color:red">已订购访问用户:{{$mk['vipAllUv_num']}}									<if condition="$mk['vipAllUv']">										<foreach name="mk['vipAllUv']" item="vo" k="key">											<br/>											(来源){{$key}}:{{$vo}}										</foreach>									</if>								</p>				<p style="color:red">订购数:{{$mk['UpayAll_num']}}					<if condition="$mk['UpayAll']">						<foreach name="mk['UpayAll']" item="vo" >							<br/>							(来源){{$vo.user_origin}}:{{$vo.total}}						</foreach>					</if>				</p>				<p style="color:red">综合转化率:{{$mk['UserFee_num']}}%					<if condition="$mk['UserFee']">						<foreach name="mk['UserFee']" item="vo" k="key">							<br/>							(来源){{$key}}:{{$vo}}%						</foreach>					</if>				</p>				<p style="color:red">uv:{{$mk['userUv_num']}}					<if condition="$mk['userUv']">						<foreach name="mk['userUv']" item="vo" k="key">							<br/>							(来源){{$key}}:{{$vo}}						</foreach>					</if>				</p>				<p style="color:red">pv:{{$mk['pageView_num']}}					<if condition="$mk['pageView']">						<foreach name="mk['pageView']" item="vo" k="key">							<br/>							(来源){{$key}}:{{$vo}}						</foreach>					</if>				</p>				<p style="color:red">预订购数去重						<foreach name="mk['repare_order']" item="vo" k="key">							<br/>							(来源){{$vo['user_origin']}}:{{$vo.total}}						</foreach>				</p>				<p style="color:red">退订数					<foreach name="mk['cancel_order']" item="vo" k="key">						<br/>						(来源){{$vo['user_origin']}}:{{$vo.total}}					</foreach>				</p>			</div>		</div>		<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">			<thead>			<tr>				<th>序号</th>				<th class="am-hide-sm-only">产品包名</th>				<th class="am-hide-sm-only">产品ID</th>				<th class="am-hide-sm-only">订购数</th>			</tr>			</thead>			<tbody>			<if condition="!empty($mk['order_details'])">				<?php					$products = C('products');				?>				<foreach name="mk['order_details']" item="v" key="k">					<tr id="data-list-{{$k}}">						<td class="am-hide-sm-only">{{++$k}}</td>						<td class="am-hide-sm-only">{{$products[$v['product_id']]['name']}}</td>						<td class="am-hide-sm-only">{{$v.product_id}}</td>						<td class="am-hide-sm-only">{{$v.total}}</td>					</tr>				</foreach>				<else />				<tr><td colspan="10" class="table-no">{{:L('common_not_data_tips')}}</td></tr>			</if>			</tbody>		</table>		<!-- page end -->	</div></div><!-- right content end  --><script>    jeDate("input[name=start_time]",{        //onClose:false,                format: "YYYY-MM-DD"    });    jeDate("input[name=end_time]",{        //onClose:false,                format: "YYYY-MM-DD"    });</script>	<!-- footer start --><include file="Public/Footer" /><!-- footer end
 |