parent
de71aa5263
commit
f23362a433
Binary file not shown.
@ -1,75 +1,80 @@
|
||||
<!--pages/gouwu/gouwu.wxml-->
|
||||
|
||||
<!-- 上部分 -->
|
||||
<view class='section section-good'>
|
||||
<checkbox-group bindchange="checkboxChange">
|
||||
<view class='good' wx:for='{{goodList}}' wx:for-item="good" wx:key="good.name">
|
||||
|
||||
<!--第一个盒子 -->
|
||||
<view class='good_title'>
|
||||
<view class='shangjia'></view>
|
||||
<view class='shanchu'>
|
||||
<view class='shanchu_trash' bindtap="deleteList"><image src='/pages/index/image/shanchu.png'></image></view>
|
||||
<!-- 删除 -->
|
||||
</view>
|
||||
</view>
|
||||
<!-- 第二个盒子 -->
|
||||
<view class='good_content'>
|
||||
<view class='good_checkbox'>
|
||||
<label class="checkbox">
|
||||
<checkbox value="{{good.isbn}}" checked="{{good.checked}}" hidden='hidden' />
|
||||
<icon type="circle" size="23" wx:if="{{!good.checked}}"></icon>
|
||||
<icon type="success" size="23" wx:if="{{good.checked}}"></icon>
|
||||
</label>
|
||||
</view>
|
||||
<view class='good_img'>
|
||||
<image class='cover' src='{{good.cover}}'></image>
|
||||
</view>
|
||||
<view class='content'>
|
||||
<view class='titles'>{{good.desc}}</view>
|
||||
</view>
|
||||
<view class='good_footer'>
|
||||
<view class='price'>¥{{good.price}}</view>
|
||||
<view class='stepper'>
|
||||
<view class='subtract {{good.count == 1 ? "disabled": ""}}' data-index='{{index}}' catchtap='subtracttap'>-</view>
|
||||
<input class='count' type='number' value='{{good.count}}'></input>
|
||||
<view class='add' data-index="{{index}}" catchtap='addtap'>+</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- 上部分 -->
|
||||
<view class='section section-good'>
|
||||
<checkbox-group bindchange="checkboxChange">
|
||||
<view class='good' wx:for='{{bookList}}' wx:for-item="book" wx:key="book.BookName">
|
||||
|
||||
<!--第一个盒子 -->
|
||||
<view class='good_title'>
|
||||
<view class='shangjia'></view>
|
||||
<view class='shanchu'>
|
||||
<view class='shanchu_trash' bindtap="deleteList">
|
||||
<image src='/pages/index/image/shanchu.png'></image>
|
||||
</view>
|
||||
</checkbox-group>
|
||||
<!-- 删除 -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底部 -->
|
||||
<view class='section-bottom'>
|
||||
<checkbox-group bindchange="selectalltap">
|
||||
<label class='checkbox-allcheck'>
|
||||
<checkbox value="{{!checkAll}}" checked="{{checkAll}}" hidden='hidden' />
|
||||
<icon type="circle" size="23" wx:if="{{!checkAll}}"></icon>
|
||||
<icon type="success" size="23" wx:if="{{checkAll}}"></icon>
|
||||
<text class='check-all-text'>全选</text>
|
||||
<!-- 第二个盒子 -->
|
||||
<view class='good_content'>
|
||||
<view class='good_checkbox'>
|
||||
<label class="checkbox">
|
||||
<checkbox value="{{book.BookID}}" checked="{{book.checked}}" hidden='hidden' />
|
||||
<icon type="circle" size="23" wx:if="{{!book.checked}}"></icon>
|
||||
<icon type="success" size="23" wx:if="{{book.checked}}"></icon>
|
||||
</label>
|
||||
</checkbox-group>
|
||||
<view class="total">
|
||||
<view class='totalCount'>已选择
|
||||
<text>{{totalCount}}</text>件商品
|
||||
</view>
|
||||
<view class='totalPrice'>总价:
|
||||
<text>¥{{totalPrice}}</text>
|
||||
</view>
|
||||
<view class='good_img'>
|
||||
<image class='cover' src='http://45.76.158.31:8080/web/BookImage/{{book.BookName}}.jpg' data-id='books.BookID' bindtap='todetail'></image>
|
||||
</view>
|
||||
<view class='content'>
|
||||
<view class='titles'>{{book.BookName}}</view>
|
||||
</view>
|
||||
<view class='good_footer'>
|
||||
<view class='price'>¥{{book.Price}}</view>
|
||||
<view class='stepper'>
|
||||
<view class='subtract {{book.Count == 1 ? "disabled": ""}}' data-index='{{index}}' catchtap='subtracttap'>-</view>
|
||||
<input class='count' type='number' value='{{book.Count}}'></input>
|
||||
<view class='add' data-index="{{index}}" catchtap='addtap'>+</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<navigator url='../checkout/index'>
|
||||
<view class='btn {{totalCount > 0 ? "btn-primary" : "btn-default"}}'>去结算</view>
|
||||
</navigator>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</checkbox-group>
|
||||
</view>
|
||||
|
||||
<!-- 底部 -->
|
||||
<view class='section-bottom'>
|
||||
<checkbox-group bindchange="selectalltap">
|
||||
<label class='checkbox-allcheck'>
|
||||
<checkbox value="{{!checkAll}}" checked="{{checkAll}}" hidden='hidden' />
|
||||
<icon type="circle" size="23" wx:if="{{!checkAll}}"></icon>
|
||||
<icon type="success" size="23" wx:if="{{checkAll}}"></icon>
|
||||
<text class='check-all-text'>全选</text>
|
||||
</label>
|
||||
</checkbox-group>
|
||||
<view class="total">
|
||||
<view class='totalCount'>已选择
|
||||
<text>{{totalCount}}</text>件商品
|
||||
</view>
|
||||
<view class='totalPrice'>总价:
|
||||
<text>¥{{totalPrice}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class='btn {{totalCount > 0 ? "btn-primary" : "btn-default"}}' bindtap="newAddress">去结算</view>
|
||||
<!--
|
||||
<navigator wx:if="{{totalCount>0}}" url='../order/order'>
|
||||
<view class='btn {{totalCount > 0 ? "btn-primary" : "btn-default"}}'>去结算</view>
|
||||
</navigator>-->
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<!--如果购物车内没有数据,就显示没有数据-->
|
||||
<view class="cartList" hidden="{{!iscart}}">
|
||||
<image src="/pages/index/image/gouwuche.jpg"/>
|
||||
<view>购物车什么都没有,赶快去购物吧</view>
|
||||
</view>
|
||||
<!--如果购物车内没有数据,就显示没有数据-->
|
||||
<view class="cartList" hidden="{{!iscart}}">
|
||||
<image src="/pages/index/image/gouwuche.jpg" />
|
||||
<view>购物车什么都没有,赶快去购物吧</view>
|
||||
</view>
|
@ -1,36 +1,43 @@
|
||||
<!--pages/shdz/shdz.wxml-->
|
||||
<view id="address">
|
||||
<view class="address_item flexRowBetween">
|
||||
<view class="address_left">
|
||||
<view class="text1">
|
||||
李雷
|
||||
</view>
|
||||
<view class="text1 text_other">
|
||||
科技路高新大都荟
|
||||
</view>
|
||||
</view>
|
||||
<view class="address_right">
|
||||
18888888888
|
||||
</view>
|
||||
</view>
|
||||
<view class="address_set flexRowBetween">
|
||||
<view class="default">
|
||||
<image src="/pages/index/image/select_active.jpg"></image>
|
||||
<text>默认地址</text>
|
||||
</view>
|
||||
<view class="edit">
|
||||
<image src="/pages/index/image/edit.jpg"></image>
|
||||
<text>编辑</text>
|
||||
</view>
|
||||
<view class="edit delete">
|
||||
<image src="/pages/index/image/del.jpg"></image>
|
||||
<text>删除</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="address_item flexRowBetween">
|
||||
<view class="address_left">
|
||||
<!--<view class="text1">
|
||||
李雷
|
||||
</view>-->
|
||||
<input type="text" placeholder="请输入收货人姓名" placeholder-class="placeholder" bindinput="inputTitle" />
|
||||
<view class="person-line"></view>
|
||||
<input type="text" placeholder="请输入收货人地址" placeholder-class="placeholder" bindinput="inputTitle" />
|
||||
<view class="person-line"></view>
|
||||
<input type="text" placeholder="请输入收货人电话" placeholder-class="placeholder" bindinput="inputTitle" />
|
||||
<!--<view class="text1 text_other">
|
||||
科技路高新大都荟
|
||||
</view>-->
|
||||
</view>
|
||||
<!--
|
||||
<view class="address_right">
|
||||
18888888888
|
||||
</view>-->
|
||||
</view>
|
||||
|
||||
<!--
|
||||
<view class="address_set flexRowBetween">
|
||||
<view class="default">
|
||||
<image src="/pages/index/image/select_active.jpg"></image>
|
||||
<text>默认地址</text>
|
||||
</view>
|
||||
<view class="edit">
|
||||
<image src="/pages/index/image/edit.jpg"></image>
|
||||
<text>编辑</text>
|
||||
</view>
|
||||
<view class="edit delete">
|
||||
<image src="/pages/index/image/del.jpg"></image>
|
||||
<text>删除</text>
|
||||
</view>
|
||||
</view>-->
|
||||
|
||||
<view class="submit_info" bindtap="newAddress">
|
||||
保存
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="submit_info" bindtap="toWode">
|
||||
保存
|
||||
</view>
|
||||
</view>
|
@ -1,52 +1,84 @@
|
||||
/* pages/shdz/shdz.wxss */
|
||||
#address{
|
||||
width:100%;
|
||||
height:100%;
|
||||
background:#f5f5f5}
|
||||
.address_item{
|
||||
border-bottom:solid 1px #ececec;
|
||||
padding:40rpx 25rpx;
|
||||
background:#fff;
|
||||
}
|
||||
.address_left .text1{
|
||||
color:#262626;
|
||||
font-size:34rpx;}
|
||||
.text_other{
|
||||
margin-top:30rpx;
|
||||
}
|
||||
.address_right{
|
||||
font-size:30rpx;
|
||||
color:#262626;
|
||||
}
|
||||
.address_set{
|
||||
padding:20px 25rpx;
|
||||
border-bottom:solid 1px #ececec;
|
||||
background:#fff;
|
||||
justify-content:center;
|
||||
}
|
||||
.address_set text{font-size:24rpx;}
|
||||
.address_set .default{
|
||||
color:#2c9fe1;
|
||||
width:71%;
|
||||
align-items:center;
|
||||
height:30rpx;
|
||||
display:flex;
|
||||
align-items:center;
|
||||
}
|
||||
.address_set .default image{
|
||||
margin-right:15px;
|
||||
width:29rpx;
|
||||
height:29rpx;}
|
||||
.address_set .edit image{
|
||||
width:26rpx;
|
||||
height:26rpx;
|
||||
margin-right:10rpx;
|
||||
}
|
||||
.edit{color:#7d7d7d;width:15%;display:flex;
|
||||
align-items:center;}
|
||||
.de_color{color:#7d7d7d}
|
||||
.submit_info{
|
||||
margin-top:0rpx;
|
||||
position:absolute;
|
||||
bottom:120rpx;
|
||||
|
||||
#address {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.address_item {
|
||||
border-bottom: solid 1px #ececec;
|
||||
padding: 40rpx 25rpx;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.address_left .text1 {
|
||||
color: #262626;
|
||||
font-size: 34rpx;
|
||||
}
|
||||
|
||||
.text_other {
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
.address_right {
|
||||
font-size: 30rpx;
|
||||
color: #262626;
|
||||
}
|
||||
|
||||
.address_set {
|
||||
padding: 20px 25rpx;
|
||||
border-bottom: solid 1px #ececec;
|
||||
background: #fff;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.address_set text {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.address_set .default {
|
||||
color: #2c9fe1;
|
||||
width: 71%;
|
||||
align-items: center;
|
||||
height: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.address_set .default image {
|
||||
margin-right: 15px;
|
||||
width: 29rpx;
|
||||
height: 29rpx;
|
||||
}
|
||||
|
||||
.address_set .edit image {
|
||||
width: 26rpx;
|
||||
height: 26rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
.edit {
|
||||
color: #7d7d7d;
|
||||
width: 15%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.de_color {
|
||||
color: #7d7d7d;
|
||||
}
|
||||
|
||||
.submit_info {
|
||||
margin-top: 0rpx;
|
||||
position: absolute;
|
||||
bottom: 120rpx;
|
||||
}
|
||||
|
||||
.person-line {
|
||||
width: 100%;
|
||||
height: 2rpx;
|
||||
background: rgb(211, 211, 211);
|
||||
margin-left: 0rpx;
|
||||
|
||||
}
|
@ -1,55 +1,36 @@
|
||||
<view class="containers">
|
||||
<!--<view class="userinfo">
|
||||
<button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
|
||||
<block wx:else>
|
||||
<image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" background-size="cover"></image>
|
||||
<text class="userinfo-nickname">{{userInfo.nickName}}</text>
|
||||
</block>
|
||||
</view>
|
||||
<view class="usermotto">
|
||||
<text class="user-motto">{{motto}}</text>
|
||||
</view>-->
|
||||
<view class="swiper-ai">
|
||||
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
|
||||
<block wx:for="{{imgUrls}}">
|
||||
<block wx:for="{{ppt}}" wx:for-item="ppts">
|
||||
<swiper-item>
|
||||
<image src="{{item}}" class="slide-image" width="355" height="240" />
|
||||
<image src="http://45.76.158.31:8080/web/BookImage/{{ppts.BookName}}.jpg" class="slide-image" width="355" height="240" />
|
||||
</swiper-item>
|
||||
</block>
|
||||
</swiper>
|
||||
</view>
|
||||
<!--<view>
|
||||
<label class="weui-search-bar__label" hidden="{{inputShowed}}" bindtap="showInput">
|
||||
<icon class="weui-icon-search" type="search" size="14"></icon>
|
||||
<view class="weui-search-bar__text">搜索</view>
|
||||
</label>
|
||||
</view>-->
|
||||
|
||||
<view class="weui-search-bar__form">
|
||||
<view class="weui-search-bar__box">
|
||||
<icon class="weui-icon-search_in-box" type="search" size="14"></icon>
|
||||
<form bindsubmit="formSubmit">
|
||||
<input type="text" placeholder="搜索" placeholder-class="placeholder" bindinput="getSearch_txt'" bindconfirm="searchSubmit"/>
|
||||
<!--
|
||||
<form bindsubmit="formSubmit" action="">
|
||||
<input type="text" bindconfirm="bindKeyFirm" class="weui-search-bar__input" placeholder="搜索" value="{{inputVal}}" focus="{{inputShowed}}" bindinput="inputTyping" />
|
||||
</form>
|
||||
</form>-->
|
||||
</view>
|
||||
</view>
|
||||
<view class="weui-panel weui-panel_access" style="margin-top:0;">
|
||||
<view class="weui-panel__hd">推荐模块</view>
|
||||
<view class="weui-panel__bd">
|
||||
<navigator wx:for="{{forumList}}" url="../logs/logs?id={{item.id}}" data-id="{{item.id}}" class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
|
||||
<navigator wx:for="{{book}}" wx:for-item="books" url="../detail/detail?id={{books.BookID}}" data-id="{{books.BookID}}" class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
|
||||
<view class="weui-media-box__hd weui-media-box__hd_in-appmsg" style="width:120px;height:80px;">
|
||||
<image class="weui-media-box__thumb" src='../index/image/banner/img{{index}}.jpeg' />
|
||||
<image class="weui-media-box__thumb" src="http://45.76.158.31:8080/web/BookImage/{{books.BookName}}.jpg" />
|
||||
</view>
|
||||
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
|
||||
<view class="weui-media-box__title">{{item.forum_name}}</view>
|
||||
<view class="weui-media-box__desc">{{item.forum_description}}</view>
|
||||
<view class="weui-media-box__title">{{books.BookName}}</view>
|
||||
<view class="weui-media-box__desc">{{books.Introduce}}</view>
|
||||
</view>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="weui-panel__ft">
|
||||
<view class="weui-cell weui-cell_access weui-cell_link">
|
||||
<view class="weui-cell__bd" bindtap="toList">查看更多</view>
|
||||
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
Loading…
Reference in new issue