From 69a1b3bf45738f048361ee4ccb6bdc64fce35720 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 12 三月 2025 11:31:46 +0800
Subject: [PATCH] 更新
---
h5_meeting/pages/index/config.vue | 123 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 123 insertions(+), 0 deletions(-)
diff --git a/h5_meeting/pages/index/config.vue b/h5_meeting/pages/index/config.vue
new file mode 100644
index 0000000..c0d65fc
--- /dev/null
+++ b/h5_meeting/pages/index/config.vue
@@ -0,0 +1,123 @@
+<template>
+ <view class="app">
+ <view class="list">
+ <view class="item">
+ <view class="title">浼氳瀹ょ紪鐮�</view>
+ <view class="line">
+ <input type="text" v-model="param.code" />
+ <image src="../../static/icon/right.svg" class="icon"></image>
+ </view>
+ </view>
+ <view class="item">
+ <view class="title">鎺ュ彛鍦板潃</view>
+ <view class="line">
+ <input type="text" v-model="param.baseUrl" />
+ <image src="../../static/icon/right.svg" class="icon"></image>
+ </view>
+ </view>
+ <view class="item">
+ <view class="title">鏄惁涓哄姙鍏綉</view>
+ <view class="line">
+ <switch :checked="param.officeFlag == '1'" style="transform:scale(0.7)" @change="changeSwi" color="#51b2ce"></switch>
+ </view>
+ </view>
+ <view class="item">
+ <view class="title">鎺ュ彛璋冪敤闂撮殧(绉�)</view>
+ <view class="line">
+ <input type="text" placeholder="60" v-model="param.time" />
+ <image src="../../static/icon/right.svg" class="icon"></image>
+ </view>
+ </view>
+ </view>
+ <view class="save" @click="handleSave">淇濆瓨閰嶇疆</view>
+ </view>
+</template>
+
+<script>
+ import { baseUrl } from '@/utils/config.js'
+ export default {
+ data() {
+ return {
+ param: {
+ baseUrl,
+ time: 60,
+ officeFlag: '0'
+ }
+ };
+ },
+ onLoad(){
+ const param = uni.getStorageSync('param') || {
+ baseUrl: baseUrl,
+ time: 60,
+ officeFlag: '0'
+ }
+ this.param = { ...param }
+ },
+ methods: {
+ changeSwi(e) {
+ this.$set(this.param, 'officeFlag', e.detail.value ? '1' : '0')
+ },
+ handleSave() {
+ const param = this.param
+ uni.setStorageSync('param', param)
+ setTimeout(()=>{
+ uni.showToast({
+ title: '鏇存柊閰嶇疆鎴愬姛',icon:'none'
+ })
+ })
+ setTimeout(()=>{
+ uni.redirectTo({
+ url:'/pages/index/index'
+ })
+ }, 400)
+ }
+ }
+ }
+</script>
+
+<style lang="scss" scoped>
+ .save{
+ position: fixed;
+ width: 680upx;
+ height: 90upx;
+ line-height: 90upx;
+ background: #00B5D1;
+ border-radius: 7upx;
+ left: 35upx;
+ bottom: 36upx;
+ color: #fff;
+ text-align: center;
+ font-weight: 500;
+ font-size: 32rpx;
+
+ }
+.list{
+ .item{
+ width: 100%;
+ height: 148upx;
+ padding: 28upx 34upx 0;
+ .title{
+ font-weight: 500;
+ font-size: 28rpx;
+ color: #111111;
+ line-height: 39rpx;
+ }
+ .line{
+ height: 80upx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ border-bottom: 1rpx solid #CCCCCC;
+ input{
+ flex: 1;
+ font-size: 28rpx;
+ color: #666666;
+ }
+ .icon{
+ width: 28upx;
+ height: 28upx;
+ }
+ }
+ }
+}
+</style>
--
Gitblit v1.9.3