Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
viitto
mallapp
Commits
d937e923
Commit
d937e923
authored
Jul 29, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
广告词和 主播名字带入下单
parent
b9e94bb3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
13 deletions
+45
-13
share.vue
pages/goods/components/share/share.vue
+37
-13
goods.vue
pages/goods/goods.vue
+7
-0
order-submit.vue
pages/order-submit/order-submit.vue
+1
-0
No files found.
pages/goods/components/share/share.vue
View file @
d937e923
...
...
@@ -13,19 +13,27 @@
>
<view
class=
"share-box"
:style=
"
{ paddingBottom: bianyi ? '50rpx' : '0' }">
<view
class=
"title"
>
分享商品
</view>
<view
class=
"goodname"
>
{{
goodName
}}
</view>
<view
class=
"img-box"
>
<view
class=
"box"
>
<image
v-for=
"(x, i) in images"
:key=
"i"
:src=
"x.pic_url"
class=
"img"
mode=
"aspectFill"
@
click=
"previewImage(i)"
/>
</view>
</view>
<scroll-view
scroll-y
class=
"share_b"
>
<view
class=
"goodname"
>
{{
goodName
}}
</view>
<view
class=
"img-box"
>
<view
class=
"box"
>
<image
v-for=
"(x, i) in images"
:key=
"i"
:src=
"x.pic_url"
class=
"img"
mode=
"aspectFill"
@
click=
"previewImage(i)"
/>
</view>
<view
style=
"margin-top: 10px;line-height: 1.5;font-size: 28rpx;color:#333"
>
<span>
广告词:
{{
advertising
}}
</span>
<u-button
size=
"mini"
shape=
"circle"
style=
'margin-left: 10px;'
@
click=
"paste(advertising)"
>
复制
</u-button>
</view>
</view>
</scroll-view>
<view
class=
"op-box"
>
<view
class=
"left"
>
<text
@
click=
"copyHandler"
>
复制文本
</text>
...
...
@@ -74,6 +82,10 @@ export default {
type
:
String
,
default
:
""
,
},
advertising
:
{
type
:
String
,
default
:
""
,
},
images
:
{
type
:
Array
,
default
:
[],
...
...
@@ -154,6 +166,11 @@ export default {
data
:
this
.
goodName
,
});
},
paste
(
value
){
uni
.
setClipboardData
({
data
:
value
,
});
},
previewImage
(
i
)
{
uni
.
previewImage
({
urls
:
this
.
imgs
,
...
...
@@ -252,4 +269,11 @@ export default {
.share-box
.op-box
.right
button
::after
{
border
:
none
;
}
.share-box
.share_b
{
padding
:
0
;
max-height
:
300px
;
overflow
:
hidden
;
overflow-y
:
auto
;
display
:
block
;
}
</
style
>
pages/goods/goods.vue
View file @
d937e923
...
...
@@ -275,6 +275,7 @@
v-if=
"showShare"
:good-name=
"g.name"
:images=
"g.pic_url"
:advertising=
"g.advertising"
@
close=
"closeShare"
></share>
<auth
...
...
@@ -349,6 +350,12 @@ export default {
if
(
option
&&
option
.
user_id
)
{
uni
.
setStorageSync
(
"pid"
,
{
pid
:
option
.
user_id
});
}
if
(
uni
.
getStorageSync
(
"AnchorName"
)){
//如果有主播名称了先清除
uni
.
removeStorageSync
(
'AnchorName'
);
}
if
(
option
&&
option
.
AnchorName
){
//当传过来有主播名称的时候 存入缓存
uni
.
setStorageSync
(
"AnchorName"
,
{
AnchorName
:
option
.
AnchorName
});
}
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
// if (!this.u) {
// this.u = {
...
...
pages/order-submit/order-submit.vue
View file @
d937e923
...
...
@@ -326,6 +326,7 @@ export default {
form
.
IsFormShoppingCart
=
that
.
IsFormShoppingCart
;
form
.
Use_Integral
=
that
.
formdata
.
Use_Integral
;
form
.
ShoppingCartIdList
=
that
.
ShoppingCartIdList
;
form
.
AnchorName
=
uni
.
getStorageSync
(
"AnchorName"
)?
uni
.
getStorageSync
(
"AnchorName"
).
AnchorName
:
''
;
//直播名称
that
.
request2
(
{
url
:
'/api/AppletOrder/SetAppletGoodsOrderInfo'
,
...
...
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