Commit 263e1178 by 前端

fixed

1 parent ac664dfb
Showing 48 changed files with 11 additions and 4108 deletions
<view class='calender-picker' bindtap="showCalendar" data-type='show'>
<slot></slot>
</view>
<!-- 弹框模式 -->
<view class='calender-box' hidden='{{!show}}' catchtouchmove="noScroll">
<view class='calender-bg' bindtap="showCalendar"></view>
<view class='calender-view {{hasRadius}} {{hideCalendar?"hideCalendar":""}} {{!showConfirm?"isFullSucreen":""}}' style="height:{{height}}">
<view class='calender-header'>
<view class='calender-title' wx:if='{{showTitle}}'>
<block wx:if="{{rangeAll && dateType == 'range'}}">
<view class="calender-all" style="color:{{calenderColor}};" bindtap="chooseAll">全选</view>
</block>
{{title||'日期选择'}}
<view class='calender-close' bindtap="showCalendar">
<image webp src="./images/close.png?v={{img_version}}" class='calender-close-image'></image>
</view>
</view>
<block wx:if='{{showSubTitle}}'>
<picker class='calender-subtitle' bindchange="changeDate" bindcancel='showShortcutPicker' value="{{current}}" range="{{dateList}}" wx:if='{{shortcut}}'>
<view class='calender-subtitle-text' bindtap="showShortcutPicker">
{{dateList[current]}}
<view class='arrow {{showShortcut}}'></view>
</view>
</picker>
<view class='calender-subtitle' wx:else>{{dateList[current]}}</view>
</block>
<view class='calendar-weekdays'>
<block wx:for='{{weekdays}}' wx:key='index'>
<view class='calendar-weekday'>{{item}}</view>
</block>
</view>
</view>
<view class='calender-body' style="height:calc(100% - {{calenderBodyHeight}})">
<swiper class='calender-swiper' bindchange='dateChange' current='{{current}}' vertical='{{vertical}}'>
<block wx:for='{{monthList}}' wx:key='index'>
<swiper-item>
<view class='calender-mark box-center' wx:if="{{!hideMark}}">{{item.mark}}</view>
<view class='calender-month'>
<block wx:for='{{item.data}}' wx:for-item='i' wx:for-index='ind' wx:key='ind'>
<view class='calender-day {{ind == 0?i.week:""}} {{i.active?"active":""}} {{i.disable?"disable":""}}' style="background:{{i.active?calenderColor:''}};color:{{i.middle?calenderColor:''}}" bindtap="choose" data-index='{{index}}' data-ind='{{ind}}' data-data='{{i.data}}'>
<view class='calender-middle' style="background:{{calenderColor}};" wx:if='{{i.middle}}'></view>
<view class='box-center text'>
{{i.day}}
<view wx:if='{{dateType==="range"}}' class='calender-tips'>
<view wx:if='{{i.start}}'>{{rangeText.start}}</view>
<view wx:if='{{i.end}}'>{{rangeText.end}}</view>
</view>
</view>
</view>
</block>
</view>
</swiper-item>
</block>
</swiper>
</view>
<view class='calender-footer isFullSucreen' wx:if='{{showConfirm}}'>
<view class='calender-btn {{dateType === "range" && !rangeDate.end ?"disable":""}} {{dateType === "multiple" && multipleDate.length < 1 ?"disable":""}}' style="background:{{calenderColor}}" bindtap="done">
{{confirmText||'确定'}}
</view>
</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
/* packagesList/pages/productDetail/components/proDetail/proDetail.wxss */
page {
background-color: #fff;
}
.view-prod {
.frame {
margin: 16rpx 32rpx;
width: calc(100% - 64rpx);
height: 422rpx;
border-radius: 16rpx;
box-sizing: border-box;
}
.title-wrap {
margin-bottom: 32rpx;
margin-left: 32rpx;
margin-right: 32rpx;
display: flex;
height: 104rpx;
align-items: center;
.title {
width: 564rpx;
height: 48rpx;
font-weight: 500;
font-size: 32rpx;
color: #323436;
// line-height: 48rpx;
}
.check {
margin-left: 30rpx;
margin-right: 6rpx;
width: 28rpx;
height: 28rpx;
}
.num {
font-size: 24rpx;
color: #5a6066;
}
}
.no-video {
margin: 16rpx auto 32rpx;
display: block;
width: 686rpx;
height: 386rpx;
border-radius: 16rpx;
}
.tab-wrap {
position: sticky;
top: 0;
margin-bottom: 20rpx;
z-index: 1;
.tabs-index--van-tabs {
top: -1px
}
.van-tab {
font-size: 28rpx;
color: #5a6066;
}
.van-tab--active {
font-weight: 600;
font-size: 28rpx;
color: #3666fe;
}
frame .van-tabs__line {
width: 112rpx !important;
height: 4rpx !important;
}
}
.prod-detail {
.occupancy {
height: 120rpx;
}
.img-item {
position: relative;
}
.phone {
position: absolute;
top: 60rpx;
right: 32rpx;
font-weight: 400;
font-size: 24rpx;
color: #6C6C6C;
display: flex;
align-items: center;
.icon {
width: 40rpx;
height: 40rpx;
margin-right: 6rpx;
}
}
.check-act {
width: 100%;
text-align: center;
position: absolute;
bottom: 64rpx;
right: 0;
font-weight: 600;
font-size: 28rpx;
color: #3666FE;
text-decoration: underline;
}
.crowd-video {
width: calc(100% - 64rpx);
height: 386rpx;
position: absolute;
top: 264rpx;
margin: 0 32rpx;
border-radius: 16rpx;
}
.more-btn {
position: absolute;
left: 50%;
bottom: 50px;
transform: translateX(-50%);
width: 622rpx;
height: 96rpx;
background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/btn.png");
background-size: 100% 100%;
font-weight: 500;
font-size: 16px;
color: #ffffff;
text-align: center;
line-height: 96rpx;
}
// .img-item0 {
// width: 100%;
// height: 2564rpx;
// }
// .img-item1 {
// width: 100%;
// height: 1812rpx;
// }
// .img-item2 {
// width: 100%;
// height: 620rpx;
// }
// .img-item3 {
// width: 100%;
// height: 2156rpx;
// }
// 流程图一
.img-item00 {
width: 100%;
height: 3308rpx;
}
.img-item01 {
width: 100%;
height: 2598rpx;
}
.img-item02 {
width: 100%;
height: 490rpx;
}
.img-item03 {
width: 100%;
height: 688rpx;
}
// // 流程图二
.img-item10 {
width: 100%;
height: 1488rpx;
}
.img-item11 {
width: 100%;
height: 2192rpx;
}
.img-item12 {
width: 100%;
height: 490rpx;
}
.img-item13 {
width: 100%;
height: 688rpx;
}
// // 流程图三
.img-item20 {
width: 100%;
height: 1488rpx;
}
.img-item21 {
width: 100%;
height: 570rpx;
}
.img-item22 {
width: 100%;
height: 490rpx;
}
.img-item23 {
width: 100%;
height: 864rpx;
}
// // 流程图四
.img-item30 {
width: 100%;
height: 5758rpx;
}
.img-item31 {
width: 100%;
height: 1812rpx;
}
.img-item32 {
width: 100%;
height: 490rpx;
}
.img-item46 {
width: 100%;
height: 1684rpx;
}
.img-item47 {
width: 100%;
height: 3688rpx;
}
// .img-item48 {
// width: 100%;
// height: 4004rpx;
// }
.img-item48 {
width: 100%;
height: 472rpx;
}
.img-item49 {
width: 100%;
height: 4594rpx;
}
.img-item50 {
width: 100%;
height: 1650rpx;
}
.img-item51 {
width: 100%;
height: 552rpx;
}
.img-item52 {
width: 100%;
height: 4360rpx;
}
.img-item53 {
width: 100%;
height: 1130rpx;
}
.img-item54 {
width: 100%;
height: 428rpx;
}
}
}
/* 用户授权 */
.user-profile {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 3;
background-color: transparent;
}
.pro-head {
position: relative;
.select-card {
position: absolute;
right: 0;
top: 26rpx;
width: 142rpx;
height: 68rpx;
background: #FFFFFF;
box-shadow: 0 6rpx 16rpx 0 rgba(175, 175, 219, 0.65);
border-radius: 34rpx 0 0 34rpx;
z-index: 2;
display: flex;
align-items: center;
padding: 12rpx;
box-sizing: border-box;
font-weight: 600;
font-size: 26rpx;
color: #57578A;
.icon-card {
width: 48rpx;
height: 48rpx;
margin-right: 8rpx;
}
}
}
\ No newline at end of file \ No newline at end of file
<!-- packagesList/pages/productDetail/components/proDetail/proDetail.wxml -->
<view class="view-prod custom-class">
<view class="pro-head">
<!-- 有视频 -->
<video class="frame" id="video" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}" bindplay="handleVideoPlay" data-attr="crowdVideoCtx"/>
<image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" />
<view class="title-wrap">
<view class="title">{{prodItemVideo.name}}</view>
<image class="check" wx:if="{{actNum != 2}}" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num" wx:if="{{actNum != 2}}">{{prodItemVideo.view}}</view>
</view>
</view>
<view class="tab-wrap">
<van-tabs sticky bind:click="onClickTab" active="{{tabAct}}">
<van-tab wx:for="{{tabList}}" title="{{item}}" wx:key="idnex" />
<!-- <van-tab title="合作案例" />
<van-tab title="合作方式" />
<van-tab title="适配产品" /> -->
</van-tabs>
</view>
<view class="prod-detail">
<block wx:for="{{productImgs}}" wx:key="index">
<image webp wx:if="{{ index < 3}}" webp mode="widthFix" class="img-item {{item.className?item.className:''}}" src="{{item.url?item.url:item}}?v={{img_version}}">
<block wx:if="{{ index == 0}}">
<!-- && phone -->
<view class="phone" bindtap="phoneCall" data-phone="{{sharephone}}">
<!-- <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> -->
<glsx-image webp src="index/phone.png" class="icon" />
请联系我
<view style="color:#3666fe">{{sharephone}}</view>
</view>
</block>
<!-- 查看活动那个详情 1.3才有 -->
<block wx:if="{{ index == 0 && actNum == 3 && activeUrl}}">
<view class="check-act" bindtap="checkActive">点击查看活动页面</view>
</block>
<!-- 获取更多详情 -->
<block wx:if="{{ index == 2 && showLeftFlag}}">
<button class="more-btn" data-index="{{index}}" bindgetphonenumber="getUserInfo" open-type="getPhoneNumber">
点击查看更多详情
</button>
</block>
</image>
<image webp wx:if="{{ index >= 3 && !showLeftFlag}}" mode="widthFix" webp class="img-item {{item.className?item.className:''}}" src="{{item.url?item.url:item}}?v={{img_version}}">
<!-- 众筹-视频 -->
<block wx:if="{{ index == 3 && actNum == 3 }}">
<video class="crowd-video" id="crowd-video" bindplay="handleVideoPlay" data-attr="videoCtx" src="{{videoBaseUrl}}video/crowd-detail.mp4" />
</block>
</image>
</block>
<view class="occupancy" wx:if="{{!isShare}}">
<!-- padding底部 占位元素 -->
</view>
</view>
</view>
<!-- 申请按钮 不是分享出去的显示按钮 -->
<!-- <apply-button wx:if="{{!isShare}}" downShow="{{false}}"></apply-button> -->
<!-- 授权昵称 -->
<!-- <view wx:if="{{authNcknameShow}}" class="user-profile" bindtap="getUserProfile"></view> -->
\ No newline at end of file \ No newline at end of file
...@@ -51,8 +51,9 @@ ...@@ -51,8 +51,9 @@
border-bottom: 1rpx solid #E3E3E6; border-bottom: 1rpx solid #E3E3E6;
padding: 24rpx 0; padding: 24rpx 0;
position: relative; position: relative;
&:last-child {
margin-top: 13rpx;
}
input { input {
flex: 1; flex: 1;
......
/* login/index/components/Clear/Clear.wxss */ /* login/index/components/Clear/Clear.wxss */
.icon-box { .icon-box {
width: 44rpx; width: 64rpx;
height: 40rpx; height: 60rpx;
padding: 0 10rpx; padding: 0 10rpx;
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
......
<!-- packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml -->
<view class="crowdfund-layout">
<view class="box order">
<view class="order-block" wx:for="{{orderFormList}}" wx:key="index">
<view class="order-txt">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{orderObj[item.name] || 0}}
</view>
<view class="order-label">{{item.label}}</view>
</view>
</view>
<view class="box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="head">
<!-- text-hide -->
<view class=" head-title" bindtap="handleJumpH5" data-item="{{item}}">
{{item.activityName}}
</view>
<view class="head-link" bindtap="download" data-item="{{item}}">
<image src="{{IMAGES.download}}" class="downloadIcon" webp></image>
母链海报
</view>
<view class="down-tips" wx:if="{{index == 0 && isShowTip}}">下载活动海报分享给门店开展活动</view>
</view>
<view class="content">
<view
class="content-row"
wx:for="{{merchantFormList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="content-label">{{subItem.label}}</view>
<view class="content-txt {{subItem.className}}">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
{{item[subItem.name]}}
</view>
</view>
<!-- 排名 -->
<view class="content-rank">
<view class="rank-head">
<view>员工转发数据排名</view>
<view class="activity-status" wx:if="{{item.activityStatus == 1}}">
距离开始{{item.interDays}}天
</view>
<view class="activity-status" wx:if="{{item.activityStatus == 2}}">
已开始{{item.interDays}}天
</view>
<view class="activity-status" wx:if="{{item.activityStatus == 3 && item.interDays < 8}}">
已结束{{item.interDays}}天
</view>
</view>
<view class="rank-table">
<view class="tr">
<view
class="th"
style="width: {{subItem.width || ''}};"
wx:for="{{tableHeadList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
{{subItem.label}}
</view>
</view>
<view wx:if="{{item.showStaffList.length}}">
<block
wx:for="{{item.showStaffList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="tr">
<view
class="td text-hide"
style="width: {{i.width || ''}};"
wx:for="{{tableHeadList}}"
wx:for-item="i"
wx:for-index="j"
wx:key="j">
<view wx:if="{{j == 0 && idx < 3}}">
<image class="icon-rank" src="{{IMGURL}}output/rank0{{idx + 1}}.png?v={{img_version}}" />
</view>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
{{subItem[i.name]}}
</view>
</view>
</block>
<view
wx:if="{{item.staffList.length}}"
class="btn-more"
bindtap="handleMore"
data-idx="{{index}}">
查看更多
</view>
</view>
<view class="tr-no-data" wx:else>暂无数据</view>
</view>
</view>
<!-- 诊断 -->
<view class="content-suggest" wx:if="{{item.activityStatus == 2 && item.suggestTxtList.length}}">
<view class="suggest-title"># 活动诊断</view>
<view class="suggest-txt">
<!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
{{item.suggestTxt}}推荐以下建议:
</view>
<view class="suggest-block">
<view
class="suggest-step"
wx:for="{{item.suggestList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="step-label">建议{{idx + 1}}</view>
<view class="step-txt">{{subItem}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<crowdfund-poster item="{{posterItem}}" id="poster" />
...@@ -288,7 +288,7 @@ Component({ ...@@ -288,7 +288,7 @@ Component({
}, },
formatDate(date) { formatDate(date) {
date = new Date(date); date = new Date(date);
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2,0)}-${(date.getDate()).toString().padStart(2,0)}`; return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, 0)}-${(date.getDate()).toString().padStart(2, 0)}`;
}, },
/**柱状图 */ /**柱状图 */
getHistogram() { getHistogram() {
...@@ -381,6 +381,7 @@ Component({ ...@@ -381,6 +381,7 @@ Component({
ActivityApi[apiName](params).then(res => { ActivityApi[apiName](params).then(res => {
const sfaffList = res.list || res || [] const sfaffList = res.list || res || []
this.setData({ this.setData({
triggered: false,
sfaffList, sfaffList,
tabelTh tabelTh
}) })
......
// packageOutput/components/staff/staff.js
import Util from '~/utils/util'
Component({
/**
* 组件的属性列表
*/
properties: {
sfaffList: {
type: Object,
observer(val) {
this.getDetail(val)
this.filterStaff = val
this.setData({selectValue:1})
}
},
tabelTh: {
type: Object,
value: []
},
downType: {
type: String,
value: 'boutique'
}
},
/**
* 组件的初始数据
*/
data: {
dataType: {
crowType: [{
label: '转发次数',
value: 1
}, {
label: '访客总数',
value: 2
}, {
label: '浏览总数',
value: 3
}, {
label: '成交单量',
value: 4
}, {
label: '转化率',
value: 5
}],
boutique: [{
label: '单量',
value: 1
}, {
label: '客单量',
value: 2
}, {
label: '转化率',
value: 3
}],
equity: [{
label: '成交量',
value: 1
}, {
label: '报价量',
value: 2
}, {
label: '转化率',
value: 3
}]
},
empName: '',
show: true,
selectTxt: '单量',
selectValue: 1,
},
/**
* 组件的方法列表
*/
methods: {
showUp() {
this.setData({show:false})
},
selectType(e) {
const {value,label} = e.target.dataset
this.setData({
selectValue: value,
show:true,
selectTxt: label
})
this.getDetail(this.filterStaff)
},
hanldBlur(e) {
const empName = e.detail.value;
const sfaffList= this.data.sfaffList.filter(item=>{
const employeeName = item.transferName || item.employeeName
return employeeName?employeeName.includes(empName):item
})
this.filterStaff = sfaffList
this.getDetail(sfaffList)
},
//格式化数组
formatArr(arr, fn) {
let res = {}
for (let v of arr) {
const val = Object.keys(v)
for (let i of val) {
if (res[i]) {
res[i].push(v[i])
continue
}
res[i] = [v[i]]
}
}
return fn(res)
},
// 生成对应的表格数据
getDetail(val) {
let {tabelTh,dataType,selectValue,downType} = this.data,sortKey
for(let i in tabelTh) {
if(tabelTh[i] == dataType[downType][selectValue-1].label) {
sortKey = i
}
}
const tableData = Util.deepClone(val).sort((a,b)=>{
return (b[sortKey]||0)-(a[sortKey]||0)
})
// let obj = {
// employeeName: '员工姓名',
// orderMoneyTotal: '产值(营业额)',
// upgradeCountTotal: '单量',
// averagePrice: '客单价',
// upgradeRatio: '转化率'
// }
// obj = {
// employeeName: '员工姓名',
// orderMoneyTotal: '产值(营业额)',
// upgradeCountTotal: '转发次数',
// averagePrice: '访客总数',
// upgradeRatio: '浏览总数',
// upgradeRatio: '成交单量',
// upgradeRatio: '转化率',
// }
const sfaffList = this.formatArr(tableData, (item) => {
const result = []
const obj_keys = Object.keys(tabelTh)
for (let k of obj_keys) {
result.push({
name: tabelTh[k],
val: k,
list: item
})
}
return result
})
this.setData({ sfaff:sfaffList })
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
.box {
margin: 20rpx;
background: #FFFFFF;
box-shadow: 0 2rpx 20rpx 0 #b4bacc52;
border-radius: 20rpx;
padding: 32rpx 40rpx;
.box-title {
font-weight: 600;
font-size: 32rpx;
color: #1B233D;
line-height: 48rpx;
display: flex;
justify-content: space-between;
.select-up {
font-weight: 400;
font-size: 24rpx;
color: #666666;
position: relative;
text-align: center;
.staff-type {
width: 128rpx;
text {
display: inline-block;
width: 100rpx;
}
.up-icon {
width: 14rpx;
height: 8rpx;
vertical-align: middle;
}
}
.up-box {
position: absolute;
width: 108rpx;
height: 160rpx;
background: #FFFFFF;
box-shadow: 0 0 18rpx 0 #3a596a1c;
border-radius: 8rpx;
z-index: 10;
.up-item {
flex: auto;
font-weight: 400;
font-size: 20rpx;
color: #666666;
line-height: 53rpx;
&.checked {
color: #708CFF;
}
}
}
}
}
.staff-input {
width: 638rpx;
height: 64rpx;
background: #ffffff7d;
border: 2rpx solid #EEEEEE;
border-radius: 12rpx;
margin: 40rpx auto 20rpx;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0rpx 20rpx;
box-sizing: border-box;
input {
height: 64rpx;
line-height: 64rpx;
color: #999999;
flex: 1;
}
}
}
.table {
display: flex;
}
.table_left_column {
min-width: 150rpx;
height: auto;
display: flex;
flex-direction: column;
}
.left_col_item {
width: 100%;
height: 63rpx;
font-size: 20rpx;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #1B233D;
background: #F9F9F9;
&:first-child {
font-weight: 600;
font-size: 24rpx;
color: #1B233D;
}
&:nth-child(2n) {
background: #ffffff;
}
}
.table_right_scroll_box {
display: flex;
white-space: nowrap;
overflow-x: scroll;
}
.flex_direction_column_item {
min-width: 200rpx;
display: inline-block;
/* border: 1px solid #000; */
}
.item_name {
min-width: 200rpx;
height: 63rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 20rpx;
color: #1B233D;
background: #F9F9F9;
&:first-child {
font-weight: 600;
font-size: 24rpx;
color: #1B233D;
}
&:nth-child(2n) {
background: #ffffff;
}
}
\ No newline at end of file \ No newline at end of file
<!--packageOutput/components/staff/staff.wxml-->
<view class="box staff-box">
<view class="box-title">
<text>员工排行榜</text>
<view class="select-up">
<view bindtap="showUp" class="staff-type">
<text>{{dataType[downType][selectValue-1].label}}</text>
<glsx-image webp custom-class="up-icon" src="store-assistant-assemble/output/arrow.png"></glsx-image>
</view>
<view class="up-box" hidden="{{show}}">
<view class="up-item {{selectValue == item.value? 'checked':''}}" wx:for="{{dataType[downType]}}" wx:key="index" data-label="{{item.label}}" data-value="{{item.value}}" catchtap="selectType">
{{item.label}}
</view>
</view>
</view>
</view>
<view class="staff-input">
<input placeholder="输入员工名称" value="{{empName}}" bind:blur="hanldBlur"/>
<icon class="icon-small" type="search" size="14"></icon>
</view>
<view class='table'>
<!-- 左侧固定 -->
<view class='table_left_column'>
<view class='left_col_item'>排名</view>
<view class='left_col_item' wx:for="{{sfaff[0].list[sfaff[0].val]}}" wx:for-index="index" wx:key="index">{{index+1}}</view>
</view>
<!-- 右侧表格滚动 -->
<view class="table_right_scroll_box">
<view class="flex_direction_column_item" wx:for="{{sfaff}}" wx:for-index="index" wx:key="index">
<view class='item_name'>{{item.name}}</view>
<view wx:for="{{item.list[item.val]}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_desc'>
<block>{{litem||'--'}}</block>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
// packageOutput/pages/summary/components/CrowdfundPoster/CrowdfundPoster.js
import Draw from '~/utils/Draw'
Component({
/**
* 组件的属性列表
*/
properties: {
item: {
// type: Object,
type: null,
observer(n) {
console.log(n, '=================')
this.getImageInfo(n)
},
}
},
/**
* 组件的初始数据
*/
data: {},
/**
* 组件的方法列表
*/
methods: {
getImageInfo(n) {
let that = this
wx.getImageInfo({
src: `${n.posterUrl}?v=${Date.now()}`,
success: function (res) {
console.log(res)
// w = res.width
// h = res.height
that.init(n, res.width, res.height)
}
})
},
async init(n, ImgWidth, ImgHeight) {
let proportion = ImgWidth / 279
let actualHeight = ImgHeight / proportion
console.log(actualHeight)
wx.$api.showLoading()
const drawfun = new Draw(
{
width: 279,
// height: 554
height: actualHeight
},
this
),
{ userInfo } = wx.$storage.get(),
merchantName = userInfo.merchantName.length > 12 ? `${userInfo.merchantName.substring(0, 12)}...` : userInfo.merchantName,
res = await drawfun.begin({
imageList: [
// {
// x: 0,
// y: 0,
// width: 279,
// height: 66,
// url: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/poster-bg.png'
// },
{
x: 0,
y: 0,
width: 279,
height: actualHeight,
url: n.posterUrl
}
]
// textList: [
// {
// x: 12,
// y: 14,
// fontSize: 14,
// color: '#2D2D33',
// text: merchantName,
// textBaseline: 'top'
// },
// {
// x: 12,
// y: 36,
// fontSize: 14,
// color: '#1B233D',
// text: n.activityName,
// textBaseline: 'top',
// fontWeight: 500
// },
// {
// x: 14 + drawfun.getTextWidth(n.activityName, 14) + 9,
// y: 37,
// fontSize: 10,
// color: '#4466F0',
// text: '众筹',
// textBaseline: 'top',
// border: {
// width: 1,
// color: '#4466F0',
// radius: 2,
// padding: [2, 5],
// opacity: 0.5
// }
// }
// ]
})
console.log(res)
wx.hideLoading()
this.setData({
poster: res.path,
show: true
})
},
download() {
const filePath = this.data.poster,
_this = this
wx.saveImageToPhotosAlbum({
filePath,
success() {
wx.$api.showToast('保存成功')
},
fail(err) {
const auth = _this.selectComponent('#auth')
auth.check()
}
})
},
hide() {
this.setData({
show: false,
poster: ''
})
},
noScroll() {},
authFail(e) {
this.setData({
showAuth: true
})
}
}
})
{
"component": true,
"usingComponents": {
"authorize": "../../../../../components/Authorize/Authorize"
}
}
/* packageOutput/pages/summary/components/CrowdfundPoster/CrowdfundPoster.wxss */
.layout {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 998;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.bg {
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
background: rgba(28, 27, 35, 0.60);
}
.imgCon {
// height: calc(100% - 64rpx);
height: 100%;
overflow: scroll;
}
.poster {
position: relative;
background-color: #fff;
box-sizing: border-box;
padding: 32rpx;
// padding-bottom: 10rpx;
width: 558rpx;
// height: 60%;
height: 1108rpx;
// overflow: scroll;
border-radius: 8rpx 8rpx 0 0;
&::after {
content: '';
width: 100%;
height: 132rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/bgImg.webp') no-repeat;
background-size: 100% 132rpx;
position: absolute;
left: 0;
top: 0;
z-index: -1;
}
// bgImg.webp
}
// .btn {
// width: 320rpx;
// height: 88rpx;
// line-height: 88rpx;
// background: #3666FE;
// // background-image: linear-gradient(-60deg, #556AF5 0%, #7197FF 100%);
// border-radius: 16rpx;
// font-weight: 500;
// font-size: 32rpx;
// color: #FFFFFF;
// text-align: center;
// margin-top: 32rpx;
// }
.btn {
display: flex;
align-items: center;
justify-content: center;
width: 558rpx;
height: 90rpx;
background: #F7F8FA;
border-radius: 0 0 12rpx 12rpx;
font-weight: 500;
font-size: 32rpx;
color: #3666FE;
// margin-top: -2rpx;
.icon {
width: 40rpx;
height: 40rpx;
margin-right: 12rpx;
}
}
.tips {
margin: 16rpx 80rpx 0;
font-size: 24rpx;
color: #FFFFFF;
line-height: 36rpx;
}
}
\ No newline at end of file \ No newline at end of file
<block wx:if="{{show}}">
<view class="layout">
<!-- catchtouchmove="noScroll" -->
<view class="bg" bindtap="hide" />
<view class="poster">
<!-- <view class="titleTime">最近更新时间 {{item.updatedTime}}</view> -->
<!-- catchtouchmove="noScroll" -->
<view class="imgCon">
<image src="{{poster}}" mode="widthFix" show-menu-by-longpress />
</view>
</view>
<!-- <view class="btn" bindtap="download">下载图片并转发</view> -->
<view class="btn">
<glsx-image src="output/longtap.png" class="icon" />
长按图片转发
</view>
<view class="titleTime">最近更新时间: {{item.updatedTime}}</view>
<!-- <view class="tips">提示:这是您的专属活动海报,请下载转发给门店员工注册并参与活动分享。请不要将此海报转发给非相关活动参与者,避免活动数据泄漏。</view> -->
</view>
</block>
<authorize
scopeType="writePhotosAlbum"
bindfail="authFail"
show="{{showAuth}}"
isShowCheck="{{false}}"
id="auth" />
// pages/tab/index/components/indexClue/indexClue.js
import { IMG_URL } from '~/utils/constantData.js'
import { unreadApi, pageApi, tagApi } from '~/api/index.js'
const IMAGES = Object.freeze({
arrow: `${IMG_URL}/index/point.png`,
actArrow: `${IMG_URL}/index/actArrow.png`
})
Component({
/**
* 组件的属性列表
*/
properties: {
headerHeight: Number,
disLikeRecordFlag: Boolean
},
/**
* 组件的初始数据
*/
data: {
IMAGES,
IMG_URL,
typeList: [
{
0: '无电话',
1: '有电话',
2: '联系电话',
selectIndex: 2,
key: 'hasPhone'
},
{
0: '非意向客户',
1: '是意向客户',
2: '意向客户',
selectIndex: 2,
key: 'starTag'
},
{
0: '来自访客',
1: '来自门店',
2: '线索来源',
selectIndex: 2,
key: 'clueSource'
},
{
2: '重置',
selectIndex: 2
}
],
clueList: [],
// 看线索部分
unreadClueCount: 0,
cluePageSize: 1000,
clueCurrentPage: 1,
disLikeFlag: true,
clueParams: {} //看线索参数
},
lifetimes: {
attached: function () {
// 看线索
this.getClueInit()
}
},
/**
* 组件的方法列表
*/
methods: {
//点击收藏
showToast: function (e) {
wx.$storage.set('disLikeRecordFlag', false)
let disLikeRecordFlag = wx.$storage.get('disLikeRecordFlag')
this.setData({
disLikeFlag: false,
disLikeRecordFlag
})
let { type, item } = e.currentTarget.dataset
console.log('type,item: ', type, item)
let tipObj = {}
if (item.starTag == 1) {
tipObj = {
type: 'fail',
title: '取消标记为意向客户'
}
} else {
tipObj = {
type: 'success',
title: '成功标记为意向客户'
}
}
this.triggerEvent('showToggleToast', tipObj)
// this.data.showToggleToast(tipObj)
// this.data.prompt.showToast({
// type: tipObj.type,
// title: tipObj.title,
// duration: 1000,
// compelete: function () {
// console.log("toast框隐藏之后,会调用该函数");
// //例如:跳转页面wx.navigateTo({ url: 'xxx' });
// },
// });
//切换收藏标记
let index = e.currentTarget.dataset.outidx
let completeStatus = `clueList[${index}].like`
this.setData({
[completeStatus]: !this.data.clueList[index].like
})
//发请求
let { sessionId } = wx.$storage.get()
let params = {
clueId: item.clueId,
sessionId
}
this.getTagApi(params)
},
//看线索重置
resetCluelist() {
let { typeList } = this.data
typeList.forEach(item => {
item.selectIndex = 2
})
this.setData({
typeList,
clueParams: {}
})
//重置数据
this.clearclueData()
this.getPageApi()
},
filterTypeFn(e) {
let { typeList } = this.data
let index = e.currentTarget.dataset.index
// 重置筛选
if (index == 3) {
return this.resetCluelist()
}
let itemList = Object.values(typeList[index]).slice(0, 2)
itemList.push('全部')
let _this = this
wx.pro.showActionSheet({
itemList,
success(res) {
//重置数据
_this.clearclueData()
// 选中全部
let selectIndex = res.tapIndex
// console.log('selectIndex: ', selectIndex);
typeList[index].selectIndex = selectIndex
let params = typeList.reduce((obj, item, index) => {
console.log(' item: ', item)
if (item['key']) {
let itemIndx = item.selectIndex
// key: 'clueSource'
if (item['key'] == 'clueSource') {
// itemIndx += 1
obj[item['key']] = itemIndx == 2 ? '' : itemIndx + 1
} else {
obj[item['key']] = itemIndx == 2 ? '' : itemIndx
}
}
return obj
}, {})
console.log(params)
// 清空数据
_this.setData({ typeList, clueParams: params })
_this.getPageApi(params)
},
fail(res) {
console.log(res.errMsg)
}
})
},
//重置数据
clearclueData() {
this.setData({
clueList: [],
clueCurrentPage: 1
// hasPhone: '',
// starTag: '',
// clueSource: '',
})
},
// 打电话
phoneCallFn(e) {
let { phone } = e.currentTarget.dataset
console.log('phone: ', phone)
wx.$api.phoneCall(phone)
},
// 复制号码
setCopyDataFn(e) {
let { phone } = e.currentTarget.dataset
wx.$api.setCopyData(phone)
},
getClueInit(param) {
// console.log(22222)
this.getUnreadApi(param)
this.getPageApi(param)
},
//未读消息
async getUnreadApi(param) {
let { code, data } = await unreadApi(param)
if (code == 0) {
this.setData({
unreadClueCount: data.unreadClueCount
})
}
},
//获取浏览线索数据列表
async getPageApi(param) {
let { cluePageSize, clueCurrentPage, clueList } = this.data
let params = {
pageSize: cluePageSize,
currentPage: clueCurrentPage,
...param
}
let { code, data } = await pageApi(params)
if (code == 0) {
let arr = data.list.map(item => {
if (item.visitList && item.visitList.length > 5) {
item.getMoreFlag = true
}
return item
})
//添加分页数据
// let concatArr = []
// if(arr.length > 0) {
// concatArr = clueList.concat(arr)
// }
this.setData({
clueList: arr
})
let arrinx = arr.findIndex(e => e.clueType == 1 && e.starTag == 0)
this.setData({
disLikeFlagIdx: arrinx,
triggered: false
})
}
},
//喜欢收藏功能
async getTagApi(param) {
let { clueParams } = this.data
let res = await tagApi(param)
console.log('res: ', res)
if (res.code == 0) {
let clueListPamas = {
...param,
...clueParams
}
this.getPageApi(clueListPamas)
}
},
// 上拉刷新
scrolltolowerFn() {
console.log('scrolltolowerFn: ')
let { clueCurrentPage, clueParams } = this.data
console.log('clueCurrentPage: ', clueCurrentPage)
let params = {
...clueParams,
clueCurrentPage: clueCurrentPage++
}
this.setData({
clueCurrentPage
})
this.getPageApi(params)
},
// 下拉刷新
refreshList() {
// console.log('onPullDownRefresh: ');
let { clueParams } = this.data
this.getClueInit(clueParams)
// this.resetCluelist()
// this.onLoad()
wx.pro.showToast({
title: '刷新成功',
icon: 'success',
duration: 1500
})
},
gotoApply(e) {
let { type, item } = e.currentTarget.dataset
// let { } = e.currentTarget.dataset
// console.log(item)
// return
if (type == 'active') {
let { userInfo } = wx.$storage.get()
let pMerchantName = userInfo.subLoginUser.merchantName
let pMerchantId = userInfo.subLoginUser.merchantId
let sceneActive
switch (this.data.actNum) {
case 0:
sceneActive = 1
break
case 1:
sceneActive = 2
break
case 2:
sceneActive = 3
break
case 3:
sceneActive = 4
break
}
// let pMerchantId = userInfo.subLoginUser.merchantId
// console.log("type,item: ", type, item);
const params = {
merchantInfo: {
pMerchantId,
pMerchantName,
merchantId: item.visitList[0].merchantId,
merchantName: item.visitList[0].merchantName
},
sceneActive,
clueId: item.clueId
// sceneCodeList: ['SC001', 'SC002','SC003','SC004']
}
//申请活动
// wx.$router.go("packageOutput.openBusiness", params);
wx.$router.go('packagesList.openBusiness', params)
} else {
//申请门店
// let { type, item } = e.currentTarget.dataset
wx.$router.go('packagesList.apply', item?.clueId || '')
}
// wx.$router.go('apply',1235)
},
getMore(e) {
// console.log("显示更多数据");
let index = e.currentTarget.dataset.outidx
// console.log("index: ", index);
let completeStatus = `clueList[${index}].getMoreFlag`
this.setData({
[completeStatus]: !this.data.clueList[index].getMoreFlag
})
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* pages/tab/index/components/indexClue/indexClue.wxss */
.clue-wrap {
padding: 0px 10px 0;
background-color: #f2f3f7;
// margin-top: -16rpx;
// overflow: scroll;
.types {
// margin-bottom: 8px;
box-sizing: border-box;
padding: 16rpx 0;
display: flex;
align-items: center;
// position: sticky;
// top: 280rpx;
z-index: 2;
background-color: #f2f3f7;
// margin-top: -32rpx;
.type {
margin-left: 8px;
display: flex;
justify-content: center;
align-items: center;
padding: 0 16rpx;
height: 24px;
line-height: 24px;
background: #ffffff;
border-radius: 14px;
font-size: 12px;
color: #8a8c90;
.point {
margin-left: 2px;
width: 12px;
height: 12px;
}
}
.active {
color: #3964fe;
}
}
.list-wrap {
height: calc(100% - 80rpx);
}
.list {
// overflow: scroll;
box-sizing: border-box;
// padding-bottom: 8rpx;
.msg {
padding: 10px 16px 16px;
margin-bottom: 8px;
position: relative;
background-color: #fff;
border-radius: 4px;
}
.like {
position: absolute;
right: 12px;
top: 0;
width: 23px;
height: 23px;
}
.disLike-tit {
width: 172rpx;
background: rgba(0, 0, 0, 0.60);
padding: 8rpx 0rpx;
font-family: PingFangSC-Regular;
font-size: 20rpx;
color: #FFFFFF;
line-height: 36rpx;
text-align: center;
border-radius: 8rpx;
position: absolute;
right: 0rpx;
top: 61rpx;
}
.disLike-titsan {
width: 0;
height: 0;
border: 18rpx solid;
border-color: transparent transparent #686868;
position: absolute;
right: 27rpx;
top: 30rpx;
}
.name {
display: flex;
align-items: center;
// font-weight: 400;
font-size: 28rpx;
color: #323436;
.avatar {
margin-left: 2px;
width: 20px;
height: 20px;
}
}
.line {
margin-top: 10px;
margin-bottom: 10px;
height: 0;
border-bottom: #eeeeee 1px dashed;
}
.want-more {
box-sizing: border-box;
// overflow: hidden;
transition: all 3s ease;
}
// .height {
// height: 200rpx;
// }
// .auto {
// height: auto;
// }
.hiddenMore {
display: none !important;
}
.showMore {
display: flex !important;
}
.want-btn {
margin-top: 10px;
font-size: 12px;
color: var(--btnColor);
}
.record {
// margin-top: 4px;
// margin-bottom: 4px;
box-sizing: border-box;
// height: 40rpx;
display: flex;
justify-content: space-between;
align-items: center;
.action-wrap {
display: flex;
align-items: center;
font-size: 24rpx;
color: #393b3e;
}
// .action{
// }
// .detail{
// }
.time {
font-size: 12px;
color: #8a8c90;
}
}
.info {
margin-top: 10px;
display: flex;
justify-content: space-between;
.phone-wrap {
display: flex;
align-items: center;
}
.phone {
font-size: 24rpx;
color: #3666fe;
}
.phone-img {
margin-left: 12px;
margin-right: 8px;
width: 20px;
height: 20px;
border-radius: 50%;
}
.copy {
width: 20px;
height: 20px;
border-radius: 50%;
}
.btn {
width: 85px;
height: 24px;
background: var(--btnColor);
border-radius: 12px;
font-size: 12px;
color: #ffffff;
text-align: center;
line-height: 24px;
}
}
.noDataImg {
width: 512rpx;
height: 512rpx;
margin-left: 100rpx;
position: relative;
.noDataTxt {
font-family: PingFangSC-Regular;
font-size: 24rpx;
color: #CCCED1;
position: absolute;
bottom: 32rpx;
left: 50%;
transform: translateX(-50%);
}
}
.shop {
.name-wrap {
display: flex;
justify-content: space-between;
align-items: center;
}
.source {
font-size: 10px;
color: #8a8c90;
}
.btn {
border: 1px solid var(--btnColor);
border-radius: 12px;
background-color: #fff;
font-size: 12px;
color: var(--btnColor);
}
.shop-action-wrap {
display: flex;
justify-content: space-between;
align-items: center;
}
.shop-record {
width: 100%;
}
.shop-source {
margin-top: 4px;
width: 100%;
font-size: 24rpx;
color: #393b3e;
}
}
.bottomTips {
text-align: center;
color: #393b3e;
font-size: 26rpx;
height: 60rpx;
line-height: 40rpx;
}
}
}
\ No newline at end of file \ No newline at end of file
<!--pages/tab/index/components/indexClue/indexClue.wxml-->
<!-- style="height: calc(100vh - {{headerHeight/2}}px)" -->
<view
class="clue-wrap"
style="height: calc(100vh - {{headerHeight}}px)"
hover-class="none"
hover-stop-propagation="false">
<view class="types">
<view
class="type {{item['selectIndex']!=2&&index != 3?'active':'' }}"
wx:for="{{typeList}}"
wx:key="index"
data-index="{{index}}"
style="{{index == 0 ? 'margin-left: 0px;' : ''}}"
bindtap="filterTypeFn">
{{item[item['selectIndex']] }}
<image
webp
class="point"
wx:if="{{index != 3}}"
src="{{item['selectIndex']!=2&&index != 3? IMAGES.actArrow : IMAGES.arrow}}" />
</view>
</view>
<!-- bindscrolltolower="scrolltolowerFn" -->
<scroll-view
scroll-y="true"
class="list-wrap"
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
<view class="list" hover-class="none" hover-stop-propagation="false">
<view class="msg" wx:for="{{clueList}}" wx:key="index">
<!-- 门店助手 -->
<view class="shop" wx:if="{{item.clueType == 2}}">
<view class="name-wrap">
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}}
<image
webp
class="avatar"
src="{{IMG_URL}}index/man.png"
wx:if="{{item.clueType != 3}}" />
</view>
<view class="source" hover-class="none" hover-stop-propagation="false">通过门店助手申请</view>
</view>
<view class="line" hover-class="none" hover-stop-propagation="false" />
<view
class="record"
wx:for="{{item.visitList}}"
wx:key="id"
wx:for-index="idx"
wx:for-item="itemName">
<view class="shop-record">
<view class="shop-action-wrap">
<view class="action-wrap">
<view
class="action"
selectable="false"
space="false"
decode="false">
访问页面:
</view>
<view
class="detail"
selectable="false"
space="false"
decode="false">
{{itemName.productDesc}}
</view>
</view>
<view
class="time"
selectable="false"
space="false"
decode="false">
{{itemName.clueDate}}
</view>
</view>
<view class="shop-source" hover-class="none" hover-stop-propagation="false">
所属门店:{{itemName.merchantName}}
</view>
</view>
</view>
<view class="info" hover-class="none" hover-stop-propagation="false">
<view>
<view class="phone-wrap" wx:if="{{item.phone}}">
<view class="phone">{{item.phone}}</view>
<image
webp
class="phone-img"
data-phone="{{item.phone}}"
bindtap="phoneCallFn"
src="{{IMG_URL}}index/phone.png" />
<image
webp
class="copy"
data-phone="{{item.phone}}"
bindtap="setCopyDataFn"
src="{{IMG_URL}}index/copy.png" />
</view>
</view>
<view
class="btn"
hover-class="none"
hover-stop-propagation="false"
data-type="active"
data-item="{{item}}"
wx:if="{{item.applyStatus == 0}}"
bindtap="gotoApply">
开通活动
</view>
</view>
</view>
<!-- 门店助手 -->
<view wx:else>
<image
webp
class="like"
wx:if="{{item.clueType == 1 && item.starTag == 1}}"
src="{{IMG_URL}}index/like.png"
data-type="like"
data-outidx="{{index}}"
data-item="{{item}}"
bindtap="showToast" />
<image
webp
class="like"
wx:if="{{item.clueType == 1 && item.starTag == 0}}"
src="{{IMG_URL}}index/dislike.png"
data-type="dislike"
data-outidx="{{index}}"
data-item="{{item}}"
bindtap="showToast" />
<view class="disLike-tit" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag && disLikeRecordFlag}}" hidden="{{index != disLikeFlagIdx}}">
标记为意向客户
</view>
<view class="disLike-titsan" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag && disLikeRecordFlag}}" hidden="{{index != disLikeFlagIdx}}" />
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}}
<image
webp
class="avatar"
src="{{IMG_URL}}index/avatar.png"
wx:if="{{item.clueType != 3}}" />
</view>
<view class="line" hover-class="none" hover-stop-propagation="false" />
<!-- {{item.getMoreFlag?'height':'auto'}} -->
<view class="want-more ">
<view
class="record {{idx>4&&item.getMoreFlag?'hiddenMore':''}} {{idx>4&&!item.getMoreFlag?'showMore':''}}"
wx:for="{{item.visitList}}"
wx:key="id"
wx:for-index="idx"
wx:for-item="itemName">
<view class="action-wrap">
<view
class="action"
selectable="false"
space="false"
decode="false">访问页面:
</view>
<view
class="detail"
selectable="false"
space="false"
decode="false">
{{itemName.productDesc}}
</view>
</view>
<view
class="time"
selectable="false"
space="false"
decode="false">
{{itemName.clueDate}}
</view>
</view>
</view>
<view
class="want-btn"
wx:if="{{item.visitList.length > 5}}"
hover-class="none"
hover-stop-propagation="false"
data-outidx="{{index}}"
bindtap="getMore">
{{ item.getMoreFlag ?'更多数据':'收起数据'}}
</view>
<view
class="info"
hover-class="none"
hover-stop-propagation="false"
wx:if="{{item.phone}}">
<view class="phone-wrap">
<view class="phone">{{item.phone}}</view>
<image
webp
class="phone-img"
data-phone="{{item.phone}}"
bindtap="phoneCallFn"
src="{{IMG_URL}}index/phone.png" />
<image
webp
class="copy"
data-phone="{{item.phone}}"
bindtap="setCopyDataFn"
src="{{IMG_URL}}index/copy.png" />
</view>
<view
class="btn"
hover-class="none"
hover-stop-propagation="false"
data-type="shop"
bindtap="gotoApply"
data-item="{{item}}"
wx:if="{{item.applyStatus == 0}}">
+开店面
</view>
</view>
</view>
</view>
<view class="bottomTips" wx:if="{{clueList.length>10}}">到底啦!</view>
<view class="noDataImg" wx:if="{{!clueList.length}}">
<image webp src="{{IMG_URL}}index/trEmpty.png " />
<text class="noDataTxt">没有符合条件的线索~</text>
</view>
</view>
</scroll-view>
</view>
// pages/tab/index/components/indexProduct/indexProduct.js
import { IMG_URL } from "~/utils/constantData.js";
// 导入方法
import { behavior as computedBehavior } from "~/utils/lib/miniprogram-computed";
import { getActivityRecordApi } from '~/api/index.js'
const videoBaseUrl =
"https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/";
Component({
// 混入
behaviors: [computedBehavior],
/**
* 组件的属性列表
*/
properties: {
actNum: Number,
img_version: null,
senceData: Array,
headerHeight: Number,
},
computed: {
// 特色产品
prodList(data) {
if (data.mainActiveIndex == 0) {
return data.senceData[data.tabActive].productList;
} else {
let type = data.items[data.mainActiveIndex].type;
return data.senceData[data.tabActive].productList.filter(
(item) => item.type == type
);
}
},
// 视频
prodVideoList(data) {
return data.senceData[data.tabActive].videoList;
},
// 海报
prodPosterList(data) {
return data.senceData[data.tabActive].posterList;
},
// 通知文字
scrollText(data) {
let { tabActive, senceData } = data;
return senceData[tabActive].scrollText;
},
},
// 默认已深度监听
watch: {
tabActive: function (a, b) {
// console.log('变化',a)
this.setData({
mainActiveIndex: 0,
});
this.setProType();
},
},
/**
* 组件的初始数据
*/
data: {
refresherFlag: true,
IMG_URL,
// 头部tab
tabActive: 3,
tabHeaderShow: false,
items: [
{
text: "全部",
type: "all",
},
],
mainActiveIndex: 0,
contentHeight: 0,
// 滚动条
activityList: [],
// 视频海报
videoActive: 0,
overlayShow: false,
checkPosterItem: {
src: `${IMG_URL}index/poster/poster3-0.png`,
},
// checkVideoItem:{}
},
lifetimes: {
attached() {
this.setProType();
this.getActivityRecord()
},
ready() {
// console.log('lifetimes',this)
let contentTop;
let that = this;
const query = this.createSelectorQuery();
query.select("#pro-cont").boundingClientRect(function (res) {
// console.log('top',res.top)
contentTop = res.top;
//屏幕
const windowHeight = wx.getSystemInfoSync().windowHeight;
// console.log('windowHeight: ', windowHeight, contentTop);
const contentHeight = windowHeight - contentTop;
// console.log('contentHeight: ', contentHeight);
that.setData({
contentHeight,
});
});
query.exec();
//头部tab显示
setTimeout(() => {
this.setData({
tabHeaderShow: true,
});
}, 200);
},
},
/**
* 组件的方法列表
*/
methods: {
setProType() {
let { tabActive } = this.data;
let typeItems = this.getAllTypePro(tabActive, "productList");
typeItems.unshift({
text: "全部",
type: "all",
});
this.setData({
items: typeItems,
});
},
//获取当前场景下的全部 产品分类
// getAllTypePro(3,'productList')
getAllTypePro(index, type) {
// console.log('senceData[index]',senceData[index])
let { senceData } = this.data;
//获取所有分类
let res = []; //[ { text: '美容类',type:xxx }, { text: '轻改类',type:xxx } ]
let list = senceData[index][type];
function someFn(element) {
return element.text == this.category;
}
if (list) {
list.forEach((item) => {
if (!res.some(someFn, item)) {
res.push({
text: item.category,
type: item.type,
});
}
});
}
// console.log('res',res)
return res;
},
// 获取全部活动列表
getActivityRecord() {
getActivityRecordApi({}).then(({data, code, message}) => {
if (code == -1) {
wx.showToast({
title: message,
icon: "none",
duration: 2000,
});
}
this.setData({
activityList: data
})
})
},
// 跳转活动页
activityClick(e) {
// const {hasPhoneNumber} = this.data
const id = e.detail
console.log(e)
wx.$router.go('/packagesList/activityDetail/activityDetail', {id})
},
// 开通
openPro() {
let obj = {
scene:3
}
wx.$router.go("/packagesList/applyProd/pages/apply",obj);
},
onClickHide(e) {
let {type} = e.target.dataset
if(type == 'close'){
this.setData({ overlayShow: false });
}
},
//视频 海报切换
onclickVideoTab(event) {
// console.log('event: ', event);
let videoActive = +event.currentTarget.dataset.num;
// console.log("videoActive: ", videoActive);
this.setData({
videoActive,
});
},
onClickNav({ detail = {} }) {
this.setData({
mainActiveIndex: detail.index || 0,
});
},
// 头部tab回调
onTabChange(event) {
// console.log("event: ", event);
let index = event.detail.index;
this.setData({
tabActive: index,
});
},
checkImgProd() {
let { tabActive } = this.data;
let userInfo = wx.$storage.get("userInfo");
let obj = {
actNum: tabActive, //选中的场景
activeNavIdx: 0, //选中的产品
phone: userInfo.phone,
};
wx.$router.go("/pages/viewProdBanner/index", obj);
},
checkProd(e) {
let { tabActive } = this.data;
//登录的用户手机号
let userInfo = wx.$storage.get("userInfo");
// let item = e.currentTarget.dataset.item
let index = e.currentTarget.dataset.index;
let obj = {
actNum: tabActive, //选中的场景
activeNavIdx: index, //选中的产品
phone: userInfo.phone,
};
wx.$router.go("/pages/viewProd/index", obj);
},
// 查看海报 视频
checkVideo(e) {
// console.log('e: ', e);
let { tabActive } = this.data;
// let item = e.currentTarget.dataset.item
let index = e.currentTarget.dataset.index;
// this.setData({
// checkVideoItem:item
// })
let obj = {
tabActive,
videoIndex: index,
};
wx.$router.go("/pages/viewVideo/index", obj);
},
checkPoster(e) {
// console.log('e: ', e);
let item = e.currentTarget.dataset.item;
this.setData({
checkPosterItem: item,
overlayShow: true,
});
},
// 选车场景切换
selectCar(e) {
// console.log('e: ', e)
let { num } = e.currentTarget.dataset;
this.triggerEvent("selectCar", num);
},
refresherrefreshFn() {
this.triggerEvent("refresherrefresh");
setTimeout(() => {
this.setData({
refresherFlag: false,
});
}, 1000);
},
},
});
{
"component": true,
"usingComponents": {
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index",
"van-notice-bar": "@vant/weapp/notice-bar/index",
"van-tree-select": "@vant/weapp/tree-select/index",
"video-item":"../video-item/index",
"poster-item":"../poster-item/index",
"van-overlay": "@vant/weapp/overlay/index",
"activity-swiper": "glsx-applet-component/activity-swiper/index"
},
"styleIsolation": "shared"
}
\ No newline at end of file \ No newline at end of file
// /* pages/tab/index/components/indexProduct/indexProduct.wxss */
// .content-scroll{
// height: 100vh;
// // height: calc(100% - 80rpx);
// }
// .content-product {
// .scene {
// // margin-top: 32rpx;
// // margin-left: 20rpx;
// // margin-right: 20rpx;
// // margin-bottom: 10rpx;
// margin: 32rpx 32rpx 0;
// .scene-wrap {
// display: flex;
// }
// .item-wrap {
// margin-right: 16rpx;
// margin-bottom: 40rpx;
// position: relative;
// width: 172rpx;
// height: 180rpx;
// border-radius: 8rpx;
// border: 1px solid #f7f8fc;
// box-sizing: border-box;
// }
// .item {
// position: relative;
// // padding-top: 10px;
// width: 172rpx;
// height: 180rpx;
// background: #f7f8fc;
// border-radius: 8rpx;
// box-sizing: border-box;
// // border: 1px solid #f7f8fc;
// }
// .open-img {
// position: absolute;
// top: 0;
// right: 0;
// width: 78rpx;
// height: 78rpx;
// box-sizing: border-box;
// }
// .act {
// // background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
// // background-size: 100% 100%;
// border: 1px solid var(--btnColor);
// // box-shadow: 0 2rpx 4rpx 0 rgba(180, 186, 204, 0.4);
// background-image: linear-gradient(145deg, #f0f7ff 0%, #ffffff 73%);
// box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32),
// 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.4);
// &::after {
// position: absolute;
// left: 50%;
// bottom: -7px;
// display: block;
// content: "";
// width: 6px;
// height: 6px;
// border-bottom: 1px solid var(--btnColor);
// border-right: 1px solid var(--btnColor);
// transform: rotate(45deg) translateX(-50%);
// background-color: #fff;
// }
// // .open-img{
// // display: none;
// // }
// .item {
// background: transparent;
// }
// }
// .img {
// padding-top: 10px;
// display: block;
// margin: 0 auto 2px;
// width: 28px;
// height: 28px;
// }
// .name {
// margin-bottom: 2px;
// font-weight: 500;
// font-size: 12px;
// color: #323436;
// text-align: center;
// }
// .msg {
// font-weight: 500;
// font-size: 18rpx;
// color: #323436;
// text-align: center;
// }
// }
// }
.page-pro {
.pro-head {
.pro-head-hidden{
visibility: hidden;
}
.van-tabs__line {
width: 40rpx !important;
height: 8rpx;
background: #3666fe;
border-radius: 4rpx;
}
.van-ellipsis {
flex-basis: auto !important;
overflow: visible;
text-overflow: auto;
}
.van-tab--active {
.van-ellipsis {
font-weight: 600;
font-size: 36rpx;
color: #323436;
overflow: visible;
text-overflow: auto;
}
}
.pro-banner {
display: block;
margin: 8rpx auto 20rpx;
width: 710rpx;
height: 254rpx;
border-radius: 20rpx;
}
}
.dy-notice {
margin-left: 20rpx;
margin-right: 20rpx;
margin-bottom: 40rpx;
padding: 0;
color: #8a8c90;
font-size: 24rpx;
background: #f2f3f7;
border-radius: 22rpx;
height: 44rpx;
}
.pro-cont {
position: relative;
.van-tree-select__nav {
width: 116rpx;
flex: 0;
}
.van-sidebar-item {
position: relative;
padding: 0;
width: 116rpx;
height: 88rpx;
line-height: 88rpx;
text-align: center;
border-left: 0;
}
.van-sidebar-item__text{
font-size: 22rpx;
color: #5A6066;
}
.van-sidebar-item--selected::before {
position: absolute;
top: 50%;
left: 0;
width: 6rpx;
height: 40rpx;
border-radius: 0 4rpx 4rpx 0;
background-color: #3666fe;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
content: "";
}
.van-sidebar-item--selected {
.van-sidebar-item__text{
font-weight: 500;
color: #2D2D33;
}
}
.tab-cont {
padding-left: 32rpx;
padding-right: 32rpx;
box-sizing: border-box;
}
.tab-pro {
.title {
margin-bottom: 16rpx;
font-weight: 500;
font-size: 28rpx;
color: #323436;
}
.list {
}
.pro {
margin-right: 14rpx;
margin-bottom: 20rpx;
display: inline-block;
width: 176rpx;
height: 172rpx;
background: #ffffff;
border: 2rpx solid #ffffff;
box-shadow: 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.32);
border-radius: 8rpx;
&:nth-child(3n+3){
margin-right: 0;
}
.pro-img {
margin: 0 auto;
width: 176rpx;
height: 120rpx;
}
.pro-name {
// text-align: center;
text-indent: 6rpx;
height: 52rpx;
line-height: 52rpx;
font-size: 24rpx;
color: #323436;
overflow: hidden;//溢出隐藏
white-space: nowrap;//禁止换行
text-overflow: ellipsis;//...
}
}
}
.tab-video {
.tab-video-wrap {
display: flex;
margin-bottom: 16rpx;
margin-top: 12rpx;
.video {
margin-right: 40rpx;
font-size: 28rpx;
color: #8a8c90;
}
.act {
font-weight: 500;
color: #323436;
}
}
.video-cont {
// display:flex;
// flex-wrap: wrap;
// .video-item{
// &:nth-child(even){
// margin-right:0;
// }
// }
.even-class{
margin-right:0;
}
.empty {
width: 512rpx;
height: 512rpx;
}
}
.poster-cont {
// display:flex;
// flex-wrap: wrap;
.even-class{
margin-right:0;
}
.empty {
width: 512rpx;
height: 512rpx;
}
}
}
.expand-business{
position: absolute;
// top: calc(88rpx * 2);
left: 0;
.prod{
width: 116rpx;
height: 88rpx;
line-height: 88rpx;
font-size: 22rpx;
color: #8A8C90;
text-align: center;
}
}
}
}
//图片预览
.overlay-wrap{
position: absolute;
top: 52%;
left: 50%;
transform: translate(-50%, -50%);
width: 558rpx;
height: 944rpx;
background: #FFFFFF;
border-radius: 16rpx 16rpx 0 0;
.overlay-img{
display: block;
margin: 32rpx;
width: 494rpx;
height: 880rpx;
}
.overlay-msg{
display:flex;
justify-content:center;
align-items: center;
height: 90rpx;
background: #F7F8FA;
border-radius: 0 0 12rpx 12rpx;
.hand{
margin-right: 12rpx;
width: 40rpx;
height: 40rpx;
}
.forward{
font-weight: 500;
font-size: 32rpx;
color: #3666FE;
}
}
.img-close{
position: absolute;
top: -92rpx;
right: 0;
width: 56rpx;
height: 56rpx;
}
}
<view class="page-wrapper page-pro">
<view class="pro-head">
<van-tabs active="{{ tabActive }}" class="{{tabHeaderShow?'':'pro-head-hidden'}}" bind:change="onTabChange">
<van-tab wx:for="{{senceData}}" wx:key="index" title="{{item.tabname}}">
<image class="pro-banner" src="{{item.banner}}?v={{img_version}}" bindtap="checkImgProd" />
</van-tab>
</van-tabs>
</view>
<view>
<!-- <van-notice-bar custom-class="dy-notice" left-icon="{{IMG_URL}}index/ad.png" speed="{{20}}" text="{{scrollText}}" /> -->
<!-- 滚动条 -->
<activity-swiper activityList="{{activityList}}" bindactivityClick="activityClick"></activity-swiper>
</view>
<view class="pro-cont" id="pro-cont">
<van-tree-select items="{{ items }}" height="{{contentHeight}}" main-active-index="{{ mainActiveIndex }}" bind:click-nav="onClickNav">
<view class="tab-cont" slot="content">
<!-- 产品 -->
<view class="tab-pro">
<view class="title">特色产品</view>
<view class="list">
<view class="pro" wx:for="{{prodList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" bindtap="checkProd">
<image class="pro-img" src="{{item.prodImg}}?v={{img_version}}" />
<view class="pro-name">{{item.productName}}</view>
</view>
</view>
</view>
<!-- 视频 海报 -->
<view class="tab-video">
<view class="tab-video-wrap">
<view class="video {{videoActive == 0?'act':''}}" data-num="0" bindtap="onclickVideoTab">
案例视频
</view>
<view class="video {{videoActive == 1?'act':''}}" data-num="1" bindtap="onclickVideoTab">
营销海报
</view>
</view>
<view class="video-cont" wx:if="{{videoActive == 0}}">
<video-item wx:for="{{prodVideoList}}" wx:key="index" even-class="{{index%2?'even-class':''}}" item="{{item}}" data-item="{{item}}" data-index="{{index}}" bindtap="checkVideo"></video-item>
<!-- 无 -->
<image wx:if="{{prodVideoList.length == 0}}" class="empty" src="{{IMG_URL}}index/no-video.png?v={{img_version}}" />
</view>
<view class="poster-cont" wx:else>
<poster-item wx:for="{{prodPosterList}}" wx:key="index" even-class="{{index%2?'even-class':''}}" item="{{item}}" data-item="{{item}}" bindtap="checkPoster"></poster-item>
<!-- <poster-item even-class="even-class"></poster-item>
<poster-item></poster-item> -->
<!-- 无 -->
<image wx:if="{{prodPosterList.length == 0}}" class="empty" src="{{IMG_URL}}index/no-video.png?v={{img_version}}" />
</view>
</view>
</view>
</van-tree-select>
<!-- +产品 +业务 -->
<view class="expand-business" style="top:{{88 * items.length}}rpx" >
<!-- <view class="bus-pro" bindtap="openBus">
+业务
</view> -->
<view class="prod" bindtap="openPro" wx:if="{{tabActive == 3}}">
+产品
</view>
</view>
</view>
</view>
<!-- 图片预览弹窗 -->
<van-overlay show="{{ overlayShow }}" z-index="100" data-type="close" bindtap="onClickHide">
<view class="overlay-wrap">
<image class="overlay-img" webp show-menu-by-longpress src="{{checkPosterItem.src}}?v={{img_version}}" />
<view class="overlay-msg">
<image class="hand" src="{{IMG_URL}}index/hand.png?v={{img_version}}"/>
<view class="forward">长按图片转发</view>
</view>
<image class="img-close" data-type="close" bindtap="onClickHide" src="{{IMG_URL}}index/img-close.png?v={{img_version}}"/>
</view>
</van-overlay>
// pages/tab/index/components/likeToast/likeToast.js
import { IMG_URL } from "~/utils/constantData.js";
// `${IMG_URL}index/car2.png`,
//本地图片路径
let IMG_URLLocal = "../../../../../images/";
Component({
data: {
IMG_URL,
IMG_URLLocal,
type: "fail",
title: "你还没有勾选呢!",
isShow: false,
animationData: "",
},
methods: {
showToast: function (data) {
const self = this;
if (this._showTimer) {
clearTimeout(this._showTimer);
}
if (this._animationTimer) {
clearTimeout(this._animationTimer);
}
// display需要先设置为block之后,才能执行动画
this.setData({
title: data.title,
type: data.type,
isShow: true,
});
this._animationTimer = setTimeout(() => {
const animation = wx.createAnimation({
duration: 500,
timingFunction: "ease",
delay: 0,
});
animation.opacity(1).step();
self.setData({
animationData: animation.export(),
});
}, 50);
this._showTimer = setTimeout(function () {
self.hideToast();
if (data.compelete && typeof data.compelete === "function") {
data.compelete();
}
}, 1200 || 50 + data.duration);
},
hideToast: function () {
if (this._hideTimer) {
clearTimeout(this._hideTimer);
}
let animation = wx.createAnimation({
duration: 200,
timingFunction: "ease",
delay: 0,
});
animation.opacity(0).step();
this.setData({
animationData: animation.export(),
});
this._hideTimer = setTimeout(() => {
this.setData({
isShow: false,
});
}, 250);
},
},
});
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* pages/tab/index/components/likeToast/likeToast.wxss */
.toast-box {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 11;
display: none;
opacity: 0;
}
.show {
display: block;
opacity: 1;
}
.toast-content {
display: flex;
flex-direction: column;
justify-content:center;
align-items:center;
position: absolute;
left: 50%;
top: 50%;
width: 136px;
height: 136px;
background: rgba(0,0,0,0.70);
border-radius: 8px;
box-sizing: bordre-box;
transform: translate(-50%, -50%);
}
.toast-img {
margin-bottom: 20px;
box-sizing: bordre-box;
text-align: center;
}
.toast-icon {
width: 23px;
height: 23px;
}
.toast-title {
margin-left: 28px;
margin-right: 28px;
font-size: 14px;
color: #ffffff;
text-align: center;
}
<!--pages/tab/index/components/likeToast/likeToast.wxml-->
<view class="toast-box {{isShow? 'show':''}}" animation="{{animationData}}">
<view class="toast-content" >
<view class="toast-img">
<block wx:if="{{type==='success'}}">
<image class="toast-icon" src="{{IMG_URL}}index/like.png"/>
</block>
<block wx:if="{{type==='fail'}}">
<image class="toast-icon" src="{{IMG_URL}}index/dislike.png" />
</block>
</view>
<view class="toast-title">{{title}}</view>
</view>
</view>
{
"component": true,
"usingComponents": {
"tab": "../../../../../components/Tab/Tab"
}
}
\ No newline at end of file \ No newline at end of file
// 特色产品
.prod-wrap {
background-color: #f8fafb;
border-radius: 20rpx 20rpx 0 0;
}
.prod-wrap .big-title {
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 32rpx;
color: #323436;
padding: 32rpx 32rpx 0;
display: flex;
align-items: center;
justify-content: space-between;
.phone {
font-weight: 400;
font-size: 24rpx;
color: #6C6C6C;
display: flex;
align-items: center;
.icon {
width: 40rpx;
height: 40rpx;
margin-right: 6rpx;
}
}
}
.prod-wrap .nav-wrap {
white-space: nowrap;
box-sizing: border-box;
margin-top: 28rpx;
margin-bottom: 16rpx;
padding-left: 32rpx;
padding-right: 32rpx;
}
.prod-wrap .nav-wrap .nav {
display: inline-block;
height: 64rpx;
border-radius: 4rpx;
font-size: 24rpx;
letter-spacing: 0;
text-align: center;
font-family: PingFangSC-Regular;
line-height: 64rpx;
margin-right: 16rpx;
background: #ffffff;
border: 2rpx solid #DDE3F0;
color: #323436;
padding: 0 16rpx;
}
.prod-wrap .nav-wrap .active-nav {
color: #ffffff;
font-weight: 500;
// background-image: linear-gradient(0deg, #EBEFFF 8%, #FCFDFF 85%);
background-color: var(--btnColor);
border: 0rpx solid;
// border: 2rpx solid rgba(68,97,240,0.50);
// box-shadow: 0 8rpx 16rpx 0 rgba(175,187,219,0.35);
}
.prod-wrap .nav-wrap .nav:last-child {
margin-right: 0;
}
.prod-item {
padding: 0 32rpx 32rpx;
margin: 16rpx auto 0;
background-color: #f5f7fb;
border-radius: 48rpx 48rpx 0 0;
}
.prod-card {
display: flex;
height: 208rpx;
background-image: linear-gradient(1deg, #ffffff 10%, #fdfcff 100%);
border: 2rpx solid #ffffff;
box-shadow: 0 8rpx 20rpx 0 rgba(197, 205, 235, 0.35);
border-radius: 8rpx;
padding: 20rpx 24rpx;
box-sizing: border-box;
position: relative;
}
.prod-card .card-img {
width: 160rpx;
height: 160rpx;
flex-shrink: 0;
border-radius: 4rpx;
}
.img-desc {
position: absolute;
width: 104rpx;
height: 40rpx;
line-height: 40rpx;
background: #d7f5eb;
border-radius: 4rpx;
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 24rpx;
color: #24b38c;
letter-spacing: 0;
text-align: center;
}
.prod-info {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 12rpx 0;
margin-left: 24rpx;
}
.prod-info>text {
display: block;
white-space: nowrap;
height: 40rpx;
line-height: 40rpx;
}
.prod-info .title {
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 28rpx;
color: #323436;
}
.prod-info .sale,
.prod-info .earnings {
font-size: 26rpx;
color: #7a8299;
}
.prod-info .sale-num {
font-size: 26rpx;
color: #323436;
}
.prod-info .earnings-num {
font-size: 28rpx;
// font-family: DINAlternate-Bold;
// font-weight: Bold;
color: #f35251;
}
.share-btn {
height: 56rpx;
line-height: 56rpx;
width: 124rpx;
background: #3666FE;
border-radius: 28rpx;
font-family: PingFangSC-Regular;
font-size: 24rpx;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
right: 24rpx;
top: 50%;
transform: translateY(-50%);
}
.share-btn .icon {
width: 32rpx;
height: 32rpx;
margin-right: 2rpx;
}
.project-wrap {
background-color: #f5f7fb;
}
.project-img {
overflow: auto;
// height: 1600rpx;
// white-space: nowrap;
.img-item {
position: relative;
}
.more-btn {
position: absolute;
left: 50%;
bottom: 50px;
transform: translateX(-50%);
width: 311px;
height: 48px;
background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/btn.png");
background-size: 100% 100%;
font-weight: 500;
font-size: 16px;
color: #ffffff;
text-align: center;
line-height: 64rpx;
}
}
.stickyTab {
position: sticky;
z-index: 2;
background-color: #f5f7fb;
}
.stickyTab-fixed {
position: fixed;
left: 0;
top: 352rpx;
}
// .out-tab{
// .out-text {
// // color: red !important;
// }
// .out-text{
// color:red;
// }
// .out-line{
// }
// }
// 流程图一
.img-item11 {
width: 100%;
height: 1110rpx;
}
.img-item12 {
width: 100%;
height: 1290rpx;
}
.img-item13 {
width: 100%;
height: 596rpx;
}
.img-item14 {
width: 100%;
height: 744rpx;
}
.img-item15 {
width: 100%;
height: 490rpx;
}
.img-item16 {
width: 100%;
height: 1532rpx;
}
// 流程图二
.img-item21 {
width: 100%;
height: 2168rpx;
}
.img-item22 {
width: 100%;
height: 1290rpx;
}
.img-item23 {
width: 100%;
height: 596rpx;
}
.img-item24 {
width: 100%;
height: 830rpx;
}
.img-item25 {
width: 100%;
height: 490rpx;
}
.img-item26 {
height: 752rpx;
.video-item {
width: 100%;
video {
border-radius: 16rpx;
height: 348rpx;
}
}
}
// 流程图三
.img-item31 {
width: 100%;
height: 1110rpx;
}
.img-item32 {
width: 100%;
height: 1290rpx;
}
.img-item33 {
width: 100%;
height: 596rpx;
}
.img-item34 {
width: 100%;
height: 984rpx;
}
.img-item35 {
width: 100%;
height: 490rpx;
}
// .img-item26 {
// width: 100%;
// height: 752rpx;
// }
// 流程图四
.img-item41 {
width: 100%;
height: 678rpx;
}
.img-item42 {
width: 100%;
height: 1266rpx;
}
.img-item43 {
width: 100%;
height: 1398rpx;
}
.img-item44 {
width: 100%;
height: 830rpx;
}
.img-item45 {
width: 100%;
height: 490rpx;
}
.img-item46 {
width: 100%;
height: 1666rpx;
}
// 流程图5
.img-item51 {
width: 100%;
height: 814rpx;
}
.img-item52 {
width: 100%;
height: 998rpx;
}
.img-item53 {
width: 100%;
height: 596rpx;
}
.img-item54 {
width: 100%;
height: 984rpx;
}
.img-item55 {
width: 100%;
height: 490rpx;
}
/* 案例视频 */
.video-bg {
width: 100%;
position: absolute;
top: 280rpx;
}
.video-title {
position: relative;
padding: 96rpx 0 24rpx;
text-align: center;
font-size: 48rpx;
font-weight: 900;
color: #FFFFFF;
letter-spacing: 0;
line-height: 64rpx;
}
.video-title::after {
content: '';
display: block;
width: 48rpx;
height: 4rpx;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
background-color: #ffffff;
}
.video-list {
display: flex;
flex-wrap: wrap;
padding: 0rpx 32rpx;
font-size: 0;
}
.check-prod .img-item {
&:last-child {
margin-bottom: 148rpx;
}
}
.video-item {
position: relative;
width: calc(50% - 12rpx);
margin-bottom: 32rpx;
}
.video-item .video-card {
width: 100%;
height: 590rpx;
}
.video-item video {
width: 100%;
height: 590rpx;
// border: 1rpx dashed #AFB0B2;
}
.video-item .download {
position: absolute;
top: 0;
right: 0;
width: 48rpx;
height: 48rpx;
background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/down-video.png");
background-repeat: no-repeat;
// font-size: 26rpx;
// color: #666;
z-index: 1;
}
.video-item:nth-child(even) {
margin-left: 22rpx;
}
.video-text {
margin-top: 16rpx;
font-size: 24rpx;
font-weight: 500;
font-size: 24rpx;
color: #343456;
}
.video-tips {
width: 100%;
text-align: center;
font-size: 28rpx;
color: rgba(255, 255, 255, .6);
padding: 16rpx 0 92rpx;
}
\ No newline at end of file \ No newline at end of file
<!-- pages/tab/discovery/components/product/product.wxml -->
<view class="prod-wrap">
<view class="big-title">
特色产品
<block wx:if="{{phone}}">
<view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
<!-- <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> -->
<image webp src="{{IMGURL}}phone.png?v={{img_version}}" class="icon"></image>
请联系我
<view style="color:#3666fe">
{{phone}}
</view>
</view>
</block>
</view>
<scroll-view class="nav-wrap" scroll-x="{{true}}" wx:if="{{!isShare && origin =='home'}}">
<block wx:for="{{navList}}" wx:key="index">
<text class='nav {{activeNavIdx==index ? "active-nav": ""}}' bindtap="changeNav" data-index="{{index}}">{{item}}</text>
</block>
</scroll-view>
<view class="prod-item">
<view class="prod-card">
<view class="card-img">
<!-- <text class="img-desc">轻改类</text>
<image src="{{IMGURL}}discovery_prod1.png?v={{img_version}}" /> -->
<image webp src="{{IMGURL}}prod/{{senceData[actNum].productList[activeNavIdx].img}}.png?v={{img_version}}" />
</view>
<view class="prod-info">
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<!-- senceData[actNum]['productList'][activeNavIdx].changeSale || -->
<text class="sale" wx:if="{{ actNum!=4}}" decode="{{true}}">{{senceData[actNum]['productList'][activeNavIdx].varType == 1 ? '三年售后存量数':'新车销量'}}&nbsp;<text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].varType == 1? senceData[actNum]['productList'][activeNavIdx].flow : senceData[actNum]['productList'][activeNavIdx].sale}}</text>
</text>
<text class="earnings" wx:if="{{ actNum!=4}}" decode="{{true}}">预估收益&nbsp;<text class="earnings-num font-number">¥{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
</text>
</view>
<view class="share-btn" wx:if="{{!isShare && origin =='home' && actNum!=4}}" bindtap="onShareFn">
<image webp class="icon" src="{{IMGURL}}share.png?v={{img_version}}" />
<text>去分享</text>
</view>
</view>
</view>
</view>
<view class="project-wrap {{isShow ?'check-prod':''}}">
<!-- stickyTop+88 -->
<!-- style="top:{{isShare ? stickyTop : stickyTop}}rpx" -->
<view class="stickyTab" style="top:{{isShare ? stickyTop : stickyTop}}rpx" >
<tab outClassName="project-tab" openScroll="{{true}}" tab="{{tab}}" index="{{curTabIdx}}" bindclick="changeTab" productHeight />
</view>
<!-- wx:if="{{navFixed}}" -->
<!-- <view class="stickyTab stickyTab-fixed">
<tab outClassName="project-tab" openScroll="{{true}}" tab="{{tab}}" index="{{curTabIdx}}" bindclick="changeTab" productHeight />
</view> -->
<!-- style="{height:{{allHeight}}px}" scroll-y="{{true}}" bindscroll="scrolltoupper"-->
<!-- <scroll-view class="project-img" scroll-into-view="{{intoViewId}}"> -->
<view class="project-img" hover-class="none" hover-stop-propagation="false">
<block wx:for="{{tab}}" wx:key="index">
<!-- wx:if="{{showVideo && index==5 && tab.length < 5}}" -->
<view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}" wx:if="{{index != 5}}">
<!-- wx:if="{{index!=5}}" -->
<image webp class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png?v={{img_version}}" />
<view class="video-bg" wx:if="{{!isShare && index==5 && senceData[actNum].videoList.length}}">
<view class="video-list">
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
<view class="video-item">
<video poster="{{videoBaseUrl}}video/{{item.posterUrl}}.png?v={{img_version}}" title="{{item.name}}" src="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}" />
<view class="video-text">{{item.name}}</view>
</view>
</block>
<!-- <view class="video-tips">- 如需开通请咨询客服 -</view> -->
</view>
</view>
<!-- wx:if="{{ actNum != 2 && index == 4}}" -->
<!-- wx:if="{{isShare && actNum != 2 && index == 4}}" -->
<!-- wx:if="{{ isShare && actNum != 2 && index == 4}}" -->
<button wx:if="{{ isShare && isAuthphone && !getMoreBtn && index == 4}}" class="more-btn" data-index="{{index}}" bindgetphonenumber="getUserInfo" open-type="getPhoneNumber">
点击查看更多详情
</button>
</view>
<view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}" wx:if="{{index == 5 && outshowVideo}}">
<!-- wx:if="{{index!=5}}" -->
<image webp class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png?v={{img_version}}" />
<view class="video-bg" wx:if="{{!isShare && index==5 && senceData[actNum].videoList.length}}">
<view class="video-list">
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
<view class="video-item">
<view class="download" bindtap="downVideo" data-url="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}">视频下载</view>
<video poster="{{videoBaseUrl}}video/{{item.posterUrl}}.png?v={{img_version}}" title="{{item.name}}" src="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}" />
<!-- <image class="video-card" webp bindtap="getVideoUrl" data-title="{{item.name}}" data-src="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}" src="{{videoBaseUrl}}video/{{item.posterUrl}}.png?v={{img_version}}"></image> -->
<view class="video-text">{{item.name}}</view>
</view>
</block>
</view>
</view>
</view>
</block>
</view>
<!-- </scroll-view> -->
</view>
\ No newline at end of file \ No newline at end of file
// 1.视频默认进来是true,显示,
// 2.扫码,分享链接进来,不显示
// 3.点击更多详情,隐藏更多按钮,显示视频
// 4.视频的位置最后一个 下标5
// var showVideo = function(index){
// if(index == 5){
// a
// }
// };
// module.exports = {
// showVideo:showVideo
// }
// pages/tab/index/components/shareModel/shareModel.js
import { IMG_URL } from "~/utils/constantData.js";
import Draw from "~/utils/Draw.js";
Component({
/**
* 组件的属性列表
*/
properties: {
actNum: Number, //场景选择
isShow: Boolean,
// //分享方法
// onShareAppMessage:Function,
// onShareTimeline:Function,
},
/**
* 组件的初始数据
*/
data: {
IMG_URL: `${IMG_URL}index`,
btnList: [
{
src: `${IMG_URL}index/wechat.png`,
name: "微信转发",
},
// {
// src: `${IMG_URL}index/moments.png`,
// name: "朋友圈分享",
// },
{
src: `${IMG_URL}index/down.png`,
name: "下载为海报",
},
],
// 4种场景下图片所有的高 (单位 rpx)
imgHeightArr: [
[1110, 1290, 596, 744, 490, 1532],
[2168, 1290, 596, 830, 490, 752],
[1110, 1290, 596, 984, 490],
[678, 1266, 1398, 830, 490, 1666],
],
posterUrl: "", //海报url
noVideoimgList:[]
// imgList:[
// {
// src:`${IMG_URL}index/scene${actNum}1.png`,
// },
// ]
},
observers: {
actNum: function (actNum) {
let imgList = [
`${IMG_URL}index/scene${actNum + 1}1.png`,
`${IMG_URL}index/scene${actNum + 1}2.png`,
`${IMG_URL}index/scene${actNum + 1}3.png`,
`${IMG_URL}index/scene${actNum + 1}4.png`,
`${IMG_URL}index/scene${actNum + 1}5.png`,
];
this.setData({
noVideoimgList:imgList
});
if (actNum != 2) {
imgList.push(`${IMG_URL}index/scene${actNum + 1}6.png`);
}
this.setData({
imgList,
});
},
},
/**
* 组件的方法列表
*/
methods: {
// 分享按钮
handleClick(e) {
let { index } = e.currentTarget.dataset;
switch (index) {
case 0:
this.wechatFn();
break;
case 1:
this.download();
break;
}
},
// 微信转发
wechatFn() {
// this.data.onShareAppMessage()
this.modelClose();
},
// 下载海报
async download() {
let { actNum, imgHeightArr } = this.data;
//所有的长度
let imgAllHeight = imgHeightArr[actNum].reduce((total, current) => {
return total + current;
});
// 缺少视频的长度(前4张)+二维码的长度 (单位rpx)
let erCodeHeight =
imgHeightArr[actNum].slice(0, 4).reduce((total, current) => {
return total + current;
}) +
98 * 2;
// console.log("imgAllHeight: ", imgAllHeight);
let drawFun = new Draw({
width: 750,
height: imgAllHeight,
});
let imgList = [
{
x: 0,
y: 0,
width: 750,
height: imgAllHeight,
url: `https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/longpic${
actNum + 1
}.png`,
},
{
x: 245*2,
y: erCodeHeight-11,
width: 120*2,
height: 120*2,
url: `https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/discovery_prod1.png`, //二维码
},
];
let posterUrl = await drawFun.begin({
imageList: imgList,
});
this.setData({
posterUrl: posterUrl.path,
});
console.log('posterUrl.path',posterUrl.path)
if(this.data.posterUrl){
wx.pro.downloadFile({
url: this.data.posterUrl, //仅为示例,并非真实的资源
success (res) {
console.log('res: ', res);
}
})
}
this.modelClose();
},
//模态框关闭
modelClose() {
this.triggerEvent("modelclose", false);
},
// 图片加载事件
onloadFn(event) {
// console.log('event.detail',event.detail)
this.setData({
imgHeight: (event.detail.height * 0.2).toFixed(0),
});
},
},
});
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* pages/tab/index/components/shareModel/shareModel.wxss */
.share-wrap {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 1;
.img-wrap {
position: absolute;
top: 20%;
left: 50%;
transform: translateX(-50%);
// width: 225px;
width: 60%;
height: 311px;
// background-color: red;
overflow: auto;
.img {
width: 100%;
// height: auto;
// height: 60%;
background-color: #fff;
}
}
.btns {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 154px;
background: #ffffff;
border-radius: 8px 8px 0 0;
.top {
display: flex;
justify-content: space-around;
.btn {
padding-top: 16px;
}
.img {
display: block;
margin: 0 auto 8px;
width: 40px;
height: 40px;
}
.name {
font-size: 12px;
color: #323436;
text-align: center;
}
.btn-wechat{
width: auto;
margin: 0;
padding: 0;
background-color: #fff;
}
}
.btom {
margin: 18px auto 0;
width: 343px;
height: 44px;
line-height: 44px;
border: 1px solid #eeeeee;
border-radius: 4px;
text-align: center;
}
}
}
<!-- pages/tab/index/components/shareModel/shareModel.wxml -->
<view class="share-wrap" wx:if="{{isShow}}">
<view class="img-wrap">
<!-- <image class="img" style="height:{{imgHeight}}px" src="{{IMG_URL}}/longpic{{actNum+1}}.png" bindload="onloadFn" /> -->
<block wx:for="{{imgList}}" wx:key="*this">
<image mode="widthFix" class="img" src="{{item}}"/>
</block>
</view>
<button></button>
<view class="btns">
<view class="top">
<view class="btn" wx:for="{{btnList}}" wx:key="name" bindtap="handleClick" data-index="{{index}}">
<block wx:if="{{index == 0}}">
<button open-type="share" class="btn-wechat">
<image class="img" src="{{item.src}}" />
<view class="name">{{item.name}}</view>
</button>
</block>
<block wx:else>
<image class="img" src="{{item.src}}" />
<view class="name">{{item.name}}</view>
</block>
</view>
</view>
<view class="btom" bindtap="modelClose">取消</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
// pages/tab/index/components/video-item/index.js
import { IMG_URL } from '~/utils/constantData.js'
Component({
externalClasses: ['even-class'],
/**
* 组件的属性列表
*/
properties: {
item:Object
},
/**
* 组件的初始数据
*/
data: {
IMG_URL
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* pages/tab/index/components/video-item/index.wxss */
.video-item{
position: relative;
display: inline-block;
margin-right: 18rpx;
margin-bottom: 20rpx;
padding-bottom: 16rpx;
width: 276rpx;
// height: 316rpx;
background: #FFFFFF;
// border: 2rpx solid #FFFFFF;
box-shadow: 0 8rpx 20rpx 0 rgba(180,186,204,0.32);
border-radius: 12rpx;
overflow: hidden;
&:nth-child(even){
margin-right:0;
}
.play{
position: absolute;
top: 107rpx;
left: 19rpx;
width: 42rpx;
height: 42rpx;
}
.img{
width: 276rpx;
height: 168rpx;
}
.name{
margin-top: 12rpx;
margin-bottom: 12rpx;
margin-left:16rpx;
margin-right: 16rpx;
// height: 80rpx;
font-weight: 500;
font-size: 26rpx;
color: #323436;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
white-space: normal !important;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.detail{
display: flex;
margin-left:16rpx;
margin-right: 16rpx;
}
.avtor{
width: 32rpx;
height: 32rpx;
border-radius: 50%;
}
.location{
margin-left: 8rpx;
margin-right: 8rpx;
width: 132rpx;
overflow:hidden;
text-overflow: ellipsis;
font-size: 22rpx;
color: #5A6066;
}
.check{
width: 28rpx;
height: 28rpx;
}
.num{
font-size: 20rpx;
color: #5A6066;
}
}
<!-- pages/tab/index/components/video-item/index.wxml -->
<view class="video-item even-class">
<image class="play" src="{{IMG_URL}}index/poster/play.png?v={{img_version}}" />
<image class="img" src="{{item.posterUrl}}?v={{img_version}}" alt="" />
<!-- <image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" alt="" /> -->
<view class="name">{{item.name}}</view>
<view class="detail">
<image class="avtor" src="{{IMG_URL}}index/poster/avtor.png?v={{img_version}}" />
<view class="location">{{item.manufacturer}}</view>
<image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num">{{item.view}}</view>
</view>
</view>
<!-- <view class="video-item">
<image class="play" src="{{IMG_URL}}index/poster/play.png?v={{img_version}}" />
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" alt="" />
<view class="name">30秒告诉你数字无忧卡是什么</view>
<view class="detail">
<image class="avtor" src="{{IMG_URL}}index/poster/avtor.png?v={{img_version}}" />
<view class="location">嘀加智慧</view>
<image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num">12345</view>
</view>
</view>
<view class="video-item">
<image class="play" src="{{IMG_URL}}index/poster/play.png?v={{img_version}}" />
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" alt="" />
<view class="name">30秒告诉你数字无忧卡是什么</view>
<view class="detail">
<image class="avtor" src="{{IMG_URL}}index/poster/avtor.png?v={{img_version}}" />
<view class="location">嘀加智慧</view>
<image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num">12345</view>
</view>
</view> -->
\ No newline at end of file \ No newline at end of file
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
const videoBaseUrl = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/'
const subscriptionIMG_URL = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/subscription/'
const IMG_URL2 = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/'
const subscriptionBannerUrl = IMG_URL2 + 'banner/banner4.webp'
const productImgs0 = [`${IMG_URL}index/productImgs/product00.webp`, `${IMG_URL}index/productImgs/product01.webp`, `${IMG_URL}index/productImgs/product02.webp`, `${IMG_URL}index/productImgs/product03.webp`]
// 车损升级
const tabList = ['项目亮点', '合作案例', '合作方式']
const sceneImgs5 = [`${IMG_URL}index/productImgs/scene00.png`, `${IMG_URL}index/productImgs/scene01.png`, `${IMG_URL}index/productImgs/scene02.png`, `${IMG_URL}index/productImgs/scene03.png`]
const videoList0 = [
{
videoUrl: `${IMG_URL2}video/customer_auto.mp4`,
posterUrl: `${IMG_URL}index/poster/customer_auto.png`,
name: '门店企微福利官实现客户活跃自动化',
manufacturer: '嘀加智慧',
view: 1324
},
{
videoUrl: `${IMG_URL2}video/fix_insurance.mp4`,
posterUrl: `${IMG_URL}index/poster/fix_insurance.png`,
name: '定保数字化招揽,助力定保招揽返厂率提升10%',
manufacturer: '嘀加智慧云',
view: 1546
}
]
const videoList1 = [
{
videoUrl: `${IMG_URL2}video/car_rescue.mp4`,
posterUrl: `${IMG_URL}index/poster/car_rescue.png`,
name: '车主返厂维修利器--事故车救援订阅',
manufacturer: '嘀加智慧',
view: 1320
}
]
// 膨胀金
const sceneImgs4 = [`${IMG_URL}index/productImgs/product70.webp`, `${IMG_URL}index/productImgs/product71.webp`, `${IMG_URL}index/productImgs/product72.webp`, `${IMG_URL}index/productImgs/product73.webp`, `${IMG_URL}index/productImgs/product74.webp`, `${IMG_URL}index/productImgs/product75.webp`]
const productImgs4 = [`${IMG_URL}index/productImgs/product70.webp`, `${IMG_URL}index/productImgs/product71.webp`, `${IMG_URL}index/productImgs/product72.webp`, `${IMG_URL}index/productImgs/product73.webp`, `${IMG_URL}index/productImgs/product74.webp`, `${IMG_URL}index/productImgs/product75.webp`]
const videoList4 = [
{
videoUrl: `${videoBaseUrl}video/expansive.mp4`,
posterUrl: `${IMG_URL}index/poster/expansive_activity.png`,
name: '数字化营销增值服务-续保膨胀金',
manufacturer: '嘀加智慧',
view: 3298
}
]
const subscriptionSystemData = [
{
name: '客户线上化',
//场景详情图片
// sceneImgs: sceneImgs5,
// 产品详情图片
productImgs: productImgs0,
"sceneCode":"SC008",
sceneid: 0,
productList: [
{
id: 0,
sceneid: 0,
currentIndex: 0,
img: 'product-img1',
proName: '私域用户代运营',
price: '100',
profit: '1200000',
type: 'service',
productType: 'benefitCard',
path: 'equity',
sale: 100, //销量
varType: 0,
flow: 10000,
productCode: 'PC011',
productName: '私域用户代运营',
category: '代运营',
prodImg: `${IMG_URL2}/prod2/prod4-0.webp`,
sceneImgs: [
{
url: `${IMG_URL}index/productImgs/product46.webp`,
className: 'img-item46'
},
{
url: `${IMG_URL}index/productImgs/product47.webp`,
className: 'img-item47'
},
{
url: `${IMG_URL}index/productImgs/product48.webp`,
className: 'img-item48'
}
],
tabList
},
{
id: 1,
sceneid: 0,
currentIndex: 1,
img: 'product-img1',
proName: '定保数字化招揽',
price: '100',
profit: '1200000',
type: 'service',
productType: 'benefitCard',
path: 'equity',
sale: 100, //销量
varType: 0,
flow: 10000,
productCode: 'PC012',
productName: '定保数字化招揽',
category: '招揽',
prodImg: `${IMG_URL}index/prod2/prod4-1.webp`,
sceneImgs: [
{
url: `${IMG_URL}index/productImgs/product49.webp`,
className: 'img-item49'
},
{
url: `${IMG_URL}index/productImgs/product50.webp`,
className: 'img-item50'
},
{
url: `${IMG_URL}index/productImgs/product51.webp`,
className: 'img-item51'
}
],
tabList
}
],
videoList: videoList0
// posterList: posterList0
},
{
name: '客户活跃',
//场景详情图片
sceneImgs: sceneImgs5,
"sceneCode":"SC006",
sceneid: 1,
// 产品详情图片
productImgs: productImgs0,
productList: [
{
id: 2,
sceneid: 1,
currentIndex: 0,
img: 'product-img1',
proName: '事故车救援服务',
price: '100',
profit: '1200000',
type: 'service',
productType: 'benefitCard',
path: 'equity',
sale: 100, //销量
varType: 0,
flow: 10000,
productCode: 'PC001',
productName: '事故车救援服务',
category: '救援',
prodImg: `${IMG_URL}index/prod2/prod4-2.webp`,
sceneImgs: [
{
url: `${IMG_URL}index/productImgs/product52.webp`,
className: 'img-item52'
},
{
url: `${IMG_URL}index/productImgs/product53.webp`,
className: 'img-item53'
},
{
url: `${IMG_URL}index/productImgs/product54.webp`,
className: 'img-item54'
}
],
tabList
}
],
videoList: videoList1
// posterList: posterList0
},
{
name: '续保膨胀金',
"sceneCode":"SC005",
sceneid: 2,
//场景详情图片
sceneImgs: sceneImgs4,
// 产品详情图片
productImgs: productImgs4,
productList: [
{
id: 3,
sceneid: 2,
currentIndex: 0,
proName: '膨胀金',
price: '100',
profit: '180000',
type: 'service',
productType: 'protectMembrane',
path: 'paintProtect',
sale:100, //销量
varType: 0,
flow:10000,
productCode:'PC010',
productName:'膨胀金',
category:'服务类',
prodImg: `${IMG_URL}index/prod2/prod4-0.png`,
tabList: ['项目介绍', '活动方案', '销售场景', '合作案例', '合作说明', 'FAQ'],
sceneImgs: sceneImgs4
}
],
videoList: videoList4
// posterList: posterList0
},
{
name: '数字化转型案例',
"sceneCode":"SC007",
sceneid: 3,
productList: [],
videoList: videoList0.concat(videoList1).concat(videoList4)
}
]
module.exports = {
// systemData,
subscriptionBannerUrl,
subscriptionSystemData
}
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
// padding: 400rpx 16rpx 0; // padding: 400rpx 16rpx 0;
padding-top: 400rpx; padding-top: 176rpx;
font-size: 24rpx; font-size: 24rpx;
color: #8A8C90; color: #8A8C90;
......
<!-- pages/tab/output/output.wxml --> <!-- pages/tab/output/output.wxml -->
<navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady">我的</navigation-bar> <navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady">我的</navigation-bar>
<view class="layout" style="padding-top:{{tabBarStyle}}px;"> <view class="layout">
<view class="logout-panel" bindtap="logout"> <view class="logout-panel" bindtap="logout">
<text>退出登录</text> <text>退出登录</text>
......
...@@ -30,7 +30,7 @@ page { ...@@ -30,7 +30,7 @@ page {
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
// padding: 400rpx 16rpx 0; // padding: 400rpx 16rpx 0;
padding-top: 400rpx; padding-top: 170rpx;
font-size: 24rpx; font-size: 24rpx;
color: #8A8C90; color: #8A8C90;
......
<!-- pages/tab/output/output.wxml --> <!-- pages/tab/output/output.wxml -->
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady">我的</navigation-bar> <navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady">我的</navigation-bar>
<view class="layout" style="padding-top:{{tabBarStyle}}px;"> <view class="layout">
<view class="userInfoCon" bindtap="jumpLogout"> <view class="userInfoCon" bindtap="jumpLogout">
<glsx-image class="headPortrait" src="{{userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp> <glsx-image class="headPortrait" src="{{userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp>
头像 头像
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!