Commit fb644339 by 张立顺

Merge branch 'develop' of 192.168.3.233:saas_plus/business-assistant into develop

2 parents 98f703e8 3b21b019
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<block wx:if="{{openScroll}}"> <block wx:if="{{openScroll}}">
<scroll-view <scroll-view
class="tab-box {{align}} {{outClassName}}" class="tab-box {{align}} {{outClassName}}"
style="{{productHeight ? 'height: 68rpx;' : ''}}"
scroll-x scroll-x
enable-flex enable-flex
scroll-with-animation scroll-with-animation
......
/* login/index/components/Agree/Agree.wxss */ /* login/index/components/Agree/Agree.wxss */
.agree { .agree {
position: fixed; // position: fixed;
left: 0; // left: 0;
bottom: 100rpx; // bottom: 100rpx;
width: 100%; width: 100%;
margin-top: 20rpx;
text { text {
color: #5092FF; color: #5092FF;
} }
......
<block wx:if="{{show}}"> <block wx:if="{{show}}">
<view class="agree text-center"> <view class="agree text-center" bindtap="agree">
<view class="icon {{agree}}" bindtap="agree"> <view class="icon {{agree}}">
<image webp src="{{IMGURL}}login/radio.png"></image> <image webp src="{{IMGURL}}login/radio.png"></image>
</view> </view>
<block wx:if="{{text}}">{{text}}</block> <block wx:if="{{text}}">{{text}}</block>
......
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
text-align: center; text-align: center;
margin-bottom: 40rpx; margin-bottom: 40rpx;
} }
.tips.true{
padding-top: 48rpx;
}
.login-list { .login-list {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 0 118rpx;
.item { .item {
display: flex; display: flex;
...@@ -17,7 +18,7 @@ ...@@ -17,7 +18,7 @@
flex-direction: column; flex-direction: column;
width: 100rpx; width: 100rpx;
animation: btn-move .25s forwards; animation: btn-move .25s forwards;
margin:0 59rpx;
.icon { .icon {
width: 68rpx; width: 68rpx;
height: 68rpx; height: 68rpx;
......
<view class="tips">其他方式</view> <view class="tips {{loginType == 2}}">其他方式</view>
<view class="login-list"> <view class="login-list">
<block wx:for="{{loginList}}" wx:key="index"> <block wx:for="{{loginList}}" wx:key="index">
<block wx:if="{{loginType != index}}"> <block wx:if="{{loginType != index}}">
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
<mask show="{{loading}}"></mask> <mask show="{{loading}}"></mask>
<navigation-bar navStyle="background-color: rgba(0,0,0,0)">生意助手</navigation-bar> <navigation-bar navStyle="background-color: rgba(0,0,0,0)">生意助手</navigation-bar>
<box loginType="{{loginType}}" disabled="{{disabled}}" id="box" /> <box loginType="{{loginType}}" disabled="{{disabled}}" id="box" />
<type-list loginType="{{loginType}}" />
<agree show="{{loginType == 2}}" text="7天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" /> <agree show="{{loginType == 2}}" text="7天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" />
<type-list loginType="{{loginType}}" />
</view> </view>
\ No newline at end of file \ No newline at end of file
import { IMG_URL } from '~/utils/constantData' import { IMG_URL, IMG_VERSION } from '~/utils/constantData'
module.exports = Behavior({ module.exports = Behavior({
data: { data: {
IMGURL: IMG_URL IMGURL: IMG_URL,
IMG_VERSION: IMG_VERSION()
} }
}) })
...@@ -100,6 +100,9 @@ Component({ ...@@ -100,6 +100,9 @@ Component({
"360全景导航", "360全景导航",
]; ];
break; break;
case 4:
navList = ["新能源0元换购"];
break;
} }
this.setData({ this.setData({
...@@ -240,10 +243,12 @@ Component({ ...@@ -240,10 +243,12 @@ Component({
// console.log('phone: ', phone); // console.log('phone: ', phone);
wx.$storage.set('wx_user_info', {...userInfo,phone}); wx.$storage.set('wx_user_info', {...userInfo,phone});
// } // }
this.triggerEvent("authorized", { setTimeout(()=>{
phone, this.triggerEvent("authorized", {
// isShare: false, phone,
}); // isShare: false,
});
},1e3)
//隐藏更多按钮,显示视频列表 //隐藏更多按钮,显示视频列表
this.setData({ this.setData({
getMoreBtn:true, getMoreBtn:true,
......
// 特色产品 // 特色产品
.prod-wrap { .prod-wrap {
background-color: #f8fafb; background-color: #f8fafb;
border-radius: 20rpx 20rpx 0 0;
} }
.prod-wrap .big-title { .prod-wrap .big-title {
margin-left: 32rpx; margin-left: 32rpx;
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
font-weight: 600; font-weight: 600;
font-size: 32rpx; font-size: 32rpx;
color: #323436; color: #323436;
padding-top: 32rpx;
} }
.prod-wrap .nav-wrap { .prod-wrap .nav-wrap {
white-space: nowrap; white-space: nowrap;
...@@ -19,8 +21,7 @@ ...@@ -19,8 +21,7 @@
.prod-wrap .nav-wrap .nav { .prod-wrap .nav-wrap .nav {
display: inline-block; display: inline-block;
height: 64rpx; height: 64rpx;
border-radius: 12rpx; border-radius: 4rpx;
font-weight: 600;
font-size: 24rpx; font-size: 24rpx;
letter-spacing: 0; letter-spacing: 0;
text-align: center; text-align: center;
...@@ -28,14 +29,16 @@ ...@@ -28,14 +29,16 @@
line-height: 64rpx; line-height: 64rpx;
margin-right: 16rpx; margin-right: 16rpx;
background: #ffffff; background: #ffffff;
border: 2rpx solid #dde3f0; border: 2rpx solid #DDE3F0;
color: #323436; color: #323436;
padding: 0 16rpx; padding: 0 16rpx;
} }
.prod-wrap .nav-wrap .active-nav { .prod-wrap .nav-wrap .active-nav {
color: #ffffff; color: #ffffff;
font-weight: 500;
// background-image: linear-gradient(0deg, #EBEFFF 8%, #FCFDFF 85%); // background-image: linear-gradient(0deg, #EBEFFF 8%, #FCFDFF 85%);
background-color: var(--btnColor); background-color: var(--btnColor);
border: 0rpx solid;
// border: 2rpx solid rgba(68,97,240,0.50); // border: 2rpx solid rgba(68,97,240,0.50);
// box-shadow: 0 8rpx 16rpx 0 rgba(175,187,219,0.35); // box-shadow: 0 8rpx 16rpx 0 rgba(175,187,219,0.35);
} }
...@@ -56,7 +59,7 @@ ...@@ -56,7 +59,7 @@
background-image: linear-gradient(1deg, #ffffff 10%, #fdfcff 100%); background-image: linear-gradient(1deg, #ffffff 10%, #fdfcff 100%);
border: 2rpx solid #ffffff; border: 2rpx solid #ffffff;
box-shadow: 0 8rpx 20rpx 0 rgba(197, 205, 235, 0.35); box-shadow: 0 8rpx 20rpx 0 rgba(197, 205, 235, 0.35);
border-radius: 20rpx; border-radius: 8rpx;
padding: 20rpx 24rpx; padding: 20rpx 24rpx;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
...@@ -291,6 +294,29 @@ ...@@ -291,6 +294,29 @@
height: 1666rpx; 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 { .video-bg {
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
<view class="prod-info"> <view class="prod-info">
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text> <text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<!-- senceData[actNum]['productList'][activeNavIdx].changeSale || --> <!-- senceData[actNum]['productList'][activeNavIdx].changeSale || -->
<text class="sale" 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 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>
<text class="earnings" decode="{{true}}">预估收益&nbsp;<text class="earnings-num">¥{{senceData[actNum]['productList'][activeNavIdx].profit}}</text> <text class="earnings" wx:if="{{ actNum!=4}}" decode="{{true}}">预估收益&nbsp;<text class="earnings-num">¥{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
</text> </text>
</view> </view>
<view class="share-btn" wx:if="{{!isShare && origin =='home'}}" bindtap="onShareFn"> <view class="share-btn" wx:if="{{!isShare && origin =='home' && actNum!=4}}" bindtap="onShareFn">
<image class="icon" src="{{IMGURL}}share.png" /> <image class="icon" src="{{IMGURL}}share.png" />
<text>分享</text> <text>分享</text>
</view> </view>
......
...@@ -237,18 +237,18 @@ var senceData = [ ...@@ -237,18 +237,18 @@ var senceData = [
] ]
}, },
{ {
name: '新车洽谈场景', name: '3年以上',
img: 'scene_talk.png', img: 'scene_talk.png',
active: 'icon-car11', active: 'icon-car11',
playImg: 'img1', playImg: 'img1',
src: `${IMG_URL}index/car1.png`, src: `${IMG_URL}index/car1.png`,
// name: "新车洽谈场景", // name: "新车洽谈场景",
msg: "1.0 新车权益销售", msg: "3.1新能源0元购",
"sceneCode":"SC001", "sceneCode":"SC001",
productList: [ productList: [
{ {
img: 'product-img1', img: 'product-img1',
proName: '数字无忧权益卡', proName: '新能源0元换购',
price: '100', price: '100',
// profit: '92.4万', // profit: '92.4万',
profit: '1200000', profit: '1200000',
...@@ -258,9 +258,9 @@ var senceData = [ ...@@ -258,9 +258,9 @@ var senceData = [
sale:100 ,//销量 sale:100 ,//销量
varType: 0, varType: 0,
flow:10000, flow:10000,
"productCode":"PC001", "productCode" : "PC010",
"productName":"数字无忧权益卡", "productName" : "新能源0元换购",
"category":"服务类", "category":"置换类",
} }
] ]
}, },
......
...@@ -68,15 +68,15 @@ page { ...@@ -68,15 +68,15 @@ page {
align-items: center; align-items: center;
.img { .img {
width: 20px; width: 40rpx;
height: 20px; height: 40rpx;
} }
.apply { .apply {
margin-left: 4px; margin-left: 4px;
margin-right: 16px; margin-right: 16px;
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 28rpx;
color: var(--btnColor); color: var(--btnColor);
} }
} }
...@@ -293,31 +293,36 @@ page { ...@@ -293,31 +293,36 @@ page {
} }
.scene { .scene {
margin: 0 10px 16px; margin: 0px 20prx 32rpx;
display: flex; .scene-wrap{
justify-content: space-between; display: flex;
}
.item-wrap { .item-wrap {
// margin-right: 4px; margin-right: 8rpx;
margin-bottom: 40rpx;
position: relative; position: relative;
width: 86px; width: 172rpx;
height: 90px; height: 180rpx;
border-radius: 10px; border-radius: 8rpx;
border: 1px solid #f7f8fc;
box-sizing: border-box;
} }
.item { .item {
// padding-top: 10px; // padding-top: 10px;
width: 86px; width: 172rpx;
height: 90px; height: 180rpx;
background: #f7f8fc; background: #f7f8fc;
border-radius: 6px; border-radius: 8rpx;
box-sizing: border-box;
// border: 1px solid #f7f8fc;
} }
.act { .act {
// background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png"); // background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
// background-size: 100% 100%; // background-size: 100% 100%;
border: 1px solid var(--btnColor); border: 1px solid var(--btnColor);
box-shadow: 0 0 10px #999; box-shadow: 0 2rpx 4rpx 0 rgba(180,186,204,0.4);
&::after { &::after {
position: absolute; position: absolute;
...@@ -406,13 +411,12 @@ page { ...@@ -406,13 +411,12 @@ page {
right: 0; right: 0;
bottom: 0; bottom: 0;
background-color: rgba(45, 45, 51, 0.50); background-color: rgba(45, 45, 51, 0.50);
z-index: 1; z-index: 2;
.dialog-box { .dialog-box {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 744rpx;
background-color: #fff; background-color: #fff;
box-shadow: 0 -8rpx 20rpx 0 rgba(180, 186, 204, 0.32); box-shadow: 0 -8rpx 20rpx 0 rgba(180, 186, 204, 0.32);
border-radius: 32rpx 32rpx 0 0; border-radius: 32rpx 32rpx 0 0;
...@@ -441,7 +445,7 @@ page { ...@@ -441,7 +445,7 @@ page {
margin: 0; margin: 0;
padding: 0; padding: 0;
font-weight: 500; font-weight: 500;
color: #5850FF; color: #3666FE;
width: auto; width: auto;
} }
...@@ -466,7 +470,7 @@ page { ...@@ -466,7 +470,7 @@ page {
.dialog-form { .dialog-form {
width: 100%; width: 100%;
height: 384rpx; height: 384rpx;
background-image: linear-gradient(179deg, rgba(123, 112, 255, 0.02) 15%, rgba(99, 92, 255, 0.10) 100%); background-image: linear-gradient(179deg, rgba(240,247,255,0.30) 15%, #F0F7FF 100%);
border-radius: 8rpx; border-radius: 8rpx;
padding: 32rpx; padding: 32rpx;
box-sizing: border-box; box-sizing: border-box;
...@@ -504,7 +508,7 @@ page { ...@@ -504,7 +508,7 @@ page {
width: 100%; width: 100%;
padding: 24rpx 0; padding: 24rpx 0;
box-sizing: border-box; box-sizing: border-box;
background: #5850FF; background: #3666FE;
border-radius: 8rpx; border-radius: 8rpx;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
......
const _routeHooks = Symbol('_routeHooks') const _routeHooks = Symbol('_routeHooks')
const _query = Symbol('_query') const _query = Symbol('_query')
const _routerList = Symbol('_routerList') const _routerList = Symbol('_routerList')
import { IMG_URL } from '~/utils/constantData' import { IMG_URL, IMG_VERSION } from '~/utils/constantData'
import { generateRoutList } from './wxOnAppRoute.js' import { generateRoutList } from './wxOnAppRoute.js'
import { getNavigationBarTitleText } from '~/utils/cache/storageApi' import { getNavigationBarTitleText } from '~/utils/cache/storageApi'
import { getUserInfo } from '~/utils/cache/userInfo' import { getUserInfo } from '~/utils/cache/userInfo'
...@@ -15,8 +15,8 @@ class Router { ...@@ -15,8 +15,8 @@ class Router {
wx.onAppRoute(e => { wx.onAppRoute(e => {
let thisPage = this.getPageInstance() let thisPage = this.getPageInstance()
if (thisPage) { if (thisPage) {
thisPage.setData({ IMG_URL }) thisPage.setData({ IMG_URL, img_version: IMG_VERSION() })
if(Object.keys(this[_query]).length) thisPage.options = { if (Object.keys(this[_query]).length) thisPage.options = {
...thisPage.options, ...thisPage.options,
...this[_query] ...this[_query]
} }
...@@ -58,7 +58,7 @@ class Router { ...@@ -58,7 +58,7 @@ class Router {
return pages[pages.length - size] return pages[pages.length - size]
} }
checkRouter(route, events) { checkRouter (route, events) {
this[_query] = events || {} this[_query] = events || {}
const [_parent, _name, last_name] = route.split('.') const [_parent, _name, last_name] = route.split('.')
let name = route let name = route
...@@ -95,7 +95,7 @@ class Router { ...@@ -95,7 +95,7 @@ class Router {
} }
} }
/**跳转至H5 */ /**跳转至H5 */
jumpH5(url) { jumpH5 (url) {
wx.navigateTo({ wx.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(url)}` url: `/pages/webView/webView?url=${encodeURIComponent(url)}`
}) })
...@@ -103,7 +103,7 @@ class Router { ...@@ -103,7 +103,7 @@ class Router {
/**页面跳转 /**页面跳转
* *
*/ */
jump(e) { jump (e) {
const item = e.currentTarget.dataset const item = e.currentTarget.dataset
this.go(item.url, item) this.go(item.url, item)
} }
...@@ -111,7 +111,7 @@ class Router { ...@@ -111,7 +111,7 @@ class Router {
* 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面 || * 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面 ||
* 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 $router.back() 可以返回到原页面。小程序中页面栈最多十层 * 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 $router.back() 可以返回到原页面。小程序中页面栈最多十层
*/ */
go(route, events) { go (route, events) {
let { routerMapItem, query } = this.checkRouter(route, events) let { routerMapItem, query } = this.checkRouter(route, events)
if (routerMapItem.isTab) { if (routerMapItem.isTab) {
wx.switchTab({ wx.switchTab({
...@@ -125,14 +125,14 @@ class Router { ...@@ -125,14 +125,14 @@ class Router {
} }
} }
/**关闭所有页面,打开到应用内的某个页面 */ /**关闭所有页面,打开到应用内的某个页面 */
reLaunch(route, events) { reLaunch (route, events) {
let { routerMapItem, query } = this.checkRouter(route, events) let { routerMapItem, query } = this.checkRouter(route, events)
wx.reLaunch({ wx.reLaunch({
url: `${routerMapItem.url}${query}` url: `${routerMapItem.url}${query}`
}) })
} }
/**关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面。 */ /**关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面。 */
redirectTo(route, events) { redirectTo (route, events) {
let { routerMapItem, query } = this.checkRouter(route, events) let { routerMapItem, query } = this.checkRouter(route, events)
wx.redirectTo({ wx.redirectTo({
url: `${routerMapItem.url}${query}` url: `${routerMapItem.url}${query}`
...@@ -141,7 +141,7 @@ class Router { ...@@ -141,7 +141,7 @@ class Router {
/**prevPageSize = 1 /**prevPageSize = 1
* 返回上prevPageSize页 * 返回上prevPageSize页
* callBack返回上prevPageSize页对象 */ * callBack返回上prevPageSize页对象 */
back(callBack, prevPageSize = 1) { back (callBack, prevPageSize = 1) {
let prevPage = this.getPageInstance(Number(prevPageSize) + 1) let prevPage = this.getPageInstance(Number(prevPageSize) + 1)
if (callBack && 'function' === typeof callBack) callBack(prevPage) if (callBack && 'function' === typeof callBack) callBack(prevPage)
wx.navigateBack({ wx.navigateBack({
...@@ -150,18 +150,18 @@ class Router { ...@@ -150,18 +150,18 @@ class Router {
this.goHome() this.goHome()
}) })
} }
goHome() { goHome () {
let [index] = this[_routerList] let [index] = this[_routerList]
wx.reLaunch({ wx.reLaunch({
url: index.url url: index.url
}) })
} }
/**获取上一个页面传的数据 */ /**获取上一个页面传的数据 */
getData(callBack) { getData (callBack) {
const data = this.getPageInstance().getOpenerEventChannel() const data = this.getPageInstance().getOpenerEventChannel()
if (Object.keys(data).length !== 0) data.on('getData', res => callBack(res)) if (Object.keys(data).length !== 0) data.on('getData', res => callBack(res))
} }
onRoute(fn) { onRoute (fn) {
this[_routeHooks].push(fn) this[_routeHooks].push(fn)
return () => { return () => {
const i = list.indexOf(fn) const i = list.indexOf(fn)
......
...@@ -16,3 +16,8 @@ export const STORAGE_OBJECTkEY = { ...@@ -16,3 +16,8 @@ export const STORAGE_OBJECTkEY = {
firstLogin:'firstLogin', firstLogin:'firstLogin',
authphone:'authphone' authphone:'authphone'
} }
export const IMG_VERSION = () =>{
const accountInfo = wx.getAccountInfoSync()
return accountInfo.miniProgram.version || '1.0.0'
}
\ No newline at end of file \ No newline at end of file
...@@ -116,7 +116,7 @@ class Share { ...@@ -116,7 +116,7 @@ class Share {
USERINFO USERINFO
} = this.getCommonData(), } = this.getCommonData(),
thisPage = wx.$router.getPageInstance() thisPage = wx.$router.getPageInstance()
query = `${query? `?${query}&`:'?'}merchantId=${thisPage.merchantId ||USERINFO.merchantId}&shareOpenId=${thisPage.shareOpenId || WXUSERINFO.openId}&sharePhone=${thisPage.sharePhone || USERINFO.phone}` query = `${query? `?${query}&`:'?'}merchantId=${thisPage.merchantId ||USERINFO.merchantId || ''}&shareOpenId=${thisPage.shareOpenId || WXUSERINFO.openId || ''}&sharePhone=${thisPage.sharePhone || USERINFO.phone || ''}`
return query return query
} }
reportShareData(shareTrackData) { reportShareData(shareTrackData) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!