Commit 6da3e1bd authored by Junling Bu's avatar Junling Bu
Browse files

Merge branch 'master' of https://github.com/linlinjava/litemall

parents d3faa95a c82046b7
// 以下是业务服务器API地址 // 以下是业务服务器API地址
// 本机开发时使用 // 本机开发时使用
var WxApiRoot = 'http://localhost:8080/wx/'; var WxApiRoot = 'http://localhost:8082/wx/';
// 局域网测试使用 // 局域网测试使用
// var WxApiRoot = 'http://192.168.0.101:8080/wx/'; // var WxApiRoot = 'http://192.168.0.101:8080/wx/';
// 云平台部署时使用 // 云平台部署时使用
// var WxApiRoot = 'http://122.152.206.172:8080/wx/'; // var WxApiRoot = 'http://122.152.206.172:8080/wx/';
// 云平台上线时使用 // 云平台上线时使用
// var WxApiRoot = 'https://www.menethil.com.cn/wx/'; //var WxApiRoot = 'https://www.menethil.com.cn/wx/';
module.exports = { module.exports = {
IndexUrl: WxApiRoot + 'home/index', //首页数据接口 IndexUrl: WxApiRoot + 'home/index', //首页数据接口
......
...@@ -50,9 +50,12 @@ ...@@ -50,9 +50,12 @@
<view class="cart-bottom"> <view class="cart-bottom">
<view class="checkbox {{checkedAllStatus ? 'checked' : ''}}" bindtap="checkedAll">全选({{cartTotal.checkedGoodsCount}})</view> <view class="checkbox {{checkedAllStatus ? 'checked' : ''}}" bindtap="checkedAll">全选({{cartTotal.checkedGoodsCount}})</view>
<view class="total">{{!isEditCart ? '¥'+cartTotal.checkedGoodsAmount : ''}}</view> <view class="total">{{!isEditCart ? '¥'+cartTotal.checkedGoodsAmount : ''}}</view>
<view class="delete" bindtap="editCart">{{!isEditCart ? '编辑' : '完成'}}</view> <view class='action_btn_area'>
<view class="checkout" bindtap="deleteCart" wx:if="{{isEditCart}}">删除所选</view> <view class="{{!isEditCart ? 'edit' : 'sure'}}" bindtap="editCart">{{!isEditCart ? '编辑' : '完成'}}</view>
<view class="delete" bindtap="deleteCart" wx:if="{{isEditCart}}">删除({{cartTotal.checkedGoodsCount}})</view>
<view class="checkout" bindtap="checkoutOrder" wx:if="{{!isEditCart}}">下单</view> <view class="checkout" bindtap="checkoutOrder" wx:if="{{!isEditCart}}">下单</view>
<!-- </view> -->
</view>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -24,6 +24,7 @@ Page({ ...@@ -24,6 +24,7 @@ Page({
tmpSpecText: '请选择规格数量', tmpSpecText: '请选择规格数量',
checkedSpecPrice: 0, checkedSpecPrice: 0,
openAttr: false, openAttr: false,
openShare: false,
noCollectImage: '/static/images/icon_collect.png', noCollectImage: '/static/images/icon_collect.png',
hasCollectImage: '/static/images/icon_collect_checked.png', hasCollectImage: '/static/images/icon_collect_checked.png',
collectImage: '/static/images/icon_collect.png', collectImage: '/static/images/icon_collect.png',
...@@ -42,7 +43,7 @@ Page({ ...@@ -42,7 +43,7 @@ Page({
} }
}, },
shareFriendOrCircle: function () { shareFriendOrCircle: function() {
//var that = this; //var that = this;
if (this.data.openShare === false) { if (this.data.openShare === false) {
this.setData({ this.setData({
...@@ -626,6 +627,11 @@ Page({ ...@@ -626,6 +627,11 @@ Page({
openAttr: false, openAttr: false,
}); });
}, },
closeShare: function() {
this.setData({
openShare: false,
});
},
openCartPage: function() { openCartPage: function() {
wx.switchTab({ wx.switchTab({
url: '/pages/cart/cart' url: '/pages/cart/cart'
......
...@@ -90,18 +90,31 @@ page{ ...@@ -90,18 +90,31 @@ page{
} }
.add-address{ .add-address{
background: #b4282d;
text-align: center;
width: 100%;
height: 99rpx;
line-height: 99rpx;
position: fixed;
border-radius: 0;
border: none; border: none;
color: #fff; right: 0;
font-size: 29rpx; display: flex;
justify-content: center;
align-items: center;
width: 90%;
height: 90rpx;
line-height: 98rpx;
position: absolute;
bottom: 0; bottom: 0;
left:0; left: 0;
border-radius: 0;
padding: 0;
margin: 0;
margin-left: 5%;
text-align: center;
/* padding-left: -5rpx; */
font-size: 25rpx;
color: #f4f4f4;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-top-right-radius: 50rpx;
border-bottom-right-radius: 50rpx;
letter-spacing: 3rpx;
background-image: linear-gradient(to right, #9a9ba1 0%, #9a9ba1 100%);
} }
.empty-view{ .empty-view{
......
...@@ -13,7 +13,7 @@ page { ...@@ -13,7 +13,7 @@ page {
.profile-info { .profile-info {
background-color: #ab956d; background-color: #ab956d;
color: #fff; color: #f4f4f4;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 30rpx; padding: 30rpx;
......
...@@ -8,6 +8,16 @@ Page({ ...@@ -8,6 +8,16 @@ Page({
}, },
onLoad: function(options) { onLoad: function(options) {
// 页面初始化 options为页面跳转所带来的参数 // 页面初始化 options为页面跳转所带来的参数
let that = this
try {
var tab = wx.getStorageSync('tab');
this.setData({
showType: tab
});
} catch (e) {
}
}, },
onPullDownRefresh() { onPullDownRefresh() {
......
...@@ -9,7 +9,7 @@ page{ ...@@ -9,7 +9,7 @@ page{
width: 100%; width: 100%;
background: #fff; background: #fff;
height: 84rpx; height: 84rpx;
border-bottom: 1px solid rgba(0,0,0,.15); /* border-bottom: 1px solid rgba(0,0,0,.15); */
} }
.orders-switch .item{ .orders-switch .item{
...@@ -25,14 +25,14 @@ page{ ...@@ -25,14 +25,14 @@ page{
height: 82rpx; height: 82rpx;
padding: 0 20rpx; padding: 0 20rpx;
line-height: 82rpx; line-height: 82rpx;
color: #333; color: #9a9ba1;
font-size: 30rpx; font-size: 30rpx;
width: 170rpx; width: 170rpx;
} }
.orders-switch .item.active .txt{ .orders-switch .item.active .txt{
color: #ab2b2b; color: #AB956D;
border-bottom: 4rpx solid #ab2b2b; border-bottom: 4rpx solid #AB956D;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment