Commit e7910581 by LJM

修改价格并记录

parent 41a366c8
......@@ -39,5 +39,14 @@ export default {
var cval = this.getCookie(name);
if (cval != null)
document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString();
}
},
/**
*
* @param arr
*/
isPurchasesValid : function (arr) {
return arr.every((item, index, array) =>
index === 0 ? true : item.purchases > array[index - 1].purchases
);
},
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment