From 310ab72840d7c7025273ac79363107a1f9e4bc8e Mon Sep 17 00:00:00 2001 From: cuiqian2004 <cuiqian2004@163.com> Date: 星期五, 18 七月 2025 17:34:47 +0800 Subject: [PATCH] test --- pages/modal/3018.vue | 32 ++++++++++++++++++++++---------- 1 files changed, 22 insertions(+), 10 deletions(-) diff --git a/pages/modal/3018.vue b/pages/modal/3018.vue index 93a00e0..b6cb0e0 100644 --- a/pages/modal/3018.vue +++ b/pages/modal/3018.vue @@ -1,5 +1,5 @@ <template> - <view class="uni-page-modal-3018"> + <view class="uni-page-modal-3018" :class="largeMode?'large-mode':''"> <view class="v-area" v-for="(classattr,index) in classAttrList"> <div class="class_attr_title" style="display: none;"> <div class="title_line"></div> @@ -304,7 +304,7 @@ <script> import { Base64 - } from '@/js/Base64.js'; + } from '@/js/Base64.js'; import pickerAddress from '../../js/pickerAddress/pickerAddress.vue' import utils from "@/js/utils.js" import { @@ -338,6 +338,7 @@ }, data() { return { + largeMode: getApp().globalData.largeMode || false, title: this.translateSys('ok'), editMode: false, objAttr: {}, @@ -1001,12 +1002,9 @@ //console.log(e.target) getApp().onScan((result) => { console.log(result); - this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset[ - 'iindex']] - .Value = - result.decodedata; + this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value =result; uni.hideKeyboard(); - this.onevent($ele, result.decodedata); + this.onevent($ele, result); }) }, onarrow(index, open) { @@ -1136,14 +1134,14 @@ }, - onevent(e, decodedata) { + onevent(e, value) { // console.log(e.target); var data_attr = this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset[ 'iindex']]; - // console.log(decodedata); + // console.log(value); if (e.detail.value != data_attr.Value) { this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = - decodedata ? decodedata : e.detail.value; + value ? value : e.detail.value; var eventid = this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].action; if (eventid) { // self.event_no_sub = 1; @@ -2814,4 +2812,18 @@ transform: translateX(0); } } + + .uni-page-modal-3018.large-mode { + font-size: 24px; + + .tx_title, + .tx_title2 { + font-size: 24px; + } + + .class_attr_title { + font-size: 24px; + } + + } </style> \ No newline at end of file -- Gitblit v1.9.1