Commit 41aa1341 by 胡悦

提交

1 parent a52aa1db
......@@ -73,15 +73,15 @@ App({
merchant: res.merchantId,
cardId: res.cardId
})
const userInfo = wx.$storage.get('aicard_user_info')
if (!userInfo) {
// const userInfo = wx.$storage.get('aicard_user_info')
// if (!userInfo) {
_this.getUserInfo(openId, returnResponse).then(result => {
// wx.$Track.sendTrack(trackData.COMPANY, wechatInfo)
resolve(result)
})
} else {
resolve(userInfo)
}
// } else {
// resolve(userInfo)
// }
})
} else {
// 其他的分享进来的页面走这里,在进页面的onshow中需对wx.$trackData先赋值
......
<view class="fixBottom custom-class">
<view wx:if="{{type == 'home'}}" class="isFullSucreen home-btn">
<!-- <view class="isFullSucreen"> -->
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请1</button>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
<!-- </view> -->
</view>
......@@ -21,12 +21,12 @@
</button>
</block>
</view>
<view wx:if="{{type == 'scenario'}}" class="isFullSucreen video-btn">
<view wx:if="{{type == 'scenario'}}" class="isFullSucreen product_full">
<button class="forward-box forward_box" open-type="share">
<image class="icon-forward" webp src="{{IMGURL}}home/icon-forward.png"></image>
<view class="forward-text" bindtap="forward">转发</view>
</button>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请1</button>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
</view>
<view wx:if="{{type == 'video'}}" class="isFullSucreen video-btn">
......@@ -40,7 +40,7 @@
<view class="btn-text" bindtap="forward">转发</view>
</button>
</view>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请1</button>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
</view>
</view>
\ No newline at end of file
// packagesList/pages/productDetail/components/proDetail/proDetail.js
import { senceData, productData } from '~/pages/tab/index/constant/senceData'
import { senceData, productData1 } from '~/pages/tab/index/constant/senceData'
const norTabList = ['项目亮点', '合作案例', '合作方式', '适配产品']
Component({
externalClasses: ['custom-class'],
......@@ -29,6 +29,10 @@ Component({
activeUrl: {
type: String,
value: ''
},
detailType: {
type: String,
value: 'pro'
}
},
......@@ -37,7 +41,7 @@ Component({
*/
data: {
IMG_URL: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/',
productData,
productData: productData1,
proInfo: {},
prodItemVideo: '', //选中的场景下的video的第一个
tabAct: 0,
......@@ -55,8 +59,8 @@ Component({
//console.log(actNum)
//console.log(activeNavIdx)
const spcList = [99] // 订阅模块需要特殊处理
console.log(productData, 'productData')
const senceList = productData[actNum].filter(item => item.name != '全部')
console.log(productData1, 'productData')
const senceList = productData1[actNum].filter(item => item.name != '全部')
console.log(senceList)
for (let i = 0; i < senceList.length; i++) {
let item = senceList[i]
......
......@@ -85,6 +85,7 @@ page {
.img-item {
position: relative;
width: 100%;
}
.phone {
......@@ -280,6 +281,24 @@ page {
width: 100%;
height: 428rpx;
}
.img-item40 {
height: 1564rpx;
}
.img-item41 {
height: 1224rpx;
}
.img-item42 {
height: 1148rpx;
}
.img-item43 {
height: 3504rpx;
}
.img-item44 {
height: 2220rpx;
}
.img-item45 {
height: 1092rpx;
}
}
}
......
<!-- packagesList/pages/productDetail/components/proDetail/proDetail.wxml -->
<view class="view-prod custom-class">
<view class="pro-head">
<view class="select-card" bindtap="selectCard">
<view class="select-card" wx:if="{{detailType == 'pro'}}" bindtap="selectCard">
<glsx-image custom-class="icon-card" src="home/icon-card.png"></glsx-image>
<view>{{showCard ? '视频' : '名片'}}</view>
</view>
......@@ -15,7 +15,7 @@
<view class="num" wx:if="{{actNum != 2}}">{{prodItemVideo.view}}</view>
</view>
</block>
<user-info wx:if="{{showCard}}" class="card-info" cardInfo="{{cardInfo}}"></user-info>
<user-info wx:if="{{detailType == 'pro' && showCard}}" class="card-info" cardInfo="{{cardInfo}}"></user-info>
</view>
<view class="tab-wrap">
<van-tabs sticky bind:click="onClickTab" active="{{tabAct}}">
......@@ -32,8 +32,8 @@
<!-- && phone -->
<view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
<!-- <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> -->
<glsx-image webp src="index/phone.png" class="icon" />
请联系我
<!-- <glsx-image webp src="index/phone.png" class="icon" />
请联系我 -->
<view style="color:#3666fe">{{sharephone}}</view>
</view>
</block>
......
......@@ -14,17 +14,17 @@ Page({
// wx.$util.getMockConfig().then(({businessParams, businessappId}) => {
// console.log(businessParams, businessappId)
wx.navigateToMiniProgram({
appId: 'wx1cf40dc91c28a7fd',
appId: 'wxe10067a63c1856ac',
path: 'pages/crowdfunding/index/index',
extraData: {
id: this.data.activityInfo.id
},
envVersion: 'trial',
success(res) {
console.log(res, storeParams)
// 打开成功
}
})
// })
},
/**
......
<!--packagesList/pages/activityDetail/activityDetail.wxml-->
<view class="activity-detail">
<swiper class="swiper" autoplay circular="true" current="{{current}}" interval="5000">
<swiper-item class="swiper-item">
<video class="swiper-img" src="{{IMGURL}}video/solar.mp4?v={{img_version}}"></video>
<swiper-item class="swiper-item" wx:if="{{activityInfo.videoUrl}}">
<video class="swiper-img" src="{{activityInfo.videoUrl}}" poster="{{activityInfo.videoImage}}"></video>
</swiper-item>
<swiper-item class="swiper-item">
<image class="swiper-img" webp src="{{IMGURL}}video/solar_bitmap.png?v={{img_version}}"></image>
<swiper-item class="swiper-item" wx:for="{{activityInfo.imageUrlArr}}" wx:key="index">
<image class="swiper-img" webp src="{{item}}"></image>
</swiper-item>
</swiper>
<view class="activity-introduction">
......@@ -15,11 +15,11 @@
</view>
<view class="activity-title">活动举办方</view>
<view class="activity-info">
<view class="activity-item">
<view class="activity-item" wx:if="{{activityInfo.sponsorName}}">
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-company.png"></glsx-image>
<view class="text">{{activityInfo.sponsorName}}</view>
</view>
<view class="activity-item">
<view class="activity-item"wx:if="{{activityInfo.address}}">
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-address.png"></glsx-image>
<view class="text">{{activityInfo.address}}</view>
</view>
......
......@@ -46,6 +46,10 @@ Page({
[trackData.PAINTPROTECT, trackData.CHANGEFILM],
[trackData.CARBEAUTY, trackData.SEATVENTILATE, trackData.ARNAVIGATION, trackData.LIGHT, trackData.NAVIGATIONARROUND, trackData.LOSSPGASE],
[]
],
systemTrackList: [
[trackData.SYSUSER, trackData.SYSNUMBER],
[trackData.SYSCAR]
]
},
// 计算属性
......@@ -75,10 +79,10 @@ Page({
//接受跳转的路由参数(小程序页面跳转)
onRoute(options) {
// console.log( options);
console.log( options);
if (!options || utils.isEmptyObj(options)) return
let {
actNum = 0, activeNavIdx = 0, phone, hasPhoneNumber
actNum = 0, activeNavIdx = 0, phone, hasPhoneNumber, name, leftMenuIndex = 0
} = options
console.log(options)
this.setData({
......@@ -87,7 +91,12 @@ Page({
sharephone: phone, //联系电话 (登陆的用户)
hasPhoneNumber:hasPhoneNumber
})
wx.$Track.sendTrack(this.data.trackList[actNum][activeNavIdx])
if (name == '增值转化') {
wx.$Track.sendTrack(this.data.trackList[actNum][activeNavIdx])
} else if (name == '系统订阅') {
wx.$Track.sendTrack(this.data.systemTrackList[leftMenuIndex][activeNavIdx])
}
},
onPageScroll: (function () {
let timer = null;
......
<!--packagesList/pages/scenarioDetail/scenarioDetail.wxml-->
<pro-detail id="pro-detail" actNum="{{actNum}}" activeNavIdx="{{activeNavIdx}}" cardInfo="{{cardInfo}}"></pro-detail>
<pro-detail id="pro-detail" detailType="{{'scen'}}" actNum="{{actNum}}" activeNavIdx="{{activeNavIdx}}" cardInfo="{{cardInfo}}"></pro-detail>
<phone-number custom-class="pro_phone_number" type="scenario" hasPhoneNumber="{{hasPhoneNumber}}" bind:updatePhoneNumber="updatePhoneNumber"></phone-number>
......@@ -424,6 +424,33 @@ const scenario_3 = [
posterList: posterList3
}
]
// 膨胀金
const productImgs4 = [`${IMG_URL}index/productImgs/product40.webp`, `${IMG_URL}index/productImgs/product41.webp`, `${IMG_URL}index/productImgs/product42.webp`, `${IMG_URL}index/productImgs/product43.webp`, `${IMG_URL}index/productImgs/product44.webp`, `${IMG_URL}index/productImgs/product45.webp`]
const videoList4 = [
{
videoUrl: `${videoBaseUrl}video/solar.mp4`,
posterUrl: `${IMG_URL}index/poster/solar_bitmap.png`,
name: '太阳膜转化售中案例-门店新增产值12w每月',
manufacturer: '嘀加智慧',
view: 1178
}
]
const scenario_4 = [
{
name: '服务类',
productList: [
{
id: 0,
proName: '膨胀金',
prodImg: `${IMG_URL}index/prod2/prod4-0.png`
}
],
productImgs: productImgs4,
videoList: videoList4
}
]
const senceData = [
{
id: 0,
......@@ -452,7 +479,7 @@ const senceData = [
{
id: 4,
tabname: '膨胀金活动',
banner: `${IMG_URL}index/banner/banner4.png`
banner: `${IMG_URL}index/banner/banner6.png`
}
]
const productData = {
......@@ -460,10 +487,20 @@ const productData = {
1: scenario_1,
2: scenario_2,
3: scenario_3,
4: scenario_4,
// 99: subscriptionSystemData
}
const productData1 = {
0: scenario_0,
1: scenario_1,
2: scenario_2,
3: scenario_3,
4: scenario_4,
99: subscriptionSystemData
}
module.exports = {
senceData,
productData
productData,
productData1
}
......@@ -63,7 +63,8 @@ Page({
activityList: [],
subscriptionBannerUrl: Object.freeze(subscriptionBannerUrl),
subscriptionSystemData: Object.freeze(subscriptionSystemData),
showCooperate: false
showCooperate: false,
leftMenuIndex: 0 // 系统订阅左侧坐标
// bannerUrl:'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/banner/banner0.png'
},
......@@ -108,13 +109,19 @@ Page({
this.setData({
hasPhoneNumber: true
})
// entmicroApi.checkCooperate({
// phone: wx.$storage.get('aicard_user_info').phone
// }).then(res => {
// })
this.checkCooperate()
}
},
// 获取跳转门店助手、生意助手判断
checkCooperate() {
const {phone} = wx.$storage.get('aicard_user_info')
entmicroApi.checkCooperate({phone}).then(res => {
console.log(res)
this.setData({
showCooperate: res
})
})
},
// 合作申请
toApplication() {
console.log('合作申请')
......@@ -128,6 +135,8 @@ Page({
},
proClick(e) {
console.log(e)
const { name } = e.target.dataset
let { detail } = e
//登录的用户手机号
console.log(detail)
......@@ -135,11 +144,15 @@ Page({
// const { cardInfo } = this.data
let obj = {
// || 99
name,
actNum: isNaN(detail.scenIndex) ? 99 : detail.scenIndex, //选中的场景 没有就是订阅系统的
activeNavIdx: detail.id, //选中的产品,
// cardInfo,
hasPhoneNumber: this.data.hasPhoneNumber
}
if (name == '系统订阅') {
obj.menuIndex = this.data.leftMenuIndex
}
wx.$router.go('/packagesList/pages/productDetail/productDetail', obj)
},
// 跳转视频详情
......@@ -169,6 +182,7 @@ Page({
wx.$router.go('/packagesList/pages/activityDetail/activityDetail', { hasPhoneNumber, id })
},
// 场景跳转
senceClick(e) {
const { hasPhoneNumber } = this.data
......@@ -201,9 +215,11 @@ Page({
.login()
.then(({ data }) => {
if (data && data.phone) {
console.log(data)
this.setData({
hasPhoneNumber: true
})
this.checkCooperate()
}
this.getCardDetail()
this.getActivityRecord()
......@@ -267,6 +283,7 @@ Page({
this.setData({
hasPhoneNumber: !!(userInfo && userInfo.phone)
})
this.checkCooperate()
const options = wx.getEnterOptionsSync()
wx.$trackData = options.query
if (wx.$trackData.merchant) {
......@@ -474,5 +491,13 @@ Page({
}
)
})
},
/** 系统订阅 */
sysMenuClick(e) {
console.log(e)
this.setData({
leftMenuIndex: e.detail.id
})
}
})
......@@ -20,13 +20,13 @@
<view class="main-content">
<block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 -->
<gl-scenario productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" />
<gl-scenario productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" data-name="增值转化" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" />
<!-- <scenario productData="{{productData}}" senceData="{{senceData}}">
<activity-info slot="swiper"></activity-info>
</scenario> -->
</block>
<block wx:if="{{curTabIndex == 1}}">
<gl-subscription list="{{subscriptionSystemData}}" menuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" />
<gl-subscription list="{{subscriptionSystemData}}" menuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bind:proClick="proClick" data-name="系统订阅" bind:videoClick="videoClick" />
</block>
<block wx-if="{{curTabIndex == 2}}">
<company-introduce autoplay="{{autoplay}}" />
......
......@@ -60,6 +60,20 @@
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/tab/index/index",
"query": "scene=sceneId%3D3856",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/productDetail/changingFilm/changingFilm",
"query": "scene=sceneId%253D857",
"launchMode": "default",
"scene": null
}
]
}
......
......@@ -162,6 +162,18 @@ const trackData = {
CROWDVIDEO5: {
pageKey: 41,
pageName: "智能香氛系统-新增产值57w+"
},
SYSUSER: {
pageKey: 42,
pageName: "私域用户活跃代运营"
},
SYSNUMBER: {
pageKey: 43,
pageName: "定保/续保数字化招揽"
},
SYSCAR: {
pageKey: 44,
pageName: "事故车救援服务"
}
};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!