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 4372f0f0
authored
Sep 21, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
跳转加按钮图
1 parent
96c262fe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
components/shareBtn/shareBtn.js
components/shareBtn/shareBtn.wxml
pages/addValue/addValue/addValue.js
pages/addValue/constant/data.js
components/shareBtn/shareBtn.js
View file @
4372f0f
// components/shareBtn/shareBtn.js
// components/shareBtn/shareBtn.js
import
{
componentsMixin
}
from
"../../mixins/index"
;
Component
({
Component
({
behaviors
:
[
componentsMixin
],
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
...
...
components/shareBtn/shareBtn.wxml
View file @
4372f0f
<!--components/shareBtn/shareBtn.wxml-->
<!--components/shareBtn/shareBtn.wxml-->
<button class="btn-share" open-type="share">
<button class="btn-share" open-type="share">
<image class="btn-icon" mode="widthFix" webp src="{{IMGURL}}im
g
/productDetail/equity/share.png?v={{img_version}}" />
<image class="btn-icon" mode="widthFix" webp src="{{IMGURL}}im
age
/productDetail/equity/share.png?v={{img_version}}" />
<text>分享此页面</text>
<text>分享此页面</text>
</button>
</button>
\ No newline at end of file
\ No newline at end of file
pages/addValue/addValue/addValue.js
View file @
4372f0f
...
@@ -149,9 +149,7 @@ Page({
...
@@ -149,9 +149,7 @@ Page({
// 跳转产品详情
// 跳转产品详情
goDetail
(
e
)
{
goDetail
(
e
)
{
console
.
log
(
e
.
currentTarget
.
dataset
.
item
,
"==="
);
console
.
log
(
e
.
currentTarget
.
dataset
.
item
,
"==="
);
wx
.
navigateTo
({
wx
.
$router
.
go
(
e
.
currentTarget
.
dataset
.
item
);
url
:
e
.
currentTarget
.
dataset
.
item
,
});
},
},
/**
/**
...
...
pages/addValue/constant/data.js
View file @
4372f0f
...
@@ -13,7 +13,7 @@ var tabList = [
...
@@ -13,7 +13,7 @@ var tabList = [
profit
:
'99999999万'
,
profit
:
'99999999万'
,
type
:
'service'
,
type
:
'service'
,
productType
:
'benefitCard'
,
productType
:
'benefitCard'
,
path
:
'
/productDetail/equity/
equity'
path
:
'equity'
},
},
{
{
img
:
'product-img2'
,
img
:
'product-img2'
,
...
@@ -22,7 +22,7 @@ var tabList = [
...
@@ -22,7 +22,7 @@ var tabList = [
profit
:
'1008万'
,
profit
:
'1008万'
,
type
:
'membrane'
,
type
:
'membrane'
,
productType
:
'sunMembrane'
,
productType
:
'sunMembrane'
,
path
:
'
/productDetail/solarFilm/
solarFilm'
path
:
'solarFilm'
}
}
],
],
videoList
:
[
videoList
:
[
...
@@ -66,7 +66,7 @@ var tabList = [
...
@@ -66,7 +66,7 @@ var tabList = [
profit
:
'216万'
,
profit
:
'216万'
,
type
:
'membrane'
,
type
:
'membrane'
,
productType
:
'protectMembrane'
,
productType
:
'protectMembrane'
,
path
:
'
/productDetail/paintProtect/
paintProtect'
path
:
'paintProtect'
},
},
{
{
img
:
'product-img4'
,
img
:
'product-img4'
,
...
@@ -75,7 +75,7 @@ var tabList = [
...
@@ -75,7 +75,7 @@ var tabList = [
profit
:
'30万'
,
profit
:
'30万'
,
type
:
'membrane'
,
type
:
'membrane'
,
productType
:
'colorMembrane'
,
productType
:
'colorMembrane'
,
path
:
'
/productDetail/changingFilm/
changingFilm'
path
:
'changingFilm'
}
}
]
]
},
},
...
@@ -92,7 +92,7 @@ var tabList = [
...
@@ -92,7 +92,7 @@ var tabList = [
profit
:
'36万'
,
profit
:
'36万'
,
type
:
'beauty'
,
type
:
'beauty'
,
productType
:
'digitBeauty'
,
productType
:
'digitBeauty'
,
path
:
'
/productDetail/carBeauty/
carBeauty'
path
:
'carBeauty'
},
},
{
{
img
:
'product-img6'
,
img
:
'product-img6'
,
...
@@ -101,7 +101,7 @@ var tabList = [
...
@@ -101,7 +101,7 @@ var tabList = [
profit
:
'1008万'
,
profit
:
'1008万'
,
type
:
'light'
,
type
:
'light'
,
productType
:
'chair'
,
productType
:
'chair'
,
path
:
'
/productDetail/seatVentilate/
seatVentilate'
path
:
'seatVentilate'
},
},
{
{
img
:
'product-img7'
,
img
:
'product-img7'
,
...
@@ -110,7 +110,7 @@ var tabList = [
...
@@ -110,7 +110,7 @@ var tabList = [
profit
:
'22.68万'
,
profit
:
'22.68万'
,
type
:
'light'
,
type
:
'light'
,
productType
:
'ar'
,
productType
:
'ar'
,
path
:
'
/productDetail/arNavigation/
arNavigation'
path
:
'arNavigation'
},
},
{
{
img
:
'product-img8'
,
img
:
'product-img8'
,
...
@@ -119,7 +119,7 @@ var tabList = [
...
@@ -119,7 +119,7 @@ var tabList = [
profit
:
'36.18万'
,
profit
:
'36.18万'
,
type
:
'light'
,
type
:
'light'
,
productType
:
'lamp'
,
productType
:
'lamp'
,
path
:
'
/productDetail/ambientLighting/
ambientLighting'
path
:
'ambientLighting'
},
},
{
{
img
:
'product-img9'
,
img
:
'product-img9'
,
...
@@ -128,7 +128,7 @@ var tabList = [
...
@@ -128,7 +128,7 @@ var tabList = [
profit
:
'38.88万'
,
profit
:
'38.88万'
,
type
:
'service'
,
type
:
'service'
,
productType
:
'navigation'
,
productType
:
'navigation'
,
path
:
'
/productDetail/navigationArround/
navigationArround'
path
:
'navigationArround'
}
}
],
],
videoList
:
[
videoList
:
[
...
@@ -167,7 +167,7 @@ var tabList = [
...
@@ -167,7 +167,7 @@ var tabList = [
profit
:
'36万'
,
profit
:
'36万'
,
type
:
'beauty'
,
type
:
'beauty'
,
productType
:
'digitBeauty'
,
productType
:
'digitBeauty'
,
path
:
'
/productDetail/lossPhase/
lossPhase'
path
:
'lossPhase'
},
},
{
{
img
:
'product-img11'
,
img
:
'product-img11'
,
...
...
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