Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
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
高淑倩
7-Eleven
Commits
1cf72d19
Commit
1cf72d19
authored
Sep 16, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车和立即购买条件判断
parent
6c8d519e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
productDetail.wxml
src/pages/productDetail/productDetail.wxml
+2
-4
productDetail.wxss
src/pages/productDetail/productDetail.wxss
+7
-2
No files found.
src/pages/productDetail/productDetail.wxml
View file @
1cf72d19
...
@@ -137,18 +137,16 @@
...
@@ -137,18 +137,16 @@
bindsubmit="addCart"
bindsubmit="addCart"
report-submit
report-submit
name='nav'
name='nav'
wx:if="{{!fromZc && productInfo.productStatus == 2}}"
>
>
<button disabled="
" class="cart-button get-formId--btn
" formType="submit">加入购物车</button>
<button disabled="
{{fromZc || productInfo.productStatus != 2}}" class="cart-button get-formId--btn {{(fromZc || productInfo.productStatus != 2) ? 'btn-default' : 'btn-cart'}}
" formType="submit">加入购物车</button>
</form>
</form>
<form
<form
wx:if="{{productInfo.productStatus == 2}}"
class='get-formId get-formId--form'
class='get-formId get-formId--form'
bindsubmit="goBuy"
bindsubmit="goBuy"
report-submit
report-submit
name='nav'
name='nav'
>
>
<button
class="buy-button get-formId--btn
" formType="submit">立即购买</button>
<button
disabled="{{productInfo.productStatus != 2}}" class="buy-button get-formId--btn {{productInfo.productStatus != 2 ? 'btn-default' : 'btn-buy'}}
" formType="submit">立即购买</button>
</form>
</form>
</block>
</block>
...
...
src/pages/productDetail/productDetail.wxss
View file @
1cf72d19
...
@@ -223,13 +223,18 @@ page{
...
@@ -223,13 +223,18 @@ page{
background: #cccccc; }
background: #cccccc; }
.product-footer .footer-buttons button.cart-button {
.product-footer .footer-buttons button.cart-button {
background: rgba(203,60,60,0.71);
width: 240rpx;
width: 240rpx;
}
}
.product-footer .footer-buttons button.btn-cart {
background: rgba(203,60,60,0.71);
}
.product-footer .footer-buttons button.buy-button {
.product-footer .footer-buttons button.buy-button {
background: #cb3c3c;
width: 214rpx;
width: 214rpx;
}
.product-footer .footer-buttons button.btn-buy {
background: #cb3c3c;
}
}
.product-footer .footer-buttons button::after {
.product-footer .footer-buttons button::after {
...
...
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