From b5ec6d20149bb076d151c02f4f442be68f0435d4 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Mon, 16 Dec 2024 17:47:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6=E5=92=8C?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 40 ++-- bundle/pages/user_spread/user_spread.vue | 16 +- bundle_b/pages/local_shop/local_shop_buy.vue | 32 ++- .../subsidy_shop/components/subsidy-item.vue | 2 +- bundle_b/pages/subsidy_shop/subsidy_shop.vue | 4 +- components/active-area/active-area.vue | 5 - components/ad-swipers/ad-swipers.vue | 14 +- .../after-sales-list/after-sales-list.vue | 34 ++-- components/bargain-list/bargain-list.vue | 18 +- components/bubble-tips/bubble-tips.vue | 72 +++---- components/cate-home/cate-home.vue | 16 +- components/cate-list/cate-list.vue | 21 +- components/cate-nav/cate-nav.vue | 10 +- components/cate-one/cate-one.vue | 4 +- components/cate-two/cate-two.vue | 12 +- components/goods-column/goods-column.vue | 44 ++-- components/index-home/index-home.vue | 10 +- pages.json | 44 ++-- pages/goods_details/goods_details.vue | 110 +++++----- pages/shop_street/shop_street.vue | 189 ------------------ 20 files changed, 268 insertions(+), 429 deletions(-) delete mode 100644 pages/shop_street/shop_street.vue diff --git a/App.vue b/App.vue index fec5a8b..1e230fb 100644 --- a/App.vue +++ b/App.vue @@ -15,9 +15,13 @@ import { bindSuperior } from '@/api/user' - import {INVITE_CODE} from '@/config/cachekey' + import { + INVITE_CODE + } from '@/config/cachekey' import Cache from '@/utils/cache' - import { getWxCode } from "@/utils/login"; + import { + getWxCode + } from "@/utils/login"; export default { onLaunch: function(options) { //#ifdef MP-WEIXIN @@ -40,14 +44,14 @@ } = await getConfig() if (code == 1) { this.setConfig(data) - if(data.is_open_nearby) { + if (data.is_open_nearby) { this.initLocationFunc() } this.wxShare() } }, async bindCode(options, code) { - if(!options.query) return + if (!options.query) return if (options.query.path == 'goods_details') return let invite_code = options.query.invite_code || strToParams(decodeURIComponent(options.query.scene)) .invite_code @@ -60,7 +64,7 @@ code: code || await getWxCode(), invite_code }) - + if (code == -1) { Cache.set(INVITE_CODE, invite_code) } @@ -69,17 +73,19 @@ //#ifdef MP-WEIXIN checkMpUpdate() { const updateManager = wx.getUpdateManager() - updateManager.onUpdateReady(function () { - wx.showModal({ - title: '更新提示', - content: '新版本已准备好,是否重启?', - success: function (res) { - if (res.confirm) { - updateManager.applyUpdate() - } - } - }) - }) + if (updateManager) { + updateManager.onUpdateReady(function() { + wx.showModal({ + title: '更新提示', + content: '新版本已准备好,是否重启?', + success: function(res) { + if (res.confirm) { + updateManager.applyUpdate() + } + } + }) + }) + } } //#endif } @@ -89,4 +95,4 @@ @import 'styles/common.scss'; @import "components/uview-ui/index.scss"; @import url('@/plugin/emoji-awesome/css/apple.css'); - + \ No newline at end of file diff --git a/bundle/pages/user_spread/user_spread.vue b/bundle/pages/user_spread/user_spread.vue index e8befc8..3c429bb 100644 --- a/bundle/pages/user_spread/user_spread.vue +++ b/bundle/pages/user_spread/user_spread.vue @@ -254,28 +254,28 @@ url="/bundle/pages/user_withdraw/user_withdraw">立即提现 - + - + + - + 累计获得收益 diff --git a/bundle_b/pages/local_shop/local_shop_buy.vue b/bundle_b/pages/local_shop/local_shop_buy.vue index ec661e9..c472f8e 100644 --- a/bundle_b/pages/local_shop/local_shop_buy.vue +++ b/bundle_b/pages/local_shop/local_shop_buy.vue @@ -204,14 +204,6 @@ }) } }, - - onShareAppMessage() { - return { - title: this.data.title, - path: `/bundle_b/pages/local_shop/local_shop_buy?id=${this.id}&lstore_id=${this.lstore_id}`, - imageUrl: this.data.pic[0].url - } - }, preview(i) { let f = this.file.map((item) => { @@ -222,8 +214,30 @@ current: i, urls: f }); + }, + + share() { + const { + data, + id, + lstore_id + } = this + + return { + title: data.title, + path: `/bundle_b/pages/local_shop/local_shop_buy?id=${id}&lstore_id=${lstore_id}`, + imageUrl: data.pic[0].url + } } - } + }, + + async onShareAppMessage() { + return this.share() + }, + + onShareTimeline() { + return this.share() + }, } diff --git a/bundle_b/pages/subsidy_shop/components/subsidy-item.vue b/bundle_b/pages/subsidy_shop/components/subsidy-item.vue index 347f551..69e46db 100644 --- a/bundle_b/pages/subsidy_shop/components/subsidy-item.vue +++ b/bundle_b/pages/subsidy_shop/components/subsidy-item.vue @@ -3,7 +3,7 @@ - 补贴商家:{{item.name}} + 消费日期:{{item.dtime}} 订单号:{{item.order_sn}} diff --git a/bundle_b/pages/subsidy_shop/subsidy_shop.vue b/bundle_b/pages/subsidy_shop/subsidy_shop.vue index 85bc9bb..26ba6ce 100644 --- a/bundle_b/pages/subsidy_shop/subsidy_shop.vue +++ b/bundle_b/pages/subsidy_shop/subsidy_shop.vue @@ -108,14 +108,12 @@ + :field-style="{height: '120rpx', fontSize: '56rpx', fontWeight: 'bold', color: '#EE9254'}"> diff --git a/components/active-area/active-area.vue b/components/active-area/active-area.vue index aae82bc..e5a5832 100644 --- a/components/active-area/active-area.vue +++ b/components/active-area/active-area.vue @@ -9,7 +9,6 @@ - @@ -50,10 +49,6 @@ background-image: url(#{$aliOSS-path}uniapp/index_new_bg.png); } - &.hot { - background-image: url(#{$aliOSS-path}uniapp/index_hot_bg.png); - } - .active-hd { padding: 24rpx 20rpx; } diff --git a/components/ad-swipers/ad-swipers.vue b/components/ad-swipers/ad-swipers.vue index 3ff3849..72cd118 100644 --- a/components/ad-swipers/ad-swipers.vue +++ b/components/ad-swipers/ad-swipers.vue @@ -4,7 +4,7 @@ -