Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 74d46032
authored
Dec 26, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
系统订阅场景更换
1 parent
41aa1341
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
components/CooperationApply/CooperationApply.js
components/CooperationApply/CooperationApply.wxml
components/scene/scene.wxml
components/CooperationApply/CooperationApply.js
View file @
74d4603
...
...
@@ -49,6 +49,7 @@ Component({
this
.
setData
({
tabIndex
:
e
.
currentTarget
.
dataset
.
index
,
});
this
.
selectComponent
(
"#sceneBox"
).
resetScene
()
},
// 合作方式切换
applyChange
(
e
)
{
...
...
@@ -56,7 +57,7 @@ Component({
this
.
setData
({
selectApply
:
e
.
detail
.
value
,
});
this
.
selectComponent
(
"#sceneBox"
).
resetScene
()
//
this.selectComponent("#sceneBox").resetScene()
},
// 展开收起
handleFold
()
{
...
...
components/CooperationApply/CooperationApply.wxml
View file @
74d4603
...
...
@@ -49,6 +49,6 @@
</view>
<!-- 选择产品和场景 -->
<view class="scene-box">
<scene id="sceneBox" foldFlag="{{foldFlag}}" selectApply="{{
selectApply
}}"></scene>
<scene id="sceneBox" foldFlag="{{foldFlag}}" selectApply="{{
tabIndex
}}"></scene>
</view>
</view>
\ No newline at end of file
components/scene/scene.wxml
View file @
74d4603
...
...
@@ -3,7 +3,7 @@
<!-- 业务场景 -->
<view class="fold-title">业务场景</view>
<view class="product-tab-box fold-box">
<view wx:for="{{selectApply ==
1
? productTabList : productSubscribTabList}}" wx:key="index" class="item-wrap {{item.id == sceneNum ? 'act':''}}" bindtap="selectScene" data-item="{{item}}">
<view wx:for="{{selectApply ==
0
? productTabList : productSubscribTabList}}" wx:key="index" class="item-wrap {{item.id == sceneNum ? 'act':''}}" bindtap="selectScene" data-item="{{item}}">
<view class="fold-scene-item {{item.id == sceneNum ? 'fold-scene-item-active':''}}">
<image class="fold-img" mode="widthFix" webp src="{{IMGURL}}application/{{item.url}}.png?v={{img_version}}"></image>
<view class="product-item-title {{item.id == sceneNum ? 'product-item-title-active':''}}">
...
...
@@ -20,7 +20,7 @@
</view>
<view class="fold-product">
<!-- 增值转化 -->
<block wx:if="{{selectApply ==
1
}}">
<block wx:if="{{selectApply ==
0
}}">
<block wx:for="{{productList[sceneName]}}">
<view class="item {{item.isSelect ? 'item-selected': ''}}" bindtap="selectScenePro" data-index="{{index}}">
<view>{{item.nameZh}}</view>
...
...
@@ -29,7 +29,7 @@
</block>
</block>
<!-- 系统订阅 -->
<block wx:if="{{selectApply ==
2
}}">
<block wx:if="{{selectApply ==
1
}}">
<block wx:for="{{productSubscibList[sceneName]}}">
<view class="item item-subscrib {{item.isSelect ? 'item-selected': ''}}" bindtap="selectScenePro" data-index="{{index}}">
<view>{{item.nameZh}}</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