沙世明
2022-03-23 a61e9f015ffc705233e4dd01ea62fb8160813958
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
({
    getSmartPrice: function(component, callback) {
        // Stubbed service call. Make call to PredictionIO here.
        // More info: http://www.dreamhouseapp.io/pio/
        var property = component.get("v.property");
        component.set("v.waiting", true);
        window.setTimeout($A.getCallback(function() {
            component.set("v.waiting", false);
            if (component.isValid()) {
                var smartPrice = Math.round(property.Assessed_Value__c * 1.15 / 1000) * 1000;
                callback(smartPrice);
            }
        }), 300);
    }
})