Commit 4372f0f0 by 匡雅琴

跳转加按钮图

1 parent 96c262fe
// components/shareBtn/shareBtn.js // components/shareBtn/shareBtn.js
import { componentsMixin } from "../../mixins/index";
Component({ Component({
behaviors: [componentsMixin],
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
......
<!--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}}img/productDetail/equity/share.png?v={{img_version}}" /> <image class="btn-icon" mode="widthFix" webp src="{{IMGURL}}image/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
...@@ -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,
});
}, },
/** /**
......
...@@ -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',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!