| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import common from '../../utils/util';
- import server from '../../utils/main';
- const app = getApp();
- Page({
- data: {
- },
- onLoad: function (options) {
- this.setData({
- Containnerheight: common.getSystemHeight(),
- });
- this.init();
- },
- init:function(){
- var that=this;
- var arrProduct = wx.getStorageSync("ProductPrice");
- for (var i = 0; i < arrProduct.length; i++) {
- if (arrProduct[i].ProductNum == app.globalData.ProgramID) {
- that.setData({
- Price: Math.floor(arrProduct[i].Period[0].Price),
- });
- }
- }
- },
- gotoOrder: function () {
- wx.navigateTo({
- url: "./order?id="+app.globalData.ProgramID+"&paytype=3",
- });
- },
- gotoPackList: function () {
- wx.navigateTo({
- url: "./list?IsGift=0",
- });
- },
- gotoGiftList: function () {
- wx.navigateTo({
- url: "./list?IsGift=1",
- });
- },
- closePage:function(){
- wx.setStorageSync("NoRefreshList", true);
- wx.navigateBack({
- delta: 1
- });
- },
- onShareAppMessage: function () {
- return {
- title: app.globalData.ShareTitle,
- path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
- imageUrl: app.globalData.ShareImage,
- }
- },
- })
|