Kaynağa Gözat

花材分类位置移动

shish 3 yıl önce
ebeveyn
işleme
1a8f9d6777

+ 8 - 3
hdApp/src/api/ghs/index.js

@@ -1,8 +1,13 @@
 import https from '@/plugins/luch-request_0.0.7/request'
 
-/** *
- * 供应商列表 姜枫 2021.04.01
- */
+export const hasClassRemind = data => {
+	return https.get('/ghs/has-class-remind', data)
+}
+
+export const getClassRemind = data => {
+	return https.get('/ghs/get-class-remind', data)
+}
+
 export const getList = data => {
 	return https.get('/ghs/list', data)
 }

+ 23 - 2
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -145,6 +145,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>
 
 	</view>
 </template>
@@ -162,7 +163,7 @@ import allMoreSelectInput from "@/components/module/allMoreSelectInput";
 import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
 import { COMMODITY_TYPE } from "@/utils/declare";
 import productMins from "@/mixins/cgProduct";
-import { getGhsDataApi, ghsInfo,visitMall } from "@/api/ghs/index";
+import { getGhsDataApi, ghsInfo,visitMall,getClassRemind,hasClassRemind } from "@/api/ghs/index";
 import SelPopup from "@/components/sel-popup.vue";
 import AppActivilyCoupon from "@/components/module/app-activily-coupon";
 import { mapGetters } from "vuex";
@@ -218,7 +219,8 @@ export default {
 			isNewCustom:false,
 			showInvite:false,
 			tjFl:0,
-			cartItemShow:false
+			cartItemShow:false,
+			showClassRemind:false
 		};
 	},
 	onPullDownRefresh() {
@@ -316,6 +318,13 @@ export default {
 
 	},
 	methods: {
+		hideClassRemind(){
+			hasClassRemind().then(res=>{
+				if(res.code ==1){
+					this.showClassRemind = false
+				}
+			})
+		},
 		changeClass(index){
 			this.$refs.selectFlowerNumRef.close()
 			this.swichClass(index)
@@ -487,6 +496,18 @@ export default {
 					this.newCustomGift.xrFlAmount = res.data.xrFlAmount
 				}).catch(err => {})
 			}
+
+			//提醒花材分类位置移动
+			getClassRemind().then(res=>{
+				if(res.code == 1){
+					if(res.data.hasRemind == 1){
+						this.showClassRemind = false
+					}else{
+						this.showClassRemind = true
+					}
+				}
+			})
+
 		},
 		visitMall(ghsId){
 			//访客记录