Browse Source

2024-10-17

cmy 4 months ago
parent
commit
6b57d10b16

+ 5 - 0
.gitignore

@@ -0,0 +1,5 @@
+unpackage/dist
+unpackage/cache
+unpackage/release
+unpackage/debug
+.hbuilderx

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "易趣CBB",
     "appid" : "__UNI__2978829",
     "description" : "一款电商App",
-    "versionName" : "3.0.97",
-    "versionCode" : 310,
+    "versionName" : "3.0.100",
+    "versionCode" : 320,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {

+ 9 - 12
pages.json

@@ -1,5 +1,5 @@
 	{
-	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+	"pages": [
 		{
 			"path": "pages/index/home",
 			"style": {
@@ -905,14 +905,7 @@
 				"navigationBarTitleText": "修改群聊昵称"
 			}
 		}
-		
-		
-		
-		
-		 
-		
 	],
-	
 	"tabBar": {
 		"color": "#666666",
 		"selectedColor": "#ff142c",
@@ -934,17 +927,21 @@
 			"iconPath": "static/tab/store.png",
 			"selectedIconPath": "static/tab/store_btn.png",
 			"text": "机制说明"
+			// #ifdef APP
+			,
+			"visible":false
+			// #endif 
 		},
-		
 		{
 			"pagePath": "pages/chat/index",
 			"iconPath": "static/tab/cate.png",
 			"selectedIconPath": "static/tab/cate-btn.png",
 			"text": "部门群聊"
+			// #ifdef APP 
+			,
+			"visible":false
+			// #endif 
 		},
-		
-		
-
 		{
 			"pagePath": "pages/user/index",
 			"iconPath": "static/tab/user.png",

+ 57 - 19
pages/index/index.vue

@@ -65,14 +65,15 @@
 								:animation="4000">
 								<template v-slot="{line}">
 									<view @tap="tapOpen" :data-url="'../news/index?id=' + line.id" class="line">
-										{{ line.title }}</view>
+										{{ line.title }}
+									</view>
 								</template>
 							</maoScroll>
 						</view>
 						<image @tap="tapNews" src="/static/img/news-right.png" class="icon-right"></image>
 					</view>
 				</view>
-				<view v-if="sysData.is_audit == 0">
+				<view v-if="sysData.is_audit == 0 &&showData">
 					<!--CBB潮贝抢货通道-->
 					<view class="team-buy" @tap="tapOpen" data-url="/pages/guild/itemIndex" v-if="guData!= null">
 						<view class="top fx-r fx-bc">
@@ -251,7 +252,9 @@
 				<image src="/static/img/index_bg.png" class="bgimg"></image>
 				<view class="inner-top"></view>
 				<view class="inner">
-					<view style="text-align: center;color: #FC2D47;padding: 25rpx 0rpx;font-size: 36rpx;font-weight: bold;">{{title}}</view>
+					<view
+						style="text-align: center;color: #FC2D47;padding: 25rpx 0rpx;font-size: 36rpx;font-weight: bold;">
+						{{title}}</view>
 					<scroll-view scroll-y class="max-he">
 						<u-parse :content="content" :noData="content" />
 					</scroll-view>
@@ -285,6 +288,11 @@
 			maoScroll,
 			customerWiget
 		},
+		watch: {
+			showData(newValue, oldValue) {
+				this.isShowInit(newValue);
+			}
+		},
 		data() {
 			return {
 				statusBarHeight: 20,
@@ -295,23 +303,32 @@
 					product: []
 				},
 				content: "",
-				title:'',
+				title: '',
 				isGg: false,
 				gGid: 0,
 				merchantData: [],
 				guData: null,
-				merchantCount:0,
+				merchantCount: 0,
 				page: {
 					page: 1,
 					isLoad: false,
 					isFoot: false
 				},
 				wenAr: {},
-				isLoad: false
+				isLoad: false,
+				// #ifdef APP
+				showData:false,
+				// #endif
+				// #ifndef APP
+				showData:true,
+				// #endif
 			}
 		},
 		onLoad() {
 			this.initView();
+			// #ifdef APP
+			this.isShowInit(false);
+			// #endif
 		},
 		onReachBottom() {
 			if (this.page.isFoot || this.page.isLoad) {
@@ -322,6 +339,18 @@
 		},
 		methods: {
 			...mapMutations(['setSys', 'getGps']),
+			// #ifdef APP
+			isShowInit(type){
+				uni.setTabBarItem({
+					index:1,
+					visible:type,
+				});
+				uni.setTabBarItem({
+					index:2,
+					visible:type,
+				})
+			},
+			// #endif
 			initView: function() {
 				// #ifdef H5
 				this.h5Foot = 50;
@@ -359,8 +388,6 @@
 						this.utils.Tip("加载失败,重新点击尝试!" + JSON.stringify(error));
 						uni.hideLoading();
 					});
-
-
 				// #ifdef APP
 				this.initSys();
 				// #endif
@@ -382,21 +409,24 @@
 				// #endif
 
 			},
+			// #ifdef APP
 			/** 
 			 * 基本逻辑
 			 */
 			initSys: function() {
+				const that = this;
 				const appType = uni.getSystemInfoSync().platform;
 				if (plus != null) {
 					plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
 						let versionCode = wgtinfo.versionCode;
 						let arr1 = wgtinfo.version.split('.');
-						uni.setStorageSync("showData", false)
+						uni.setStorageSync("showData", false);
+						that.showData = false
 						if (appType == "ios") {
 							const getIosUpAppUrl = 'https://itunes.apple.com/cn/lookup?id=6474850968'
-							const iosAppStroeUrl ='https://apps.apple.com/cn/app/%E6%98%93%E8%B6%A3cbb/id6474850968';
-							uni.setStorageSync("showData", true)
-					      uni.request({
+							const iosAppStroeUrl =
+								'https://apps.apple.com/cn/app/%E6%98%93%E8%B6%A3cbb/id6474850968';
+							uni.request({
 								url: getIosUpAppUrl,
 								method: 'POST',
 								data: {},
@@ -410,12 +440,14 @@
 										// 判断线上版本是否小于本地版本
 										if (x < y) {
 											// 设置显示数据
-											uni.setStorageSync("showData",false)
+											uni.setStorageSync("showData", true);
+											that.showData = true
 											return
 										}
 										// 判断线上版本是否大于本地版本
 										else if (x > y) {
-											uni.setStorageSync("showData",false)
+											uni.setStorageSync("showData", false);
+											that.showData = false
 											uni.showModal({
 												title: '提示',
 												content: '请更新应用',
@@ -427,10 +459,11 @@
 												}
 											});
 											return
-										} 
+										}
 										// 判断是否本地版本等于线上版本
 										else if (x == y && i == arr.length - 1) {
-											uni.setStorageSync("showData",true)
+											that.showData = true
+											uni.setStorageSync("showData", true)
 											return
 										}
 									}
@@ -448,13 +481,15 @@
 									if (res.code == 200) {
 										this.setSys(res.data);
 										if (wgtinfo.versionCode < res.data.app_code) {
-											uni.setStorageSync("showData", true)
+											uni.setStorageSync("showData", true);
+											that.showData = false;
 											const upDater = uni.requireNativePlugin("CL-UpDater");
 											let options = {
 												title: "升级",
 												con: res.data.app_update,
 												downUrl: this.$device.platform == 'ios' ? encodeURI(res
-													.data.ios_url) : encodeURI(res.data.android_url), //必填
+													.data.ios_url) : encodeURI(res.data
+													.android_url), //必填
 												hidCancelbtn: true, //是否隐藏取消按钮;
 												btnBgColor: "#ff3300", //设置按钮背景色颜色
 												updateBtnText: "升级", //升级按钮文字,默认为立即升级
@@ -468,8 +503,10 @@
 											//必需提供下载地址;
 											upDater.startUpdate(options, () => {});
 										} else if (wgtinfo.versionCode > res.data.app_code) {
+											that.showData = false
 											uni.setStorageSync("showData", false)
 										} else {
+											that.showData = true
 											uni.setStorageSync("showData", true)
 										}
 										if (res.data.is_audit == 0) {
@@ -487,11 +524,12 @@
 									}
 								});
 						}
-						
+
 
 					});
 				}
 			},
+			// #endif
 			/**
 			 * 重要提示
 			

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/app-plus/app-config-service.js


File diff suppressed because it is too large
+ 3 - 3
unpackage/dist/dev/app-plus/app-service.js


File diff suppressed because it is too large
+ 14 - 14
unpackage/dist/dev/app-plus/app-view.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/app-plus/manifest.json


+ 0 - 2
unpackage/dist/dev/app-plus/static/img/chat-camera.705dc7e5.svg

@@ -1,2 +0,0 @@
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1652396045528" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3080" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
-</style></defs><path d="M677.888 494.592q0 28.672-10.752 53.76t-29.184 43.52-43.008 29.184-53.248 10.752-53.248-10.752-43.008-29.184-29.184-43.52-10.752-53.76q0-27.648 10.752-52.736t29.184-43.52 43.008-29.184 53.248-10.752 53.248 10.752 43.008 29.184 29.184 43.52 10.752 52.736zM171.008 766.976q-28.672 0-51.2-5.12t-37.888-17.408-23.552-33.28-8.192-52.736l0-346.112q0-57.344 27.136-79.872t85.504-22.528l172.032 0q16.384 0 27.136-6.144t17.408-16.384 11.776-24.064 11.264-28.16q10.24-26.624 35.84-46.08t58.368-19.456l95.232 0q37.888 0 61.952 20.992t32.256 44.544q11.264 30.72 29.696 52.736t38.912 22.016l130.048 0q45.056-1.024 71.68 24.576t26.624 74.752l0 351.232q0 52.224-27.648 79.36t-73.728 27.136l-710.656 0zM539.648 280.576q-45.056 0-83.968 16.896t-67.584 46.08-45.568 68.096-16.896 82.944q0 45.056 16.896 83.968t45.568 67.584 67.584 45.568 83.968 16.896q44.032 0 82.944-16.896t67.584-45.568 45.568-67.584 16.896-83.968q0-44.032-16.896-82.944t-45.568-68.096-67.584-46.08-82.944-16.896zM611.328 169.984q0-16.384-1.536-25.6t-20.992-9.216l-84.992 0q-19.456-1.024-20.992 8.192t-1.536 26.624q-1.024 19.456 2.048 27.648t20.48 8.192l84.992 0q19.456 0 20.992-9.216t1.536-26.624z" p-id="3081" fill="#787878"></path></svg>

+ 0 - 2
unpackage/dist/dev/app-plus/static/img/chat-collect.8089f961.svg

@@ -1,2 +0,0 @@
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1656214654124" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2990" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
-</style></defs><path d="M929.344 204.8H478.656C468.8 204.8 460.8 196.8 460.8 186.944v-34.752C460.8 100.16 418.24 57.6 366.144 57.6H94.656C42.56 57.6 0 100.16 0 152.256v777.152C0 981.44 42.56 1024 94.656 1024h834.752c52.032 0 94.656-42.56 94.656-94.656V299.456C1024 247.36 981.44 204.8 929.344 204.8zM602.24 757.568l-85.12-44.8c-5.184-2.752-11.392-2.752-16.64 0l-85.12 44.8c-13.056 6.912-28.352-4.224-25.856-18.816l16.256-94.848a17.92 17.92 0 0 0-5.12-15.808L333.504 562.752c-10.88-10.624-4.352-29.184 10.816-30.528l91.456-8.32c6.336-0.576 11.904-4.48 14.528-10.24l42.24-90.688c6.4-13.76 25.92-13.76 32.32 0l42.24 90.688c2.688 5.76 8.256 9.664 14.528 10.24l91.456 8.32c15.168 1.408 21.76 19.904 10.816 30.528L617.024 628.16c-4.224 4.096-6.144 9.984-5.12 15.808l16.256 94.848c2.496 14.528-12.8 25.664-25.92 18.752z" fill="#bfbfbf" p-id="2991"></path></svg>

+ 0 - 2
unpackage/dist/dev/app-plus/static/img/chat-phone.ef5d020f.svg

@@ -1,2 +0,0 @@
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1652396025582" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2028" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
-</style></defs><path d="M883.4 163.2H136.7c-40.5 0-72.8 24.9-72.8 55.6v583.9c0 31.9 33.3 57.9 74 57.9h751.2c35.5 3.4 67.2-22.4 71-57.9V218.8c0-30.7-34.5-55.6-77.1-55.6h0.4zM358.9 293.4c40.7-0.1 73.9 32.8 74 73.5 0.1 40.7-32.8 73.9-73.5 74s-73.9-32.8-74-73.5v-0.2c0-40.7 32.9-73.6 73.5-73.8z m457 483.8H209.5c-23.5 0-28.2-13.6-12.4-29.8l130.1-136.9c16.7-16.5 42.7-19 62.2-5.9l95.8 67.6c19.2 13.3 45.3 9.8 60.4-8l221.9-268.9c14.6-17.6 29.1-13.6 32.4 8.5l50.7 334c2.9 18.7-10 36.2-28.7 39.1-1.9 0.3-4 0.4-6 0.3z" fill="#787878" p-id="2029"></path></svg>

File diff suppressed because it is too large
+ 0 - 1
unpackage/dist/dev/app-plus/static/img/chat-reg.807bed59.svg


Some files were not shown because too many files changed in this diff