Commit 4372f0f0 by 匡雅琴

跳转加按钮图

1 parent 96c262fe
// components/shareBtn/shareBtn.js
import { componentsMixin } from "../../mixins/index";
Component({
behaviors: [componentsMixin],
/**
* 组件的属性列表
*/
......
<!--components/shareBtn/shareBtn.wxml-->
<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>
</button>
\ No newline at end of file
......@@ -149,9 +149,7 @@ Page({
// 跳转产品详情
goDetail(e) {
console.log(e.currentTarget.dataset.item, "===");
wx.navigateTo({
url: e.currentTarget.dataset.item,
});
wx.$router.go(e.currentTarget.dataset.item);
},
/**
......
......@@ -13,7 +13,7 @@ var tabList = [
profit: '99999999万',
type: 'service',
productType: 'benefitCard',
path: '/productDetail/equity/equity'
path: 'equity'
},
{
img: 'product-img2',
......@@ -22,7 +22,7 @@ var tabList = [
profit: '1008万',
type: 'membrane',
productType: 'sunMembrane',
path: '/productDetail/solarFilm/solarFilm'
path: 'solarFilm'
}
],
videoList: [
......@@ -66,7 +66,7 @@ var tabList = [
profit: '216万',
type: 'membrane',
productType: 'protectMembrane',
path: '/productDetail/paintProtect/paintProtect'
path: 'paintProtect'
},
{
img: 'product-img4',
......@@ -75,7 +75,7 @@ var tabList = [
profit: '30万',
type: 'membrane',
productType: 'colorMembrane',
path: '/productDetail/changingFilm/changingFilm'
path: 'changingFilm'
}
]
},
......@@ -92,7 +92,7 @@ var tabList = [
profit: '36万',
type: 'beauty',
productType: 'digitBeauty',
path: '/productDetail/carBeauty/carBeauty'
path: 'carBeauty'
},
{
img: 'product-img6',
......@@ -101,7 +101,7 @@ var tabList = [
profit: '1008万',
type: 'light',
productType: 'chair',
path: '/productDetail/seatVentilate/seatVentilate'
path: 'seatVentilate'
},
{
img: 'product-img7',
......@@ -110,7 +110,7 @@ var tabList = [
profit: '22.68万',
type: 'light',
productType: 'ar',
path: '/productDetail/arNavigation/arNavigation'
path: 'arNavigation'
},
{
img: 'product-img8',
......@@ -119,7 +119,7 @@ var tabList = [
profit: '36.18万',
type: 'light',
productType: 'lamp',
path: '/productDetail/ambientLighting/ambientLighting'
path: 'ambientLighting'
},
{
img: 'product-img9',
......@@ -128,7 +128,7 @@ var tabList = [
profit: '38.88万',
type: 'service',
productType: 'navigation',
path: '/productDetail/navigationArround/navigationArround'
path: 'navigationArround'
}
],
videoList: [
......@@ -167,7 +167,7 @@ var tabList = [
profit: '36万',
type: 'beauty',
productType: 'digitBeauty',
path: '/productDetail/lossPhase/lossPhase'
path: 'lossPhase'
},
{
img: 'product-img11',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!