shish 4 жил өмнө
parent
commit
de537bef08

+ 23 - 2
ghsApp/src/admin/home/workbench.vue

@@ -57,6 +57,11 @@
 				<image @click="pageTo({ url: '/admin/custom/selectCustom',query: {style:1}})" :src="pfSrc" mode="widthFix" ></image>
 			</view>
 
+			<view v-if="showBook == 1" style="text-align:center;position:relative;" @click="pageTo({ url: '/admin/book/index'})">
+				<view @click.stop="closeBook" style="position:absolute;right:38rpx;top:8rpx;"><image style="width:38rpx;" :src="`${constant.imgUrl}/book/close1.png`" mode="widthFix"></image></view>
+				<image style="border:4rpx solid #DDDDDD;margin:0 auto;width:695rpx;border-radius:15rpx;" :src="`${constant.imgUrl}/book/book3.png`" mode="widthFix"></image>
+			</view>
+
 			<div class="tabs-wrap">
 				<div class="tabs-list" v-for="(item, index) in tabsData" :key="index">
 					<div @click="goPage(item)">
@@ -108,6 +113,7 @@ import ModalModule from "@/components/plugin/modal";
 import { getDataTimestamp } from "@/utils/common";
 import { getUser } from "@/utils/auth";
 import { consoleIndex } from "@/api/workbench";
+import { closeBook } from "@/api/book";
 import noneHd from "@/components/none-hd";
 export default {
 	name: "admin-workbench",
@@ -123,6 +129,7 @@ export default {
 			renewMask: false,
 			getappIdList: {},
 			skCustomId:0,
+			showBook:0,
 			data: {
 				admin: {},
 				asset: {},
@@ -278,6 +285,19 @@ export default {
 	onShow() {
 	},
 	methods: {
+		closeBook(){
+			let that = this
+			uni.showModal({
+				title: "确定关闭?",
+				content: "关闭后可以在底部菜单【我的】-【新人手册】重新打开",
+				success: function (res) {
+					if (res.confirm) {
+						that.showBook = 0
+						closeBook().then((res) => {});
+					}
+				},
+			})
+		},
 		skKd(){
 			if((this.myShopInfo.skCustomId && this.myShopInfo.skCustomId > 0) || this.skCustomId > 0){
 				let currentId = 0;
@@ -316,7 +336,8 @@ export default {
 			});
 			consoleIndex().then(res => {
 				this.data = res.data;
-				const { asset, todayData,menu } = res.data;
+				const { asset, todayData,menu,showBook } = res.data;
+				this.showBook = showBook
 				this.tabsData = menu
 				if (!this.$util.isEmpty(asset)) {
 					// 订单总览
@@ -497,7 +518,7 @@ export default {
 .tabs-head_bx {
 	display: flex;
 	align-items: center;
-	padding: 20px 15px;
+	padding: 20px 15px 10px 15px;
 }
 // tabs
 .tabs-wrap {

+ 4 - 0
ghsApp/src/api/book/index.js

@@ -6,4 +6,8 @@ export const getBookList = data => {
 
 export const getBookDetail = data => {
 	return https.get('/book/detail', data)
+}
+
+export const closeBook = data => {
+	return https.get('/book/close-book', data)
 }