Commit adfe37df by 胡悦

增值转化修改

1 parent ea9d5c8c
{ {
"pages": ["pages/tab/index/index"], "pages": [
"pages/tab/index/index"
],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff", "navigationBarBackgroundColor": "#fff",
...@@ -17,13 +19,15 @@ ...@@ -17,13 +19,15 @@
"pages/measure/measureResult/measureResult", "pages/measure/measureResult/measureResult",
"pages/activityDetail/activityDetail", "pages/activityDetail/activityDetail",
"pages/activityApply/activityApply", "pages/activityApply/activityApply",
"pages/applySuccess/applySuccess" "pages/applySuccess/applySuccess",
"pages/videoDetal/videoDetal"
] ]
} }
], ],
"usingComponents": { "usingComponents": {
"phone-number": "components/PhoneNumber/PhoneNumber", "phone-number": "components/PhoneNumber/PhoneNumber",
"navigation-bar": "/components/NavigationBar/NavigationBar" "navigation-bar": "/components/NavigationBar/NavigationBar",
"glsx-image": "/components/image/index"
}, },
"resolveAlias": { "resolveAlias": {
"~/*": "/*" "~/*": "/*"
......
@import "/style/common.wxss";
.box-center{ .box-center{
position: absolute; position: absolute;
top: 50%; top: 50%;
......
...@@ -10,46 +10,37 @@ import { ssoApi } from "../../api/api"; ...@@ -10,46 +10,37 @@ import { ssoApi } from "../../api/api";
import { componentsMixin } from "../../mixins/index"; import { componentsMixin } from "../../mixins/index";
Component({ Component({
behaviors: [componentsMixin], behaviors: [componentsMixin],
options: {
styleIsolation: 'shared'
},
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
isHidden: {
type: Boolean,
value: false
},
phoneText: { phoneText: {
type: String, type: String,
value: '了解更多案例' value: '了解更多案例'
}, },
isImage: {
type: Boolean,
value: false
},
showIcon: {
type: Boolean,
value: true
},
/** /**
* type: 场景类型: 1.首页,整行;2.详情中的查看更多和申请合作切换;3.透明的(暂无); * type: 场景类型: home.首页,整行;product.详情中的查看更多和申请合作切换;scenario场景详情:转发+合作申请;video 视频详情
*/ */
type: { type: {
type: Number, type: String
value: 1
}, },
hasPhoneNumber: { hasPhoneNumber: {
type: Boolean, type: Boolean,
observer(n) {
this.setData({
hasPhone: n
})
} }
},
observers: {
'hasPhoneNumber'(val) {
console.log(val)
} }
}, },
/** /**
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
hasPhone: false
}, },
/** /**
...@@ -71,6 +62,9 @@ Component({ ...@@ -71,6 +62,9 @@ Component({
wx.$util.setUserInfo(data); wx.$util.setUserInfo(data);
// 其他操作 // 其他操作
this.triggerEvent("updatePhoneNumber", data.phone); this.triggerEvent("updatePhoneNumber", data.phone);
this.setData({
hasPhone: true
})
} else { } else {
wx.showToast({ wx.showToast({
title: message, title: message,
...@@ -86,6 +80,19 @@ Component({ ...@@ -86,6 +80,19 @@ Component({
}, },
forward() { forward() {
this.triggerEvent('toForward') this.triggerEvent('toForward')
},
downVideo() {
let that = this
wx.showModal({
content: '是否下载视频',
success (res) {
if (res.confirm) {
that.triggerEvent('videodown')
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
} }
}, },
}); });
...@@ -5,8 +5,16 @@ ...@@ -5,8 +5,16 @@
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
background-color: #fff; background-color: #fff;
padding: 16rpx 48rpx 76rpx; box-shadow: inset 0 2rpx 0 0 #F2F3F7;
padding: 16rpx 48rpx;
filter: blur(0); filter: blur(0);
.home-btn {
width: 100%;
}
.video-btn {
display: flex;
flex: 1;
}
.phoneNumber { .phoneNumber {
width: 100%; width: 100%;
color: #fff; color: #fff;
...@@ -29,15 +37,17 @@ ...@@ -29,15 +37,17 @@
.forward-text { .forward-text {
line-height: 32rpx; line-height: 32rpx;
} }
}
.icon-forward { .icon-forward {
width: 48rpx; width: 48rpx;
height: 48rpx; height: 48rpx;
} }
}
button{ button{
margin: 0; margin: 0;
line-height: 88rpx; line-height: 88rpx;
} }
// 了解更多的样式
.phone-number { .phone-number {
display: flex; display: flex;
width: 100%; width: 100%;
...@@ -62,6 +72,29 @@ ...@@ -62,6 +72,29 @@
margin-left: 48rpx; margin-left: 48rpx;
} }
} }
.video-box {
display: inline-flex;
margin-right: 20rpx;
.btn-item {
width: 100rpx;
text-align: center;
.btn-text {
font-weight: 500;
font-size: 20rpx;
color: #5A6066;
}
}
.icon-forward {
width: 40rpx;
height: 40rpx;
}
.phoneNumber {
}
}
} }
// .isFullSucreen {
// width: 100%;
// }
<view wx:if="{{type == 1}}" class="fixBottom"> <view class="fixBottom">
<button wx:if="{{hasPhoneNumber}}" class="phoneNumber" bindtap="jump">合作申请</button> <view wx:if="{{type == 'home'}}" class="isFullSucreen home-btn">
<!-- <view class="isFullSucreen"> -->
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请1</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button> <button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
</view> <!-- </view> -->
<view wx:if="{{type == 2}}" class="fixBottom"> </view>
<block wx:if="{{hasPhoneNumber}}"> <view wx:if="{{type == 'product'}}" class="isFullSucreen">
<block wx:if="{{hasPhone}}">
<view class="forward-box"> <view class="forward-box">
<image class="icon-forward" webp src="{{IMGURL}}home/icon-forward.png"></image> <image class="icon-forward" webp src="{{IMGURL}}home/icon-forward.png"></image>
<view class="forward-text" bindtap="forward">转发</view> <view class="forward-text" bindtap="forward">转发</view>
...@@ -17,4 +20,27 @@ ...@@ -17,4 +20,27 @@
<image class="icon-arrow" webp src="{{IMGURL}}home/icon-arrow.png"></image> <image class="icon-arrow" webp src="{{IMGURL}}home/icon-arrow.png"></image>
</button> </button>
</block> </block>
</view>
<view wx:if="{{type == 'scenario'}}" class="isFullSucreen video-btn">
<view class="forward-box">
<image class="icon-forward" webp src="{{IMGURL}}home/icon-forward.png"></image>
<view class="forward-text" bindtap="forward">转发</view>
</view>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请1</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
</view>
<view wx:if="{{type == 'video'}}" class="isFullSucreen video-btn">
<view class="video-box">
<view class="btn-item">
<image class="icon-forward" webp src="{{IMGURL}}home/icon-download.png"></image>
<view class="btn-text" bindtap="downVideo">下载</view>
</view>
<view class="btn-item">
<image class="icon-forward" webp src="{{IMGURL}}home/icon-forward.png"></image>
<view class="btn-text" bindtap="forward">转发</view>
</view>
</view>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请1</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
</view>
</view> </view>
// components/image/index.js
import { IMG_URL, IMG_VERSION } from '~/utils/constantData'
Component({
externalClasses: ['custom-class', 'class'],
/**
* 组件的属性列表
*/
properties: {
src: {
type: String,
value: '',
observer: function (url, o) {
if (url) {
let isWebp = url.includes('webp')
this.setData({
isWebp,
imagePath: `${IMG_URL}${url}?v=` + IMG_VERSION()
})
}
}
},
mode: {
type: String,
value: 'scaleToFill'
},
webp: {
type: Boolean,
value: false
}
},
/**
* 组件的初始数据
*/
data: {
imagePath: '',
isWebp: false
},
// 组件生命周期
lifetimes: {
// 在组件实例进入页面节点树时执行
// attached: function () {
// let src = this.data.src
// let prefix = IMG_URL
// this.setData({
// imagePath: `${prefix}${src}?v=` + IMG_VERSION()
// })
// },
// 在组件实例被从页面节点树移除时执行
detached: function () {}
},
/**
* 组件的方法列表
*/
methods: {}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* components/image/index.wxss */
\ No newline at end of file \ No newline at end of file
<!-- components/image/index.wxml -->
<image
src="{{imagePath}}"
mode="{{mode}}"
webp="{{webp||isWebp}}"
lazy-load
class="custom-class class" />
{ {
"requires": true, "name": "ai-card",
"version": "1.0.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true,
"dependencies": { "dependencies": {
"glsx-applet-component": { "glsx-applet-component": {
"version": "1.0.2", "version": "1.0.14",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.2.tgz", "resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.14.tgz",
"integrity": "sha512-aPIWJLsPl4TIQs7SrMMZy5aLgJGvQ168KpCNhgK0VI/FAsFP6wfsmYOEYslJKBlM3/Gr2efaEV5ZdqY70P14Kw==" "integrity": "sha512-Utus5wJbLNE2UptPdi1tKCFZBqvq2r8ypKNz0W0m7yrWRp9Ic6LGTEdljqR+hCa4n23h/ZBLnU5fBiabwDd+uw=="
} }
} }
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"description": "", "description": "",
"main": "app.js", "main": "app.js",
"dependencies": { "dependencies": {
"glsx-applet-component": "^1.0.2" "glsx-applet-component": "^1.0.14"
}, },
"devDependencies": {}, "devDependencies": {},
"scripts": { "scripts": {
......
...@@ -8,6 +8,10 @@ Page({ ...@@ -8,6 +8,10 @@ Page({
}, },
toActivity(){
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
......
/* packagesList/pages/activityDetail/activityDetail.wxss */ /* packagesList/pages/activityDetail/activityDetail.wxss */
.activity-detail {
background-color: #F5F5F7;
.swiper {
height: 422rpx;
}
.swiper-img {
width: 100%;
height: 422rpx;
}
}
.activity-introduction {
margin-top: 20rpx;
background-color: #fff;
padding: 24rpx 32rpx;
.activity-title {
font-weight: 500;
font-size: 36rpx;
color: #2D2D33;
}
.activity-content {
margin: 16rpx 0 48rpx;
font-weight: 400;
font-size: 28rpx;
color: #444444;
line-height: 52rpx;
}
.activity-info {
margin-top: 16rpx;
.activity-item {
display: flex;
align-items: center;
margin-bottom: 8rpx;
.activity-icon {
width: 40rpx;
height: 40rpx;
margin-right: 16rpx;
}
.text {
font-weight: 400;
font-size: 28rpx;
color: #444444;
}
}
}
.activity-btn {
margin-top: 48rpx;
margin-bottom: 136rpx;
font-weight: 500;
font-size: 32rpx;
color: #5850FF;
text-align: center;
line-height: 48rpx;
}
}
\ No newline at end of file \ No newline at end of file
<!--packagesList/pages/activityDetail/activityDetail.wxml--> <!--packagesList/pages/activityDetail/activityDetail.wxml-->
<text>packagesList/pages/activityDetail/activityDetail.wxml</text> <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>
<swiper-item class="swiper-item">
<image class="swiper-img" webp src="{{IMGURL}}video/solar_bitmap.png?v={{img_version}}"></image>
</swiper-item>
</swiper>
<view class="activity-introduction">
<view class="activity-title">活动介绍</view>
<view class="activity-content">
座椅加热是利用座椅内的电加热丝对座椅内部加热,并通过热传播将能量传递给乘坐者,改善冬天时座椅因长时间停放后座椅过凉造成的乘坐不舒适感。
目前市面上大部分高档汽车已经配备了座椅加热功能,加热座椅仍然是一种“品位”和“舒适”的标志,受到消费者追捧。
</view>
<view class="activity-title">活动举办方</view>
<view class="activity-info">
<view class="activity-item">
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-company.png"></glsx-image>
<view class="text">兰州鑫通汽车销售有限公司</view>
</view>
<view class="activity-item">
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-company.png"></glsx-image>
<view class="text">兰州鑫通汽车销售有限公司</view>
</view>
<view class="activity-item">
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-company.png"></glsx-image>
<view class="text">兰州鑫通汽车销售有限公司</view>
</view>
</view>
<view class="activity-btn" bindtap="toActivity">查看活动详情页面</view>
</view>
</view>
<phone-number type="{{'scenario'}}" bindtoApplication="toApplication" bindupdatePhoneNumber="updatePhoneNumber" hasPhoneNumber="{{hasPhoneNumber}}"></phone-number>
// packagesList/pages/videoDetal/videoDetal.js
Page({
/**
* 页面的初始数据
*/
data: {
videoItem: {
index: 0,
videoList: [],
videoUrl: ''
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log(options)
wx.$router.getData(res => {
console.log(res)
this.setData({
videoItem: res
})
})
},
// 下载视频
downVideo() {
let {videoItem: {url}} = this.data
console.log(url)
},
// 申请合作
toApplication() {
},
// 转发
toForward() {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {
"gl-video-detail": "glsx-applet-component/video-detail/index"
}
}
\ No newline at end of file \ No newline at end of file
/* packagesList/pages/videoDetal/videoDetal.wxss */
\ No newline at end of file \ No newline at end of file
<!--packagesList/pages/videoDetal/videoDetal.wxml-->
<!-- aaa -->
<gl-video-detail list="{{videoItem.videoList}}" index="{{videoItem.index}}"></gl-video-detail>
<phone-number type="{{'video'}}" bindvideodown="downVideo" bindtoForward="toForward" bindtoApplication="toApplication" hasPhoneNumber="{{hasPhoneNumber}}"></phone-number>
\ No newline at end of file \ No newline at end of file
<!--pages/tab/index/components/activity/activity.wxml--> <!--pages/tab/index/components/activity/activity.wxml-->
<view> <swiper class="activity-scroll" vertical="true" circular="true" autoplay current="{{current}}" interval="3000">
<swiper class="activity-scroll" vertical="true" circular="true" autoplay current="{{current}}" interval="3000">
<block wx:for="{{activityList}}" wx:key="index"> <block wx:for="{{activityList}}" wx:key="index">
<swiper-item class="swiper-item" bindtap="toActivity" data-activityId="{{item.id}}"> <swiper-item class="swiper-item" bindtap="toActivity" data-activityId="{{item.id}}">
<view class="bg-activity"> <view class="bg-activity">
...@@ -10,5 +9,4 @@ ...@@ -10,5 +9,4 @@
{{item.activityText}} {{item.activityText}}
</swiper-item> </swiper-item>
</block> </block>
</swiper> </swiper>
</view>
// pages/tab/index/components/scenario/scenario.js
Component({
options: {
multipleSlots: true // 在组件定义时的选项中启用多 slot 支持
},
/**
* 组件的属性列表
*/
properties: {
senceData: {
type: Object
},
productData: {
type: Object,
observer(n) {
console.log(n)
}
}
},
/**
* 组件的初始数据
*/
data: {
currentScen: 0,
discoverIndex: 1
},
/**
* 组件的方法列表
*/
methods: {
selectScenario(e) {
console.log(e)
const { index } = e.target.dataset
this.setData({
currentScen: index,
discoverIndex: 1
})
this.triggerEvent('currentScen', this.data.currentScen)
},
clickTest() {
},
videoClick(e) {
console.log(e)
const { index, info: {videoUrl} } = e.detail
const {currentScen, productData} = this.data
const videoList = productData[currentScen][0].videoList
console.log(videoList)
wx.$router.go('/packagesList/pages/videoDetal/videoDetal', {
index,
videoList,
videoUrl: videoUrl
})
}
}
})
{
"component": true,
"usingComponents": {
"gl-scene": "glsx-applet-component/scene/index",
"glsx-discover": "glsx-applet-component/discover/index"
}
}
\ No newline at end of file \ No newline at end of file
/* pages/tab/index/components/scenario/scenario.wxss */
.scenario-menu {
width: 100%;
height: 88rpx;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
&::-webkit-scrollbar {
display:none;
width:0;
height:0;
color:transparent;
}
.menu-list {
padding: 0 20rpx;
display: inline-block;
white-space: nowrap;
.menu-item {
display: inline-block;
width: 170rpx;
text-align: center;
line-height: 80rpx;
font-weight: 400;
font-size: 28rpx;
color: #323436;
&.menu-active {
position: relative;
font-weight: 600;
font-size: 36rpx;
color: #323436;
&::after {
display: inline-block;
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 40rpx;
height: 8rpx;
background-color: #5850FF;
border-radius: 4rpx;
}
}
}
}
}
\ No newline at end of file \ No newline at end of file
<!--pages/tab/index/components/scenario/scenario.wxml-->
<view class="scenario-menu">
<view class="menu-list">
<view wx:for="{{senceData}}" wx:key="index" class="menu-item {{index == currentScen ? 'menu-active' : ''}}" bindtap="selectScenario" data-index="{{index}}">{{item.tabname}}</view>
</view>
</view>
<gl-scene src="{{senceData[currentScen].banner}}"></gl-scene>
<slot name="swiper"></slot>
<glsx-discover index="{{discoverIndex}}" list="{{productData[currentScen]}}" bind:proclick="clickTest" bind:videoClick="videoClick"></glsx-discover>
\ No newline at end of file \ No newline at end of file
...@@ -10,6 +10,7 @@ import Draw from "../../../utils/Draw"; ...@@ -10,6 +10,7 @@ import Draw from "../../../utils/Draw";
import { entmicroApi } from "../../../api/api"; import { entmicroApi } from "../../../api/api";
import { commonMixin } from '../../../mixins/index' import { commonMixin } from '../../../mixins/index'
import { trackData } from "../../../utils/data"; import { trackData } from "../../../utils/data";
import {senceData, productData} from './constant/senceData'
Page({ Page({
behaviors: [commonMixin], behaviors: [commonMixin],
/** /**
...@@ -50,13 +51,17 @@ Page({ ...@@ -50,13 +51,17 @@ Page({
image: 'https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg', image: 'https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg',
qrCode: 'https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg' qrCode: 'https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg'
}, },
// 是否授权手机号 // 是否授权手机号
hasPhoneNumber: false, hasPhoneNumber: false,
curTab: [trackData.COMPANY, trackData.CUBE], // curTab: [trackData.COMPANY, trackData.CUBE],
shareDisabled: true, shareDisabled: true,
autoplay: true autoplay: true,
// 增值转化模块
senceData,
productData
}, },
// 一级菜单
introduce(e) { introduce(e) {
const curTabIndex = e.currentTarget.dataset.index; const curTabIndex = e.currentTarget.dataset.index;
this.setData({ this.setData({
...@@ -86,6 +91,7 @@ Page({ ...@@ -86,6 +91,7 @@ Page({
} }
}, },
// 咨询 // 咨询
handleOpen(e) { handleOpen(e) {
...@@ -100,9 +106,9 @@ Page({ ...@@ -100,9 +106,9 @@ Page({
}); });
} }
}, },
// 合作申请
jump() { toApplication() {
wx.$router.go('/packagesList/pages/measure/measure/measure') console.log('合作申请')
}, },
/** /**
...@@ -123,6 +129,30 @@ Page({ ...@@ -123,6 +129,30 @@ Page({
wx.hideShareMenu({ wx.hideShareMenu({
menus: ['shareAppMessage'] menus: ['shareAppMessage']
}) })
this.setData({
productData: this.addAll(productData)
})
},
addAll(data) {
for (let i in data) {
let arr = [],
m = [],
n = []
data[i].map(item => {
arr = arr.concat(item.productList)
m = item.videoList
n = item.posterList
})
const allData = {
name: '全部',
productList: arr,
videoList: m,
posterList: n
}
data[i].unshift(allData)
}
return data
}, },
/** /**
...@@ -141,7 +171,7 @@ Page({ ...@@ -141,7 +171,7 @@ Page({
const options = wx.getEnterOptionsSync() const options = wx.getEnterOptionsSync()
wx.$trackData = options.query wx.$trackData = options.query
if (wx.$trackData.merchant) { if (wx.$trackData.merchant) {
wx.$Track.sendTrack(this.data.curTab[this.data.curTabIndex]) // wx.$Track.sendTrack(this.data.curTab[this.data.curTabIndex])
} }
}, },
...@@ -338,4 +368,8 @@ Page({ ...@@ -338,4 +368,8 @@ Page({
}) })
}); });
}, },
}); });
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
"user-info": "../../../components/UserInfo/UserInfo", "user-info": "../../../components/UserInfo/UserInfo",
"company-introduce": "./components/companyIntroduce/companyIntroduce", "company-introduce": "./components/companyIntroduce/companyIntroduce",
"activity-info": "./components/activity/activity", "activity-info": "./components/activity/activity",
"glsx-discover": "glsx-applet-component/discover/index" "glsx-discover": "glsx-applet-component/discover/index",
"scenario": "./components/scenario/scenario"
}, },
"navigationBarTitleText": "广联数科智能名片" "navigationBarTitleText": "广联数科智能名片"
} }
\ No newline at end of file \ No newline at end of file
...@@ -14,9 +14,10 @@ ...@@ -14,9 +14,10 @@
</view> </view>
<view class="main-content"> <view class="main-content">
<block wx:if="{{curTabIndex == 0}}"> <block wx:if="{{curTabIndex == 0}}">
<activity-info></activity-info> <!-- 增值转化 -->
<glsx-discover></glsx-discover> <scenario productData="{{productData}}" senceData="{{senceData}}">
<button bindtap="jump">跳转详情</button> <activity-info slot="swiper"></activity-info>
</scenario>
</block> </block>
<block wx:if="{{curTabIndex == 1}}">系统订阅</block> <block wx:if="{{curTabIndex == 1}}">系统订阅</block>
...@@ -32,4 +33,4 @@ ...@@ -32,4 +33,4 @@
<image class="floating-icon" bindtap="handleOpen" webp src="{{IMGURL}}home/custom.png?v={{img_version}}"></image> <image class="floating-icon" bindtap="handleOpen" webp src="{{IMGURL}}home/custom.png?v={{img_version}}"></image>
</view> </view>
</view> </view>
<phone-number type="{{1}}" bindtoApplication="toApplication" bindupdatePhoneNumber="updatePhoneNumber" hasPhoneNumber="{{hasPhoneNumber}}"></phone-number>
\ No newline at end of file \ No newline at end of file
<phone-number type="{{'home'}}" bindtoApplication="toApplication" hasPhoneNumber="{{hasPhoneNumber}}"></phone-number>
\ No newline at end of file \ No newline at end of file
...@@ -35,140 +35,21 @@ ...@@ -35,140 +35,21 @@
}, },
{ {
"name": "", "name": "",
"pathName": "pages/addTransform/addTransform/addTransform",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/tab/index/index", "pathName": "pages/tab/index/index",
"query": "scene=sceneId%3D3996", "query": "scene=sceneId%3D3996",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
}, },
{ {
"name": "", "name": "活动详情",
"pathName": "pages/addValue/addValue/addValue", "pathName": "packagesList/pages/activityDetail/activityDetail",
"query": "scene=sceneId%3D3102",
"launchMode": "default",
"scene": null
},
{
"name": "数字无忧权益卡",
"pathName": "pages/productDetail/equity/equity",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "氛围灯",
"pathName": "pages/productDetail/ambientLighting/ambientLighting",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "AR导航",
"pathName": "pages/productDetail/arNavigation/arNavigation",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "数字化美容",
"pathName": "pages/productDetail/carBeauty/carBeauty",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "改色膜",
"pathName": "pages/productDetail/changingFilm/changingFilm",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "流失期",
"pathName": "pages/productDetail/lossPhase/lossPhase",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "360导航",
"pathName": "pages/productDetail/navigationArround/navigationArround",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "漆面保护",
"pathName": "pages/productDetail/paintProtect/paintProtect",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "座椅通风",
"pathName": "pages/productDetail/seatVentilate/seatVentilate",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "太阳膜",
"pathName": "pages/productDetail/solarFilm/solarFilm",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/tab/index/index",
"query": "scene=sceneId%3D3275",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/newEnergy/newEnergy",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/applySuccess/applySuccess",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "活动申请",
"pathName": "pages/activityApplication/activityApplication",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "展业测算",
"pathName": "pages/measure/measure/measure",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "测算结果",
"pathName": "pages/measure/measureResult/measureResult",
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
}, },
{ {
"name": "", "name": "",
"pathName": "pages/scene/scene", "pathName": "packagesList/pages/videoDetal/videoDetal",
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
......
export const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/' export const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/'
// 缓存get方法为空的默认指定值 // 缓存get方法为空的默认指定值
export const DEFAULT_GET_STORAGEKEY = ['sessionId', 'merchantId', 'userInfo'] export const DEFAULT_GET_STORAGEKEY = ['sessionId', 'merchantId', 'userInfo']
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!