Commit a62ee8fe by luyt

fix:调整状态

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