Commit a62ee8fe by luyt

fix:调整状态

1 parent 1312b049
...@@ -89,9 +89,10 @@ Page({ ...@@ -89,9 +89,10 @@ Page({
}, },
//接受跳转的路由参数 //接受跳转的路由参数
onRoute(options) { onRoute(options) {
// console.log("options: ", options); console.log("分享options: ", options);
//选中场景的index,和产品的index //选中场景的index,和产品的index
let { actNum, activeNavIdx, apiData} = options; let { actNum, activeNavIdx, apiData} = options;
if(actNum&&activeNavIdx)return
this.setData({ this.setData({
actNum, actNum,
activeNavIdx, activeNavIdx,
...@@ -256,8 +257,11 @@ Page({ ...@@ -256,8 +257,11 @@ Page({
* 生命周期函数--监听页面加载 () * 生命周期函数--监听页面加载 ()
*/ */
onLoad(options) { onLoad(options) {
console.log('options: ', options); console.log('分享options12255565: ', options);
// actNum,activeNavIdx isShare // actNum,activeNavIdx isShare
if(!options){
return
}
// 扫码进来 // 扫码进来
let { actNum, activeNavIdx, isShare, merchantId } = options; let { actNum, activeNavIdx, isShare, merchantId } = options;
console.log('isShare: ', isShare); console.log('isShare: ', isShare);
...@@ -277,6 +281,11 @@ Page({ ...@@ -277,6 +281,11 @@ Page({
title: "加载图片中", title: "加载图片中",
}); });
} }
this.setData({
actNum,
activeNavIdx
})
// 发请求 // 发请求
let senceItem = senceData[actNum]; let senceItem = senceData[actNum];
let item = senceData[actNum]?.productList[activeNavIdx]; let item = senceData[actNum]?.productList[activeNavIdx];
......
...@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod'] ...@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试 2测试
3生产 3生产
*/ */
const index = 1 const index = 2
const secretKey = { const secretKey = {
ip: {}, ip: {},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!