切换导航条
此项目
正在载入...
登录
倪静楠
/
huarunwj
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
倪静楠
4 years ago
提交
0deb83674dbe459f857d6ecb0ed8348139508e53
1 个父辈
4a8e7381
地址选择
显示空白字符变更
内嵌
并排对比
正在显示
19 个修改的文件
包含
787 行增加
和
50 行删除
.history/pages/product-detail/product-detail_20201130173122.wxml
.history/pages/product-detail/product-detail_20201130173538.wxml
.history/pages/product-detail/product-detail_20201130173542.wxml
images/classify.png
pages/add-address/add-address.js
pages/apply-after-sale/apply-after-sale.wxml
pages/classify/classify.js
pages/edit-address/edit-address.js
pages/edit-address/edit-address.wxml
pages/evaluate/evaluate.js
pages/home/home.wxml
pages/home/home.wxss
pages/product-detail/product-detail.js
pages/product-detail/product-detail.wxml
pages/product-detail/product-detail.wxss
pages/select-address/select-address.js
pages/select-address/select-address.wxml
pages/shopping-cart/shopping-cart.js
pages/shopping-cart/shopping-cart.wxml
.history/pages/product-detail/product-detail_20201130173122.wxml
0 → 100644
查看文件 @
0deb836
<!--pages/product-detail/product-detail.wxml-->
<!-- 商品详情 -->
<view class="container">
<view class="productIntro">
<view class="pic">
<view style="height:750rpx">
<swiper class="swiper" indicator-dots="true" autoplay="true" interval="5000" duration="1000">
<block wx:for="{{swiperArray}}" wx:for-index="idx">
<swiper-item>
<image src="{{item}}" class="slideImage"></image>
</swiper-item>
</block>
</swiper>
</view>
<view class="countDown" wx:if="{{goodsData.youHui}}">
<text class="countDownTxt">距结束仅剩</text>
<!-- 倒计时 -->
<view class="countTime">
<van-count-down use-slot time="{{ time }}" bind:change="onChange1">
<text class="item">{{ timeData.hours }}</text>:
<text style="color:#FF593C">:</text>
<text class="item">{{ timeData.minutes }}</text>:
<text style="color:#FF593C">:</text>
<text class="item">{{ timeData.seconds }}</text>
</van-count-down>
</view>
</view>
</view>
<view class="productName">
{{goodsData.goodsName}}
</view>
<view class="productPrice">
<view class="price" wx:if="{{goodsData.type==2}}">¥{{goodsData.goodsPrice}}</view>
<view class="jifen" wx:if="{{goodsData.type==1}}">积分{{goodsData.goodsPrice}}</view>
<view class="share" data-id="{{goodsId}}">
<view class="shareIcon">
<image src="/images/01-03/icon_share@2x.png"></image>
</view>
<view class="shareTitle">分享</view>
<button open-type="share" data-id="{{goodsId}}"></button>
</view>
</view>
</view>
<!-- 请选择 -->
<view class="selectMain" bindtap="selectSku">
<view class="selectTitle">选择</view>
<view class="selectNum">
<view>{{}}</view>
<view class="selectPic">
<image src="/images/01-03/icon_more@2x.png"></image>
</view>
</view>
</view>
<!-- 评价 -->
<view class='{{flags?"evaluateContent":"evaluateContents"}}'>
<view class="evaluateTop">
<view class="evaluateTitle">宝贝评价({{pingjiaNum}})</view>
<view class="lookMain" data-type="{{flag}}">
<view wx:if="{{flag==1}}" bindtap="openAll">查看全部</view>
<view wx:if="{{flag==0}}" bindtap="openAll">收起全部</view>
<view>
<image src="/images/01-03/icon_more@2x.png"></image>
</view>
</view>
</view>
<view class="noData" wx:if="{{infoList.length==0}}">暂时没有相关商品的更多评价~</view>
<view class="evaluateBox" wx:for="{{infoList}}" wx:if="{{infolist!==0}}">
<view class="evaluateInfo">
<view class="userImg" style="display:inline-block">
<image src="{{item.wxHeadImg}}"> </image>
</view>
<view class="userName" style="display:inline-block">{{item.wxName}}</view>
</view>
<view class="evaluateDetails">{{item.content}}</view>
<view class="evaluatePic">
<view class="picBox" wx:for="{{item.images}}">
<image src="item"></image>
</view>
</view>
</view>
</view>
<!-- 商品明细-->
<view class="prodectDesc">
<rich-text nodes="{{richText}}"></rich-text>
<!-- <view wx:for="{{deacArray}}" class="descBox">
<image src="{{item.img}}"></image>
</view> -->
</view>
</view>
<!--底部 -->
<!-- <view class="bottomMain">
<van-goods-action>
<van-goods-action-icon icon="chat-o" text="客服" color="#07c160" />
<van-goods-action-icon icon="cart-o" text="购物车" />
<van-goods-action-icon icon="star" text="已收藏" color="#ff5000" />
<van-goods-action-button type="warning" text="加入购物车" />
<van-goods-action-button type="danger" text="立即购买" />
</van-goods-action>
</view> -->
<view class="bottom">
<view class="bottom_left">
<view class="bottom_left_item" catchtap="linkKefu">
<image src="/images/01-03/kefu.png"></image>
<view>客服</view>
</view>
<view class="bottom_left_item" catchtap="goCart">
<view class="count_cart">{{count}}</view>
<image src="/images/01-03/cart.png"></image>
<view>购物车</view>
</view>
<view class="bottom_left_item" catchtap="collection">
<view class="collectIcon">
<image src='{{"goodsData.keep==false"?"/images/01-03/shoucang.png":"/images/01-03/shoucang.png"}}'></image>
<view class="collecttext">{{goodsData.keep==false?"收藏":"已收藏"}}</view>
</view>
<!-- <view wx:if="{{goodsData.keep==true}}">
<image src="/images/01-03/shoucang.png"></image>
<view>已收藏</view>
</view> -->
</view>
</view>
<view class="bottom_right" wx:if="{{goodsData.type==2}}">
<view class="bottom_right_left" catchtap="addCart">加入购物车</view>
<view class="bottom_right_right" catchtap="immediatelyPay">立即购买</view>
<view class="Mask"></view>
</view>
<view class="bottom_right_two" wx:if="{{goodsData.type==1}}">
<view class="bottom_right_right_two" catchtap="immediatelyPay">立即兑换</view>
</view>
</view>
<!-- 选择规格弹框 -->
<view class="mask" catchtap="closeMaskSku" wx:if='{{showMaskSku}}'>
<view class="diceng">
<view class="skuBox">
<view wx:for="{{goodsData.list}}" class="{{idx==index?'skuItem1':'skuItem'}}" bindtap="check"
data-index="{{index}}" data-id="{{item.goodsSkuId}}">{{item.goodsSkuName}}</view>
</view>
</view>
</view>
<!-- 加入购物车弹框 -->
<view class="mask" catchtap="closeMask" wx:if='{{showMask}}'>
<view class="diceng" catchtap="openMask">
<view class="info">
<image src="{{goodsData.goodsBanners[idx]}}"></image>
<view class="info_right">
<view class="info_price">¥{{goodsData.list[idx].goodsPrice}}</view>
<view class="info_stock">库存:{{goodsData.list[idx].goodsStock}}件</view>
<view class="info_stock" wx:if='{{info.detai.spec_type=="20"}}'>请选择规格</view>
</view>
</view>
<view class="attr" wx:if='{{info.detail.spec_type=="20"}}' wx:for='{{info.specData.spec_attr}}' wx:key='index'>
<view>{{item.group_name}}</view>
<view class="attr_main">
<view class="attr_item {{cell.flag?'activity':''}}" wx:for='{{item.spec_items}}' wx:for-item='cell'
wx:for-index='cellindex' wx:key='{{cellindex}}' data-index='{{index}}' data-cellindex='{{cellindex}}'
catchtap="changeAttrNum">{{cell.spec_value}}</view>
</view>
</view>
<view class="pay_count">
<view>购买数量</view>
<view class="count_box">
<view class="count_jian" catchtap="decNum">-</view>
<view class="real_count">{{count}}</view>
<view class="count_jian" catchtap="addNum">+</view>
</view>
</view>
<view class="confrimBtn" catchtap="confrimCart">确定</view>
<view class="btn" wx:if='{{type==1}}' catchtap="jiagou">加入购物车</view>
<view class="btn" wx:if='{{type==2}}' catchtap="lijigoumai">立即购买</view>
</view>
</view>
<!-- 立即购买弹框 -->
<view class="mask" catchtap="closeMaskTwo" wx:if='{{showMaskTwo}}'>
<view class="diceng" catchtap="openMask">
<view class="info">
<image src="{{goodsData.goodsBanners[0]}}"></image>
<view class="info_right">
<view class="info_price">¥{{goodsData.list[idx].goodsPrice}}</view>
<view class="info_stock">库存:{{goodsData.list[idx].goodsStock}}件</view>
<view class="info_stock" wx:if='{{info.detai.spec_type=="20"}}'>请选择规格</view>
</view>
</view>
<view class="attr" wx:if='{{info.detail.spec_type=="20"}}' wx:for='{{info.specData.spec_attr}}' wx:key='index'>
<view>{{item.group_name}}</view>
<view class="attr_main">
<view class="attr_item {{cell.flag?'activity':''}}" wx:for='{{item.spec_items}}' wx:for-item='cell'
wx:for-index='cellindex' wx:key='{{cellindex}}' data-index='{{index}}' data-cellindex='{{cellindex}}'
catchtap="changeAttrNum">{{cell.spec_value}}</view>
</view>
</view>
<view class="pay_count">
<view>购买数量</view>
<view class="count_box">
<view class="count_jian" catchtap="dec">-</view>
<view class="real_count">{{payCount}}</view>
<view class="count_jian" catchtap="add">+</view>
</view>
</view>
<view class="confrimBtn" catchtap="confrim">确定</view>
<view class="btn" wx:if='{{type==1}}' catchtap="jiagou">加入购物车</view>
<view class="btn" wx:if='{{type==2}}' catchtap="lijigoumai">立即购买</view>
</view>
</view>
\ No newline at end of file
...
...
.history/pages/product-detail/product-detail_20201130173538.wxml
0 → 100644
查看文件 @
0deb836
<!--pages/product-detail/product-detail.wxml-->
<!-- 商品详情 -->
<view class="container">
<view class="productIntro">
<view class="pic">
<view style="height:750rpx">
<swiper class="swiper" indicator-dots="true" autoplay="true" interval="5000" duration="1000">
<block wx:for="{{swiperArray}}" wx:for-index="idx">
<swiper-item>
<image src="{{item}}" class="slideImage"></image>
</swiper-item>
</block>
</swiper>
</view>
<view class="countDown" wx:if="{{goodsData.youHui}}">
<text class="countDownTxt">距结束仅剩</text>
<!-- 倒计时 -->
<view class="countTime">
<van-count-down use-slot time="{{ time }}" bind:change="onChange1">
<text class="item">{{ timeData.hours }}</text>:
<text style="color:#FF593C">:</text>
<text class="item">{{ timeData.minutes }}</text>:
<text style="color:#FF593C">:</text>
<text class="item">{{ timeData.seconds }}</text>
</van-count-down>
</view>
</view>
</view>
<view class="productName">
{{goodsData.goodsName}}
</view>
<view class="productPrice">
<view class="price" wx:if="{{goodsData.type==2}}">¥{{goodsData.goodsPrice}}</view>
<view class="jifen" wx:if="{{goodsData.type==1}}">积分{{goodsData.goodsPrice}}</view>
<view class="share" data-id="{{goodsId}}">
<view class="shareIcon">
<image src="/images/01-03/icon_share@2x.png"></image>
</view>
<view class="shareTitle">分享</view>
<button open-type="share" data-id="{{goodsId}}"></button>
</view>
</view>
</view>
<!-- 请选择 -->
<view class="selectMain" bindtap="selectSku">
<view class="selectTitle">选择</view>
<view class="selectNum">
<view>{{}}</view>
<view class="selectPic">
<image src="/images/01-03/icon_more@2x.png"></image>
</view>
</view>
</view>
<!-- 评价 -->
<view class='{{flags?"evaluateContent":"evaluateContents"}}'>
<view class="evaluateTop">
<view class="evaluateTitle">宝贝评价({{pingjiaNum}})</view>
<view class="lookMain" data-type="{{flag}}">
<view wx:if="{{flag==1}}" bindtap="openAll">查看全部</view>
<view wx:if="{{flag==0}}" bindtap="openAll">收起全部</view>
<view>
<image src="/images/01-03/icon_more@2x.png"></image>
</view>
</view>
</view>
<view class="noData" wx:if="{{infoList.length==0}}">暂时没有相关商品的更多评价~</view>
<view class="evaluateBox" wx:for="{{infoList}}" wx:if="{{infolist!==0}}">
<view class="evaluateInfo">
<view class="userImg" style="display:inline-block">
<image src="{{item.wxHeadImg}}"> </image>images[0]
</view>
<view class="userName" style="display:inline-block">{{item.wxName}}</view>
</view>
<view class="evaluateDetails">{{item.content}}</view>
<view class="evaluatePic">
<view class="picBox" wx:for="{{item.images}}">
<image src="item"></image>
</view>
</view>
</view>
</view>
<!-- 商品明细-->
<view class="prodectDesc">
<rich-text nodes="{{richText}}"></rich-text>
<!-- <view wx:for="{{deacArray}}" class="descBox">
<image src="{{item.img}}"></image>
</view> -->
</view>
</view>
<!--底部 -->
<!-- <view class="bottomMain">
<van-goods-action>
<van-goods-action-icon icon="chat-o" text="客服" color="#07c160" />
<van-goods-action-icon icon="cart-o" text="购物车" />
<van-goods-action-icon icon="star" text="已收藏" color="#ff5000" />
<van-goods-action-button type="warning" text="加入购物车" />
<van-goods-action-button type="danger" text="立即购买" />
</van-goods-action>
</view> -->
<view class="bottom">
<view class="bottom_left">
<view class="bottom_left_item" catchtap="linkKefu">
<image src="/images/01-03/kefu.png"></image>
<view>客服</view>
</view>
<view class="bottom_left_item" catchtap="goCart">
<view class="count_cart">{{count}}</view>
<image src="/images/01-03/cart.png"></image>
<view>购物车</view>
</view>
<view class="bottom_left_item" catchtap="collection">
<view class="collectIcon">
<image src='{{"goodsData.keep==false"?"/images/01-03/shoucang.png":"/images/01-03/shoucang.png"}}'></image>
<view class="collecttext">{{goodsData.keep==false?"收藏":"已收藏"}}</view>
</view>
<!-- <view wx:if="{{goodsData.keep==true}}">
<image src="/images/01-03/shoucang.png"></image>
<view>已收藏</view>
</view> -->
</view>
</view>
<view class="bottom_right" wx:if="{{goodsData.type==2}}">
<view class="bottom_right_left" catchtap="addCart">加入购物车</view>
<view class="bottom_right_right" catchtap="immediatelyPay">立即购买</view>
<view class="Mask"></view>
</view>
<view class="bottom_right_two" wx:if="{{goodsData.type==1}}">
<view class="bottom_right_right_two" catchtap="immediatelyPay">立即兑换</view>
</view>
</view>
<!-- 选择规格弹框 -->
<view class="mask" catchtap="closeMaskSku" wx:if='{{showMaskSku}}'>
<view class="diceng">
<view class="skuBox">
<view wx:for="{{goodsData.list}}" class="{{idx==index?'skuItem1':'skuItem'}}" bindtap="check"
data-index="{{index}}" data-id="{{item.goodsSkuId}}">{{item.goodsSkuName}}</view>
</view>
</view>
</view>
<!-- 加入购物车弹框 -->
<view class="mask" catchtap="closeMask" wx:if='{{showMask}}'>
<view class="diceng" catchtap="openMask">
<view class="info">
<image src="{{goodsData.goodsBanners[idx]}}"></image>
<view class="info_right">
<view class="info_price">¥{{goodsData.list[idx].goodsPrice}}</view>
<view class="info_stock">库存:{{goodsData.list[idx].goodsStock}}件</view>
<view class="info_stock" wx:if='{{info.detai.spec_type=="20"}}'>请选择规格</view>
</view>
</view>
<view class="attr" wx:if='{{info.detail.spec_type=="20"}}' wx:for='{{info.specData.spec_attr}}' wx:key='index'>
<view>{{item.group_name}}</view>
<view class="attr_main">
<view class="attr_item {{cell.flag?'activity':''}}" wx:for='{{item.spec_items}}' wx:for-item='cell'
wx:for-index='cellindex' wx:key='{{cellindex}}' data-index='{{index}}' data-cellindex='{{cellindex}}'
catchtap="changeAttrNum">{{cell.spec_value}}</view>
</view>
</view>
<view class="pay_count">
<view>购买数量</view>
<view class="count_box">
<view class="count_jian" catchtap="decNum">-</view>
<view class="real_count">{{count}}</view>
<view class="count_jian" catchtap="addNum">+</view>
</view>
</view>
<view class="confrimBtn" catchtap="confrimCart">确定</view>
<view class="btn" wx:if='{{type==1}}' catchtap="jiagou">加入购物车</view>
<view class="btn" wx:if='{{type==2}}' catchtap="lijigoumai">立即购买</view>
</view>
</view>
<!-- 立即购买弹框 -->
<view class="mask" catchtap="closeMaskTwo" wx:if='{{showMaskTwo}}'>
<view class="diceng" catchtap="openMask">
<view class="info">
<image src="{{goodsData.goodsBanners[0]}}"></image>
<view class="info_right">
<view class="info_price">¥{{goodsData.list[idx].goodsPrice}}</view>
<view class="info_stock">库存:{{goodsData.list[idx].goodsStock}}件</view>
<view class="info_stock" wx:if='{{info.detai.spec_type=="20"}}'>请选择规格</view>
</view>
</view>
<view class="attr" wx:if='{{info.detail.spec_type=="20"}}' wx:for='{{info.specData.spec_attr}}' wx:key='index'>
<view>{{item.group_name}}</view>
<view class="attr_main">
<view class="attr_item {{cell.flag?'activity':''}}" wx:for='{{item.spec_items}}' wx:for-item='cell'
wx:for-index='cellindex' wx:key='{{cellindex}}' data-index='{{index}}' data-cellindex='{{cellindex}}'
catchtap="changeAttrNum">{{cell.spec_value}}</view>
</view>
</view>
<view class="pay_count">
<view>购买数量</view>
<view class="count_box">
<view class="count_jian" catchtap="dec">-</view>
<view class="real_count">{{payCount}}</view>
<view class="count_jian" catchtap="add">+</view>
</view>
</view>
<view class="confrimBtn" catchtap="confrim">确定</view>
<view class="btn" wx:if='{{type==1}}' catchtap="jiagou">加入购物车</view>
<view class="btn" wx:if='{{type==2}}' catchtap="lijigoumai">立即购买</view>
</view>
</view>
\ No newline at end of file
...
...
.history/pages/product-detail/product-detail_20201130173542.wxml
0 → 100644
查看文件 @
0deb836
<!--pages/product-detail/product-detail.wxml-->
<!-- 商品详情 -->
<view class="container">
<view class="productIntro">
<view class="pic">
<view style="height:750rpx">
<swiper class="swiper" indicator-dots="true" autoplay="true" interval="5000" duration="1000">
<block wx:for="{{swiperArray}}" wx:for-index="idx">
<swiper-item>
<image src="{{item}}" class="slideImage"></image>
</swiper-item>
</block>
</swiper>
</view>
<view class="countDown" wx:if="{{goodsData.youHui}}">
<text class="countDownTxt">距结束仅剩</text>
<!-- 倒计时 -->
<view class="countTime">
<van-count-down use-slot time="{{ time }}" bind:change="onChange1">
<text class="item">{{ timeData.hours }}</text>:
<text style="color:#FF593C">:</text>
<text class="item">{{ timeData.minutes }}</text>:
<text style="color:#FF593C">:</text>
<text class="item">{{ timeData.seconds }}</text>
</van-count-down>
</view>
</view>
</view>
<view class="productName">
{{goodsData.goodsName}}
</view>
<view class="productPrice">
<view class="price" wx:if="{{goodsData.type==2}}">¥{{goodsData.goodsPrice}}</view>
<view class="jifen" wx:if="{{goodsData.type==1}}">积分{{goodsData.goodsPrice}}</view>
<view class="share" data-id="{{goodsId}}">
<view class="shareIcon">
<image src="/images/01-03/icon_share@2x.png"></image>
</view>
<view class="shareTitle">分享</view>
<button open-type="share" data-id="{{goodsId}}"></button>
</view>
</view>
</view>
<!-- 请选择 -->
<view class="selectMain" bindtap="selectSku">
<view class="selectTitle">选择</view>
<view class="selectNum">
<view>{{}}</view>
<view class="selectPic">
<image src="/images/01-03/icon_more@2x.png"></image>
</view>
</view>
</view>
<!-- 评价 -->
<view class='{{flags?"evaluateContent":"evaluateContents"}}'>
<view class="evaluateTop">
<view class="evaluateTitle">宝贝评价({{pingjiaNum}})</view>
<view class="lookMain" data-type="{{flag}}">
<view wx:if="{{flag==1}}" bindtap="openAll">查看全部</view>
<view wx:if="{{flag==0}}" bindtap="openAll">收起全部</view>
<view>
<image src="/images/01-03/icon_more@2x.png"></image>
</view>
</view>
</view>
<view class="noData" wx:if="{{infoList.length==0}}">暂时没有相关商品的更多评价~</view>
<view class="evaluateBox" wx:for="{{infoList}}" wx:if="{{infolist!==0}}">
<view class="evaluateInfo">
<view class="userImg" style="display:inline-block">
<image src="{{item.wxHeadImg}}"> </image>
</view>
<view class="userName" style="display:inline-block">{{item.wxName}}</view>
</view>
<view class="evaluateDetails">{{item.content}}</view>
<view class="evaluatePic">
<view class="picBox" wx:for="{{item.images}}">
<image src="item"></image>
</view>
</view>
</view>
</view>
<!-- 商品明细-->
<view class="prodectDesc">
<rich-text nodes="{{richText}}"></rich-text>
<!-- <view wx:for="{{deacArray}}" class="descBox">
<image src="{{item.img}}"></image>
</view> -->
</view>
</view>
<!--底部 -->
<!-- <view class="bottomMain">
<van-goods-action>
<van-goods-action-icon icon="chat-o" text="客服" color="#07c160" />
<van-goods-action-icon icon="cart-o" text="购物车" />
<van-goods-action-icon icon="star" text="已收藏" color="#ff5000" />
<van-goods-action-button type="warning" text="加入购物车" />
<van-goods-action-button type="danger" text="立即购买" />
</van-goods-action>
</view> -->
<view class="bottom">
<view class="bottom_left">
<view class="bottom_left_item" catchtap="linkKefu">
<image src="/images/01-03/kefu.png"></image>
<view>客服</view>
</view>
<view class="bottom_left_item" catchtap="goCart">
<view class="count_cart">{{count}}</view>
<image src="/images/01-03/cart.png"></image>
<view>购物车</view>
</view>
<view class="bottom_left_item" catchtap="collection">
<view class="collectIcon">
<image src='{{"goodsData.keep==false"?"/images/01-03/shoucang.png":"/images/01-03/shoucang.png"}}'></image>
<view class="collecttext">{{goodsData.keep==false?"收藏":"已收藏"}}</view>
</view>
<!-- <view wx:if="{{goodsData.keep==true}}">
<image src="/images/01-03/shoucang.png"></image>
<view>已收藏</view>
</view> -->
</view>
</view>
<view class="bottom_right" wx:if="{{goodsData.type==2}}">
<view class="bottom_right_left" catchtap="addCart">加入购物车</view>
<view class="bottom_right_right" catchtap="immediatelyPay">立即购买</view>
<view class="Mask"></view>
</view>
<view class="bottom_right_two" wx:if="{{goodsData.type==1}}">
<view class="bottom_right_right_two" catchtap="immediatelyPay">立即兑换</view>
</view>
</view>
<!-- 选择规格弹框 -->
<view class="mask" catchtap="closeMaskSku" wx:if='{{showMaskSku}}'>
<view class="diceng">
<view class="skuBox">
<view wx:for="{{goodsData.list}}" class="{{idx==index?'skuItem1':'skuItem'}}" bindtap="check"
data-index="{{index}}" data-id="{{item.goodsSkuId}}">{{item.goodsSkuName}}</view>
</view>
</view>
</view>
<!-- 加入购物车弹框 -->
<view class="mask" catchtap="closeMask" wx:if='{{showMask}}'>
<view class="diceng" catchtap="openMask">
<view class="info">
<image src="{{goodsData.goodsBanners[idx]}}"></image>
<view class="info_right">
<view class="info_price">¥{{goodsData.list[idx].goodsPrice}}</view>
<view class="info_stock">库存:{{goodsData.list[idx].goodsStock}}件</view>
<view class="info_stock" wx:if='{{info.detai.spec_type=="20"}}'>请选择规格</view>
</view>
</view>
<view class="attr" wx:if='{{info.detail.spec_type=="20"}}' wx:for='{{info.specData.spec_attr}}' wx:key='index'>
<view>{{item.group_name}}</view>
<view class="attr_main">
<view class="attr_item {{cell.flag?'activity':''}}" wx:for='{{item.spec_items}}' wx:for-item='cell'
wx:for-index='cellindex' wx:key='{{cellindex}}' data-index='{{index}}' data-cellindex='{{cellindex}}'
catchtap="changeAttrNum">{{cell.spec_value}}</view>
</view>
</view>
<view class="pay_count">
<view>购买数量</view>
<view class="count_box">
<view class="count_jian" catchtap="decNum">-</view>
<view class="real_count">{{count}}</view>
<view class="count_jian" catchtap="addNum">+</view>
</view>
</view>
<view class="confrimBtn" catchtap="confrimCart">确定</view>
<view class="btn" wx:if='{{type==1}}' catchtap="jiagou">加入购物车</view>
<view class="btn" wx:if='{{type==2}}' catchtap="lijigoumai">立即购买</view>
</view>
</view>
<!-- 立即购买弹框 -->
<view class="mask" catchtap="closeMaskTwo" wx:if='{{showMaskTwo}}'>
<view class="diceng" catchtap="openMask">
<view class="info">
<image src="{{goodsData.goodsBanners[0]}}"></image>
<view class="info_right">
<view class="info_price">¥{{goodsData.list[idx].goodsPrice}}</view>
<view class="info_stock">库存:{{goodsData.list[idx].goodsStock}}件</view>
<view class="info_stock" wx:if='{{info.detai.spec_type=="20"}}'>请选择规格</view>
</view>
</view>
<view class="attr" wx:if='{{info.detail.spec_type=="20"}}' wx:for='{{info.specData.spec_attr}}' wx:key='index'>
<view>{{item.group_name}}</view>
<view class="attr_main">
<view class="attr_item {{cell.flag?'activity':''}}" wx:for='{{item.spec_items}}' wx:for-item='cell'
wx:for-index='cellindex' wx:key='{{cellindex}}' data-index='{{index}}' data-cellindex='{{cellindex}}'
catchtap="changeAttrNum">{{cell.spec_value}}</view>
</view>
</view>
<view class="pay_count">
<view>购买数量</view>
<view class="count_box">
<view class="count_jian" catchtap="dec">-</view>
<view class="real_count">{{payCount}}</view>
<view class="count_jian" catchtap="add">+</view>
</view>
</view>
<view class="confrimBtn" catchtap="confrim">确定</view>
<view class="btn" wx:if='{{type==1}}' catchtap="jiagou">加入购物车</view>
<view class="btn" wx:if='{{type==2}}' catchtap="lijigoumai">立即购买</view>
</view>
</view>
\ No newline at end of file
...
...
images/classify.png
0 → 100644
查看文件 @
0deb836
21.4 KB
pages/add-address/add-address.js
查看文件 @
0deb836
...
...
@@ -85,6 +85,7 @@ Page({
wx
.
getLocation
({
type
:
'gcj02'
,
success
(
res
)
{
console
.
log
(
res
,
'rs'
)
const
location
=
JSON
.
stringify
({
latitude
:
res
.
latitude
,
longitude
:
res
.
longitude
...
...
@@ -140,8 +141,6 @@ Page({
})
}
else
{
let
delFlags
=
this
.
data
.
checked
==
true
?
1
:
0
;
// let region = this.data.region;
// let addressStr = region[0] + "" + region[1] + "" + region[2]
let
postData
=
{
address
:
this
.
data
.
value
,
area
:
this
.
data
.
location
,
...
...
@@ -159,20 +158,23 @@ Page({
title
:
'保存成功'
,
icon
:
'none'
})
wx
.
redirectTo
({
url
:
'/pages/select-address/select-address?edit=1'
,
// wx.redirectTo({
// url: '/pages/select-address/select-address?edit=1',
// })
wx
.
navigateBack
({
delta
:
1
,
})
}
else
{
wx
.
showToast
({
title
:
'地址超出配送费范围请重新选择'
,
icon
:
'none'
icon
:
'none'
})
}
})
}
},
onLoad
:
function
(
options
)
{
this
.
map
();
},
/**
...
...
pages/apply-after-sale/apply-after-sale.wxml
查看文件 @
0deb836
...
...
@@ -49,7 +49,7 @@
<view> 退款原因</view>
</view>
<view class="reason">
<view>{{text
.text
}}</view>
<view>{{text}}</view>
<view style="margin-left:16rpx">
<image src="/images/04-01/arrow.png"></image>
</view>
...
...
pages/classify/classify.js
查看文件 @
0deb836
...
...
@@ -22,8 +22,59 @@ Page({
longitude
:
''
,
//经度
},
//获取定位
getSetting
(){
wx
.
getSetting
({
success
:
(
res
)
=>
{
console
.
log
(
JSON
.
stringify
(
res
))
if
(
res
.
authSetting
[
'scope.userLocation'
]
!=
undefined
&&
res
.
authSetting
[
'scope.userLocation'
]
!=
true
)
{
wx
.
showModal
({
title
:
'请求授权当前位置'
,
content
:
'需要获取您的地理位置,请确认授权'
,
success
:
function
(
res
)
{
if
(
res
.
cancel
)
{
wx
.
showToast
({
title
:
'拒绝授权'
,
icon
:
'none'
,
duration
:
1000
})
}
else
if
(
res
.
confirm
)
{
wx
.
openSetting
({
success
:
function
(
dataAu
)
{
if
(
dataAu
.
authSetting
[
"scope.userLocation"
]
==
true
)
{
wx
.
showToast
({
title
:
'授权成功'
,
icon
:
'success'
,
duration
:
1000
})
//再次授权,调用wx.getLocation的API
this
.
getLocations
()
}
else
{
wx
.
showToast
({
title
:
'授权失败'
,
icon
:
'none'
,
duration
:
1000
})
}
}
})
}
}
})
}
else
if
(
res
.
authSetting
[
'scope.userLocation'
]
==
undefined
)
{
//调用wx.getLocation的API
this
.
getLocations
()
}
else
{
//调用wx.getLocation的API
this
.
getLocations
()
}
}
})
},
getLocations
()
{
let
that
=
this
let
that
=
this
;
console
.
log
(
"getLocations"
)
wx
.
getLocation
({
type
:
'gcj02'
,
success
(
res
)
{
...
...
@@ -34,8 +85,6 @@ Page({
that
.
location
();
const
speed
=
res
.
speed
const
accuracy
=
res
.
accuracy
console
.
log
(
that
.
data
.
latitude
,
'维度'
)
console
.
log
(
that
.
data
.
longitude
,
'经度'
)
}
})
},
...
...
@@ -90,7 +139,7 @@ Page({
},
//第一次数据请求
onData
()
{
console
.
log
(
this
.
data
.
lableArray
,
'分类'
)
console
.
log
(
this
.
data
.
lableArray
,
'分类'
)
let
postData
=
{
categoryId
:
this
.
data
.
lableArray
[
0
].
categoryId
,
page
:
1
,
...
...
@@ -131,7 +180,7 @@ Page({
goodsData
:
data
.
data
,
stockNum
:
data
.
data
.
list
[
0
].
goodsStock
})
}
else
{
}
else
{
setTimeout
(()
=>
{
util
.
getUser
()
},
2000
)
...
...
@@ -229,7 +278,7 @@ Page({
url
:
'/pages/integral-order/integral-order'
,
})
}
}
else
{
}
else
{
setTimeout
(()
=>
{
util
.
getUser
()
},
2000
)
...
...
@@ -252,6 +301,7 @@ Page({
*/
onLoad
:
function
(
options
)
{
// this.dataRequest();
wx
.
removeStorageSync
(
'categoryId'
)
wx
.
removeStorageSync
(
'index'
)
this
.
catalog
();
...
...
@@ -275,8 +325,8 @@ Page({
activeKey
:
index
});
console
.
log
(
this
.
data
.
activeKey
,
'key'
)
this
.
getLocations
();
this
.
location
()
// this.location()
this
.
getSetting
();
},
/**
...
...
pages/edit-address/edit-address.js
查看文件 @
0deb836
...
...
@@ -4,7 +4,7 @@ const util = require("../../utils/util.js");
const
chooseLocation
=
requirePlugin
(
'chooseLocation'
);
Page
({
data
:
{
id
:
''
,
//订单id
id
:
''
,
//订单id
username
:
''
,
phone
:
''
,
value
:
''
,
...
...
@@ -158,7 +158,7 @@ Page({
address
:
this
.
data
.
value
,
area
:
this
.
data
.
location
,
delFlag
:
delFlags
,
id
:
this
.
data
.
id
,
id
:
this
.
data
.
id
,
location
:
this
.
data
.
longitudes
+
","
+
this
.
data
.
latitudes
,
name
:
this
.
data
.
username
,
phone
:
this
.
data
.
phone
,
...
...
@@ -186,15 +186,20 @@ Page({
}
},
onLoad
:
function
(
options
)
{
console
.
log
(
options
,
'options'
)
console
.
log
(
options
,
'options'
)
this
.
setData
({
username
:
options
.
name
,
phone
:
options
.
phone
,
value
:
options
.
address
,
checked
:
options
.
delFlag
,
location
:
options
.
area
,
id
:
options
.
id
location
:
options
.
area
,
locations
:
options
.
locations
,
latitudes
:
options
.
locations
.
split
(
","
)[
0
],
//传值给后台
longitudes
:
options
.
locations
.
split
(
","
)[
1
],
id
:
options
.
id
})
console
.
log
(
this
.
data
.
latitudes
,
'11'
)
console
.
log
(
this
.
data
.
longitudes
,
'222'
)
// }
},
...
...
pages/edit-address/edit-address.wxml
查看文件 @
0deb836
<!--pages/add-address/add-address.wxml-->
<view class="container">
<van-cell-group class="addContent">
<van-field value="{{ username }}"
required
clearable label="姓名" icon="question-o" placeholder="请输入姓名"
<van-field value="{{ username }}" clearable label="姓名" icon="question-o" placeholder="请输入姓名"
bind:click-icon="onClickIcon" bindinput="inputName" />
<van-field value="{{ phone }}" label="电话" placeholder="请输入电话" bindinput="inputDel" bindblur="blurPhone" />
<!-- 地址 -->
...
...
pages/evaluate/evaluate.js
查看文件 @
0deb836
// pages/evaluate/evaluate.js
let
method
=
require
(
"../../utils/reuqest.js"
);
const
util
=
require
(
"../../utils/util.js"
);
const
ary
=
[];
Page
({
data
:
{
im
a
gs
:
[],
imgs
:
[],
list
:
[],
postData
:
[],
//商品信息
word
:
''
,
length
:
0
,
maxlength
:
300
,
maxlength
:
300
,
orderId
:
''
,
checkType
:
0
,
ppath
:[],
cpath
:[],
ppath
:
[],
cpath
:
[],
},
//订单信息加载
getList
(
orderId
)
{
...
...
@@ -62,9 +63,18 @@ Page({
mask
:
true
})
var
uploaderList
=
res
.
tempFilePaths
;
that
.
setData
({
imgs
:
uploaderList
// ary.push(uploaderList[0])
if
(
ary
.
length
<=
3
)
{
// that.setData({
// imgs: ary
// })
}
else
{
wx
.
showToast
({
title
:
'最多只能上传3张图片'
,
icon
:
'none'
})
}
console
.
log
(
uploaderList
,
'liost'
)
if
(
type
==
1
)
{
that
.
setData
({
...
...
@@ -99,9 +109,13 @@ Page({
},
success
:
function
(
res
)
{
successUp
++
;
//
console.log('上传图片成功:', JSON.parse(res.data));
console
.
log
(
'上传图片成功:'
,
JSON
.
parse
(
res
.
data
));
var
data
=
JSON
.
parse
(
res
.
data
);
let
url
=
JSON
.
parse
(
res
.
data
).
data
ary
.
push
(
url
);
that
.
setData
({
imgs
:
ary
})
if
(
type
==
1
)
{
that
.
data
.
ppath
[
i
]
=
url
;
that
.
setData
({
...
...
@@ -173,6 +187,9 @@ Page({
wx
.
showToast
({
title
:
'发布成功'
,
}),
this
.
setData
({
imgs
:[]
})
wx
.
redirectTo
({
url
:
'/pages/all-order/all-order'
,
})
...
...
pages/home/home.wxml
查看文件 @
0deb836
...
...
@@ -21,13 +21,13 @@
</view>
<!-- 分类 -->
<view class="classify">
<scroll-view class='wrapper' scroll-x="true">
<view wx:for="{{classifyArray}}" class="classifyItem" bindtap="classifyEvent" data-id="{{item.categoryId}}" data-index="{{index}}">
<scroll-view class='wrapper1' scroll-x="true">
<view wx:for="{{classifyArray}}" class="classifyItem" bindtap="classifyEvent" data-id="{{item.categoryId}}"
data-index="{{index}}">
<view class="classifyPic">
<image src="{{item.icon}}"></image>
</view>
<view class="classifyText">{{item.categoryName}}</view>
</view>
</scroll-view>
</view>
...
...
@@ -84,9 +84,11 @@
<view class="arrow" bindtap="morePrice"></view>
</view>
<view class="dayPricePicMain">
<scroll-view class='wrapper' scroll-x="true">
<view wx:for="{{dayPicArray}}" class="dayPricePic" bindtap="goGoodsDetail" data-id="{{item.goodsId}}">
<image src="{{item.goodsImg}}"></image>
</view>
</scroll-view>
</view>
</view>
<view class="mainly">
...
...
@@ -95,9 +97,11 @@
<view class="mainlyTitle">{{nameData.label}}</view>
</view>
<view class="dayPricePicMain">
<scroll-view class='wrapper' scroll-x="true">
<view wx:for="{{marilyArray}}" class="dayPricePic" bindtap="goGoodsDetail" data-id="{{item.goodsId}}">
<image src="{{item.goodsImg}}"></image>
</view>
</scroll-view>
</view>
</view>
</view>
...
...
@@ -113,12 +117,6 @@
<view class="pickTitle">{{item.goodsName}}</view>
<view class="pickDesc">{{item.goodsAttributes}}</view>
<view class="userInfo">
<!-- <view class="userBox">
<view>
<image src="{{item.headPic}}"></image>
</view>
<view class="userName">{{item.userName}}</view>
</view> -->
<view class="collectIcon">
<image src="{{item.collectIcon}}"></image>
<view style="display:inline-block">¥{{item.goodsPrice}}</view>
...
...
pages/home/home.wxss
查看文件 @
0deb836
...
...
@@ -87,7 +87,6 @@
.classify .classifyPic {
width: 104rpx;
height: 89rpx;
background-color: blueviolet;
}
.classify .classifyPic image {
...
...
@@ -187,6 +186,11 @@
width: 100%;
white-space: nowrap;
display: flex;
}
.wrapper1 {
width: 100%;
white-space: nowrap;
display: flex;
margin-top: 28rpx;
}
...
...
@@ -297,13 +301,15 @@
justify-content: space-between;
align-items: center;
margin-top: 22rpx;
width: 100%;
}
.dayPricePic {
width:
148rpx
;
width:
25%
;
height: 148rpx;
padding: 8rpx 6rpx 8rpx 6rpx;
box-sizing: border-box;
display: inline-block;
}
.dayPricePic image {
...
...
pages/product-detail/product-detail.js
查看文件 @
0deb836
...
...
@@ -17,6 +17,7 @@ Page({
selectNum
:
'30'
,
pingjiaNum
:
0
,
infoList
:
[],
//评价
image
:
''
,
//评价图片
flags
:
true
,
deacArray
:
[{
img
:
'/images/1.jpg'
...
...
@@ -121,11 +122,11 @@ Page({
},
//进入购物车
goCart
()
{
if
(
wx
.
getStorageSync
(
'Authorization'
)
==
" "
){
setTimeout
(()
=>
{
if
(
wx
.
getStorageSync
(
'Authorization'
)
==
" "
)
{
setTimeout
(()
=>
{
util
.
getUser
();
},
2000
)
}
else
{
},
2000
)
}
else
{
wx
.
switchTab
({
url
:
'/pages/shopping-cart/shopping-cart'
,
})
...
...
@@ -152,7 +153,7 @@ Page({
}
else
{
wx
.
showToast
({
title
:
'请先登录'
,
icon
:
'none'
icon
:
'none'
})
setTimeout
(()
=>
{
util
.
getUser
()
...
...
pages/product-detail/product-detail.wxml
查看文件 @
0deb836
...
...
@@ -66,13 +66,18 @@
</view>
<view class="noData" wx:if="{{infoList.length==0}}">暂时没有相关商品的更多评价~</view>
<view class="evaluateBox" wx:for="{{infoList}}" wx:if="{{infolist!==0}}">
<view class="evaluateInfo"
>
<view class="evaluateInfo">
<view class="userImg" style="display:inline-block">
<image src="{{item.wxHeadImg}}"> </image>
</view>
<view class="userName" style="display:inline-block">{{item.wxName}}</view>
</view>
<view class="evaluateDetails">{{item.content}}</view>
<view class="evaluatePic" wx:if="{{item.images}}">
<view class="picBox" wx:for="{{item.images}}" data-item="data">
<image src="{{item}}"></image>
</view>
</view>
</view>
</view>
<!-- 商品明细-->
...
...
pages/product-detail/product-detail.wxss
查看文件 @
0deb836
...
...
@@ -306,6 +306,22 @@
letter-spacing: 1rpx;
margin: 0 auto;
margin-top: 20rpx;
word-break: break-all;
}
.evaluatePic {
width: 686rpx;
height: 200rpx;
display: flex;
margin: 0 auto;
}
.picBox {
width: 33.33%;
}
.picBox image{
width: 100%;
height: 100%;
}
/* 商品详情 */
...
...
pages/select-address/select-address.js
查看文件 @
0deb836
...
...
@@ -14,8 +14,9 @@ Page({
getAddressList
()
{
method
.
getRequest
(
"/address"
,
data
=>
{
if
(
data
.
statusCode
==
0
)
{
let
lists
=
data
.
data
;
this
.
setData
({
list
:
data
.
data
list
:
lists
.
reverse
()
})
}
})
...
...
@@ -53,7 +54,7 @@ Page({
if
(
data
.
statusCode
==
0
)
{
wx
.
setStorageSync
(
'userInfo'
,
data
)
wx
.
navigateTo
({
url
:
'/pages/edit-address/edit-address?name='
+
item
.
name
+
'&phone='
+
item
.
phone
+
'&area='
+
item
.
area
+
'&address='
+
item
.
address
+
'&delFlag='
+
item
.
delFlag
+
"&id="
+
id
url
:
'/pages/edit-address/edit-address?name='
+
item
.
name
+
'&phone='
+
item
.
phone
+
'&area='
+
item
.
area
+
'&address='
+
item
.
address
+
'&delFlag='
+
item
.
delFlag
+
"&id="
+
id
+
'&locations='
+
item
.
location
})
}
else
{
wx
.
showToast
({
...
...
pages/select-address/select-address.wxml
查看文件 @
0deb836
<!--pages/select-address/select-address.wxml-->
<view class="container">
<view class="addressBox" wx:for="{{list}}" catchtap="selectAdd" data-id="{{item.id}}" data-index="{{index}}">
<view class="left">
<view class="addressBox" wx:for="{{list}}" data-id="{{item.id}}" data-index="{{index}}">
<view class="left" catchtap="selectAdd" data-id="{{item.id}}" data-index="{{index}}">
<view class="userInfo">
<view class="name">{{item.name}}</view>
<view class="tell">{{item.phone}}</view>
...
...
pages/shopping-cart/shopping-cart.js
查看文件 @
0deb836
// pages/shopping-cart/shopping-cart.js
let
method
=
require
(
"../../utils/reuqest.js"
)
const
util
=
require
(
"../../utils/util.js"
)
Page
({
data
:
{
checkType
:
1
,
...
...
@@ -27,6 +28,9 @@ Page({
},
//地址信息
getAddress
()
{
if
(
wx
.
getStorageSync
(
'addIndex'
)){
wx
.
setStorageSync
(
'addIndex'
,
0
)
}
let
index
=
wx
.
getStorageSync
(
'addIndex'
)
method
.
getRequest
(
"/address"
,
data
=>
{
if
(
data
.
statusCode
==
0
)
{
...
...
@@ -41,6 +45,26 @@ Page({
wx
.
navigateTo
({
url
:
'/pages/select-address/select-address'
,
})
wx
.
setStorageSync
(
"shopCartAdd"
,
'true'
)
},
//没有登录
goAddress1
()
{
if
(
wx
.
getStorageSync
(
'Authorization'
)){
wx
.
navigateTo
({
url
:
'/pages/select-address/select-address'
,
})
wx
.
setStorageSync
(
"shopCartAdd"
,
'true'
)
}
else
{
wx
.
showToast
({
title
:
'请先登录!'
,
icon
:
'none'
})
setTimeout
(()
=>
{
util
.
getUser
();
},
2000
)
}
},
//配送时间
bindDateChange
:
function
(
e
)
{
...
...
pages/shopping-cart/shopping-cart.wxml
查看文件 @
0deb836
<!--pages/shopping-cart/shopping-cart.wxml-->
<view class="container">
<!-- 地址 -->
<view class="userInfo" bindtap="goAddress">
<view class="userInfo" bindtap="goAddress
1
">
<view class="addHint" wx:if="{{addHint==false}}">
<view class="addItem1">暂未获取到收获地址</view>
<view class="addItem2"> 请选择收货地址</view>
...
...
请
注册
或
登录
后发表评论