shish пре 4 година
родитељ
комит
5877b04bef
1 измењених фајлова са 20 додато и 1 уклоњено
  1. 20 1
      ghsApp/src/admin/staff/list.vue

+ 20 - 1
ghsApp/src/admin/staff/list.vue

@@ -47,6 +47,7 @@
 			</div>
 			<!-- 按钮 -->
 			<div class="app-footer">
+				<text style="color:#3385FF;margin-right:80rpx;" @click="getPCAddress()" >PC端后台网址</text>
 				<div class="admin-button-com middle blue" @click="pageTo({url: '/admin/staff/add'})">添加员工</div>
 			</div>
 		</block>
@@ -185,9 +186,27 @@ export default {
 		}
 	},
 	onLoad: function() {
-		// this.init()
 	},
 	methods: {
+		getPCAddress(){
+			let self = this;
+			uni.showModal({
+				title: "PC端后台网址",
+				content: "https://shop.wixhb.com/",
+				cancelText: "取消",
+				confirmText: "复制",
+				success: function (res) {
+					if (res.confirm) {
+						uni.setClipboardData({
+							data: "https://shop.wixhb.com/",
+							success: function() {
+								self.$msg("已复制")
+							}
+						});
+					}
+				},
+			})
+		},
 		async init() {
 			this._list()
 		},