Browse Source

下载页面

zouling 7 months ago
parent
commit
e06d413b13
6 changed files with 70 additions and 7 deletions
  1. 2 2
      config.js
  2. 9 0
      pages.json
  3. 54 0
      pages/code.vue
  4. 1 1
      pages/index/index.vue
  5. 2 2
      pages/video/index.vue
  6. 2 2
      work/pages/clock/clock.vue

+ 2 - 2
config.js

@@ -2,8 +2,8 @@
 module.exports = {
 module.exports = {
   // baseUrl: 'https://zxyyq.qs163.cn/prod-api',
   // baseUrl: 'https://zxyyq.qs163.cn/prod-api',
   
   
-  // baseUrl: 'https://zxyclmjy.qs163.cn/prod-api',
-  baseUrl: 'http://47.99.82.249:5012/prod-api',
+  baseUrl: 'https://zxyclmjy.qs163.cn/prod-api',
+  // baseUrl: 'http://47.99.82.249:5010/prod-api',
   // baseUrl: 'http://192.168.101.168:8065',
   // baseUrl: 'http://192.168.101.168:8065',
   // baseUrl: 'http://192.168.101.245:8065',
   // baseUrl: 'http://192.168.101.245:8065',
   // baseUrlimg: 'http://114.99.127.243:2001',
   // baseUrlimg: 'http://114.99.127.243:2001',

+ 9 - 0
pages.json

@@ -10,6 +10,15 @@
 			}
 			}
 		}
 		}
 	},
 	},
+	{
+	"path": "pages/code",
+	"style": {
+		"navigationBarTitleText": "下载",
+		"h5":{
+			"titleNView":false
+			}
+		}
+	},
 	{
 	{
 	  "path": "pages/index/index",
 	  "path": "pages/index/index",
 	  "style": {
 	  "style": {

+ 54 - 0
pages/code.vue

@@ -0,0 +1,54 @@
+<template>
+  <view class="regbox pregbox flexdc pr"  id="regbox" style="padding-top: 120rpx;">
+	  <image :src="headimg" class="headimg flex0"></image> 
+	  <view class="rbtn btn2" @click="getDown">立即下载</view>
+  </view>
+</template>
+
+<script>
+	import config from '@/config'
+	const baseUrl = config.baseUrl
+  export default {
+	data(){
+		return{
+			headimg:require('@/static/logo.png'),
+		}
+	},
+	
+	methods:{
+		isWechat() {
+		    return String(navigator.userAgent.toLowerCase().match(/MicroMessenger/i)) === "micromessenger";
+		},
+
+		getDown(){
+			if (this.isWechat()) {
+			    uni.showToast({
+			        title: '点击右上角在浏览器中打开后下载',
+			        icon: 'none',
+			        duration: 3000
+			    })
+			    return
+			}
+			var url=baseUrl+"/profile/upload/2025/01/10/__UNI__9ACE566__20250110173619_20250110175342A005.apk";
+			let a = document.createElement('a');
+			a.setAttribute('href', url);
+			a.setAttribute('download', 'downapp');
+			a.innerHTML = "立即下载";
+			document.body.appendChild(a);
+			a.click();
+			a.remove()
+		}
+	},
+	onLoad: function() {
+			
+    },
+  }
+</script>
+
+<style lang="scss" scoped>
+.headimg{width: 200rpx;height: 200rpx;margin:0 auto 40rpx;}
+.rbtn {font-size: 30rpx;
+		&.btn{background: #9a9c9e;color: #ffffff;}
+		&.btn2{background: $com-cd3;color: #ffffff;}
+      }
+</style>

+ 1 - 1
pages/index/index.vue

@@ -73,7 +73,7 @@
 							<view class="aimg"><image :src="htabiimg" class="imgi"></image></view>
 							<view class="aimg"><image :src="htabiimg" class="imgi"></image></view>
 							<view class="atit">在线会议</view>
 							<view class="atit">在线会议</view>
 						</view>
 						</view>
-						<view class="yqcba" @click="getYqCookFn" v-if="checkPermi(['system:menuFood:list'])">
+						<view class="yqcba" @click="getYqCookFn" v-if="checkPermi(['system:menuFood:add'])">
 							<view class="aimg"><image :src="htabjimg" class="imgj"></image></view>
 							<view class="aimg"><image :src="htabjimg" class="imgj"></image></view>
 							<view class="atit">园区食谱</view>
 							<view class="atit">园区食谱</view>
 						</view>
 						</view>

+ 2 - 2
pages/video/index.vue

@@ -232,7 +232,7 @@
 			getVideoOpenDz(params).then(res=>{
 			getVideoOpenDz(params).then(res=>{
 				this.isloading=false
 				this.isloading=false
 				if(res.code==200){
 				if(res.code==200){
-					this.$toast('已开门')
+					this.$toast(res.msg)
 				}
 				}
 			}).catch(error=>{
 			}).catch(error=>{
 				this.isloading=false
 				this.isloading=false
@@ -250,7 +250,7 @@
 			getVideoCloseDz(params).then(res=>{
 			getVideoCloseDz(params).then(res=>{
 				this.isloading=false
 				this.isloading=false
 				if(res.code==200){
 				if(res.code==200){
-					this.$toast('已关门')
+					this.$toast(res.msg)
 				}
 				}
 			}).catch(error=>{
 			}).catch(error=>{
 				this.isloading=false
 				this.isloading=false

+ 2 - 2
work/pages/clock/clock.vue

@@ -264,8 +264,8 @@ export default {
 			that.time();
 			that.time();
 			var stime=this.shuatime
 			var stime=this.shuatime
 			that.timefn = setInterval(function() {
 			that.timefn = setInterval(function() {
-				if(stime<=1){
-					// that.shuiux()
+				if(stime<=0){
+					that.shuiux()
 					stime=that.shuatime
 					stime=that.shuatime
 				}
 				}
 				stime=stime-1;
 				stime=stime-1;