Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a62ee8fe
authored
Oct 20, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:调整状态
1 parent
1312b049
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
pages/checkProduct/checkProduct.js
utils/request/environment.js
pages/checkProduct/checkProduct.js
View file @
a62ee8f
...
@@ -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];
...
...
utils/request/environment.js
View file @
a62ee8f
...
@@ -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
:
{},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment