Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
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 1d6e001c
authored
Aug 29, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
49753565
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
28 deletions
src/mixins/index.js
src/mixins/miniprogramMixin.js
src/views/crowdfunding/components/Action.vue
src/views/crowdfunding/index.vue
src/mixins/index.js
View file @
1d6e001
import
miniprogramMixin
from
'./miniprogramMixin'
export
{
miniprogramMixin
}
\ No newline at end of file
src/mixins/miniprogramMixin.js
deleted
100644 → 0
View file @
4975356
import
{
wxConfig
}
from
'@/api'
export
default
{
data
()
{
return
{
}
},
mounted
()
{
},
methods
:
{
launchMiniprogram
()
{
const
ISWXWORK
=
window
.
$ISWXWORK
const
{
appid
}
=
window
.
$fetchConfig
.
miniprogramInfo
if
(
!
ISWXWORK
)
return
let
{
path
}
=
this
wxConfig
.
launchMiniprogram
({
appid
,
path
}).
then
(
res
=>
{
console
.
log
(
res
)
})
}
}
}
\ No newline at end of file
src/views/crowdfunding/components/Action.vue
View file @
1d6e001
...
...
@@ -66,12 +66,10 @@
import
{
shopmallApi
,
wxConfig
}
from
'@/api'
import
{
util
}
from
'@/utils'
import
PayModal
from
'./PayModal.vue'
import
{
miniprogramMixin
}
from
'@/mixins'
export
default
{
name
:
'Action'
,
components
:
{
PayModal
},
props
:
[
'detail'
,
'updata'
],
mixins
:
[
miniprogramMixin
],
watch
:
{
'detail'
:
function
(
n
)
{
this
.
show
=
true
...
...
src/views/crowdfunding/index.vue
View file @
1d6e001
...
...
@@ -299,7 +299,6 @@ export default {
'openLocation'
,
'getNetworkType'
,
'onMenuShareAppMessage'
,
'launchMiniprogram'
,
'onMenuShareTimeline'
]
wxConfig
.
init
(
jsApiList
).
then
(()
=>
{
...
...
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