Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0ff35766
authored
Oct 20, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:放出场景,卡片
1 parent
3d4a8d23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/index/index.js
View file @
0ff3576
...
...
@@ -207,11 +207,16 @@ Page({
// },
// 选车场景切换
selectCar
(
e
)
{
let
actNum
=
e
.
currentTarget
.
dataset
.
num
;
console
.
log
(
'e: '
,
e
);
let
{
num
,
scenestatus
}
=
e
.
currentTarget
.
dataset
;
// console.log('actNum: ', actNum);
this
.
setData
({
actNum
,
});
if
(
scenestatus
==
1
){
this
.
setData
({
actNum
:
num
,
});
}
},
// 头部看线索,产品切换
changeTabIndx
(
e
)
{
...
...
pages/tab/index/index.wxml
View file @
0ff3576
...
...
@@ -14,7 +14,8 @@
<!-- 托客户内容 -->
<view class="content" wx:if="{{tabIndx == 1 }}" hover-class="none" hover-stop-propagation="false">
<view class="scene">
<view class="item-wrap {{actNum== index ? 'act':''}}" wx:if="{{item.sceneStatus == 1}}" data-num="{{index}}" bindtap="selectCar" wx:for="{{senceData}}" wx:key="name">
<!-- wx:if="{{item.sceneStatus == 1}}" -->
<view class="item-wrap {{actNum== index ? 'act':''}}" data-num="{{index}}" data-scenestatus="{{item.sceneStatus}}" bindtap="selectCar" wx:for="{{senceData}}" wx:key="name">
<view class="item">
<image class="img" src="{{item.src}}" />
<view class="name">{{item.name}}</view>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment