Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
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 2c5cac47
authored
Oct 10, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
95bee8ec
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
11 deletions
components/MoneySavingTips/MoneySavingTips.wxml
packageMall/pages/detail/detail.js
pages/tab/index/components/banner/banner.wxml
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/strategy/index.wxml
components/MoneySavingTips/MoneySavingTips.wxml
View file @
2c5cac4
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<view class="img-top-box"></view>
<view class="img-top-box"></view>
<view class="img-box">
<view class="img-box">
<view wx:for="{{list}}" wx:key="index" class="img-item-box" data-id="{{item.id}}" bind:tap="selectStrategy">
<view wx:for="{{list}}" wx:key="index" class="img-item-box" data-id="{{item.id}}" bind:tap="selectStrategy">
<image webp src="{{item.strategyImg}}" class="saving-img"></image>
<image
mode="aspectFill"
webp src="{{item.strategyImg}}" class="saving-img"></image>
<view class="viewer">{{item.viewAmount}}人浏览</view>
<view class="viewer">{{item.viewAmount}}人浏览</view>
</view>
</view>
</view>
</view>
...
...
packageMall/pages/detail/detail.js
View file @
2c5cac4
...
@@ -312,7 +312,6 @@ Page({
...
@@ -312,7 +312,6 @@ Page({
if
(
isCarOwner
)
{
if
(
isCarOwner
)
{
goodsList
.
goodsId
=
goodsList
.
id
goodsList
.
goodsId
=
goodsList
.
id
}
}
console
.
log
(
this
.
data
.
goodsInfo
,
'goodsInfo'
)
wx
.
p
.
router
.
go
(
'/packageDiscovery/pages/pay/index'
,
{
wx
.
p
.
router
.
go
(
'/packageDiscovery/pages/pay/index'
,
{
goodsList
:
upgrade
?
goodsList
:
[
goodsList
],
goodsList
:
upgrade
?
goodsList
:
[
goodsList
],
deliveryType
:
upgrade
?
1
:
0
,
deliveryType
:
upgrade
?
1
:
0
,
...
@@ -402,7 +401,6 @@ Page({
...
@@ -402,7 +401,6 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
console
.
log
(
options
,
'options'
);
if
(
options
&&
options
.
openId
)
{
if
(
options
&&
options
.
openId
)
{
this
.
shareOpenId
=
options
.
openId
this
.
shareOpenId
=
options
.
openId
}
}
...
@@ -444,7 +442,6 @@ Page({
...
@@ -444,7 +442,6 @@ Page({
})
})
this
.
getGoodsDetail
(
id
)
this
.
getGoodsDetail
(
id
)
this
.
getCommentList
()
this
.
getCommentList
()
console
.
log
(
id
);
this
.
heartbeatFn
({
this
.
heartbeatFn
({
id
,
id
,
item_type
:
isActivity
?
3
:
1
,
item_type
:
isActivity
?
3
:
1
,
...
@@ -602,7 +599,6 @@ Page({
...
@@ -602,7 +599,6 @@ Page({
if
(
data
.
goodsDetailImageList
&&
data
.
goodsDetailImageList
.
length
>
1
)
{
if
(
data
.
goodsDetailImageList
&&
data
.
goodsDetailImageList
.
length
>
1
)
{
let
video
=
{}
let
video
=
{}
data
.
goodsDetailImageList
.
map
((
e
,
index
)
=>
{
data
.
goodsDetailImageList
.
map
((
e
,
index
)
=>
{
console
.
log
(
e
)
if
(
e
.
resType
==
3
)
{
if
(
e
.
resType
==
3
)
{
video
=
e
video
=
e
data
.
goodsDetailImageList
.
splice
(
index
,
1
)
data
.
goodsDetailImageList
.
splice
(
index
,
1
)
...
@@ -651,8 +647,9 @@ Page({
...
@@ -651,8 +647,9 @@ Page({
// 定金+尾款
// 定金+尾款
data
.
depositPrice
=
this
.
formatMyPrice
(
data
.
depositPrice
)
data
.
depositPrice
=
this
.
formatMyPrice
(
data
.
depositPrice
)
data
.
activityPrice
=
this
.
formatMyPrice
(
data
.
activityPrice
)
data
.
activityPrice
=
this
.
formatMyPrice
(
data
.
activityPrice
)
if
((
this
.
isUpgrade
||
this
.
isCarOwner
)
&&
!
data
.
goodsDetailImageList
.
length
)
{
if
((
this
.
isUpgrade
||
this
.
isCarOwner
)
&&
!
data
.
goodsDetailImageList
.
length
)
{
data
.
goodsDetailImageList
.
push
(
data
.
goodsImage
)
data
.
goodsDetailImageList
.
push
(
{
content
:
data
.
goodsImage
,
resType
:
1
}
)
}
}
this
.
setData
({
this
.
setData
({
goodsInfo
:
data
,
goodsInfo
:
data
,
...
...
pages/tab/index/components/banner/banner.wxml
View file @
2c5cac4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<block wx:for="{{bannerList}}" wx:key="index">
<block wx:for="{{bannerList}}" wx:key="index">
<swiper-item>
<swiper-item>
<block>
<block>
<image webp src="{{item.bannerImg}}" class="banner-img" bindtap="jumpGoods" data-item="{{item}}" data-bannerType="{{item.bannerType}}" data-id="{{item.goods.id}}" data-url="{{item.linkUrl}}" data-equity="{{item.equity}}"></image>
<image webp src="{{item.bannerImg}}"
mode="aspectFill"
class="banner-img" bindtap="jumpGoods" data-item="{{item}}" data-bannerType="{{item.bannerType}}" data-id="{{item.goods.id}}" data-url="{{item.linkUrl}}" data-equity="{{item.equity}}"></image>
</block>
</block>
</swiper-item>
</swiper-item>
</block>
</block>
...
...
pages/tab/index/index.js
View file @
2c5cac4
...
@@ -71,9 +71,8 @@ Page({
...
@@ -71,9 +71,8 @@ Page({
const
{
url
}
=
e
.
currentTarget
.
dataset
;
const
{
url
}
=
e
.
currentTarget
.
dataset
;
const
{
currentStore
}
=
this
.
data
const
{
currentStore
}
=
this
.
data
const
Name
=
`
${
currentStore
.
merchantId
}
_
${
url
}
`
const
Name
=
`
${
currentStore
.
merchantId
}
_
${
url
}
`
console
.
log
(
Name
);
this
.
setData
({
this
.
setData
({
urlName
:
url
,
urlName
:
Name
,
showModal
:
true
,
showModal
:
true
,
});
});
},
},
...
...
pages/tab/index/index.wxml
View file @
2c5cac4
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<view wx:if="{{showModal}}" class="modal_widget">
<view wx:if="{{showModal}}" class="modal_widget">
<view bind:tap="closeModal" class="popup-bg"></view>
<view bind:tap="closeModal" class="popup-bg"></view>
<view class="box_cover">
<view class="box_cover">
<image class="max_cover" src="{{IMG_URL}}home/{{urlName}}.png" show-menu-by-longpress="{{true}}" />
<image class="max_cover" src="{{IMG_URL}}home/
fuliguan/
{{urlName}}.png" show-menu-by-longpress="{{true}}" />
<image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
<image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
</view>
</view>
</view>
</view>
...
...
pages/tab/strategy/index.wxml
View file @
2c5cac4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view class="strategy-box" style="{{user_box_style}}">
<view class="strategy-box" style="{{user_box_style}}">
<view class="strategy-item" wx:for="{{strategyList}}" wx:key="index" data-item="{{item}}" bind:tap="selectStrategy">
<view class="strategy-item" wx:for="{{strategyList}}" wx:key="index" data-item="{{item}}" bind:tap="selectStrategy">
<image webp src="{{item.strategyImg}}" class="strategy-img"></image>
<image
mode="aspectFill"
webp src="{{item.strategyImg}}" class="strategy-img"></image>
<view class="strategy-detail">
<view class="strategy-detail">
<text class="strategy-detail-title">{{item.strategyName}}</text>
<text class="strategy-detail-title">{{item.strategyName}}</text>
<view class="strategy-detail-bottom">
<view class="strategy-detail-bottom">
...
...
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