Browse Source

版本管理

chenjj 2 days ago
parent
commit
b1b5495ff9
5 changed files with 5 additions and 13 deletions
  1. 3 3
      config.js
  2. 1 1
      pages/index.vue
  3. 1 0
      utils/WebSocketManager.js
  4. 0 3
      utils/adress.js
  5. 0 6
      utils/soketMixin.js

+ 3 - 3
config.js

@@ -1,7 +1,7 @@
 const base_url = {
-  develop:'http://192.168.100.128:9527',//开发版 
+  // develop:'http://192.168.100.128:9527',//开发版 
   // develop: 'http://192.168.100.139:9527', //嵘哥
-  // develop: 'https://yongc.top/prod-api',//体验版
+  develop: 'https://yongc.top/prod-api',//体验版
   // develop: 'https://goldshulin.com/prod-api',//体验版
 
   trial: 'https://yongc.top/prod-api',//体验版
@@ -24,7 +24,7 @@ const config = {
     // 应用名称
     name: 'ruoyi-app-vue3',
     // 应用版本
-    version: '1.1.0',
+    version: '1.2.0',
     // 应用logo
     logo: '/static/logo.png',
     // 官方网站

+ 1 - 1
pages/index.vue

@@ -1,7 +1,7 @@
 <template>
   <view>
     <!-- 首页顶部定位区域 -->
-    <view class="home-banner" :class="{ 'home-banner-with-bg': showAddressBg }">
+    <view class="home-banner"  :class="{ 'home-banner-with-bg': showAddressBg }">
       <view class="home-banner-left" @click="cityClick">
         <img src="@/static/uview/common/map-pin-fill@1x.png" alt="" class="map-pin-fill">
         <text class="address-text">{{ data.address.name }}</text>

+ 1 - 0
utils/WebSocketManager.js

@@ -83,6 +83,7 @@ class WebSocketManager {
         this.socketTask.onClose(() => {
             console.log('WebSocket 已关闭',this.connectCount);
             this.stopHeartbeat();
+        
             // this.connectCount <= 3 && this.reconnect();
         });
     }

+ 0 - 3
utils/adress.js

@@ -209,7 +209,6 @@ function normalizeAddress(str) {
  * @returns {Object|null} 包含 data/name、code、index 的对象
  */
 const getCityCode = (address,addressData) => {
-	console.log("TCL: getCityCode -> address", address)
   if(!addressData) return null;
    //address:重庆市永川区人民大道191号
   const names = address.split(/\s+/)
@@ -221,7 +220,6 @@ const getCityCode = (address,addressData) => {
 
   // 查找省份
   const provinceIndex = addressData.findIndex(p => p.name.includes(names[0]))
-	console.log("TCL: getCityCode -> provinceIndex", provinceIndex)
   if (provinceIndex === -1) return null
 
   const province = addressData[provinceIndex]
@@ -250,7 +248,6 @@ const getCityCode = (address,addressData) => {
   result.data.push(district.name)
   result.code.push(district.regionCode)
   result.index.push(districtIndex)
-	console.log("TCL: getCityCode -> result", result)
 
   return result
 

+ 0 - 6
utils/soketMixin.js

@@ -20,14 +20,12 @@ export default {
 				console.log("Font loading failed", fail);
 			},
 		});
-    console.log('App-Show^^')
     uni.$u.connectSoket = this.connectSoket;
     uni.$u.closeSoket = this.closeSoket;
 
     uni.$u.debounce(this.connectSoket(), 500)
   },
   onHide: function () {
-    console.log('App-Hide^^')
     this.closeSoket();
   },
   methods: {
@@ -35,15 +33,12 @@ export default {
         const ws = store.state.user.wsManager;
         const userId = user_id || uni.getStorageSync('userId');
         const token = getToken();
-        console.log('connectSoket------------>');
 
           if (!ws && userId && token) {
-            console.log('connectSoket-----+++------->',!ws , userId,!ws && userId);
             // 获取账户时,连接soket 
             const ms = new WebSocketManager(userId);
             // 设置消息回调
             ms.onMessage(data => {
-              console.log("处理消息逻辑", data.data)
               // 处理消息逻辑
               if (data.type === 'msgUnreadCount') {
                 store.dispatch('handleMessageCount',data.data);
@@ -57,7 +52,6 @@ export default {
     closeSoket(){
     
         const ws = store.state.user.wsManager;
-        console.log('closeSoket------>ws',ws);
         if(ws){
           ws.closeConnection();
         }