Commit 7630b093 by 杨明

fixed

1 parent 78550792
......@@ -279,7 +279,7 @@ class ActivityApi {
/**查询4s店商户产值总览、当日新增产值 --精品升级 */
boutiquecouponOutputValue(data) {
return api.post({
method: `scrm.api.boutiquecoupon.outputValue.overview`,
method: `scrm.api.boutiquecoupon.outputValue.overview.byDayReport`,
...data
})
}
......
......@@ -128,7 +128,7 @@ class outputApi {
/** 业务经营汇总列表查询 */
getBusiStatistics(data) {
return api.post({
method: 'scrm.api.boutiquecoupon.store.assistant.merchants.total.statistics',
method: 'scrm.api.boutiquecoupon.store.assistant.merchants.total.statistics.forStoreManager',
...data
})
}
......
var arrInclues = function(num,arr){
var arrInclues = function (num, arr) {
var flag = false
for(var i = 0;i<arr.length;i++){
if(num==arr[i]){
for (var i = 0; i < arr.length; i++) {
if (num == arr[i]) {
flag = true
}
}
return flag
}
var accMul = function(arg1, arg2){
}
var accMul = function (arg1, arg2) {
if (isNaN(arg1)) {
arg1 = 0;
}
if (isNaN(arg2)) {
arg2 = 0;
}
var m=0, s1 = arg1.toString(),
s2 = arg2.toString();
var m = 0, s1 = arg1 + '',
s2 = arg2 + '';
m += (s1.split(".")[1] && s1.split(".")[1].length) || 0;
m += (s2.split(".")[1] && s2.split(".")[1].length) || 0;
var s = s1.replace(".", "") * s2.replace(".", ""),
p = Math.pow(10,m)
return s/p
p = Math.pow(10, m)
return s / p
};
module.exports = {
module.exports = {
arrInclues: arrInclues,
accMul:accMul
}
\ No newline at end of file
accMul: accMul
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!