From 0293d4f776f88ebc307a750f38a16454f4553701 Mon Sep 17 00:00:00 2001 From: zjh <2207896513@qq.com> Date: 星期二, 19 八月 2025 21:01:35 +0800 Subject: [PATCH] 首检、巡检一致性前端代码提交 --- pages/QC/LLJ/ImageItem.vue | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/pages/QC/LLJ/ImageItem.vue b/pages/QC/LLJ/ImageItem.vue index 9450b51..abd13bb 100644 --- a/pages/QC/LLJ/ImageItem.vue +++ b/pages/QC/LLJ/ImageItem.vue @@ -23,7 +23,7 @@ </view> </view> <view class="plus-button"> - <button type="warn" @click="save">涓婁紶鍥剧墖</button> + <button type="primary" class="upImg" @click="save">涓婁紶鍥剧墖</button> </view> </view> <!-- #ifdef APP --> @@ -148,6 +148,19 @@ // loop: false, // 鏄惁寮�鍚浘鐗囪疆鎾紝榛樿涓� false // indicator: 'default',// 鍥剧墖鎸囩ず鍣ㄧ被鍨嬶紝鍙�夊�间负 "default"銆�"number"銆�"pointer"锛岄粯璁や负 "default" // }); + + let imagesArry = []; + console.log(index); + base64ToPath(this.qsImage.map(s=>s.img)[index]).then(path => { + uni.hideLoading(); + imagesArry[index] = path + console.log(path); + uni.previewImage({ + current: index, + urls: imagesArry + }) + }) + }, init() { this.$post({ @@ -215,7 +228,7 @@ bottom: 0; width: 100%; background-color: #ffffff; /* 鑳屾櫙棰滆壊 */ - padding: 10px; + /* padding: 10px; */ box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* 娣诲姞搴曢儴闃村奖鏁堟灉 */ z-index: 999; /* 纭繚鎸夐挳浣嶄簬椤跺眰 */ } @@ -224,4 +237,10 @@ max-height: calc(100vh - 240px); /* 灞忓箷楂樺害鍑忓幓涓婁紶鎸夐挳楂樺害 */ overflow-y: auto; /* 褰撳唴瀹硅秴鍑洪珮搴︽椂鍑虹幇鍨傜洿婊氬姩鏉� */ } +.upImg{ + + background-color: #3498db; + color: white; + +} </style> \ No newline at end of file -- Gitblit v1.9.3