From df60073f4fb06ea2d16984635e0714bae8a1f8e9 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Mon, 22 Dec 2025 18:03:35 +0800
Subject: [PATCH] 1.在总后台首页装修增加了活动专区和智能匹配 模块 2.目前活动专区获取的是发布需求最新的数据,智能匹配是用户没登录前也是获取发布需求最新数据,登录后会根据用户发布的需求,通过分类匹配到对应的数据 3.修复缴纳保证金报错 4.修复发布需求报错
---
mobile/main.js | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/mobile/main.js b/mobile/main.js
index a7a8028..d1c67c6 100644
--- a/mobile/main.js
+++ b/mobile/main.js
@@ -17,6 +17,10 @@
import headerBar from './components/header.vue'
Vue.component('header-bar', headerBar)
+/* 从服务器获取的图片(减少小程序端体积) by lyzflash */
+import {
+ remoteimg
+} from '@/common/remoteimg.js'
//请求加载组件
import requestLoading from './components/jjjloading.vue';
@@ -31,6 +35,12 @@
active: 'home'
};
+/*底部数据*/
+import shopTabBar from "@/components/shoptabbar/footTabbar.vue"
+Vue.component('shopTabBar', shopTabBar)
+Vue.prototype.shopFootTabberData = {
+ active: 'home'
+};
Vue.prototype.$fire = new onfire()
Vue.config.productionTip = false
@@ -53,7 +63,8 @@
/*页面跳转*/
Vue.prototype.gotoPage = gotopage;
Vue.prototype.font_url = config.font_url;
-
+/* 从服务器获取的图片(减少小程序端体积) by lyzflash */
+Vue.prototype.remoteImg = remoteimg;
Vue.prototype.points_name = function(e) {
if(!e){
@@ -64,7 +75,15 @@
}
}
-
+Vue.prototype.consumption_name = function(e) {
+ if(!e){
+ return store.state.consumption_name;
+ }else{
+ let re = new RegExp("消费券","g");
+ return e.replace(re, store.state.consumption_name);
+ }
+
+}
//#ifdef H5
app.$router.afterEach((to, from) => {
const u = navigator.userAgent.toLowerCase();
--
Gitblit v1.9.2