Commit 73a5800d by 张立顺

合并代码

1 parent 08d7928b
<!--pages/tab/output/components/sceneBox/sceneBox.wxml--> <!-- pages/tab/output/components/sceneBox/sceneBox.wxml -->
<view class="flex scene"> <view class="flex scene">
<view class="scene-item {{ (formData['scene' + (index + 1)] && hasOpenIcon) ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}" wx:for="{{custSceneList}}" wx:key="index" bindtap="handleClick" data-idx="{{index + 1}}"> <view
<view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)] && sceneActive != (index + 1)}}" class="open-icon">已开通</view> class="scene-item {{ (formData['scene' + (index + 1)] && hasOpenIcon) ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}"
wx:for="{{custSceneList}}"
wx:key="index"
bindtap="handleClick"
data-idx="{{index + 1}}">
<view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)] && sceneActive != (index + 1)}}" class="open-icon">
已开通
</view>
<image wx:if="{{formData['scene' + (index + 1)]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" /> <image wx:if="{{formData['scene' + (index + 1)]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" />
<image wx:else class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" /> <image wx:else class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" />
<view class="scene-title">{{item.title}}</view> <view class="scene-title {{hasOpenIcon && formData['scene' + (index + 1)] && sceneActive != (index + 1)?'':'notOpened'}}">
{{item.title}}
</view>
<view>{{item.subTitle}}</view> <view>{{item.subTitle}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">¥ {{scenePriceList[index].total}}</view> <view class="total-price" wx:if="{{scenePriceList.length}}">
¥ {{scenePriceList[index].total}}
</view>
</view> </view>
</view> </view>
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40); box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40);
} }
.active::after { .active::after {
position: absolute; position: absolute;
left: 50%; left: 50%;
...@@ -80,7 +81,7 @@ ...@@ -80,7 +81,7 @@
.scene-title { .scene-title {
color: #323436; color: #323436;
font-weight: 600; /* font-weight: 600; */
} }
.scene-img { .scene-img {
...@@ -96,3 +97,7 @@ ...@@ -96,3 +97,7 @@
color: #3666FE; color: #3666FE;
font-weight: 600; font-weight: 600;
} }
.notOpened {
color: #8A8C90;
}
\ No newline at end of file \ No newline at end of file
...@@ -18,7 +18,38 @@ Component({ ...@@ -18,7 +18,38 @@ Component({
/** /**
* 组件的初始数据 * 组件的初始数据
*/ */
data: {}, data: {
titleObj: {
0: {
label: '您好,您的客户',
sceneLabel: '门店账号已开通成功。'
},
1: {
label: '您好,您的客户',
sceneLabel: '门店活动已开通,活动信息如下:'
},
2: {
label: '您的客户',
sceneLabel: '门店活动正在进行中'
},
3: {
label: '您的客户',
sceneLabel: '门店活动已结束:'
},
4: {
label: '您好,您的客户',
sceneLabel: '门店场景已开通,待开展业务,信息如下:'
},
5: {
label: '您好,您的客户',
sceneLabel: '门店业务场景已开通:'
},
6: {
label: '您好,您的客户',
sceneLabel: '门店业务场景已开通:'
}
}
},
/** /**
* 组件的方法列表 * 组件的方法列表
......
...@@ -11,16 +11,23 @@ ...@@ -11,16 +11,23 @@
// height: 200rpx; // height: 200rpx;
.title { .title {
display: flex; // display: flex;
flex-wrap: wrap; // flex-wrap: wrap;
color: rgba(50, 52, 54, 1); color: rgba(50, 52, 54, 1);
font-size: 28rpx; font-size: 28rpx;
margin-bottom: 8rpx;
view {
// word-break: break-all;
display: inline-block;
white-space: pre-wrap
}
.name { .name {
color: rgba(50, 52, 54, 1); color: rgba(50, 52, 54, 1);
font-size: 28rpx; font-size: 28rpx;
// font-face: PingFangSC; // font-face: PingFangSC;
font-weight: 500; font-weight: 600;
} }
} }
......
<!-- pages/mineDetail/messageBox/components/messageBox.wxml --> <!-- pages/mineDetail/messageBox/components/messageBox.wxml -->
<!-- <text>pages/mineDetail/messageBox/components/messageBox.wxml</text> --> <!-- <view>pages/mineDetail/messageBox/components/messageBox.wxml</view> -->
<view class="msgBox"> <view class="msgBox">
<view class="title" wx:if="{{messageType == 0}}"><view>您好,您的客户</view><text class="name">{{merchantName}}</text><view>门店账号已开通成功。</view></view> <view class="title">
<view class="title" wx:if="{{messageType == 1}}"><view>您好,您的客户</view><text class="name">{{merchantName}}</text><view>门店活动已开通,活动信息如下:</view></view> <text>{{titleObj[messageType]['label']}}</text>
<view class="title" wx:if="{{messageType == 2}}"><view>您的客户</view><text class="name">{{merchantName}}</text><view>门店活动正在进行中</view></view> <text class="name">{{merchantName}}</text>
<view class="title" wx:if="{{messageType == 3}}"><view>您的客户</view><text class="name">{{merchantName}}</text><view>门店活动已结束:</view></view> <text>{{titleObj[messageType]['sceneLabel']}}</text>
<view class="title" wx:if="{{messageType == 4}}"><view>您好,您的客户</view><text class="name">{{merchantName}}</text><view>门店场景已开通,待开展业务,信息如下:</view></view> </view>
<!-- <view class="title" wx:if="{{messageType == 1}}">
<text>您好,您的客户</text>
<text class="name">{{merchantName}}</text>
<text>门店活动已开通,活动信息如下:</text>
</view>
<view class="title" wx:if="{{messageType == 2}}">
<view>您的客户</view>
<view class="name">{{merchantName}}</view>
<view>门店活动正在进行中</view>
</view>
<view class="title" wx:if="{{messageType == 3}}">
<view>您的客户</view>
<view class="name">{{merchantName}}</view>
<view>门店活动已结束:</view>
</view>
<view class="title" wx:if="{{messageType == 4}}">
<text>您好,您的客户</text>
<text class="name">{{merchantName}}</text>
<text>门店场景已开通,待开展业务,信息如下:</text>
</view> -->
<slot/> <slot/>
<view class="time">{{time}}</view> <view class="time">{{time}}</view>
</view> </view>
...@@ -44,6 +44,10 @@ ...@@ -44,6 +44,10 @@
height: calc(100% - 100rpx); height: calc(100% - 100rpx);
} }
.msgBox {
margin: 8rpx 0;
}
.cell { .cell {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -83,32 +83,42 @@ ...@@ -83,32 +83,42 @@
merchantName="{{item.merchantName}}" merchantName="{{item.merchantName}}"
messageType="{{item.messageType}}" messageType="{{item.messageType}}"
time="{{item.updatedTime}}"> time="{{item.updatedTime}}">
<view class="cell" wx:if="{{item.messageType == 1}}"> <view wx:if="{{item.messageType == 1}}">
<view class="cell">
<view class="label">活动名称:</view> <view class="label">活动名称:</view>
<view class="value">{{item.activityName}}</view> <view class="value">{{item.activityName}}</view>
</view> </view>
<view class="cell" wx:if="{{item.messageType == 1}}"> <view class="cell">
<view class="label">开始时间:</view> <view class="label">开始时间:</view>
<view class="value">{{item.activityStartTime||'-'}}</view> <view class="value">{{item.activityStartTime||'-'}}</view>
</view> </view>
<view class="cell" wx:if="{{item.messageType == 1}}"> <view class="cell">
<view class="label">结算时间:</view> <view class="label">结算时间:</view>
<view class="value">{{item.activityEndTime||'-'}}</view> <view class="value">{{item.activityEndTime||'-'}}</view>
</view> </view>
<view class="cell" wx:if="{{item.messageType == 1}}"> <view class="cell">
<view class="label">活动链接:</view> <view class="label">活动链接:</view>
<view <view
class="link" class="link"
wx:if="{{item.activityUrl}}" wx:if="{{item.activityUrl}}"
bind:tap="copyLink" bind:tap="copyLink"
data-url="{{item.activityUrl}}"> data-url="{{item.activityUrl}}">
点击下载活动二维码 下载活动二维码
</view>
</view> </view>
</view> </view>
<view class="cell" wx:if="{{item.messageType == 4}}"> <view class="cell" wx:if="{{item.messageType == 4}}">
<view class="label">产品名称:</view> <view class="label">产品名称:</view>
<view class="value">{{item.activityName}}</view> <view class="value">{{item.activityName}}</view>
</view> </view>
<view class="cell" wx:if="{{item.messageType == 5}}">
<view class="label">新车交付场景:</view>
<view class="value">{{item.activityName}}</view>
</view>
<view class="cell" wx:if="{{item.messageType == 6}}">
<view class="label">0~12个月场景:</view>
<view class="value">{{item.activityName}}</view>
</view>
</msg-box> </msg-box>
</scroll-view> </scroll-view>
</view> </view>
......
...@@ -131,6 +131,6 @@ page { ...@@ -131,6 +131,6 @@ page {
font-size: 28rpx !important; font-size: 28rpx !important;
color: #8A8C90 !important; color: #8A8C90 !important;
font-weight: 400 !important; font-weight: 400 !important;
border: 2rpx dashed #EEEEEE !important; border: 2rpx solid #EEEEEE !important;
background-color: #fff !important; background-color: #fff !important;
} }
\ No newline at end of file \ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<view wx:if="{{formData['showList'][index]}}" class="open-icon">已开通</view> <view wx:if="{{formData['showList'][index]}}" class="open-icon">已开通</view>
<image wx:if="{{formData['showList'][index]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" /> <image wx:if="{{formData['showList'][index]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" />
<image wx:else class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" /> <image wx:else class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" />
<view class="scene-title">{{item.title}}</view> <view class="scene-title {{formData['showList'][index]?'':'notOpened'}}">{{item.title}}</view>
<view>{{item.subTitle}}</view> <view>{{item.subTitle}}</view>
<!-- wx:if="{{scenePriceList.length}}" --> <!-- wx:if="{{scenePriceList.length}}" -->
<view class="total-price">¥ {{formData['showList'][index].totalMoney||0}}</view> <view class="total-price">¥ {{formData['showList'][index].totalMoney||0}}</view>
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
.scene-title { .scene-title {
color: #323436; color: #323436;
font-weight: 600; /* font-weight: 600; */
} }
.scene-img { .scene-img {
...@@ -90,6 +90,10 @@ ...@@ -90,6 +90,10 @@
height: 56rpx; height: 56rpx;
} }
.notOpened {
color: #8A8C90;
}
.total-price { .total-price {
height: 40rpx; height: 40rpx;
line-height: 40rpx; line-height: 40rpx;
......
...@@ -52,6 +52,10 @@ ...@@ -52,6 +52,10 @@
padding: 0 24rpx; padding: 0 24rpx;
} }
.list {
height: calc(100%);
}
.search-box .search .text-center { .search-box .search .text-center {
font-size: 24rpx; font-size: 24rpx;
/* background-color: #f7f7f7; */ /* background-color: #f7f7f7; */
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
box-sizing: border-box; box-sizing: border-box;
height: 100%; height: 100%;
color: #323436; color: #323436;
padding-top: 16rpx; // padding-top: 16rpx;
background-color: #F2F3F7; background-color: #F2F3F7;
} }
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
color: #8A8C90; color: #8A8C90;
padding: 0 20rpx 0 32rpx; padding: 0 20rpx 0 32rpx;
margin-bottom: 16rpx; margin-bottom: 16rpx;
margin-top: 16rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg-profit.png') no-repeat; background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg-profit.png') no-repeat;
background-size: 100% 96rpx; background-size: 100% 96rpx;
...@@ -79,6 +80,7 @@ ...@@ -79,6 +80,7 @@
.name { .name {
width: 70%; width: 70%;
margin-left: 32rpx; margin-left: 32rpx;
font-weight: bold;
} }
.price-txt { .price-txt {
......
.swiper {
/* test */
color: aquamarine;
}
\ No newline at end of file \ No newline at end of file
...@@ -150,12 +150,13 @@ ...@@ -150,12 +150,13 @@
width: 100%; width: 100%;
padding: 20rpx; padding: 20rpx;
border: 2rpx dashed #CCCED1; border: 2rpx dashed #CCCED1;
border-radius: 8rpx;
display: flex; display: flex;
.tipsIcon { .tipsIcon {
box-sizing: border-box; box-sizing: border-box;
width: 56rpx; width: 56rpx;
height: 64rpx; // height: 64rpx;
padding: 8rpx; padding: 8rpx;
background: rgba(62, 113, 254, 0.12); background: rgba(62, 113, 254, 0.12);
border-radius: 4rpx; border-radius: 4rpx;
...@@ -240,9 +241,15 @@ ...@@ -240,9 +241,15 @@
} }
.funneItem:nth-of-type(1) { .funneItem:nth-of-type(1) {
box-sizing: border-box;
padding-top: 30rpx;
margin-top: 25rpx; margin-top: 25rpx;
} }
.funneItem:nth-of-type(1) .num {
transform: translate(-50%, calc(-50% - -15rpx));
}
.navOhterApp { .navOhterApp {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -251,10 +258,28 @@ ...@@ -251,10 +258,28 @@
color: #5C7097; color: #5C7097;
// margin: 50rpx 20rpx 0; // margin: 50rpx 20rpx 0;
margin-bottom: 50rpx; margin-bottom: 50rpx;
.linkImg{
.linkImg {
width: 20rpx; width: 20rpx;
height: 20rpx; height: 20rpx;
margin-left: 20rpx; margin-left: 20rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
} }
// .swiper .wx-swiper-dot {
// width: 40rpx !important;
// height: 10rpx !important;
// background-color: aqua;
// // margin-left: 0 10rpx;
// // display: inline-flex;
// // justify-content: space-between;
// }
swiper .wx-swiper-dot {
width: 35rpx;
height: 7rpx;
border-radius: 50%;
display: inline-flex;
margin-left: 19rpx;
justify-content: space-between;
}
\ No newline at end of file \ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<!-- sceneIndx==3? 'short': --> <!-- sceneIndx==3? 'short': -->
<swiper <swiper
indicator-dots="{{indicatorDots}}" indicator-dots="{{indicatorDots}}"
class=" {{startInd ==4?'short':'full'}}" class="swiper {{startInd ==4?'short':'full'}}"
autoplay="{{autoplay}}" autoplay="{{autoplay}}"
bindchange="swiperChange" bindchange="swiperChange"
interval="{{interval}}" interval="{{interval}}"
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
content: ''; content: '';
width: 100%; width: 100%;
// height: 486rpx; // height: 486rpx;
height: 264rpx; height: 276rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.png') no-repeat; background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.png') no-repeat;
background-size: 100% 264rpx; background-size: 100% 264rpx;
background-color: #fff; background-color: #fff;
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
.tabContainer { .tabContainer {
height: 100rpx; height: 100rpx;
padding: 0 32rpx;
// background-color: #F2F3F7;
} }
.comCom { .comCom {
...@@ -45,6 +46,7 @@ ...@@ -45,6 +46,7 @@
height: calc(100% - 100rpx); height: calc(100% - 100rpx);
overflow: scroll; overflow: scroll;
// background-color: #fff; // background-color: #fff;
background-color: #F2F3F7;
} }
.comCom::-webkit-scrollbar { .comCom::-webkit-scrollbar {
......
...@@ -97,9 +97,9 @@ class Storage { ...@@ -97,9 +97,9 @@ class Storage {
* *
* @param {*} key | 要操作的键值 * @param {*} key | 要操作的键值
* @param {*} data | 要存储的值,会转换为 JSON 串进行存储 * @param {*} data | 要存储的值,会转换为 JSON 串进行存储
* @param {*} syncFlag | 同步状态,默认 false (异步),true 为同步 * @param {*} syncFlag | 同步状态,默认为同步 false (异步),true 为同步
*/ */
set = (key, data, syncFlag) => { set = (key, data, syncFlag = true) => {
let tmpKey = this.checkKeyType(key, 2) let tmpKey = this.checkKeyType(key, 2)
if (tmpKey) { if (tmpKey) {
tmpKey = this.addEvnToKey(tmpKey) tmpKey = this.addEvnToKey(tmpKey)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!