Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 4eb56c46
authored
Dec 26, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'huyue_v3.3.0' of
http://192.168.3.233:8090/saas/mini-program/ai-card
into huyue_v3.3.0
2 parents
0904d153
667d81fd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
48 deletions
api/environment.js
app.js
package-lock.json
package.json
packagesList/pages/activityDetail/activityDetail.js
pages/tab/index/constant/systemData.js
pages/tab/index/index.js
api/environment.js
View file @
4eb56c4
...
@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
...
@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布
3预发布
4生产
4生产
*/
*/
const
index
=
1
;
const
index
=
2
;
const
secretKey
=
{
const
secretKey
=
{
ip
:
{},
ip
:
{},
dev
:
{
dev
:
{
...
...
app.js
View file @
4eb56c4
...
@@ -73,15 +73,9 @@ App({
...
@@ -73,15 +73,9 @@ App({
merchant
:
res
.
merchantId
,
merchant
:
res
.
merchantId
,
cardId
:
res
.
cardId
cardId
:
res
.
cardId
})
})
// const userInfo = wx.$storage.get('aicard_user_info')
_this
.
getUserInfo
(
openId
,
returnResponse
).
then
(
result
=>
{
// if (!userInfo) {
resolve
(
result
)
_this
.
getUserInfo
(
openId
,
returnResponse
).
then
(
result
=>
{
})
// wx.$Track.sendTrack(trackData.COMPANY, wechatInfo)
resolve
(
result
)
})
// } else {
// resolve(userInfo)
// }
})
})
}
else
{
}
else
{
// 其他的分享进来的页面走这里,在进页面的onshow中需对wx.$trackData先赋值
// 其他的分享进来的页面走这里,在进页面的onshow中需对wx.$trackData先赋值
...
@@ -210,6 +204,8 @@ App({
...
@@ -210,6 +204,8 @@ App({
globalData
:
{},
globalData
:
{},
onPageNotFound
(
res
)
{
onPageNotFound
(
res
)
{
console
.
log
(
res
,
'不存在的页面'
)
console
.
log
(
res
,
'不存在的页面'
)
wx
.
$router
.
go
(
'/pages/tab/index/index'
)
setTimeout
(()
=>
{
wx
.
$router
.
go
(
'/pages/tab/index/index'
,
res
.
query
)
},
1000
)
},
},
})
})
package-lock.json
View file @
4eb56c4
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
"integrity"
:
"sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
"integrity"
:
"sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
},
},
"glsx-applet-component"
:
{
"glsx-applet-component"
:
{
"version"
:
"1.0.3
2
"
,
"version"
:
"1.0.3
3
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.3
2
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.3
3
.tgz"
,
"integrity"
:
"sha512-
1YnE+r/tHpQS0FYLN/YV7EHvhOhY3leprkghtSpl3jjNP6KkMzrQoRuTatSIe3AWzVOKeXVP6ZsCIm9cdtB4pQ
=="
"integrity"
:
"sha512-
B0PU3LA9zTT8L8szBo/r0eFQ+Ncr6sd6PAv4Kl+OuozVLVxep4De2tSZ390pXyBX4oSo4GGAzUlzyImL2Q6yJA
=="
}
}
}
}
}
}
package.json
View file @
4eb56c4
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"main"
:
"app.js"
,
"main"
:
"app.js"
,
"dependencies"
:
{
"dependencies"
:
{
"@vant/weapp"
:
"^1.10.9"
,
"@vant/weapp"
:
"^1.10.9"
,
"glsx-applet-component"
:
"^1.0.3
2
"
"glsx-applet-component"
:
"^1.0.3
3
"
},
},
"devDependencies"
:
{},
"devDependencies"
:
{},
"scripts"
:
{
"scripts"
:
{
...
...
packagesList/pages/activityDetail/activityDetail.js
View file @
4eb56c4
...
@@ -13,18 +13,16 @@ Page({
...
@@ -13,18 +13,16 @@ Page({
toActivity
(){
toActivity
(){
// wx.$util.getMockConfig().then(({businessParams, businessappId}) => {
// wx.$util.getMockConfig().then(({businessParams, businessappId}) => {
// console.log(businessParams, businessappId)
// console.log(businessParams, businessappId)
wx
.
navigateToMiniProgram
({
const
{
activityInfo
}
=
this
.
data
appId
:
'wxe10067a63c1856ac'
,
wx
.
navigateToMiniProgram
({
path
:
'pages/crowdfunding/index/index'
,
appId
:
'wxe10067a63c1856ac'
,
extraData
:
{
path
:
'pages/crowdfunding/index/index?id='
+
activityInfo
.
crowdFundActivityId
+
'&merchantId='
+
activityInfo
.
merchantNo
,
id
:
this
.
data
.
activityInfo
.
id
envVersion
:
'trial'
,
},
success
(
res
)
{
envVersion
:
'trial'
,
console
.
log
(
res
,
storeParams
)
success
(
res
)
{
// 打开成功
console
.
log
(
res
,
storeParams
)
}
// 打开成功
})
}
})
},
},
/**
/**
...
...
pages/tab/index/constant/systemData.js
View file @
4eb56c4
...
@@ -22,20 +22,15 @@ const videoList0 = [
...
@@ -22,20 +22,15 @@ const videoList0 = [
manufacturer
:
'嘀加智慧云'
,
manufacturer
:
'嘀加智慧云'
,
view
:
188
view
:
188
}
}
// {
]
// videoUrl: `${IMG_URL2}video/digital_card.mp4`,
const
videoList1
=
[
// posterUrl: `${IMG_URL}index/poster/digital_card_bitmap.png`,
{
// name: '数字无忧卡服务',
videoUrl
:
`
${
IMG_URL2
}
video/digital_card.mp4`
,
// manufacturer: '嘀加智慧',
posterUrl
:
`
${
IMG_URL
}
index/poster/digital_card_bitmap.png`
,
// view: 1320
name
:
'数字无忧卡服务'
,
// },
manufacturer
:
'嘀加智慧'
,
// {
view
:
1320
// videoUrl: `${IMG_URL2}video/digital_card_reason6.mp4`,
}
// posterUrl: `${IMG_URL}index/poster/digital_card_reason6_bitmap.png`,
// name: '数字无忧卡6大理由',
// manufacturer: '嘀加智慧',
// view: 1485
// }
]
]
const
subscriptionSystemData
=
[
const
subscriptionSystemData
=
[
{
{
...
@@ -153,8 +148,12 @@ const subscriptionSystemData = [
...
@@ -153,8 +148,12 @@ const subscriptionSystemData = [
tabList
tabList
}
}
],
],
videoList
:
videoList
0
videoList
:
videoList
1
// posterList: posterList0
// posterList: posterList0
},
{
name
:
'数字化转型案例'
,
videoList
:
videoList0
.
concat
(
videoList1
)
}
}
]
]
...
...
pages/tab/index/index.js
View file @
4eb56c4
...
@@ -114,13 +114,20 @@ Page({
...
@@ -114,13 +114,20 @@ Page({
},
},
// 获取跳转门店助手、生意助手判断
// 获取跳转门店助手、生意助手判断
checkCooperate
()
{
checkCooperate
()
{
const
{
phone
}
=
wx
.
$storage
.
get
(
'aicard_user_info'
)
const
userInfo
=
wx
.
$storage
.
get
(
'aicard_user_info'
)
entmicroApi
.
checkCooperate
({
phone
}).
then
(
res
=>
{
if
(
userInfo
)
{
console
.
log
(
res
)
const
{
phone
}
=
userInfo
entmicroApi
.
checkCooperate
({
phone
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
setData
({
showCooperate
:
res
})
})
}
else
{
this
.
setData
({
this
.
setData
({
showCooperate
:
res
showCooperate
:
false
})
})
}
)
}
},
},
// 合作申请
// 合作申请
toApplication
()
{
toApplication
()
{
...
@@ -228,7 +235,7 @@ Page({
...
@@ -228,7 +235,7 @@ Page({
menus
:
[
'shareAppMessage'
]
menus
:
[
'shareAppMessage'
]
})
})
this
.
setData
({
this
.
setData
({
productData
:
this
.
addAll
(
productData
)
productData
:
this
.
addAll
(
this
.
data
.
productData
)
})
})
},
},
...
...
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