Explorar o código

更新价格通知

shish hai 1 ano
pai
achega
c67661f8fa
Modificáronse 2 ficheiros con 16 adicións e 16 borrados
  1. 8 8
      ghsPad/src/pages/home/cash.vue
  2. 8 8
      hdPad/src/pages/home/cash.vue

+ 8 - 8
ghsPad/src/pages/home/cash.vue

@@ -25,10 +25,10 @@
 			</view>
 		</view>
 
-		<view style="display: flex;align-items: center;justify-content: center;width:50vw;height:60upx;
-		background-color: white;color:black;position: absolute;bottom:0upx;border:1upx solid #CCCCCC;left:35vw;font-size:24upx;z-index:80;" v-if="mustUpdate">
+		<view style="display: flex;align-items: center;justify-content: center;width:56vw;height:70upx;
+		background-color: white;color:black;position: absolute;bottom:0upx;border:1upx solid #CCCCCC;left:33vw;font-size:25upx;z-index:80;" v-if="mustUpdate">
 		花材价格已更新,请
-		<button class="admin-button-com mini-btn" @click="confirmRefresh" style="font-size:20upx;margin-left:10upx;margin-right:16upx;">刷新</button>
+		<button class="admin-button-com mini-btn" @click="confirmRefresh" style="font-size:20upx;margin-left:10upx;margin-right:28upx;">刷新</button>
 		<text @click="cancelRefresh">x</text>
 		</view>
 
@@ -165,7 +165,7 @@ export default {
 			this.customName = '快捷开单'
 			//要调用rightItemRef里的方法更新,不能这边直接请求product.js里方法更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
 			this.$refs.rightItemRef.refreshMyRightItem(this.customId)
-			this.mustUpdate = false
+			this.beginRemind()
 		},
 		showCustomPop(){
 			this.$refs.myCustomRef.open('top')
@@ -179,10 +179,9 @@ export default {
 			this.customName = info.name
 			//要调用rightItemRef里的方法更新,不能这边直接请求product.js里方法更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
 			this.$refs.rightItemRef.refreshMyRightItem(this.customId)
-			this.mustUpdate = false
+			this.beginRemind()
 		},
 		cancelRefresh(){
-			this.mustUpdate = false
 			this.beginRemind()
 		},
 		confirmRefresh(){
@@ -192,6 +191,7 @@ export default {
 		beginRemind(){
 			let that = this
 			clearInterval(that.T)
+			this.mustUpdate = false
 			that.T = setInterval(function(){
 				checkRefresh().then(res=>{
 					if(res.code == 1){
@@ -201,7 +201,7 @@ export default {
 						}
 					}
 				})
-			}, 20000)
+			}, 30000)
 		},
 		updateRightItem(){
 			this.customId = this.getLoginInfo.skCustomId && this.getLoginInfo.skCustomId > 0 ? Number(this.getLoginInfo.skCustomId) : 0
@@ -209,7 +209,7 @@ export default {
 			//要调用rightItemRef里的方法更新,不能这边直接请求product.js里方法更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
 			this.$refs.rightItemRef.refreshMyRightItem(this.customId)
 			this.getCustomData()
-			this.mustUpdate = false
+			this.beginRemind()
 			//世纪花都、龙岩小林鲜花要自动弹出客户列表,多个地方要同步修改,关键词sj_pop_auto
 			if(this.getLoginInfo.shopId==30300 || this.getLoginInfo.shopId==15007){
 				this.showCustomPop()

+ 8 - 8
hdPad/src/pages/home/cash.vue

@@ -28,10 +28,10 @@
 			</view>
 		</view>
 
-		<view style="display: flex;align-items: center;justify-content: center;width:50vw;height:60upx;
-		background-color: white;color:black;position: absolute;bottom:0upx;border:1upx solid #CCCCCC;left:35vw;font-size:24upx;z-index:80;" v-if="mustUpdate">
+		<view style="display: flex;align-items: center;justify-content: center;width:56vw;height:70upx;
+		background-color: white;color:black;position: absolute;bottom:0upx;border:1upx solid #CCCCCC;left:33vw;font-size:25upx;z-index:80;" v-if="mustUpdate">
 		花材价格已更新,请
-		<button class="admin-button-com mini-btn" @click="confirmRefresh" style="font-size:20upx;margin-left:10upx;margin-right:16upx;">刷新</button>
+		<button class="admin-button-com mini-btn" @click="confirmRefresh" style="font-size:20upx;margin-left:10upx;margin-right:28upx;">刷新</button>
 		<text @click="cancelRefresh">x</text>
 		</view>
 
@@ -145,7 +145,7 @@ export default {
 			this.customId = this.getMyShopInfo.defaultCustomId && this.getMyShopInfo.defaultCustomId > 0 ? Number(this.getMyShopInfo.defaultCustomId):0
 			this.customName = '快捷开单'
 			this.$refs.rightItemRef.renewMyRightItem(this.customId)
-			this.mustUpdate = false
+			this.beginRemind()
 		},
 		init(){
 			//这个页面有二个这方法,不能去掉,不然会造成:全部缓存清了,点选客没有客户可选
@@ -173,10 +173,9 @@ export default {
 			this.customId = Number(info.id)
 			this.customName = info.name
 			this.$refs.rightItemRef.renewMyRightItem(this.customId)
-			this.mustUpdate = false
+			this.beginRemind()
 		},
 		cancelRefresh(){
-			this.mustUpdate = false
 			this.beginRemind()
 		},
 		confirmRefresh(){
@@ -185,6 +184,7 @@ export default {
 		},
 		beginRemind(){
 			let that = this
+			this.mustUpdate = false
 			clearInterval(that.T)
 			that.T = setInterval(function(){
 				checkRefresh().then(res=>{
@@ -195,7 +195,7 @@ export default {
 						}
 					}
 				})
-			}, 20000)
+			}, 30000)
 		},
 		updateRightItem(){
 			this.customId = this.getMyShopInfo.defaultCustomId && this.getMyShopInfo.defaultCustomId > 0 ? Number(this.getMyShopInfo.defaultCustomId):0
@@ -203,7 +203,7 @@ export default {
 			//要调用rightItemRef里的方法更新,不能这边直接请求product.js里方法更新,因为会造成扫码那块出问题,识别不到,关键词hzg_scan_right_item
 			this.$refs.rightItemRef.renewMyRightItem(this.customId)
 			this.getCustomData()
-			this.mustUpdate = false
+			this.beginRemind()
 		},
 		changeProperty(property){
 			this.currentProperty = property