|
@@ -297,7 +297,36 @@ export class WindowEvent {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 弹出分数逻辑
|
|
|
+ * val 新增分数 1 ,还是减少分数 -1 ,不触发传0
|
|
|
+ */
|
|
|
+ WindowFractionStoreOpen = function(val) {
|
|
|
+
|
|
|
+ let thisClass = this;
|
|
|
+
|
|
|
+ thisClass.ComStore["WindowFractionStore"]().obj.viewOpen = true;
|
|
|
+ thisClass.ComStore["WindowFractionStore"]().obj.val += val;
|
|
|
+
|
|
|
+ if (thisClass.ComStore["WindowFractionStore"]().obj.val <= 0) {
|
|
|
+ thisClass.ComStore["WindowFractionStore"]().obj.val = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 弹出分数,隐藏
|
|
|
+ * index 当前数组下标
|
|
|
+ * list 菜单列表
|
|
|
+ */
|
|
|
+ WindowMenuStoreExit = function() {
|
|
|
|
|
|
+ let thisClass = this;
|
|
|
+ thisClass.ComStore["WindowFractionStore"]().obj.viewOpen = false;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|