| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import common from '../../utils/util';
- import server from '../../utils/main';
- const app = getApp();
- Page({
- data: {
- PayList:[],
- },
- onLoad: function (options) {
- this.setData({
- Height: common.getSystemHeight(),
- });
- this.init();
- },
- init: function () {
- var that = this;
- server.getData('GetHanziUserPayInfoList?UserID=' + app.globalData.userInfo.UserID, function (data) {
- if (data) {
- var list=[];
- for(var i=data.List.length-1;i>=0;i--){
- list.push(data.List[i]);
- }
- var serviceTime = data.ProductServiceTime;
- if (serviceTime == "2099年12月31日")
- serviceTime = "永久有效";
- that.setData({
- ProductServiceTime: serviceTime,
- PayList: list,
- });
- }
- });
- },
- onShareAppMessage: function () {
- return {
- title: app.globalData.ShareTitle,
- path: 'pages/index/index?UserID=' + app.globalData.userInfo.UserID,
- imageUrl: '../../images/07001.png',
- }
- },
- })
|