Authored by yyq

pay seccess yas

1 -const router = global.router; 1 +import Yas from '../../../common/yas';
2 2
  3 +const yas = new Yas();
  4 +const router = global.router;
3 5
4 Page({ 6 Page({
5 data: { 7 data: {
6 orderPrice: 0 8 orderPrice: 0
7 }, 9 },
8 onLoad(options) { 10 onLoad(options) {
9 - options = {orderCode: 1701045399, price: 10.24}  
10 this.orderCode = options.orderCode; 11 this.orderCode = options.orderCode;
11 12
12 if (options.price) { 13 if (options.price) {
13 this.setData({orderPrice: options.price}); 14 this.setData({orderPrice: options.price});
14 } 15 }
  16 +
  17 + yas.pageOpenReport();
15 }, 18 },
16 viewOrderDetail() { 19 viewOrderDetail() {
17 if (this.orderCode) { 20 if (this.orderCode) {