success.js
526 Bytes
import Yas from '../../common/yas';
const router = global.router;
let yas;
Page({
data: {
orderPrice: 0
},
onLoad(options) {
this.orderCode = options.orderCode;
if (options.price) {
this.setData({orderPrice: options.price});
}
yas = new Yas();
yas.pageOpenReport();
},
viewOrderDetail() {
if (this.orderCode) {
router.go('orderDetail', {orderCode: this.orderCode}, 'redirectTo');
}
},
viewProductList() {
router.go('productList', false, 'redirectTo');
}
});