shish 3 лет назад
Родитель
Сommit
0dfe670dd1
2 измененных файлов с 27 добавлено и 2 удалено
  1. 19 2
      ghsApp/src/admin/billing/index.vue
  2. 8 0
      ghsApp/src/api/item-class/index.js

+ 19 - 2
ghsApp/src/admin/billing/index.vue

@@ -102,7 +102,7 @@
 			</view>
 		</uni-popup>
 
-		<image v-if="showClassRemind" @click="hideClassRemind" style="position:absolute;width:610upx;height:699upx;top:225upx;left:80upx;z-index:9999;" :src="`${constant.imgUrl}/class_remind.png`"></image>
+		<image v-if="showClassRemind" @click="hideClassRemind" style="position:absolute;width:610upx;height:699upx;top:98upx;left:80upx;z-index:9999;" :src="`${constant.imgUrl}/class_remind.png`"></image>
 
 	</view>
 </view>
@@ -117,6 +117,7 @@ import FooterCart from "@/components/module/app-footer-cart";
 import ModalModule from "@/components/plugin/modal";
 import { COMMODITY_TYPE } from "@/utils/declare";
 import productMins from "@/mixins/product";
+import { getClassRemind,hasClassRemind } from "@/api/item-class";
 import { mapGetters } from "vuex";
 export default {
 	name: "Billing",
@@ -149,6 +150,18 @@ export default {
 		if (!this.$util.isEmpty(this.option.customId)){
 			this.selectJobId = this.option.customId
 		}
+
+		//提醒花材分类位置移动
+		getClassRemind().then(res=>{
+			if(res.code == 1){
+				if(res.data.hasRemind == 1){
+					this.showClassRemind = false
+				}else{
+					this.showClassRemind = true
+				}
+			}
+		})
+
 	},
 	methods: {
 		changeClass(index){
@@ -159,7 +172,11 @@ export default {
 			this.$refs.selectFlowerNumRef.open('top')
 		},
 		hideClassRemind(){
-
+			hasClassRemind().then(res=>{
+				if(res.code ==1){
+					this.showClassRemind = false
+				}
+			})
 		},
 		confirmToSave() {
 			if(this.$util.isEmpty(this.selectList)){

+ 8 - 0
ghsApp/src/api/item-class/index.js

@@ -1,5 +1,13 @@
 import https from '@/plugins/luch-request_0.0.7/request'
 
+export const hasClassRemind = data => {
+	return https.get('/item-class/has-class-remind', data)
+}
+
+export const getClassRemind = data => {
+	return https.get('/item-class/get-class-remind', data)
+}
+
 export const getList = data => {
 	return https.get('/item-class/list', data)
 }