Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
65cd52fb
Commit
65cd52fb
authored
Sep 23, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:upload
parent
24f34329
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
12 deletions
+25
-12
index.vue
src/views/orderList/index.vue
+25
-12
No files found.
src/views/orderList/index.vue
View file @
65cd52fb
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
/>
/>
</cr-tab>
</cr-tab>
</cr-tabs>
</cr-tabs>
<share-pic
ref=
"sharePic"
:share-pic-data=
"sharePicData"
@
outputPicUrl=
"outputPicUrl"
/>
<!--
<cr-action-sheet
<!--
<cr-action-sheet
v-model=
"showExpressPopup"
v-model=
"showExpressPopup"
title=
"请选择物流单号"
title=
"请选择物流单号"
...
@@ -35,7 +35,9 @@ import List from './components/List';
...
@@ -35,7 +35,9 @@ import List from './components/List';
import
{
isApp
}
from
'
@/service/validation.service
'
;
import
{
isApp
}
from
'
@/service/validation.service
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
sharePic
from
'
@/components/sharePic
'
;
import
qs
from
'
qs
'
;
import
qs
from
'
qs
'
;
import
MpBridge
from
'
@/service/mp
'
;
const
commonParams
=
{
const
commonParams
=
{
loading
:
false
,
loading
:
false
,
finished
:
false
,
finished
:
false
,
...
@@ -46,11 +48,14 @@ const commonParams = {
...
@@ -46,11 +48,14 @@ const commonParams = {
export
default
{
export
default
{
name
:
'
OrderList
'
,
name
:
'
OrderList
'
,
components
:
{
components
:
{
List
List
,
sharePic
},
},
data
()
{
data
()
{
return
{
return
{
isApp
,
isApp
,
nativeBridge
:
null
,
sharePicData
:
{},
showCancelPopup
:
false
,
showCancelPopup
:
false
,
showExpressPopup
:
false
,
showExpressPopup
:
false
,
currentTab
:
0
,
currentTab
:
0
,
...
@@ -82,7 +87,15 @@ export default {
...
@@ -82,7 +87,15 @@ export default {
this
.
getList
();
this
.
getList
();
this
.
onShareEventChange
();
this
.
onShareEventChange
();
},
},
created
()
{
this
.
nativeBridge
=
new
MpBridge
();
},
methods
:
{
methods
:
{
outputPicUrl
(
posterUrl
)
{
this
.
nativeBridge
.
openNewUrl
({
newUrl
:
`/pages/goodshare/index?url=
${
encodeURIComponent
(
JSON
.
stringify
(
posterUrl
))}
`
});
},
async
getShareData
(
shareInfo
)
{
async
getShareData
(
shareInfo
)
{
const
linkPath
=
qs
.
stringify
({
const
linkPath
=
qs
.
stringify
({
h
:
0
,
h
:
0
,
...
@@ -103,17 +116,11 @@ export default {
...
@@ -103,17 +116,11 @@ export default {
},
},
onShareEventChange
()
{
onShareEventChange
()
{
const
vm
=
this
;
const
vm
=
this
;
console
.
log
(
'
update
'
);
EventBus
.
$on
(
'
shareClickItem
'
,
async
function
({
ev
,
nativeBridge
})
{
EventBus
.
$on
(
'
shareClickItem
'
,
async
function
({
ev
,
nativeBridge
})
{
const
[
res
]
=
await
groupBuyApi
.
getGroupShareInfo
(
'
1440884214932389888
'
);
const
shareDic
=
await
vm
.
getShareData
(
vm
.
sharePicData
);
const
shareDic
=
await
vm
.
getShareData
(
res
);
if
(
ev
===
'
pic
'
)
{
if
(
ev
===
'
pic
'
)
{
vm
.
$refs
.
sharePic
.
createAndUploadPic
();
// 分享海报跳转小程序海报分享页面
// 分享海报跳转小程序海报分享页面
// nativeBridge.openNewUrl({
// newUrl: `/pages/goodshare/index?url=${encodeURIComponent(
// JSON.stringify(shareDic.posterUrl)
// )}`
// });
}
}
if
(
ev
===
'
weixin
'
)
{
if
(
ev
===
'
weixin
'
)
{
// const res = await groupBuyApi.getGroupShareInfo(this.shareInfo.order);
// const res = await groupBuyApi.getGroupShareInfo(this.shareInfo.order);
...
@@ -139,8 +146,14 @@ export default {
...
@@ -139,8 +146,14 @@ export default {
handleLoad
()
{
handleLoad
()
{
this
.
getList
();
this
.
getList
();
},
},
openShareEvent
()
{
async
openShareEvent
()
{
this
.
$store
.
dispatch
(
'
goods_share_open
'
);
try
{
const
[
res
]
=
await
groupBuyApi
.
getGroupShareInfo
(
'
1440884214932389888
'
);
this
.
sharePicData
=
res
;
this
.
$store
.
dispatch
(
'
goods_share_open
'
);
}
catch
(
err
)
{
console
.
log
(
err
);
}
},
},
handleOptionClick
(
info
)
{
handleOptionClick
(
info
)
{
this
.
currentOrder
=
info
;
this
.
currentOrder
=
info
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment