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