Commit abc61b09 by 匡雅琴

Merge branch 'v2.10.2' of http://192.168.3.233:8090/saas/mini-program/ai-card into v2.10.2

2 parents 4372f0f0 1e149ca3
......@@ -34,6 +34,9 @@ Page({
productList: [],
isReset: false,
hasPhoneNumber: false,
userInfo: {
phone: ''
}
},
// tab切换
......@@ -42,8 +45,9 @@ Page({
const index = e.currentTarget.dataset.index;
this.setData({
tabActive: index,
showPlay: false,
});
showPlay: false
})
this.showCase()
},
// 提交测算
submit(e) {
......@@ -156,10 +160,14 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.submit();
const userInfo = Util.getUserInfo();
console.log(userInfo);
if (userInfo.phone) {
this.submit()
this.setData({
userInfo: Util.getUserInfo()
})
this.showCase()
},
showCase() {
if (this.data.userInfo && this.data.userInfo.phone) {
this.setData({
hasPhoneNumber: true,
productList: this.data.tabList[this.data.tabActive].productList,
......@@ -173,7 +181,14 @@ Page({
});
}
},
// 更新手机号
updatePhoneNumber(e) {
if (e.detail) {
this.setData({
hasPhoneNumber: true,
});
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
......
......@@ -20,7 +20,7 @@
<!-- 特色产品 -->
<view class="product-box">
<view class="product-title">特色产品</view>
<view class="product-tips">预估收益根据您的新车销量 100台 测算所得</view>
<view class="product-tips">预估收益根据您的新车销量 {{formData.sales}}台 测算所得</view>
<view class="product-list">
<block wx:for="{{productList}}" wx:key="ind">
<view class="product-item" bindtap="goDetail" data-item="{{item.path}}">
......@@ -82,13 +82,13 @@
<view class="dialog-form">
<view class="form-item">
<view class="form-label">门店月平均新车销量</view>
<input class="form-input" bindfocus="focus" name="sales" value="{{formData.sales}}" type="number" />
<view class="form-unit">台</view>
<input class="form-input" bindfocus="focus" maxlength="8" name="sales" value="{{formData.sales}}" type="number" />
<!-- <view class="form-unit">台</view> -->
</view>
<view class="form-item">
<view class="form-label">3年内售后存量用户</view>
<input class="form-input" bindfocus="focus" name="flow" type="number" value="{{formData.flow}}" />
<view class="form-unit">人</view>
<input class="form-input" bindfocus="focus" maxlength="8" name="flow" type="number" value="{{formData.flow}}" />
<!-- <view class="form-unit">人</view> -->
</view>
<button class="dialog-btn" form-type="submit">提交测算</button>
</view>
......
......@@ -113,6 +113,8 @@
display: flex;
flex-wrap: wrap;
padding: 64rpx 32rpx 128rpx;
width: 100%;
box-sizing: border-box;
}
.product-item {
width: calc(50% - 12rpx);
......@@ -124,7 +126,7 @@
box-sizing: border-box;
}
.product-item:nth-child(even) {
margin-left: 24rpx;
margin-left: 22rpx;
}
.product-item image {
width: 100%;
......@@ -246,7 +248,7 @@
height: 588rpx;
}
.video-item:nth-child(even) {
margin-left: 24rpx;
margin-left: 22rpx;
}
.video-text {
font-size: 32rpx;
......
<!-- 企微魔方 -->
<template name="cube">
<view class="p-b-20">
<image mode="widthFix" class="img" webp src="{{IMGURL}}image/cube/cube-img3.png?v={{img_version}}"></image>
<view class="cube-img1-box">
<image class="img cube-img1" webp src="{{IMGURL}}image/cube/cube-img3.png?v={{img_version}}"></image>
<image class="cute-text cute-text1" webp src="{{IMGURL}}image/cube/cute-text1.png?v={{img_version}}"></image>
<image class="cute-text cute-text2" webp src="{{IMGURL}}image/cube/cute-text2.png?v={{img_version}}"></image>
<image class="cute-text cute-text3" webp src="{{IMGURL}}image/cube/cute-text3.png?v={{img_version}}"></image>
<image class="cute-text cute-text4" webp src="{{IMGURL}}image/cube/cute-text4.png?v={{img_version}}"></image>
<image class="cute-text cute-text5" webp src="{{IMGURL}}image/cube/cute-text5.png?v={{img_version}}"></image>
</view>
<view wx:if="{{hasPhoneNumber}}">
<image mode="widthFix" lazy-load class="img m-t-64" src="{{IMGURL}}image/cube/cube-img1.png?v={{img_version}}"></image>
<image mode="widthFix" lazy-load class="img m-t-64" webp src="{{IMGURL}}image/cube/cube-img1.png?v={{img_version}}"></image>
<view class="relative">
<image mode="widthFix" lazy-load class="img m-t-64" src="{{IMGURL}}image/cube/cube-img2.png?v={{img_version}}"></image>
<view class="box-video cube-video1">
......
......@@ -16,6 +16,41 @@
.cube-video1 {
top: 654rpx;
}
.cube-img1 {
width: 710rpx;
height: 2700rpx;
}
.cube-img1-box {
position: relative;
width: 710rpx;
height: 2700rpx;
}
.cute-text {
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 614rpx;
}
.cute-text1 {
height: 312rpx;
top: 128rpx;
}
.cute-text2 {
height: 260rpx;
top: 452rpx;
}
.cute-text3 {
height: 216rpx;
top: 736rpx;
}
.cute-text4 {
height: 216rpx;
top: 976rpx;
}
.cute-text5 {
height: 1380rpx;
top: 1272rpx;
}
.box-video video {
border-radius: 18rpx;
width: 566rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!