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 1dfb66ef
authored
Oct 20, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat;添加开通活动跳转参数
1 parent
4dec32fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/index/index.js
View file @
1dfb66e
...
...
@@ -226,9 +226,18 @@ Page({
readApi
(
param
)
}
},
gotoApply
()
{
gotoApply
(
e
)
{
let
{
type
,
item
}
=
e
.
currentTarget
.
dataset
console
.
log
(
'type,item: '
,
type
,
item
);
if
(
type
==
"active"
){
//申请活动
wx
.
$router
.
go
(
"packageOutput.openBusiness"
);
}
else
{
//申请门店
wx
.
$router
.
go
(
"apply"
);
}
// wx.$router.go('apply',1235)
wx
.
$router
.
go
(
"apply"
);
},
getMore
(
e
)
{
console
.
log
(
"显示更多数据"
);
...
...
pages/tab/index/index.wxml
View file @
1dfb66e
...
...
@@ -70,7 +70,7 @@
<image class="copy" data-phone="{{item.phone}}" bindtap="setCopyDataFn" src="{{IMG_URL}}index/copy.png" />
</view>
</view>
<view class="btn" hover-class="none" hover-stop-propagation="false" bindtap="gotoApply">
<view class="btn" hover-class="none" hover-stop-propagation="false"
data-type="active" data-item="{{item}}"
bindtap="gotoApply">
开通活动
</view>
</view>
...
...
@@ -106,7 +106,7 @@
<image class="phone-img" data-phone="{{item.phone}}" bindtap="phoneCallFn" src="{{IMG_URL}}index/phone.png" />
<image class="copy" data-phone="{{item.phone}}" bindtap="setCopyDataFn" src="{{IMG_URL}}index/copy.png" />
</view>
<view class="btn" hover-class="none" hover-stop-propagation="false"
bindtap="gotoApply
" wx:if="{{item.applyStatus == 0}}">
<view class="btn" hover-class="none" hover-stop-propagation="false"
data-type="shop" bindtap="gotoApply" data-item="{{item}}
" wx:if="{{item.applyStatus == 0}}">
+开店面
</view>
</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