lilei há 1 ano atrás
pai
commit
aac9ec62b4

+ 10 - 1
pages/login/index.vue

@@ -25,7 +25,7 @@
 		</view>
 		<view class="copright">
 			<view>系统版本:{{version}}</view>
-			<view>设备ID:{{$store.state.vuex_deviceId}}</view>
+			<view @click="copyText($store.state.vuex_deviceId)">设备ID:{{$store.state.vuex_deviceId}}</view>
 			<view>Copyright © 2023 陕西山海高科信息技术有限公司</view>
 		</view>
 	</view>
@@ -34,6 +34,7 @@
 <script>
 	import { login, getSysVersion } from '@/config/api.js'
 	import { checkVersionToLoadUpdate } from '@/libs/tools.js'
+	import clipboard from "@/js_sdk/dc-clipboard/clipboard.js"
 	export default {
 		data() {
 			return {
@@ -70,6 +71,14 @@
 			}
 		},
 		methods: {
+			// 复制
+			copyText(text){
+				clipboard.setText(text);
+				uni.showToast({
+					icon: 'none',
+					title: '编码已复制成功'
+				})
+			},
 			// 版本更新
 			AndroidCheckUpdate(){
 				let _this = this

Diff do ficheiro suprimidas por serem muito extensas
+ 16 - 3
unpackage/dist/dev/app-plus/app-service.js


+ 12 - 3
unpackage/dist/dev/app-plus/app-view.js

@@ -463,9 +463,18 @@ var render = function () {
           _c("uni-view", { attrs: { _i: 17 } }, [
             _vm._v("系统版本:" + _vm._$g(17, "t0-0")),
           ]),
-          _c("uni-view", { attrs: { _i: 18 } }, [
-            _vm._v("设备ID:" + _vm._$g(18, "t0-0")),
-          ]),
+          _c(
+            "uni-view",
+            {
+              attrs: { _i: 18 },
+              on: {
+                click: function ($event) {
+                  return _vm.$handleViewEvent($event)
+                },
+              },
+            },
+            [_vm._v("设备ID:" + _vm._$g(18, "t0-0"))]
+          ),
           _c("uni-view", { attrs: { _i: 19 } }, [
             _vm._v("Copyright © 2023 陕西山海高科信息技术有限公司"),
           ]),

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff