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