Commit a7625b89 by 高淑倩

集点跳首页

parent edcb51a7
{"tabs":["file:///f%3A/code/7_Eleven_Alipay/pages/pointDetail/pointDetail.js","file:///f%3A/code/7_Eleven_Alipay/pages/pointDetail/pointDetail.axml"],"current":"file:///f%3A/code/7_Eleven_Alipay/pages/pointDetail/pointDetail.axml"} {"tabs":["file:///f%3A/code/7_Eleven_Alipay/subPackage/page/pages/goToHome/goToHome.json","file:///f%3A/code/7_Eleven_Alipay/subPackage/page/pages/goToHome/goToHome.acss","file:///f%3A/code/7_Eleven_Alipay/subPackage/page/pages/goToHome/goToHome.axml","file:///f%3A/code/7_Eleven_Alipay/subPackage/page/pages/goToHome/goToHome.js"],"current":"file:///f%3A/code/7_Eleven_Alipay/subPackage/page/pages/goToHome/goToHome.axml"}
\ No newline at end of file \ No newline at end of file
{"files":["f:\\code\\7_Eleven_Alipay\\pages\\pointDetail\\tools.wxs","f:\\code\\7_Eleven_Alipay\\pages\\pointList\\tools.wxs","f:\\code\\7_Eleven_Alipay\\pages\\pointDetail\\pointDetail.axml","f:\\code\\7_Eleven_Alipay\\pages\\pointDetail\\pointDetail.js","f:\\code\\7_Eleven_Alipay\\pages\\pointDetail\\pointDetail.acss","f:\\code\\7_Eleven_Alipay\\pages\\pointDetail\\pointDetail.json","f:\\code\\7_Eleven_Alipay\\component\\statusPoint\\statusPoint.axml","f:\\code\\7_Eleven_Alipay\\component\\statusPoint\\statusPoint.json","f:\\code\\7_Eleven_Alipay\\component\\statusPoint\\statusPoint.js","f:\\code\\7_Eleven_Alipay\\component\\statusPoint\\statusPoint.acss","f:\\code\\7_Eleven_Alipay\\utils\\helper.js","f:\\code\\7_Eleven_Alipay\\utils\\wxService.js","f:\\code\\7_Eleven_Alipay\\pages\\pointList\\pointList.js","f:\\code\\7_Eleven_Alipay\\pages\\pointList\\pointList.axml","f:\\code\\7_Eleven_Alipay\\pages\\pointList\\pointList.acss","f:\\code\\7_Eleven_Alipay\\pages\\pointList\\pointList.json","f:\\code\\7_Eleven_Alipay\\app.json","f:\\code\\7_Eleven_Alipay\\utils\\Http.js","f:\\code\\7_Eleven_Alipay\\utils\\util.js","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.axml","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.js","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.json","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.acss","f:\\code\\7_Eleven_Alipay\\wx2my.js","f:\\code\\7_Eleven_Alipay\\project.config.json","f:\\code\\7_Eleven_Alipay\\package-lock.json","f:\\code\\7_Eleven_Alipay\\Behavior.js","f:\\code\\7_Eleven_Alipay\\app.js","f:\\code\\7-Eleven\\src_output\\utils\\util.js","f:\\code\\7-Eleven\\src_output\\component\\authorization-modal\\authorization-modal.js","f:\\code\\7-Eleven\\src_output\\pages\\userCenter\\userCenter.js","f:\\code\\7-Eleven\\src_output\\utils\\wxService.js","f:\\code\\7-Eleven\\src_output\\app.js","f:\\code\\7-Eleven\\src_output\\component\\authorization-modal\\authorization-modal.axml","f:\\code\\7-Eleven\\src_output\\component\\bottom\\bottom.axml","f:\\code\\7-Eleven\\src_output\\component\\bottom\\bottom.acss","f:\\code\\7-Eleven\\src_output\\component\\bottom\\bottom.js","f:\\code\\7-Eleven\\src_output\\utils\\common.js","f:\\code\\7-Eleven\\src_output\\subPackage\\page\\pages\\h5\\h5page.js","f:\\code\\7-Eleven\\src_output\\subPackage\\page\\pages\\h5\\h5page.axml","f:\\code\\7-Eleven\\src_output\\subPackage\\page\\pages\\h5\\h5page.json","f:\\code\\7-Eleven\\src_output\\component\\imageSwiper\\imageSwiper.js","f:\\code\\7-Eleven\\src_output\\component\\imageSwiper\\imageSwiper.axml","f:\\code\\7-Eleven\\src_output\\component\\imageSwiper\\imageSwiper.acss","f:\\code\\7-Eleven\\src_output\\subPackage\\page\\pages\\subPage\\subPage.js","f:\\code\\7-Eleven\\src_output\\pages\\mySpend\\mySpend.js","f:\\code\\7-Eleven\\src_output\\pages\\mySpend\\mySpend.axml","f:\\code\\7-Eleven\\src_output\\pages\\mySpend\\mySpend.acss","f:\\code\\7-Eleven\\src_output\\pages\\IntegralMall\\IntegralMall.acss","f:\\code\\7-Eleven\\src_output\\app.json"]} {"files":["f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.axml","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.js","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.acss","f:\\code\\7_Eleven_Alipay\\subPackage\\page\\pages\\goToHome\\goToHome.json","f:\\code\\7_Eleven_Alipay\\pages\\pointDetail\\tools.wxs","f:\\code\\7_Eleven_Alipay\\pages\\pointList\\tools.wxs","f:\\code\\7_Eleven_Alipay\\pages\\pointDetail\\pointDetail.axml","f:\\code\\7_Eleven_Alipay\\pages\\pointDetail\\pointDetail.js","f:\\code\\7_Eleven_Alipay\\pages\\pointDetail\\pointDetail.acss","f:\\code\\7_Eleven_Alipay\\pages\\pointDetail\\pointDetail.json","f:\\code\\7_Eleven_Alipay\\component\\statusPoint\\statusPoint.axml","f:\\code\\7_Eleven_Alipay\\component\\statusPoint\\statusPoint.json","f:\\code\\7_Eleven_Alipay\\component\\statusPoint\\statusPoint.js","f:\\code\\7_Eleven_Alipay\\component\\statusPoint\\statusPoint.acss","f:\\code\\7_Eleven_Alipay\\utils\\helper.js","f:\\code\\7_Eleven_Alipay\\utils\\wxService.js","f:\\code\\7_Eleven_Alipay\\pages\\pointList\\pointList.js","f:\\code\\7_Eleven_Alipay\\pages\\pointList\\pointList.axml","f:\\code\\7_Eleven_Alipay\\pages\\pointList\\pointList.acss","f:\\code\\7_Eleven_Alipay\\pages\\pointList\\pointList.json","f:\\code\\7_Eleven_Alipay\\app.json","f:\\code\\7_Eleven_Alipay\\utils\\Http.js","f:\\code\\7_Eleven_Alipay\\utils\\util.js","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.axml","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.js","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.json","f:\\code\\7_Eleven_Alipay\\component\\authorization-modal\\authorization-modal.acss","f:\\code\\7_Eleven_Alipay\\wx2my.js","f:\\code\\7_Eleven_Alipay\\project.config.json","f:\\code\\7_Eleven_Alipay\\package-lock.json","f:\\code\\7_Eleven_Alipay\\Behavior.js","f:\\code\\7_Eleven_Alipay\\app.js","f:\\code\\7-Eleven\\src_output\\utils\\util.js","f:\\code\\7-Eleven\\src_output\\component\\authorization-modal\\authorization-modal.js","f:\\code\\7-Eleven\\src_output\\pages\\userCenter\\userCenter.js","f:\\code\\7-Eleven\\src_output\\utils\\wxService.js","f:\\code\\7-Eleven\\src_output\\app.js","f:\\code\\7-Eleven\\src_output\\component\\authorization-modal\\authorization-modal.axml","f:\\code\\7-Eleven\\src_output\\component\\bottom\\bottom.axml","f:\\code\\7-Eleven\\src_output\\component\\bottom\\bottom.acss","f:\\code\\7-Eleven\\src_output\\component\\bottom\\bottom.js","f:\\code\\7-Eleven\\src_output\\utils\\common.js","f:\\code\\7-Eleven\\src_output\\subPackage\\page\\pages\\h5\\h5page.js","f:\\code\\7-Eleven\\src_output\\subPackage\\page\\pages\\h5\\h5page.axml","f:\\code\\7-Eleven\\src_output\\subPackage\\page\\pages\\h5\\h5page.json","f:\\code\\7-Eleven\\src_output\\component\\imageSwiper\\imageSwiper.js","f:\\code\\7-Eleven\\src_output\\component\\imageSwiper\\imageSwiper.axml","f:\\code\\7-Eleven\\src_output\\component\\imageSwiper\\imageSwiper.acss","f:\\code\\7-Eleven\\src_output\\subPackage\\page\\pages\\subPage\\subPage.js","f:\\code\\7-Eleven\\src_output\\pages\\mySpend\\mySpend.js"]}
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<!--subPackage/home/pages/h5/h5page.axml-->
<view class="go-home" style="height:{{curHeight}}px" bindtap="handelGoHome"></view>
const wx2my = require('../../../../wx2my');
const Behavior = require('../../../../Behavior');
// subPackage/home/pages/h5/h5page.js
const wxService = require('../../../../utils/wxService');
wxService.page({
/**
* 页面的初始数据
*/
data: {
curHeight: ''
},
handelGoHome() {
wxService.router('/pages/userCenter/userCenter').replace()
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
onmessage(e){
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
wxService.getSystemInfo().then(res => {
this.setData({
curHeight: res.windowHeight
})
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {},
/**
* 用户点击右上角分享
*/
onShareAppMessage(options) {
const {
path
} = this.data;
const enCodeUrl = encodeURIComponent(path);
let sharePath = `/subPackage/page/pages/h5/h5page?url=${enCodeUrl}`;
return {
path: sharePath,
'web-view': options.webViewUrl,
};
},
// onShareAppMessage: function () {
// // 需要 encodeURIComponent path
// const {
// path
// } = this.data;
// const enCodeUrl = encodeURIComponent(path);
// let sharePath = `/subPackage/page/pages/h5/h5page?url=${enCodeUrl}`;
// return {
// // title: '分享给好友',
// path: sharePath,
// success() {
// wx2my.showToast({
// title: "转发成功",
// icon: 'success',
// duration: 2000
// });
// },
// fail() {
// wx2my.showToast({
// title: "转发失败",
// icon: 'none',
// duration: 2000
// });
// }
// };
// }
});
\ No newline at end of file
{"usingComponents": {}}
\ No newline at end of file
/* subPackage/home/pages/h5/h5page.wxss */
\ No newline at end of file
<!--subPackage/home/pages/h5/h5page.axml-->
<web-view class="h5-body" src="{{path}}" onMessage="onmessage"></web-view>
\ No newline at end of file
const wx2my = require('../../../../wx2my');
const Behavior = require('../../../../Behavior');
// subPackage/home/pages/h5/h5page.js
const wxService = require('../../../../utils/wxService');
wxService.page({
/**
* 页面的初始数据
*/
data: {
path: '',
h5WhitePages: ['/mp6Y/begin.html', '/mp6Y/index.html', '/v1/wx_oauth/redirect_uri']
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
const url = options.url;
// /subPackage/page/pages/h5/h5page?url=https%3A%2F%2Fk.wxpai.cn%2Fmp6Y%2Findex.html
if (url) {
this.setData({
path: `${decodeURIComponent(url)}`
});
}
},
onmessage(e){
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {},
/**
* 用户点击右上角分享
*/
onShareAppMessage(options) {
const {
path
} = this.data;
const enCodeUrl = encodeURIComponent(path);
let sharePath = `/subPackage/page/pages/h5/h5page?url=${enCodeUrl}`;
return {
path: sharePath,
'web-view': options.webViewUrl,
};
},
// onShareAppMessage: function () {
// // 需要 encodeURIComponent path
// const {
// path
// } = this.data;
// const enCodeUrl = encodeURIComponent(path);
// let sharePath = `/subPackage/page/pages/h5/h5page?url=${enCodeUrl}`;
// return {
// // title: '分享给好友',
// path: sharePath,
// success() {
// wx2my.showToast({
// title: "转发成功",
// icon: 'success',
// duration: 2000
// });
// },
// fail() {
// wx2my.showToast({
// title: "转发失败",
// icon: 'none',
// duration: 2000
// });
// }
// };
// }
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment