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
561a7ca3
Commit
561a7ca3
authored
Jul 02, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品分销和查看商品的规格不能滚动问题
parent
464865a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
7 deletions
+60
-7
goodsku.vue
components/goods/goodsku.vue
+2
-2
address.vue
pages/address/address.vue
+46
-0
goods.vue
pages/goods/goods.vue
+12
-5
No files found.
components/goods/goodsku.vue
View file @
561a7ca3
...
...
@@ -24,7 +24,7 @@
<view
class=
"sku_close"
><u-icon
name=
"cross"
color=
"#9F9F9F"
@
click=
"cloGood()"
size=
"40"
/></view>
</view>
</view>
<
view
class=
"sku-box"
>
<
scroll-view
scroll-y
class=
"sku-box"
>
<view
class=
"sku-item"
v-for=
"(x, i) in g.attr_groups"
:key=
"i"
>
<view
class=
"sku-title"
>
{{
x
.
attr_group_name
}}
</view>
<view>
...
...
@@ -44,7 +44,7 @@
</view>
</view>
</view>
</view>
</
scroll-
view>
<view
class=
"count-box"
>
<text
class=
"label"
>
购买数量
</text>
<u-number-box
:disabled=
"!skuObj"
v-model=
"gc"
:min=
"1"
:max=
"goodamount"
@
change=
"valChange"
></u-number-box>
...
...
pages/address/address.vue
View file @
561a7ca3
...
...
@@ -218,6 +218,52 @@ export default {
this
.
$refs
.
uToast
.
show
({
title
:
"正在开发,敬请期待!"
});
// wx.getSetting({
// success(res) {
// console.log("vres.authSetting['scope.address']:",res.authSetting['scope.address'])
// if (res.authSetting['scope.address']) {
// console.log("111")
// wx.chooseAddress({
// success(res) {
// console.log(res.userName)
// console.log(res.postalCode)
// console.log(res.provinceName)
// console.log(res.cityName)
// console.log(res.countyName)
// console.log(res.detailInfo)
// console.log(res.nationalCode)
// console.log(res.telNumber)
// }
// })
// // 用户已经同意小程序使用录音功能,后续调用 wx.startRecord 接口不会弹窗询问
// } else {
// if (res.authSetting['scope.address'] == false) {
// console.log("222")
// wx.openSetting({
// success(res) {
// console.log(res.authSetting)
// }
// })
// } else {
// console.log("eee")
// wx.chooseAddress({
// success(res) {
// console.log(res.userName)
// console.log(res.postalCode)
// console.log(res.provinceName)
// console.log(res.cityName)
// console.log(res.countyName)
// console.log(res.detailInfo)
// console.log(res.nationalCode)
// console.log(res.telNumber)
// }
// })
// }
// }
// }
// })
},
ManualAdd
()
{
//手动添加
...
...
pages/goods/goods.vue
View file @
561a7ca3
...
...
@@ -58,7 +58,7 @@
>
</view>
</view>
<view
class=
"right u-skeleton-rect"
@
click=
"openShare"
>
<view
class=
"right u-skeleton-rect"
@
click=
"openShare"
v-if=
"isAllowShare==1"
>
<image
src=
"@/static/images/icon/icon-share.png"
class=
"share-icon"
...
...
@@ -293,6 +293,7 @@ export default {
CommentGrade
:
0
,
},
showAuth
:
false
,
isAllowShare
:
1
,
u
:
{},
};
},
...
...
@@ -421,6 +422,12 @@ export default {
console
.
log
(
res
,
"详情"
);
if
(
res
.
resultCode
==
1
)
{
this
.
g
=
res
.
data
.
goods
;
this
.
isAllowShare
=
res
.
data
.
goods
.
isAllowShare
;
//1为可以分享 2为不能分享
if
(
this
.
isAllowShare
==
2
){
//隐藏分享的按钮
wx
.
hideShareMenu
({
menus
:
[
'shareAppMessage'
,
'shareTimeline'
]
})
}
this
.
g
.
pic_url
.
forEach
((
x
)
=>
{
this
.
imgs
.
push
(
x
.
pic_url
);
});
...
...
@@ -439,10 +446,10 @@ export default {
}
var
richtext
=
this
.
g
.
detail
;
richtext
=
richtext
.
replace
(
/<img/g
,
'< img style="margin-top:-4px;width:100%"'
);
//
richtext = richtext.replace(
//
/
<
img
/
g
,
//
'
<
img
style
=
"margin-top:-4px;width:100%"
'
//
);
this.detailContent = richtext;
this.loading = false;
this.initComments();
...
...
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