Merge branch 'master' of http://git2.haodian.cn/lcc/liche
* 'master' of http://git2.haodian.cn/lcc/liche: (29 commits) 1 1 1 1 1 1 1 1 1 0823 0823 0822 增加专题底部图片 0822 0822 12 12 0814 0814 0814 ... # Conflicts: # home/views/h5/market/sytopic/index.php
This commit is contained in:
@@ -117,7 +117,7 @@ class SsApi
|
||||
|
||||
public function getBiz($biz_id, $cache = true)
|
||||
{
|
||||
$cacheKey = "SYTSTOPIC_SSAPI_BIZ_{$biz_id}";
|
||||
$cacheKey = "SYSTOPIC_SSAPI_BIZ_{$biz_id}";
|
||||
$redis = &load_cache();
|
||||
if ($cache) {
|
||||
$bizInfo = $redis->get($cacheKey);
|
||||
|
||||
@@ -36,7 +36,7 @@ class Market_sytopic_module_model extends HD_Model
|
||||
public function getTopicModelIds($topicId)
|
||||
{
|
||||
$where = ['topicId' => $topicId, 'status' => 0, 'type!=' => self::TYPE_ENROLL_BANNER];
|
||||
$modelList = $this->map('id', 'type', $where, 'sort desc,type asc', 1, 100, 'id,type');
|
||||
$modelList = $this->map('id', '', $where, 'sort desc,type asc', 1, 100, 'id,type,title');
|
||||
return $modelList ?: [];
|
||||
}
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ class Market_sytopic_module_option_model extends HD_Model
|
||||
$where = ['topicId' => $topicId, 'status' => 0, "moduleId in ({$modelIdsStr})" => null];
|
||||
$modelOptionsList = $this->select($where, "FIELD (moduleId,{$modelIdsStr})", 1, 100);
|
||||
foreach ($modelOptionsList as $item) {
|
||||
$type = $modelList[$item['moduleId']];
|
||||
$lists[$item['moduleId']]['type'] = $type;
|
||||
$lists[$item['moduleId']]['lists'][] = $this->formItem($type, $item);;
|
||||
$model = $modelList[$item['moduleId']][0];
|
||||
$lists[$item['moduleId']]['type'] = $model['type'];
|
||||
$lists[$item['moduleId']]['lists'][] = $this->formItem($model, $item);;
|
||||
}
|
||||
}
|
||||
return $lists;
|
||||
@@ -37,16 +37,18 @@ class Market_sytopic_module_option_model extends HD_Model
|
||||
{
|
||||
$this->load->model('market/market_sytopic_module_model');
|
||||
$moduleModel = new Market_sytopic_module_model();
|
||||
$modelList = $moduleModel->select(['type' => $moduleModel::TYPE_ENROLL_BANNER,'status'=>0], '', '', '', 'id');
|
||||
$modelList = $moduleModel->map('id','',['type' => $moduleModel::TYPE_ENROLL_BANNER, 'status' => 0], '', '', '', 'id,title');
|
||||
$lists = [];
|
||||
if ($modelList) {
|
||||
$modelIdsStr = implode(',', array_column($modelList, 'id'));
|
||||
$modelIdsStr = implode(',', array_keys($modelList));
|
||||
$where = ['topicId' => $topicId, 'status' => 0, "moduleId in ({$modelIdsStr})" => null];
|
||||
$modelOptionsList = $this->select($where, "FIELD (moduleId,{$modelIdsStr})", 1, 100);
|
||||
foreach ($modelOptionsList as $item) {
|
||||
$model = $modelList[$item['moduleId']][0];
|
||||
$lists[] = [
|
||||
'id' => $item['id'],
|
||||
'title' => '',
|
||||
'model_title' => $model['title'],
|
||||
'popUpType' => $item['popUpType'],
|
||||
'banner' => $item['banner'] ? build_qiniu_image_url($item['banner']) : '',
|
||||
'type' => $moduleModel::TYPE_ENROLL_BANNER,
|
||||
@@ -57,12 +59,13 @@ class Market_sytopic_module_option_model extends HD_Model
|
||||
}
|
||||
|
||||
//格式化数据
|
||||
private function formItem($type, $item)
|
||||
private function formItem($model, $item)
|
||||
{
|
||||
$this->load->model('market/market_sytopic_module_model');
|
||||
$this->load->model('market/market_sytopic_enroll_model');
|
||||
$data = [
|
||||
'id' => $item['id'],
|
||||
'model_title' => $model['title'],
|
||||
'title' => $item['title'],
|
||||
'subTitle' => $item['subTitle'],
|
||||
'showBtn' => (bool)$item['showBtn'],
|
||||
@@ -80,7 +83,7 @@ class Market_sytopic_module_option_model extends HD_Model
|
||||
}
|
||||
$data['otherImg'] = $otherImgSet;
|
||||
$jsonData = json_encode($item['jsondata'], true);
|
||||
switch ($type) {
|
||||
switch ($model['type']) {
|
||||
case Market_sytopic_module_model::TYPE_DISCOUNT: //特惠报名
|
||||
$endTime = 0;
|
||||
$showTime = false;
|
||||
|
||||
@@ -73,8 +73,8 @@ class Welcome extends CI_Controller {
|
||||
|
||||
public function add_clues()
|
||||
{
|
||||
$mobiles = array('18026707289','13725087668','15006189925','18001799458','13932314222','13955578727','15006164471','18206199976','18916099217','15166749793','15382387791','18567463777','13715262293','18861815522','18712271527','15655009393','15161556496','18861823876','17312709562','18036039699','15345357177','15986907547','15323224293','18915271818','18818868225','19868733121','18818868225','15021728341','13928969565','18602532138','18915271818','13829938512','15815556647','15026876266','18516515323','18616678727','15346194240','15908007270','13068252098','15087784912','18217276629','15755354760','13601928214','13416806753','18938548608','15819666634','13723673107','17373871079','13450438323','15871072727');
|
||||
$dealerCode = '100531';
|
||||
$mobiles = array('13851395658','18271924002','13972345374','15826574179','15866211996','15826501048','18172576894','15036807871','13956709302','15109311801','13648040299','15965116200','15192717702','18743498212','13694396399','13302198068','13296329907','18537096927','13997695028','13336329575');
|
||||
$dealerCode = '101207';
|
||||
|
||||
foreach ($mobiles as $k => $v) {
|
||||
$city_id = '350200';
|
||||
@@ -82,7 +82,7 @@ class Welcome extends CI_Controller {
|
||||
|
||||
$data[] = array(
|
||||
'voId' => $voId,
|
||||
'cusSource3' => '020103',//'023409',//023410:云店营销节点
|
||||
'cusSource3' => '023410',//'023409',//023410:云店营销节点
|
||||
'customerName' => '客户',
|
||||
'dealerCode' => $dealerCode,
|
||||
'fromSystem' => "好店云",
|
||||
|
||||
@@ -136,7 +136,7 @@ class Draw extends CI_Controller
|
||||
if ($v['itemIds']) {
|
||||
|
||||
//不中奖奖品
|
||||
if($activityId == 29 and in_array($winType, array(1,2,3))){
|
||||
if(($activityId == 29 || $activityId == 32) and in_array($winType, array(1,2,3,4))){
|
||||
$activityId = 21;
|
||||
$whereOrder = ['activityId' => $activityId, 'status' => 1];
|
||||
$v['itemIds'] = [27];
|
||||
@@ -257,7 +257,7 @@ class Draw extends CI_Controller
|
||||
$dev = false !== strpos($_SERVER['HTTP_HOST'], 'dev') ? 1 : 0;
|
||||
foreach ($result as $v) {
|
||||
|
||||
if($activityId == 29 and in_array($winType, array(1,2,3))){
|
||||
if(($activityId == 29 || $activityId == 32) and in_array($winType, array(1,2,3,4))){
|
||||
$resultSet[] = $v;
|
||||
$winNum++;
|
||||
$sms++;
|
||||
|
||||
@@ -35,11 +35,15 @@ class Login extends CI_Controller{
|
||||
if($wx_info['nickname'] || $wx_info['headimgurl']){
|
||||
$data['auth_userinfo'] = true;
|
||||
}
|
||||
|
||||
$cf = $this->input->get('cf');
|
||||
|
||||
//微信分享
|
||||
$this->load->library('Jssdk');
|
||||
$jssdk = new Jssdk('liche');
|
||||
$sign_package = $jssdk->getSignPackage();
|
||||
$data['sign_package'] = $sign_package;
|
||||
$data['cf'] = $cf;
|
||||
$this->load->view('h5/market/sylive2/login',$data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,9 +111,9 @@ class Stic extends Admin
|
||||
//"cfUserId in (SELECT userId FROM lc_market_sylive_groups_user WHERE activityId = {$this->a_id} and bizId > 0 and status = 0)" => null
|
||||
];
|
||||
$kgw_total = $this->mdSytActivityKpiData->count($where, "cfUserId");
|
||||
$h_lists[] = ['title' => '参与门店', 'num' => "{$biz_total}个"];
|
||||
$h_lists[] = ['title' => '参与顾问', 'num' => "{$gw_total}人"];
|
||||
$h_lists[] = ['title' => '开工顾问', 'num' => "{$kgw_total}人"];
|
||||
$h_lists[] = ['title' => '参与团队', 'num' => "{$biz_total}个"];
|
||||
$h_lists[] = ['title' => '参与团员', 'num' => "{$gw_total}人"];
|
||||
$h_lists[] = ['title' => '开工团员', 'num' => "{$kgw_total}人"];
|
||||
$h_lists[] = ['title' => '开工率', 'num' => $gw_total ? round($kgw_total / $gw_total * 100, 2) . "%" : 0];
|
||||
//我的
|
||||
$where = [
|
||||
@@ -225,7 +225,7 @@ class Stic extends Admin
|
||||
$biz[] = ['title' => '预约率', 'num' => $browse_count ? round($subscribe_count / $browse_count * 100, 2) . "%" : 0];
|
||||
}
|
||||
$biz[] = ['title' => '留资数', 'num' => "{$order_count}人"];
|
||||
$title = $disk[$group_row['groupsLevel'] + 1] ? '所有' . $disk[$group_row['groupsLevel'] + 1] : '所有门店';
|
||||
$title = $disk[$group_row['groupsLevel'] + 1] ? '所有' . $disk[$group_row['groupsLevel'] + 1] : '所有团队';
|
||||
$group_row['ifBiz'] && $title = $group_row['groupsName'];
|
||||
$sub_lists[] = ['title' => "{$title}", 'lists' => $biz];
|
||||
}
|
||||
@@ -274,7 +274,7 @@ class Stic extends Admin
|
||||
['title' => '人均观看', 'num' => "{$avg_UV_time}分钟"],
|
||||
['title' => '观看次数', 'num' => "{$livePV}次"],
|
||||
];
|
||||
if ($group_user['bizId']) { //门店和顾问
|
||||
if ($group_user['bizId']) { //团队和团员
|
||||
$biz_id = $group_user['bizId'];
|
||||
$where = [
|
||||
'activityId' => $this->a_id,
|
||||
@@ -310,7 +310,7 @@ class Stic extends Admin
|
||||
['title' => '下单数', 'num' => "{$subscribe_count}单", 'url' => $sub_url],
|
||||
['title' => '转化率', 'num' => $browse_count ? round($subscribe_count / $browse_count * 100, 2) . "%" : 0],
|
||||
];
|
||||
$title = $disk[$group_row['groupsLevel'] + 1] ? '所有' . $disk[$group_row['groupsLevel'] + 1] : '所有门店';
|
||||
$title = $disk[$group_row['groupsLevel'] + 1] ? '所有' . $disk[$group_row['groupsLevel'] + 1] : '所有团队';
|
||||
$group_row['ifBiz'] && $title = $group_row['groupsName'];
|
||||
$sub_lists[] = ['title' => "{$title}", 'lists' => $biz];
|
||||
}
|
||||
@@ -400,8 +400,8 @@ class Stic extends Admin
|
||||
$tab = [
|
||||
['id' => 1, 'title' => '客户列表']
|
||||
];
|
||||
if ($params['type'] == 'biz' && $params['type_id']) { //显示顾问数据
|
||||
$tab[] = ['id' => 2, 'title' => '顾问数据'];
|
||||
if ($params['type'] == 'biz' && $params['type_id']) { //显示团员数据
|
||||
$tab[] = ['id' => 2, 'title' => '团员数据'];
|
||||
}
|
||||
$goods = [];
|
||||
if ($params['kpi'] == 'order') {
|
||||
@@ -427,7 +427,7 @@ class Stic extends Admin
|
||||
public function user_lists()
|
||||
{
|
||||
$params = $this->input->get();
|
||||
if ($params['tabid'] == 2) { //顾问数据
|
||||
if ($params['tabid'] == 2) { //团员数据
|
||||
$this->gw_lists();
|
||||
}
|
||||
$page = $params['page'] ? intval($params['page']) : 1;
|
||||
@@ -600,7 +600,7 @@ class Stic extends Admin
|
||||
$note = '';
|
||||
$url = "/h5/market/sylive2/stic?groupsId={$item['groupsId']}";
|
||||
if (!$item['ifBiz']) {
|
||||
$note = $disk[$item['groupsLevel'] + 1] ? $disk[$item['groupsLevel'] + 1] : '门店';
|
||||
$note = $disk[$item['groupsLevel'] + 1] ? $disk[$item['groupsLevel'] + 1] : '团队';
|
||||
} else {
|
||||
$count = '';
|
||||
}
|
||||
@@ -663,8 +663,8 @@ class Stic extends Admin
|
||||
$info['itemId'] = $goods[0]['itemId'] ? $goods[0]['itemId'] : 0;
|
||||
$info['aId'] = $this->a_id;
|
||||
$this->data['goods'] = $goods ? $goods : [];
|
||||
$groups[] = ['value' => '', 'type' => 'biz', 'title' => '门店排名'];
|
||||
$groups[] = ['value' => '', 'type' => 'user', 'title' => '顾问排名'];
|
||||
$groups[] = ['value' => '', 'type' => 'biz', 'title' => '团队排名'];
|
||||
$groups[] = ['value' => '', 'type' => 'user', 'title' => '团员排名'];
|
||||
$this->data['groups'] = $groups;
|
||||
$this->data['info'] = $info;
|
||||
//微信分享
|
||||
@@ -794,8 +794,8 @@ class Stic extends Admin
|
||||
}
|
||||
$goods = $this->market_sylive_items_model->select($where, 'sort desc,itemId desc', 0, 0, 'itemId,title');
|
||||
}
|
||||
$groups[] = ['value' => '', 'type' => 'biz', 'title' => '门店排名'];
|
||||
$groups[] = ['value' => '', 'type' => 'user', 'title' => '顾问排名'];
|
||||
$groups[] = ['value' => '', 'type' => 'biz', 'title' => '团队排名'];
|
||||
$groups[] = ['value' => '', 'type' => 'user', 'title' => '团员排名'];
|
||||
$this->data['groups'] = $groups;
|
||||
$this->data['day_list'] = $day_list;
|
||||
$this->data['params'] = $params;
|
||||
|
||||
@@ -45,6 +45,7 @@ class Welcome extends Wx
|
||||
'banner' => $jsonData['banner'] ? build_qiniu_image_url($jsonData['banner']) : '',
|
||||
'bgColor' => $jsonData['bg_color'] ?: '',
|
||||
'buttonType' => $jsonData['button_type'] ? (int)$jsonData['button_type'] : '',
|
||||
'bottom_img' => $jsonData['bottom_img'] ? build_qiniu_image_url($jsonData['bottom_img']) : '',
|
||||
];
|
||||
$moduleLists = $this->module_option_model->getTopicModelOptionsList($this->a_id);
|
||||
$this->data['modules'] = array_values($moduleLists);
|
||||
@@ -66,6 +67,7 @@ class Welcome extends Wx
|
||||
$wx_info = $this->share_info([], $row);//微信分享
|
||||
$this->data['sign_package'] = $wx_info['sign_package'];
|
||||
$this->data['share'] = $wx_info['share'];
|
||||
$this->data['_title'] = $row['title'];
|
||||
$this->show_view('h5/market/sytopic/index');
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<div class="swiper-slide bg-size-cover" v-for="item in list">
|
||||
<div class="relative">
|
||||
<img class="wp100 block" style="pointer-events:none;" :src="item.img"/>
|
||||
<div class="absolute left-0 right-0 bottom-0 mb30 text-center font-24"
|
||||
<div class="absolute left-0 right-0 bottom-0 mb5 text-center font-20"
|
||||
:style="'color:'+fillStyle">{{posterTip}}
|
||||
</div>
|
||||
<img class="absolute right-0 bottom-0 mr40 mb80 imgsize-160X160"
|
||||
@@ -141,8 +141,8 @@
|
||||
codeimg.onload = function () {
|
||||
ctx.fillStyle = that.fillStyle;
|
||||
ctx.textAlign = "center";
|
||||
ctx.font = "24px Georgia";
|
||||
ctx.fillText(that.posterTip, that.canW / 2, that.canH - 34,);
|
||||
ctx.font = "20px Georgia";
|
||||
ctx.fillText(that.posterTip, that.canW / 2, that.canH - 5,);
|
||||
ctx.drawImage(codeimg, that.canW - 200, that.canH - 240, 160, 160)
|
||||
setTimeout(function () {
|
||||
that.posterSrc = canvas.toDataURL("image/jpg")
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<div class="inner30">
|
||||
<div class="pt40 pb40">
|
||||
<h3 class="font-42">欢迎使用</h3>
|
||||
<p class="font-26 mt20">好店云私域营销系统</p>
|
||||
<p class="font-26 mt20">私域营销系统</p>
|
||||
</div>
|
||||
<div class="pt100">
|
||||
<ul>
|
||||
|
||||
@@ -22,7 +22,11 @@
|
||||
<div class="absolute box-middle left-0 right-0 pl80 pr80 pb220">
|
||||
<div class="color-fff">
|
||||
<div class="font-52">手机号登录</div>
|
||||
<?php if($cf){?>
|
||||
<div class="mt20 font-28">欢迎使用理车宝-私域活动系统</div>
|
||||
<?php }else{?>
|
||||
<div class="mt20 font-28">欢迎使用好店云-私域活动系统</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
<div>
|
||||
<div class="relative mt50 bg-fff-op15 ulib-r750">
|
||||
@@ -43,9 +47,11 @@
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
<?php if(!$cf){?>
|
||||
<div class="absolute bottom-0 left-0 right-0 pl40 pr40 pb80 text-center color-fff">
|
||||
<div class="font-22">powered by haodian.cn</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -125,10 +125,22 @@
|
||||
</div>
|
||||
|
||||
<template v-for="(item,k) in modules" v-if="modules&&modules.length>0">
|
||||
<!--直接报名模块-->
|
||||
<div class="card-module" v-if="item.type && item.type==9 && item.lists && item.lists.length>0">
|
||||
<div class="ignore-rounded-isosceles-trapezoid absolute box-center top-0 pl5 pr5 text-center">
|
||||
<div class="ignore-trapezoid-middle font-34 color-fff">获取底价</div>
|
||||
</div>
|
||||
<div class="bg-fff ulib-rt30 mb20 font-26 mt30" style="line-height: 6vw" v-if="info.biz.id == 1 || info.biz.id == 10 ">
|
||||
汽车之家空间站是线下版的汽车之家,为消费者提供”省心、省时、省钱“的便捷汽车消费服务体验,
|
||||
实现一站式”看车-买车-用车-换车“,同时推出买贵必赔服务,最高可获2万元差价赔付!
|
||||
</div>
|
||||
<div class="bg-fff ulib-rt30 mb20 font-26 mt30" style="line-height: 6vw" v-else>
|
||||
汽车之家·车卖场旨在为用户提供更加直接、便捷的购车服务。如果您还在为买车询价总询不到准确价格,
|
||||
跑了三四家店每家店价格都不一样而烦恼,汽车之家查底价汇聚千万车主真实成交价助您解决价格焦虑!
|
||||
</div>
|
||||
<div class="ulib-rt30 bg-fff fn-flex overflowhidden" style="margin:0;">
|
||||
<div class="fn-flex fn-flex-center fn-flex-middle wp30"
|
||||
style="flex-direction: column;background-image: linear-gradient(to bottom, #f7f2ca,#fbfae8);">
|
||||
style="flex-direction: column;background-image: linear-gradient(to bottom, #f7f2ca,#fbfae8); border-radius:40px 40px 0 0;">
|
||||
<div class="text-center pl5 pr5" style="width: 100%;">
|
||||
<van-image class="bds-2-fff" round width="12vw" height="12vw"
|
||||
:src="info.channelHeadImg"></van-image>
|
||||
@@ -140,7 +152,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="inner30 fn-flex-item">
|
||||
<!--
|
||||
<h3 class="text-center font-36 pt10 pb10 mb15">{{item.lists[0].title}}</h3>
|
||||
-->
|
||||
<!--div class="bg-f1 ulib-r20 mb30">
|
||||
<van-field v-model="form.name" label="" placeholder="请输入您的姓名"></van-field>
|
||||
</div-->
|
||||
@@ -263,11 +277,11 @@
|
||||
<!-- 报名模块 - 一行两列 -->
|
||||
<div class="pl30 pr30 relative" v-if="item.type && item.type==-999 && item.lists && item.lists.length>0">
|
||||
<div class="fn-flex fn-flex-wrap fn-flex-between">
|
||||
<div class="wp48 text-center inner20 ulib-r20 bg-fff mb30" v-for="(val,key) in item.lists" :key="key">
|
||||
<div class="wp48 text-center inner20 ulib-r20 bg-fff mb20" v-for="(val,key) in item.lists" :key="key">
|
||||
<van-image :src="val.banner"></van-image>
|
||||
<h3 class="font-34">{{val.title}}</h3>
|
||||
<p class="ulib-r750 bg-f6 color-888 font-22 pt5 pb5 mt10">
|
||||
<span>指导价</span><span class="ml5">{{val.subTitle}}</span>
|
||||
<p class="ulib-r750 bg-f6 color-888 font-22 pt5 pb5 mt30" v-if="val.subTitle">
|
||||
<span class="ml5">{{val.subTitle}}</span>
|
||||
</p>
|
||||
<div class="mt50 ml30 mr30 relative" v-if="val.showBtn">
|
||||
<span class="bg-f8e26a ulib-r750 font-20 pt5 pb5 pl10 pr10 absolute left-0 top-0"
|
||||
@@ -317,7 +331,7 @@
|
||||
<div class="wp50 ml20 fn-flex fn-flex-center" style="flex-direction: column;">
|
||||
<h3 class="font-32 text-nowrap">{{val.title}}</h3>
|
||||
<p class="ulib-r750 color-888 font-22 mt10">
|
||||
<span>指导价</span><span class="ml5">{{val.subTitle}}</span>
|
||||
<span class="ml5">{{val.subTitle}}</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="fn-flex-item" v-if="val.showBtn">
|
||||
@@ -353,7 +367,7 @@
|
||||
<template v-if="item.type && item.type==8 && item.lists && item.lists.length>0">
|
||||
<div class="card-module" v-for="(val,key) in item.lists" :key="key">
|
||||
<div class="ignore-rounded-isosceles-trapezoid absolute box-center top-0 pl5 pr5 text-center">
|
||||
<div class="ignore-trapezoid-middle font-34 color-fff">到店有礼</div>
|
||||
<div class="ignore-trapezoid-middle font-34 color-fff">{{val.model_title}}</div>
|
||||
</div>
|
||||
<div class="fn-flex ignore-rounded-padding">
|
||||
<div>
|
||||
@@ -388,7 +402,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</template>
|
||||
|
||||
<aside class="fixed right-0 bottom-0 mr30 mb100 z-index-10" v-if="info.buttonType">
|
||||
@@ -407,6 +420,9 @@
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div v-if="info.bottom_img" style="padding:0">
|
||||
<img :src="info.bottom_img" style="width: 100%">
|
||||
</div>
|
||||
<!-- 富文本模块 -->
|
||||
<div v-if="0" class="card-module overflowhidden" style="padding:0;background-color: transparent;">
|
||||
<div class="font-28 line-height-15 color-555" v-html="info.content"></div>
|
||||
@@ -416,14 +432,14 @@
|
||||
<van-popup v-model="show_signup_center" :style="{ 'background-color': 'transparent' }">
|
||||
<div class="card-module" style="width: 84vw;">
|
||||
<div class="inner10">
|
||||
<h3 class="text-center font-36 pt10 pb10">{{info.title}}</h3>
|
||||
<h3 class="text-center font-36 pt0 pb20">{{popCarInfo.mTitle ? popCarInfo.mTitle : info.title}}</h3>
|
||||
<div class="fn-flex fn-flex-center fn-flex-middle" v-if="showOptionTitle">
|
||||
<div class="wp33">
|
||||
<van-image :src="popCarInfo.banner"></van-image>
|
||||
</div>
|
||||
<div class=" ml20 fn-flex fn-flex-center" style="flex-direction: column;">
|
||||
<h3 class="font-32 text-nowrap">{{popCarInfo.title}}</h3>
|
||||
<p class="ulib-r750 color-888 font-22 mt10"><span>指导价</span><span class="ml5">{{popCarInfo.subTitle}}</span>
|
||||
<p class="ulib-r750 color-888 font-22 mt10"><span class="ml5">{{popCarInfo.subTitle}}</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -456,14 +472,14 @@
|
||||
:style="{ 'min-height': '30%', 'background-color': 'transparent' }">
|
||||
<div class="inner30 ulib-rt30 bg-fff" style="width: 100vw;margin:0;">
|
||||
<div class="inner10">
|
||||
<h3 class="text-center font-36 pt10 pb10">{{info.title}}</h3>
|
||||
<h3 class="text-center font-36 pt0 pb20">{{popCarInfo.mTitle ? popCarInfo.mTitle : info.title}}</h3>
|
||||
<div class="fn-flex fn-flex-center fn-flex-middle" v-if="showOptionTitle">
|
||||
<div class="wp33">
|
||||
<van-image :src="popCarInfo.banner"></van-image>
|
||||
</div>
|
||||
<div class=" ml20 fn-flex fn-flex-center" style="flex-direction: column;">
|
||||
<h3 class="font-32 text-nowrap">{{popCarInfo.title}}</h3>
|
||||
<p class="ulib-r750 color-888 font-22 mt10"><span>指导价</span><span class="ml5">{{popCarInfo.subTitle}}</span>
|
||||
<p class="ulib-r750 color-888 font-22 mt10"><span class="ml5">{{popCarInfo.subTitle}}</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -509,7 +525,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="inner30 fn-flex-item">
|
||||
<h3 class="text-center font-36 pt10 pb10 mb15">{{info.title}}</h3>
|
||||
<h3 class="text-center font-30 pt10 pb10 mb15">{{info.title}}</h3>
|
||||
<!--
|
||||
<div class="box-shadow-darkGray inner10 ulib-r20 mb30 relative" style="background-color: #fffff8;">
|
||||
<div class="fn-flex fn-flex-center fn-flex-middle">
|
||||
@@ -571,7 +587,8 @@
|
||||
popCarInfo: {
|
||||
banner: '',
|
||||
title: '',
|
||||
subTitle: ''
|
||||
subTitle: '',
|
||||
mTitle: ''
|
||||
},
|
||||
isSubmiting: false,
|
||||
optionId: 0,
|
||||
@@ -605,6 +622,11 @@
|
||||
} else {
|
||||
this.show_signup_center = true
|
||||
}
|
||||
if(row.model_title){
|
||||
this.popCarInfo.mTitle = row.model_title
|
||||
}else{
|
||||
this.popCarInfo.mTitle = ''
|
||||
}
|
||||
this.showOptionTitle = showOptionTitle
|
||||
},
|
||||
getCode() { //获取验证码
|
||||
@@ -639,8 +661,6 @@
|
||||
return false
|
||||
} else if (!this.form.phone) {
|
||||
mDialog.msg({content: "请输入手机号"})
|
||||
} else if (!this.form.name) {
|
||||
mDialog.msg({content: "请输入姓名"})
|
||||
} else if (!this.form.code) {
|
||||
mDialog.msg({content: "请输入验证码"})
|
||||
} else {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<div class="swiper-slide bg-size-cover" v-for="item in list">
|
||||
<div class="relative">
|
||||
<img class="wp100 block" style="pointer-events:none;" :src="item.img"/>
|
||||
<div class="absolute left-0 right-0 bottom-0 mb30 text-center font-24"
|
||||
<div class="absolute left-0 right-0 bottom-0 mb10 text-center font-20"
|
||||
:style="'color:'+fillStyle">{{posterTip}}
|
||||
</div>
|
||||
<img class="absolute right-0 bottom-0 mr40 mb80 imgsize-160X160"
|
||||
@@ -141,8 +141,8 @@
|
||||
codeimg.onload = function () {
|
||||
ctx.fillStyle = that.fillStyle;
|
||||
ctx.textAlign = "center";
|
||||
ctx.font = "24px Georgia";
|
||||
ctx.fillText(that.posterTip, that.canW / 2, that.canH - 34,);
|
||||
ctx.font = "20px Georgia";
|
||||
ctx.fillText(that.posterTip, that.canW / 2, that.canH - 10,);
|
||||
ctx.drawImage(codeimg, that.canW - 200, that.canH - 240, 160, 160)
|
||||
setTimeout(function () {
|
||||
that.posterSrc = canvas.toDataURL("image/jpg")
|
||||
|
||||
@@ -65,6 +65,11 @@ class Topic extends BaseController
|
||||
}else{
|
||||
$jsonData['banner'] = [];
|
||||
}
|
||||
if($jsonData['bottom_img']){
|
||||
$jsonData['bottom_img'] = [['uid' => 1, 'fileUrl' => $jsonData['bottom_img'], 'url' => build_qiniu_image_url($jsonData['bottom_img']), 'status' => 'done']];
|
||||
}else{
|
||||
$jsonData['bottom_img'] = [];
|
||||
}
|
||||
$v['status'] = intval($v['status']);
|
||||
$v['sharePhoto'] = $sharePhoto;
|
||||
$v['banner'] = $banner;
|
||||
@@ -131,6 +136,11 @@ class Topic extends BaseController
|
||||
} else {
|
||||
$setJsonData['banner'] = '';
|
||||
}
|
||||
if ($jsonData['bottom_img']) {
|
||||
$setJsonData['bottom_img'] = $jsonData['bottom_img'] ? $jsonData['bottom_img'][0]['fileUrl'] : '';
|
||||
} else {
|
||||
$setJsonData['bottom_img'] = '';
|
||||
}
|
||||
$setJsonData['bg_color'] = $jsonData['bg_color'] ?: '';
|
||||
$setJsonData['button_type'] = $jsonData['button_type'] ?: '';
|
||||
$createTime = date('Y-m-d H:i:s');
|
||||
@@ -185,6 +195,11 @@ class Topic extends BaseController
|
||||
} else {
|
||||
$setJsonData['banner'] = '';
|
||||
}
|
||||
if ($jsonData['bottom_img']) {
|
||||
$setJsonData['bottom_img'] = $jsonData['bottom_img'] ? $jsonData['bottom_img'][0]['fileUrl'] : '';
|
||||
} else {
|
||||
$setJsonData['bottom_img'] = '';
|
||||
}
|
||||
$setJsonData['bg_color'] = $jsonData['bg_color'] ?: '';
|
||||
$setJsonData['button_type'] = $jsonData['button_type'] ?: '';
|
||||
$addData = ['title' => $title, 'banner' => $banner, 'organizationId' => $organizationId, 'sharePhoto' => $sharePhoto,
|
||||
|
||||
Reference in New Issue
Block a user