Commit 8b1386aa by 胡悦

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

2 parents 880358ba 0b7e862b
...@@ -71,9 +71,9 @@ Component({ ...@@ -71,9 +71,9 @@ Component({
//报错 //报错
showModal(error) { showModal(error) {
wx.showModal({ wx.showToast({
content: error.msg, title: error.msg,
showCancel: false, icon: 'none',
}) })
}, },
......
...@@ -43,6 +43,8 @@ Page({ ...@@ -43,6 +43,8 @@ Page({
url: "digital_icon", url: "digital_icon",
nameZh: "数字无忧权益卡", nameZh: "数字无忧权益卡",
isSelect: false, isSelect: false,
actNum: 0,
activeNavIdx: 0,
}, },
{ {
nameZh: "其他", nameZh: "其他",
...@@ -55,6 +57,8 @@ Page({ ...@@ -55,6 +57,8 @@ Page({
url: "solar_icon", url: "solar_icon",
nameZh: "汽车太阳膜", nameZh: "汽车太阳膜",
isSelect: false, isSelect: false,
actNum: 1,
activeNavIdx: 0,
}, },
{ {
nameZh: "其他", nameZh: "其他",
...@@ -67,12 +71,16 @@ Page({ ...@@ -67,12 +71,16 @@ Page({
url: "protect_icon", url: "protect_icon",
nameZh: "漆面保护膜", nameZh: "漆面保护膜",
isSelect: false, isSelect: false,
actNum: 2,
activeNavIdx: 0,
}, },
{ {
name: "changingFilm", name: "changingFilm",
url: "change_icon", url: "change_icon",
nameZh: "改色膜", nameZh: "改色膜",
isSelect: false, isSelect: false,
actNum: 2,
activeNavIdx: 1,
}, },
{ {
nameZh: "其他", nameZh: "其他",
...@@ -85,30 +93,40 @@ Page({ ...@@ -85,30 +93,40 @@ Page({
url: "beauty_icon", url: "beauty_icon",
nameZh: "数字化美容", nameZh: "数字化美容",
isSelect: false, isSelect: false,
actNum: 3,
activeNavIdx: 0,
}, },
{ {
name: "seatVentilate", name: "seatVentilate",
url: "seat_icon", url: "seat_icon",
nameZh: "座椅通风", nameZh: "座椅通风",
isSelect: false, isSelect: false,
actNum: 3,
activeNavIdx: 1,
}, },
{ {
name: "arNavigation", name: "arNavigation",
url: "ar_icon", url: "ar_icon",
nameZh: "AR实景导航", nameZh: "AR实景导航",
isSelect: false, isSelect: false,
actNum: 3,
activeNavIdx: 2,
}, },
{ {
name: "ambientLighting", name: "ambientLighting",
url: "light_icon", url: "light_icon",
nameZh: "氛围灯", nameZh: "氛围灯",
isSelect: false, isSelect: false,
actNum: 3,
activeNavIdx: 3,
}, },
{ {
name: "navigationArround", name: "navigationArround",
url: "arround_icon", url: "arround_icon",
nameZh: "360全景导航", nameZh: "360全景导航",
isSelect: false, isSelect: false,
actNum: 3,
activeNavIdx: 4,
}, },
{ {
nameZh: "其他", nameZh: "其他",
...@@ -158,9 +176,9 @@ Page({ ...@@ -158,9 +176,9 @@ Page({
} }
}); });
if (!selectFlag) { if (!selectFlag) {
wx.showModal({ wx.showToast({
content: "请至少选择一个产品", title: "请至少选择一个产品",
showCancel: false, icon: 'none',
}); });
wx.hideLoading(); wx.hideLoading();
return; return;
...@@ -172,7 +190,7 @@ Page({ ...@@ -172,7 +190,7 @@ Page({
params.productItems = productItems.join(","); params.productItems = productItems.join(",");
} }
params.cardId = wx.$util.getStorageSync("scene").cardId; params.cardId = wx.$util.getStorageSync("scene").cardId;
params.merchant = wx.$util.getStorageSync("scene").merchant; params.merchant = wx.$util.getStorageSync("scene").merchant || wx.$util.getStorageSync("scene").merchantId;
params.openId = wx.$util.getStorageSync("aicard_info").openId; params.openId = wx.$util.getStorageSync("aicard_info").openId;
params.unionId = wx.$util.getStorageSync("aicard_info").unionId; params.unionId = wx.$util.getStorageSync("aicard_info").unionId;
console.log(params); console.log(params);
...@@ -185,9 +203,9 @@ Page({ ...@@ -185,9 +203,9 @@ Page({
wx.$router.go("applySuccess"); wx.$router.go("applySuccess");
} else { } else {
wx.hideLoading(); wx.hideLoading();
wx.showModal({ wx.showToast({
content: message, title: message,
showCancel: false, icon: 'none',
}); });
} }
}); });
...@@ -203,7 +221,10 @@ Page({ ...@@ -203,7 +221,10 @@ Page({
// 跳转产品详情页 // 跳转产品详情页
goPage(e) { goPage(e) {
wx.$router.go(e.currentTarget.dataset.item); let actNum = e.currentTarget.dataset.item.actNum
let activeNavIdx = e.currentTarget.dataset.item.activeNavIdx
console.log(actNum,activeNavIdx, '000');
wx.$router.go('scene',actNum,activeNavIdx);
}, },
// 展开收起 // 展开收起
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
<view class="apply-content"> <view class="apply-content">
<image class="apply-background" mode="widthFix" webp src="{{IMGURL}}application/application_top.png?v={{img_version}}"></image> <image class="apply-background" mode="widthFix" webp src="{{IMGURL}}application/application_top.png?v={{img_version}}"></image>
<view class="box-background"> <view class="box-background">
<!-- 产品展示 -->
<view class="product-box">
<!-- 产品选择tab --> <!-- 产品选择tab -->
<view class="product-tab-box"> <view class="product-tab-box">
<!-- tab栏 --> <!-- tab栏 -->
...@@ -20,14 +22,13 @@ ...@@ -20,14 +22,13 @@
</view> </view>
</block> </block>
</view> </view>
<!-- 产品展示 -->
<view class="product-box">
<view class="product-tip"> <view class="product-tip">
<image class="tip-icon" mode="widthFix" webp src="{{IMGURL}}application/tip_icon.png?v={{img_version}}"></image> <image class="tip-icon" wx:if="{{selectItemName == 'scene3'}}" mode="widthFix" webp src="{{IMGURL}}application/tip_icon.png?v={{img_version}}"></image>
<image class="tip-icon" wx:else="" mode="widthFix" webp src="{{IMGURL}}application/tip_icon2.png?v={{img_version}}"></image>
<text class="tip-text">{{sceneTip[selectItemName]}}</text> <text class="tip-text">{{sceneTip[selectItemName]}}</text>
</view> </view>
<block wx:for="{{productList[selectItemName]}}"> <block wx:for="{{productList[selectItemName]}}" wx:key="index">
<image wx:if="{{item.name}}" class="product-img" mode="widthFix" webp src="{{IMGURL}}application/{{item.url}}.png?v={{img_version}}" bindtap="goPage" data-item="{{item.name}}"></image> <image wx:if="{{item.name}}" class="product-img" mode="widthFix" webp src="{{IMGURL}}application/{{item.url}}.png?v={{img_version}}" bindtap="goPage" data-item="{{item}}"></image>
</block> </block>
</view> </view>
</view> </view>
......
...@@ -8,14 +8,12 @@ ...@@ -8,14 +8,12 @@
} }
.box-background { .box-background {
padding-top: 8rpx;
background-image: linear-gradient(179deg, #E3E8FF 0%, #FEFEFE 100%); background-image: linear-gradient(179deg, #E3E8FF 0%, #FEFEFE 100%);
} }
.product-tab-box { .product-tab-box {
display: flex; display: flex;
/* justify-content: space-around; */ margin-bottom: 38rpx;
padding: 0 26rpx;
} }
.product-item { .product-item {
...@@ -92,20 +90,21 @@ ...@@ -92,20 +90,21 @@
} }
.product-img { .product-img {
width: 224rpx; width: calc((100% - 32rpx)/3);
height: 216rpx; height: 216rpx;
margin-right: 16rpx; margin-right: 16rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
box-shadow: 0 6rpx 24rpx 0 rgba(175, 181, 219, 0.40); box-shadow: 0 6rpx 24rpx 0 rgba(175, 181, 219, 0.40);
} }
.product-img:nth-child(3n) { .product-img:nth-child(3n+2) {
margin-right: 0; margin-right: 0;
} }
.product-box { .product-box {
margin: 36rpx 0 56rpx 0; margin-bottom: 56rpx;
padding: 0 26rpx; padding: 0 26rpx;
background-image: linear-gradient(179deg, #DBE3FF 0%, #FEFEFE 100%);
} }
.product-tip { .product-tip {
...@@ -258,11 +257,13 @@ ...@@ -258,11 +257,13 @@
color: #323436; color: #323436;
letter-spacing: 0; letter-spacing: 0;
text-align: center; text-align: center;
line-height: 64rpx;
margin-right: 12rpx; margin-right: 12rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
} }
.item:nth-child(3n) { .item:nth-child(3n) {
...@@ -285,6 +286,6 @@ ...@@ -285,6 +286,6 @@
width: 30rpx; width: 30rpx;
height: 22rpx; height: 22rpx;
position: absolute; position: absolute;
top: 0; top: -1rpx;
right: 0; right: -1rpx;
} }
\ No newline at end of file \ No newline at end of file
...@@ -54,9 +54,9 @@ Page({ ...@@ -54,9 +54,9 @@ Page({
//报错 //报错
showModal(error) { showModal(error) {
wx.showModal({ wx.showToast({
content: error.msg, title: error.msg,
showCancel: false, icon: 'none',
}) })
}, },
......
...@@ -33,7 +33,7 @@ Page({ ...@@ -33,7 +33,7 @@ Page({
// 区分代理商和门店 // 区分代理商和门店
params.merchantName = applyType == 0 ? params.merchantName + '(新能源-门店)' : params.merchantName + '(新能源-代理商)' params.merchantName = applyType == 0 ? params.merchantName + '(新能源-门店)' : params.merchantName + '(新能源-代理商)'
params.cardId = wx.$util.getStorageSync("scene").cardId params.cardId = wx.$util.getStorageSync("scene").cardId
params.merchant = wx.$util.getStorageSync("scene").merchant params.merchant = wx.$util.getStorageSync("scene").merchant || wx.$util.getStorageSync("scene").merchantId
params.openId = wx.$util.getStorageSync('aicard_info').openId params.openId = wx.$util.getStorageSync('aicard_info').openId
params.unionId = wx.$util.getStorageSync('aicard_info').unionId params.unionId = wx.$util.getStorageSync('aicard_info').unionId
console.log(params); console.log(params);
...@@ -50,9 +50,9 @@ Page({ ...@@ -50,9 +50,9 @@ Page({
wx.$router.go("applySuccess"); wx.$router.go("applySuccess");
} else { } else {
wx.hideLoading() wx.hideLoading()
wx.showModal({ wx.showToast({
content: message, title: message,
showCancel: false, icon: 'none',
}) })
} }
}) })
......
...@@ -73,7 +73,6 @@ page { ...@@ -73,7 +73,6 @@ page {
font-weight: 600; font-weight: 600;
font-size: 22px; font-size: 22px;
color: #323436; color: #323436;
&::after { &::after {
position: absolute; position: absolute;
left: 50%; left: 50%;
...@@ -373,7 +372,9 @@ page { ...@@ -373,7 +372,9 @@ page {
// 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 2rpx 4rpx 0 rgba(180, 186, 204, 0.4); // box-shadow: 0 2rpx 4rpx 0 rgba(180, 186, 204, 0.4);
background-image: linear-gradient(145deg, #F0F7FF 0%, #FFFFFF 73%);
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40);
&::after { &::after {
position: absolute; position: absolute;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!