diff --git a/components/m-buy/README.md b/components/m-buy/README.md
new file mode 100644
index 0000000..c004c1f
--- /dev/null
+++ b/components/m-buy/README.md
@@ -0,0 +1,3 @@
+## 购买组件
+1.本组件是砍价,积分购买,参团等复用组
+2.后续会将此组件和商品购买组件合并,文档后续再出
diff --git a/components/m-buy/goods.vue b/components/m-buy/goods.vue
new file mode 100644
index 0000000..b675f44
--- /dev/null
+++ b/components/m-buy/goods.vue
@@ -0,0 +1,424 @@
+
+
+
+
+
+
+
diff --git a/components/m-buy/popup.js b/components/m-buy/popup.js
new file mode 100644
index 0000000..2833633
--- /dev/null
+++ b/components/m-buy/popup.js
@@ -0,0 +1,8 @@
+
+
+export default {
+ height:"1000rpx", //弹出层高度
+ mode:"bottom", //弹出层位置
+ radius:"32", //圆角 rpx,
+ close:false //能否点击遮罩退出
+}
\ No newline at end of file
diff --git a/components/m-buy/popup.scss b/components/m-buy/popup.scss
new file mode 100644
index 0000000..d571c30
--- /dev/null
+++ b/components/m-buy/popup.scss
@@ -0,0 +1,37 @@
+.view-class-title {
+ font-size: 26rpx;
+ color: #262626;
+
+ font-weight: 700;
+ height: 80rpx;
+ line-height: 80rpx;
+}
+.confirmBtn {
+ width: 90%;
+}
+.confirmBtn,
+.box-btn {
+ line-height: 80rpx;
+ height: 80rpx;
+
+ background: $price-color;
+ color: #fff;
+ border-radius: 200px;
+ text-align: center;
+ margin: 5rpx auto;
+}
+
+.btns {
+ display: flex;
+ width: 100%;
+
+ margin: 0 auto;
+}
+.goods-price-bigshow {
+ font-size: 48rpx;
+ font-weight: bold;
+}
+.box-btn {
+ flex: 1;
+ margin: 0 10rpx;
+}
diff --git a/components/m-share/index.vue b/components/m-share/index.vue
index a3d87d8..449ea4b 100644
--- a/components/m-share/index.vue
+++ b/components/m-share/index.vue
@@ -58,13 +58,6 @@ export default {
// 图片缩略图、 商品名称 、 type(goods,shop,pintuan) 拼团商品分享以及店铺分享
props: ["thumbnail", "goodsName", "type", "goodsId", "link"],
- // #ifdef MP-WEIXIN
- onShareAppMessage(res) {
- return {
- imageUrl: this.thumbnail || require("@/static/logo.png"),
- };
- },
- // #endif
methods: {
close() {
this.$emit("close");
@@ -97,21 +90,24 @@ export default {
},
// #endif
+ shareTitle() {
+ let shareTitle;
+ if (this.type == "goods") {
+ shareTitle = `我发现了一个${this.goodsName}商品快来跟我一起看看吧`;
+ } else if (this.type == "shops") {
+ shareTitle = `我发现了一个${this.goodsName}店铺快来跟我一起看看吧`;
+ } else if (this.type == "pintuan") {
+ shareTitle = `我拼了一个${this.goodsName}快来跟我一起抢购吧!`;
+ } else if (this.type == "kanjia") {
+ shareTitle = `请快来帮我砍一刀${this.goodsName}`;
+ }
+ return shareTitle;
+ },
+
// #ifdef APP-PLUS
handleShare(val) {
+ console.log("12312312")
if (val.type <= 1) {
- let shareTitle;
-
- if (this.type == "goods") {
- shareTitle = `我发现了一个${this.goodsName}商品快来跟我一起看看吧`;
- } else if (this.type == "shops") {
- shareTitle = `我发现了一个${this.goodsName}店铺快来跟我一起看看吧`;
- } else if (this.type == "pintuan") {
- shareTitle = `我拼了一个${this.goodsName}快来跟我一起抢购吧!`;
- } else if (this.type == "kanjia") {
- shareTitle = `请快来帮我砍一刀${this.goodsName}`;
- }
-
let scene; // "WXSenceTimeline 朋友圈 WXSceneSession 微信好友"
val.type == 1
? (scene = "WXSenceTimeline")
@@ -123,7 +119,7 @@ export default {
imageUrl: this.thumbnail,
type: 0,
summary: this.goodsName,
- title: shareTitle,
+ title: this.shareTitle(),
success: function (res) {
uni.showToast({
title: "分享成功!",
diff --git a/pages/cart/payment/shareOrderGoods.vue b/pages/cart/payment/shareOrderGoods.vue
index 36f03de..79c4312 100644
--- a/pages/cart/payment/shareOrderGoods.vue
+++ b/pages/cart/payment/shareOrderGoods.vue
@@ -67,7 +67,7 @@ import { getGoods } from "@/api/goods.js";
import { getPinTuanShare } from "@/api/order";
import shares from "@/components/m-share/index";
import storage from "@/utils/storage.js";
-import popupGoods from "./popup/goods"; //购物车商品的模块
+import popupGoods from "@/components/m-buy/goods"; //购物车商品的模块
export default {
data() {
diff --git a/pages/order/fillorder.vue b/pages/order/fillorder.vue
index c8a9674..ccd1c96 100644
--- a/pages/order/fillorder.vue
+++ b/pages/order/fillorder.vue
@@ -80,7 +80,7 @@
{{ item.storeName }}
-
{{ item.promotionNotice }}
+ {{ item.promotionNotice || '' }}
diff --git a/pages/order/myOrder.vue b/pages/order/myOrder.vue
index 7684cfe..a0caf53 100644
--- a/pages/order/myOrder.vue
+++ b/pages/order/myOrder.vue
@@ -505,6 +505,9 @@ page,
.swiper-box {
height: calc(100vh - 40px);
+ // #ifdef H5
+ height: calc(100vh - 40px - 44px);
+ // #endif
}
.list-scroll-content {
diff --git a/pages/passport/wechatMPLogin.vue b/pages/passport/wechatMPLogin.vue
index 3c05af1..838ff79 100644
--- a/pages/passport/wechatMPLogin.vue
+++ b/pages/passport/wechatMPLogin.vue
@@ -134,11 +134,10 @@ export default {
getUserInfo().then((user) => {
storage.setUserInfo(user.data.result);
storage.setHasLogin(true);
- setTimeout(() => {
- uni.navigateBack({
- delta: 1,
- });
- }, 500);
+
+ uni.navigateBack({
+ delta: 1,
+ });
});
});
},
@@ -228,7 +227,6 @@ text.shop {
background: #fff !important;
}
-
.btn-auth {
width: 92%;
margin: 0 auto 40rpx;
diff --git a/pages/product/product/style.scss b/pages/product/product/style.scss
index 0d2beea..c10c602 100644
--- a/pages/product/product/style.scss
+++ b/pages/product/product/style.scss
@@ -81,7 +81,7 @@ page {
align-items: center;
}
.-goods-price {
- flex: 8;
+ flex: 7;
color: $price-color;
font-size: 32rpx;
line-height: 1;
diff --git a/pages/promotion/bargain/detail.vue b/pages/promotion/bargain/detail.vue
index beef97c..fd784d0 100644
--- a/pages/promotion/bargain/detail.vue
+++ b/pages/promotion/bargain/detail.vue
@@ -1,6 +1,6 @@
-
+
邀请砍价
-
- 立即购买
+
我要开团
@@ -89,18 +92,17 @@
-
+
-
+
-
@@ -113,7 +115,7 @@