From c8f23d538132f2ba745186f0fae679443a3db467 Mon Sep 17 00:00:00 2001 From: Loki <654612@qq.com> Date: Wed, 24 Aug 2022 16:32:47 +0800 Subject: [PATCH] update --- components/PromotionGood.vue | 29 +++++++++++++-------- components/UserEvaluation.vue | 2 +- config/index.js | 6 ++--- libs/wechat.js | 3 ++- manifest.json | 22 ++++++++++++---- pages.json | 6 ++--- pages/home/components/Banner.vue | 2 +- pages/order/OrderSubmission/index.vue | 36 +++++++++++++++++---------- pages/shop/GoodsCon/index.vue | 4 +-- pages/user/User/index.vue | 2 +- store/index.js | 23 +++++++++-------- utils/index.js | 5 +++- utils/request.js | 6 ++--- 13 files changed, 90 insertions(+), 56 deletions(-) diff --git a/components/PromotionGood.vue b/components/PromotionGood.vue index c909b3a..1cc36e9 100644 --- a/components/PromotionGood.vue +++ b/components/PromotionGood.vue @@ -3,7 +3,7 @@ - 为你推荐 + 精选食品 @@ -13,13 +13,13 @@ - + {{ item.storeName }} {{ item.storeName }} - {{ item.price }} + 优品特价:{{ item.price }} /市场价:{{item.otPrice}} 仅剩:{{ item.stock }}{{ item.unitName }} @@ -81,14 +81,14 @@ export default { } .goods-box { - width: 345rpx; + width: 690rpx; background: #fff; padding-bottom: 20rpx; border-radius: 20rpx; overflow: hidden; .img-box { - width: 345rpx; + width: 690rpx; height: 345rpx; overflow: hidden; position: relative; @@ -103,14 +103,14 @@ export default { } .img { - width: 345rpx; + width: 690rpx; height: 345rpx; - background-color: #ccc; + background-color: #fff; } } .tip { - width: 346rpx; + width: 690rpx; line-height: 56rpx; background: rgba(246, 242, 234, 1); font-size: 22rpx; @@ -131,7 +131,7 @@ export default { .price-box { padding: 10rpx 20rpx 0; - width: 344rpx; + width: 690rpx; box-sizing: border-box; .sales { @@ -153,7 +153,14 @@ export default { &:before { content: '¥'; font-size: 26rpx; - } + } + + text{ + color: #000000; + text-decoration: line-through; + font-size: 28rpx; + font-style: italic; + } } .original { @@ -199,7 +206,7 @@ export default { .goods-item { margin-right: 20rpx; margin-bottom: 20rpx; - width: 345rpx; + width: 690rpx; box-shadow: 0px 0px 10rpx 4rpx rgba(199, 199, 199, 0.22); border-radius: 20rpx; diff --git a/components/UserEvaluation.vue b/components/UserEvaluation.vue index f17897e..c60f3de 100644 --- a/components/UserEvaluation.vue +++ b/components/UserEvaluation.vue @@ -19,7 +19,7 @@ - 武设优品电商店员 + 电商店员 :{{item.merchantReplyContent}} diff --git a/config/index.js b/config/index.js index c5df825..abdf365 100644 --- a/config/index.js +++ b/config/index.js @@ -1,4 +1,4 @@ - -// export const VUE_APP_API_URL = 'http://192.168.10.150:7777/xiaohuiapp' -export const VUE_APP_API_URL = 'https://xiaohui.shop.cyjyyjy.com/xiaohuiapp' +export const VUE_APP_API_URL = 'https://bxg.api.cyjyyjy.com/bxgApp' +// export const VUE_APP_API_URL = 'http://192.168.10.254:48080/bxgApp' +// export const VUE_APP_API_URL = 'https://xiaohui.shop.cyjyyjy.com/xiaohuiapp' export const VUE_APP_RESOURCES_URL = 'https://h5.yixiang.co/static' diff --git a/libs/wechat.js b/libs/wechat.js index 2b35c88..bd0c01e 100644 --- a/libs/wechat.js +++ b/libs/wechat.js @@ -354,7 +354,8 @@ export function ready() { }) } -export function wxShowLocation() { +export function wxShowLocation() { + console.log("wxShowLocation","尝试获取地理位置"); return new Promise(() => { wechatEvevt('getLocation', { type: 'wgs84' }) .then(res => { diff --git a/manifest.json b/manifest.json index c1d6e10..0aa07b6 100644 --- a/manifest.json +++ b/manifest.json @@ -53,20 +53,32 @@ ] }, /* ios打包配置 */ - "ios" : {}, + "ios" : { + "urltypes" : "", + "capabilities" : { + "entitlements" : { + "com.apple.developer.associated-domains" : [ "applinks:demo.com" ] + } + } + }, /* SDK配置 */ "sdkConfigs" : { "oauth" : { "weixin" : { "appid" : "wx7c84ede33062d1e4", "appsecret" : "c47ef66d3311194da44e60387d5c1abd", - "UniversalLinks" : "https://yixiang.co/app/" + "UniversalLinks" : "https://WWWW/" } }, "payment" : { "weixin" : { "appid" : "wx7c84ede33062d1e4", - "UniversalLinks" : "https://yixiang.co/app/" + "UniversalLinks" : "https://WWWW/" + }, + "paypal" : { + "__platform__" : [ "ios", "android" ], + "returnURL_ios" : "S", + "returnURL_android" : "SSSS" } }, /* 应用发布信息 */ @@ -237,7 +249,7 @@ }, "quickapp" : {}, "mp-weixin" : { - "appid" : "wxbf7999be196853d5", + "appid" : "wxcd49c83634afd731", "setting" : { "urlCheck" : false }, @@ -265,7 +277,7 @@ "usingComponents" : true }, "h5" : { - "title" : "武设优品电商", + "title" : "精品电商", "devServer" : { "disableHostCheck" : true, "proxy" : { diff --git a/pages.json b/pages.json index fdd91c2..cde10ec 100644 --- a/pages.json +++ b/pages.json @@ -3,7 +3,7 @@ { "path": "pages/Loading/index", "style": { - "navigationBarTitleText": "武设优品电商" + "navigationBarTitleText": "优品电商" } }, { @@ -40,7 +40,7 @@ { "path": "pages/home/index", "style": { - "navigationBarTitleText": "武设优品电商", + "navigationBarTitleText": "优品电商", "navigationBarTextStyle": "white", "navigationStyle": "custom" } @@ -444,7 +444,7 @@ }, "globalStyle": { "navigationBarTextStyle": "black", - "navigationBarTitleText": "武设优品电商", + "navigationBarTitleText": "优品电商", "navigationBarBackgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8", "navigationStyle": "default" diff --git a/pages/home/components/Banner.vue b/pages/home/components/Banner.vue index 7e66cc3..067ec2a 100644 --- a/pages/home/components/Banner.vue +++ b/pages/home/components/Banner.vue @@ -3,7 +3,7 @@ diff --git a/pages/order/OrderSubmission/index.vue b/pages/order/OrderSubmission/index.vue index 9f5ace4..1892b20 100644 --- a/pages/order/OrderSubmission/index.vue +++ b/pages/order/OrderSubmission/index.vue @@ -2,7 +2,7 @@ - + @@ -17,7 +17,7 @@ - 设置收货地址 + 设置地址 @@ -71,9 +71,10 @@ - 快递费用 - - {{ orderGroupInfo.priceGroup.storePostage > 0 ? orderGroupInfo.priceGroup.storePostage : '免运费' }} + 配送费用 + + 19元起送,配送免费,请保持手机畅通~ + @@ -107,10 +108,10 @@ 微信支付 微信快捷支付 - + 积分支付 可用积分:{{ userInfo.integral || 0 }} @@ -188,7 +189,7 @@ .order-submission .allAddress .nav .item.on:before { position: absolute; bottom: 0; - content: '快递配送'; + content: '免费送货'; font-size: 0.28 * 100rpx; display: block; height: 0; @@ -273,7 +274,7 @@ export default { offlinePayStatus: 2, from: this.$deviceType, deduction: true, - enableIntegral: true, + enableIntegral: false, enableIntegralNum: 0, isWeixin: _isWeixin, pinkId: 0, @@ -293,7 +294,7 @@ export default { }, mark: '', systemStore: {}, - shipping_type: 0, + shipping_type: 1, contacts: '', contactsTel: '', storeSelfMention: 0, @@ -444,7 +445,16 @@ export default { this.addressInfo = addressInfo this.computedPrice() }, - createOrder() { + createOrder() { + // if (this.orderPrice.payPrice < 19){ + // uni.showToast({ + // title: '19元起送.', + // icon: 'none', + // duration: 2000, + // }) + // return + // } + if (this.isIntegral) { // 积分支付 if (this.userInfo.integral < this.orderPrice.payIntegral) { @@ -485,7 +495,7 @@ export default { return } - if (!/^1(3|4|5|7|8|9|6)\d{9}$/.test(this.contactsTel)) { + if (!/^1(3|4|5|7|8|9|6|7)\d{9}$/.test(this.contactsTel)) { uni.showToast({ title: '请填写正确的手机号', icon: 'none', @@ -495,7 +505,7 @@ export default { } if (!/^[\u4e00-\u9fa5\w]{2,16}$/.test(this.contacts)) { uni.showToast({ - title: '请填写您的真实姓名', + title: '请填写您的称呼', icon: 'none', duration: 2000, }) diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue index 9d45a5f..95ca4ba 100644 --- a/pages/shop/GoodsCon/index.vue +++ b/pages/shop/GoodsCon/index.vue @@ -36,7 +36,7 @@
- 运费: + 配送方式: {{ tempName }}
@@ -73,7 +73,7 @@
- 距离{{ systemStore.distance }}千米 + 距离{{ systemStore.distance }}千米
diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue index 6bdf898..c9bf38f 100644 --- a/pages/user/User/index.vue +++ b/pages/user/User/index.vue @@ -118,7 +118,7 @@ - 技术支持 +