From 124dffb82947172630e826699d6c7eacb7ef9c85 Mon Sep 17 00:00:00 2001 From: whitechiina <1293616053@qq.com> Date: Fri, 19 Sep 2025 16:49:04 +0800 Subject: [PATCH] updata --- main.js | 14 +++++--------- pages/restaurant/home/shop_home/shop_home.vue | 9 +++++---- unpackage/dist/build/web/index.html | 2 +- .../js/{index.ccfed202.js => index.3b28cc5d.js} | 2 +- ...restaurant-home-shop_home-shop_home.b01c9fa8.js | 1 + ...restaurant-home-shop_home-shop_home.ed0c96d4.js | 1 - 6 files changed, 13 insertions(+), 16 deletions(-) rename unpackage/dist/build/web/static/js/{index.ccfed202.js => index.3b28cc5d.js} (97%) create mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-home-shop_home-shop_home.b01c9fa8.js delete mode 100644 unpackage/dist/build/web/static/js/pages-restaurant-home-shop_home-shop_home.ed0c96d4.js diff --git a/main.js b/main.js index 1f4451e..b73bc8d 100644 --- a/main.js +++ b/main.js @@ -17,8 +17,11 @@ const app = new Vue({ app.$mount() // #endif import uView from "uview-ui"; -Vue.use(uView); -import VConsole from 'vconsole'; +Vue.use(uView); + +import VConsole from 'vconsole'; +new VConsole(); + Vue.prototype.text = 1; let wx = require('weixin-js-sdk'); // let $URL = require('urijs'); @@ -33,13 +36,6 @@ Vue.use(PayMixin); // import pay from '@/static/js/pay.js'; // Vue.use(pay); -// 只有在开发环境下才加载vconsole -if (process.env.NODE_ENV == 'development') { -new VConsole(); -console.log(JSON.stringify(navigator,null,5),navigator,'userAgent') -console.log(navigator['userAgent'],'userAgent') -} - import tool from '@/static/js/toolclass/index.js'; Vue.use(prototype); Vue.prototype.tool = tool; diff --git a/pages/restaurant/home/shop_home/shop_home.vue b/pages/restaurant/home/shop_home/shop_home.vue index 0102d13..b413f55 100644 --- a/pages/restaurant/home/shop_home/shop_home.vue +++ b/pages/restaurant/home/shop_home/shop_home.vue @@ -177,7 +177,6 @@ onLoad(param) { self = this; - this.handleWechatShare(); console.log(param, 'onLoad参数ss'); const isWechat = getApp()['globalData']['parameters']?.isWechat; console.log(isWechat, getApp()['globalData']['parameters']?.brand_id, '是否需要分享'); @@ -310,7 +309,9 @@ // 设置微信分享标识 // wx.miniProgram.postMessage({ data: this['BrandInfor']['brand_id']}); }) - }) + }); + + this.handleWechatShare(); }, // 打开规格选择弹框 @@ -544,7 +545,7 @@ shareInfo: { desc: '欢迎来到白马精选', title: '白马精选', - link: 'https://www.baidu.com/', + link: shareUrl + '&spread=' + uid, imgUrl: 'https://imgs.agrimedia.cn/shop/logo.jpg' } }) @@ -553,7 +554,7 @@ shareInfo: { desc: '欢迎来到白马精选', title: '白马精选', - link: 'https://www.baidu.com/', + link: shareUrl + '&spread=' + this.GetSpread, imgUrl: 'https://imgs.agrimedia.cn/shop/logo.jpg' } }) diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 85679ce..c19204a 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@