From 79990aeca1851304ef70cbcc4ec0120ce121cf06 Mon Sep 17 00:00:00 2001
From: YuanHuakk <1751826683@qq.com>
Date: Thu, 21 Dec 2023 21:10:07 +0800
Subject: [PATCH] =?UTF-8?q?feat(custom):=20=E6=96=B0=E5=A2=9E=E5=95=86?=
=?UTF-8?q?=E5=93=81=E8=AF=A6=E6=83=85=E5=88=86=E4=BA=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 4 +--
src/pages/goods/goods_detail/index.config.ts | 1 +
src/pages/goods/goods_detail/index.vue | 31 +++++++++++++-------
3 files changed, 24 insertions(+), 12 deletions(-)
diff --git a/package.json b/package.json
index de6f3d6..5d7f717 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "jdt-user",
- "version": "3.0.9",
+ "version": "3.0.10",
"private": true,
"description": "",
"templateInfo": {
@@ -9,7 +9,7 @@
"css": "sass"
},
"taroConfig": {
- "version": "3.0.9"
+ "version": "3.0.10"
},
"scripts": {
"build:weapp": "taro build --type weapp",
diff --git a/src/pages/goods/goods_detail/index.config.ts b/src/pages/goods/goods_detail/index.config.ts
index ea1761b..295b9c8 100644
--- a/src/pages/goods/goods_detail/index.config.ts
+++ b/src/pages/goods/goods_detail/index.config.ts
@@ -1,4 +1,5 @@
export default definePageConfig({
navigationBarTitleText: "商品详情",
navigationStyle: "custom",
+ enableShareAppMessage: true,
});
diff --git a/src/pages/goods/goods_detail/index.vue b/src/pages/goods/goods_detail/index.vue
index b7a2d61..34ac625 100644
--- a/src/pages/goods/goods_detail/index.vue
+++ b/src/pages/goods/goods_detail/index.vue
@@ -39,11 +39,17 @@
{{ goodInfo.name }}
{{ goodInfo.profile }}
-
-
-
-
-
+
+
+
+
+
+
+
@@ -100,6 +106,12 @@ Taro.useLoad(async (options) => {
});
});
+Taro.useShareAppMessage(() => ({
+ title: `捷兑通-${goodInfo.value.name}`,
+ path: `/pages/goods/goods_detail/index?gid=${goodInfo.value.gid}&type=1`,
+ imageUrl: `https://${goodInfo.value.cover}`,
+}));
+
const get_good_detail = async (gid: string) => {
try {
const res = await getActiveGoodsDetail({ gid: gid });
@@ -236,11 +248,10 @@ page {
color: #999;
}
- .nut-button {
- // margin: 10px;
- position: absolute;
- right: 40rpx;
- bottom: 20rpx;
+ .cartBox {
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
}
}