diff --git a/.gitignore b/.gitignore index f4e4c6b..d45e2c8 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ node_modules/ .vscode/ /unpackage/ .hbuilderx/launch.json +.project.config.json +.project.private.config.json diff --git a/components/m-goods-list/list.vue b/components/m-goods-list/list.vue index 4c1ac7f..a41ac7d 100644 --- a/components/m-goods-list/list.vue +++ b/components/m-goods-list/list.vue @@ -179,9 +179,10 @@ }, // 数据去重一下 只显示一次 减免 劵 什么的 getPromotion(item) { - if (item.promotionMap) { + if (item.content ? item.content.promotionMap : item.promotionMap) { + const fieldList = item.content ? item.content.promotionMap : item.promotionMap let array = []; - Object.keys(item.promotionMap).forEach((child) => { + Object.keys(fieldList).forEach((child) => { if (!array.includes(child.split("-")[0])) { array.push(child.split("-")[0]); } diff --git a/components/m-goods-list/promotion.vue b/components/m-goods-list/promotion.vue index 356874e..cda283c 100644 --- a/components/m-goods-list/promotion.vue +++ b/components/m-goods-list/promotion.vue @@ -24,6 +24,10 @@ $options.filters.goodsFormatPrice(item.purchasePrice )[1] }} + +
+ ¥0 .00 +
diff --git a/components/m-share/index.vue b/components/m-share/index.vue index 0f8d394..c1ce033 100644 --- a/components/m-share/index.vue +++ b/components/m-share/index.vue @@ -83,20 +83,7 @@ export default { this.configs.shareLink + getCurrentPages()[getCurrentPages().length - 1].__page__.fullPath; } - if (content === null || content === undefined) { - content = ""; - } else content = content + ""; - const result = h5Copy(content); - if (result === false) { - uni.showToast({ - title: "不支持", - }); - } else { - uni.showToast({ - title: "复制成功", - icon: "none", - }); - } + this.$options.filters.setClipboard(content) }, // #endif diff --git a/config/config.js b/config/config.js index b5bdeab..67edeb8 100644 --- a/config/config.js +++ b/config/config.js @@ -14,7 +14,7 @@ export default { customerServiceEmail: "lili@lili.com", //客服邮箱 imWebSrc: "https://im.pickmall.cn", //IM地址 baseWsUrl: "wss://im-api.pickmall.cn/lili/webSocket", // IM WS 地址 - enableGetClipboard: true, //是否启用粘贴板获取 scanAuthNavigation 中的链接,如果匹配则会跳转到对应页面 + enableGetClipboard: false, //是否启用粘贴板获取 scanAuthNavigation 中的链接,如果匹配则会跳转到对应页面 enableMiniBarStartUpApp: true, //是否在h5中右侧浮空按钮点击启动app /** * 如需更换主题请修改此处以及uni.scss中的全局颜色 @@ -22,6 +22,5 @@ export default { mainColor: "#ff3c2a", // 主题色 lightColor: "#ff6b35", // 高亮主题色 aiderLightColor: "#ff9f28", // 辅助高亮颜色 - defaultUserTopBackground:"/static/img/main-bg.png", // 我的页面用户背景 渲染的大小: 750 × 443 px 渲染时的宽高比: 750∶443 defaultUserPhoto:"/static/missing-face.png" // 默认用户头像 }; diff --git a/manifest.json b/manifest.json index ec82d1b..a37a425 100644 --- a/manifest.json +++ b/manifest.json @@ -211,7 +211,8 @@ "version" : "1.3.0", "provider" : "wx2b03c6e691cd7370" } - } + }, + "requiredPrivateInfos" : [ "chooseLocation", "getLocation" ] }, "h5" : { "devServer" : { diff --git a/pages/cart/coupon/myCoupon.vue b/pages/cart/coupon/myCoupon.vue index fe029a7..687d73f 100644 --- a/pages/cart/coupon/myCoupon.vue +++ b/pages/cart/coupon/myCoupon.vue @@ -32,7 +32,7 @@ @@ -139,7 +139,7 @@ export default { pageSize: 10, status: 1, }, - wheterEmpty: false, + whetherEmpty: false, }, { text: "已使用", @@ -151,7 +151,7 @@ export default { pageSize: 10, status: 2, }, - wheterEmpty: false, + whetherEmpty: false, }, { text: "已过期", @@ -163,7 +163,7 @@ export default { pageSize: 10, status: 3, }, - wheterEmpty: false, + whetherEmpty: false, }, ], couponList: [], //优惠券列表 @@ -206,7 +206,7 @@ export default { let data = res.data.result.records; if (data.length == 0) { if (res.data.pageNumber == 1) { - this.navList[index].wheterEmpty = true; + this.navList[index].whetherEmpty = true; } else { this.navList[index].loadStatus = "noMore"; } diff --git a/pages/cart/payment/shareOrderGoods.vue b/pages/cart/payment/shareOrderGoods.vue index 79c4312..f7f21f2 100644 --- a/pages/cart/payment/shareOrderGoods.vue +++ b/pages/cart/payment/shareOrderGoods.vue @@ -1,5 +1,5 @@ @@ -72,13 +72,13 @@ import popupGoods from "@/components/m-buy/goods"; //购物车商品的模块 export default { data() { return { - flage: false, //判断接口是否正常请求 + flag: false, //判断接口是否正常请求 addr: { id: "", }, maskFlag: false, //商品弹框 timeStamp: 0, - shareFlage: false, + shareFlag: false, data: "", isMaster: true, selectedGoods: "", //选择的商品规格昵称 @@ -116,7 +116,7 @@ export default { }, methods: { closeShare() { - this.shareFlage = false; + this.shareFlag = false; }, // 这里的话得先跳到商品详情才能购买商品 toBuy() { @@ -131,7 +131,7 @@ export default { }, // 分享 share() { - this.shareFlage = true; + this.shareFlag = true; }, closePopupBuy(val) { this.maskFlag = false; @@ -140,7 +140,7 @@ export default { async init(sn, sku) { let res = await getPinTuanShare(sn, sku); if (res.data.success && res.data.result.promotionGoods) { - this.flage = true; + this.flag = true; this.data = res.data.result; this.selectedGoods = res.data.result.promotionGoods; let endTime = Date.parse( diff --git a/pages/mine/address/add.vue b/pages/mine/address/add.vue index 6bc4923..a491dc4 100644 --- a/pages/mine/address/add.vue +++ b/pages/mine/address/add.vue @@ -33,18 +33,18 @@ - +