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({
},
//接受跳转的路由参数
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];
...
...
utils/request/environment.js
View file @
a62ee8f
...
...
@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试
3生产
*/
const
index
=
1
const
index
=
2
const
secretKey
=
{
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