diff --git a/api/api.js b/api/api.js
index 56380336..cd5b4b59 100644
--- a/api/api.js
+++ b/api/api.js
@@ -191,7 +191,7 @@ export function logout(){
*/
export function getTemlIds(data)
{
- return request.post('wechat/program/my/temp/list?limit=3&page=1', data , { noAuth:true});
+ return request.get('wechat/program/my/temp/list', data , { noAuth:true});
}
/**
diff --git a/api/user.js b/api/user.js
index fe38a6da..c5966f66 100644
--- a/api/user.js
+++ b/api/user.js
@@ -124,8 +124,8 @@ export function userActivity(){
/*
* 余额明细(types|2=全部,1=支出,2=收入)
* */
-export function getCommissionInfo(q, types) {
- return request.get("spread/commission/" + types, q);
+export function getCommissionInfo(data) {
+ return request.get("spread/commission/detail", data);
}
/*
@@ -405,5 +405,14 @@ export function getuserDalance()
}
+/**
+ * 账单记录;
+ *
+ */
+export function getBillList(data)
+{
+ return request.get("recharge/bill/record",data);
+}
+
diff --git a/components/couponListWindow/index.vue b/components/couponListWindow/index.vue
index 8edaf138..0d7d3792 100644
--- a/components/couponListWindow/index.vue
+++ b/components/couponListWindow/index.vue
@@ -66,7 +66,7 @@
//领取优惠券
let ids = [];
ids.push(id);
- setCouponReceive(ids).then(res=>{
+ setCouponReceive(id).then(res=>{
that.$emit('ChangCouponsUseState', index);
that.$util.Tips({title: "领取成功"});
that.$emit('ChangCoupons', list[index]);
diff --git a/components/payment/index.vue b/components/payment/index.vue
index 36628ec3..f2832e98 100644
--- a/components/payment/index.vue
+++ b/components/payment/index.vue
@@ -62,6 +62,7 @@
},
goPay: function(number, paytype) {
let that = this;
+ let goPages = '/pages/order_pay_status/index?order_id=' + that.order_id;
if (!that.order_id) return that.$util.Tips({
title: '请选择要支付的订单'
});
@@ -73,7 +74,12 @@
});
wechatOrderPay({
orderNo: that.order_id,
- payChannel: this.$wechat.isWeixin() ? 'public' : 'weixinh5',
+ // #ifdef MP
+ payChannel: 'routine',
+ // #endif
+ // #ifdef H5 || APP-PLUS
+ payChannel: that.$wechat.isWeixin() ? 'public' : 'weixinh5',
+ // #endif
payType: paytype
}).then(res => {
let jsConfig = res.data.jsConfig;
@@ -167,9 +173,9 @@
break;
case 'weixinh5':
uni.hideLoading();
- location.replace(jsConfig.mwebUrl);
+ location.replace(jsConfig.mwebUrl + '&redirect_url=' + window.location.protocol + '//' + window.location.host + goPages + '&status=1');
return that.$util.Tips({
- title: "支付成功",
+ title: "支付中",
icon: 'success'
}, () => {
that.$emit('onChangeFun', {
@@ -178,119 +184,6 @@
});
break;
}
-
-
-
- // switch (paytype) {
- // case 'weixin':
- // if (res.data.result === undefined) return that.$util.Tips({
- // title: '缺少支付参数'
- // });
- // // #ifdef MP || APP-PLUS
- // let jsConfig = res.data.jsConfig;
- // uni.requestPayment({
- // timeStamp: jsConfig.timeStamp.toString(),
- // nonceStr: jsConfig.nonceStr,
- // package: jsConfig.package,
- // signType: jsConfig.signType,
- // paySign: jsConfig.paySign,
- // success: function(res) {
- // uni.hideLoading();
- // return that.$util.Tips({
- // title: '支付成功',
- // icon: 'success'
- // }, () => {
- // that.$emit('onChangeFun', {
- // action: 'pay_complete'
- // });
- // });
- // },
- // fail: function(e) {
- // uni.hideLoading();
- // return that.$util.Tips({
- // title: '取消支付'
- // }, () => {
- // that.$emit('onChangeFun', {
- // action: 'pay_fail'
- // });
- // });
- // },
- // complete: function(e) {
- // uni.hideLoading();
- // if (e.errMsg == 'requestPayment:cancel') return that.$util.Tips({
- // title: '取消支付'
- // }, () => {
- // that.$emit('onChangeFun', {
- // action: 'pay_fail'
- // });
- // });
- // },
- // });
- // // #endif
- // // #ifdef H5
- // if (res.data.status === "WECHAT_PAY") {
- // let jsConfig = res.data.jsConfig;
- // //let packages = 'prepay_id=' + jsConfig.prepayId;
- // let datas = {
- // timestamp:jsConfig.timeStamp,
- // nonceStr:jsConfig.nonceStr,
- // package:jsConfig.package,
- // signType:jsConfig.signType,
- // paySign:jsConfig.paySign
- // };
- // that.$wechat.pay(datas)
- // .then(() => {
- // return that.$util.Tips({
- // title: "支付成功",
- // icon: 'success'
- // }, () => {
- // that.$emit('onChangeFun', {
- // action: 'pay_complete'
- // });
- // });
- // })
- // .catch(function() {
- // return that.$util.Tips({
- // title: '支付失败'
- // });
- // });
- // } else {
- // uni.hideLoading();
- // location.replace(res.data.jsConfig.h5PayUrl);
- // return that.$util.Tips({
- // title: "支付成功",
- // icon: 'success'
- // }, () => {
- // that.$emit('onChangeFun', {
- // action: 'pay_complete'
- // });
- // });
- // }
- // // #endif
- // break;
- // case 'yue':
- // uni.hideLoading();
- // return that.$util.Tips({
- // title: '余额支付成功',
- // icon: 'success'
- // }, () => {
- // that.$emit('onChangeFun', {
- // action: 'pay_complete'
- // });
- // });
- // break;
- // case 'offline':
- // uni.hideLoading();
- // return that.$util.Tips({
- // title: '线下支付成功',
- // icon: 'success'
- // }, () => {
- // that.$emit('onChangeFun', {
- // action: 'pay_complete'
- // });
- // });
- // break;
- // }
}).catch(err => {
uni.hideLoading();
return that.$util.Tips({
diff --git a/components/recommend/index.vue b/components/recommend/index.vue
index cb04855d..648eb062 100644
--- a/components/recommend/index.vue
+++ b/components/recommend/index.vue
@@ -77,6 +77,9 @@
.recommend .recommendList {
padding: 0 30rpx;
+ /* #ifdef H5 */
+ padding-bottom: 50rpx;
+ /* #endif */
}
.recommend .recommendList .item {
diff --git a/components/tabNav.vue b/components/tabNav.vue
index c9eded2e..6ba2d8e2 100644
--- a/components/tabNav.vue
+++ b/components/tabNav.vue
@@ -9,7 +9,7 @@
-
+
@@ -18,6 +18,17 @@
+
+
diff --git a/config/app.js b/config/app.js
index 524b4779..b78f8070 100644
--- a/config/app.js
+++ b/config/app.js
@@ -1,6 +1,5 @@
-var josn=require('../../domain.json')
-let domain = josn.domain
+let domain = 'http://localhost:8080'
module.exports = {
// 请求域名 格式: https://您的域名
@@ -12,7 +11,6 @@ module.exports = {
// #ifdef H5
//H5接口是浏览器地址
// HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host,
- // http://api.java.crmeb.net:20001
HTTP_REQUEST_URL:domain,
// #endif
diff --git a/libs/wechat.js b/libs/wechat.js
index f5b170af..6f31182c 100644
--- a/libs/wechat.js
+++ b/libs/wechat.js
@@ -58,6 +58,7 @@ class AuthWechat {
resolve(this.instance);
})
}).catch(err => {
+ console.log('微信分享配置失败',err);
this.status = false;
reject(err);
});
@@ -121,7 +122,6 @@ class AuthWechat {
this.toPromise(wx.chooseWXPay, config).then(res => {
resolve(res);
}).catch(res => {
- console.log('js中的错误',res)
resolve(res);
});
}).catch(res => {
diff --git a/pages/activity/goods_bargain_details/index.vue b/pages/activity/goods_bargain_details/index.vue
index b5a7a75c..25986e32 100644
--- a/pages/activity/goods_bargain_details/index.vue
+++ b/pages/activity/goods_bargain_details/index.vue
@@ -8,17 +8,6 @@
{{bargainCount.lookCount || 0}}人查看 丨 {{bargainCount.shareCount || 0}}人分享 丨 {{bargainCount.userCount || 0}}人参与
-
diff --git a/pages/activity/goods_combination_details/index.vue b/pages/activity/goods_combination_details/index.vue
index fbd8f9db..c47e7561 100644
--- a/pages/activity/goods_combination_details/index.vue
+++ b/pages/activity/goods_combination_details/index.vue
@@ -22,7 +22,7 @@
- ¥{{storeInfo.price || 0}}¥{{storeInfo.product_price || 0}}
+ ¥{{storeInfo.price || 0}}¥{{storeInfo.otPrice || 0}}
@@ -120,8 +120,7 @@
产品介绍
-
-
+
@@ -198,8 +197,6 @@
-
@@ -212,12 +209,11 @@
diff --git a/pages/activity/poster-poster/index.vue b/pages/activity/poster-poster/index.vue
index 42279707..9bca8b3b 100644
--- a/pages/activity/poster-poster/index.vue
+++ b/pages/activity/poster-poster/index.vue
@@ -135,7 +135,9 @@
let people = this.storeCombination.storeCombination.people;
let otPrice = this.storeCombination.storeCombination.otPrice;
let count = this.storeCombination.count;
- this.PosterCanvas(arrImages, storeName, price, people,otPrice,count);
+ setTimeout(() => {
+ this.PosterCanvas(arrImages, storeName, price, people,otPrice,count);
+ }, 300);
},
complete: () => {
},
@@ -162,7 +164,7 @@
context.setFontSize(36);
context.setTextAlign('center');
context.setFillStyle('#282828');
- let maxText = 17;
+ let maxText = 20;
let text = storeName;
let topText = '';
let bottomText = '';
@@ -190,7 +192,7 @@
context.setFontSize(72);
context.setFillStyle('#fc4141');
- context.fillText(price, 220, 210);
+ context.fillText(price, 250, 210);
context.setFontSize(32);
context.setFillStyle('#FFFFFF');
diff --git a/pages/goods_cate/goods_cate.vue b/pages/goods_cate/goods_cate.vue
index 62642a31..ef2ced81 100644
--- a/pages/goods_cate/goods_cate.vue
+++ b/pages/goods_cate/goods_cate.vue
@@ -1,5 +1,5 @@
-
+
-
+
{{item.name}}
@@ -15,7 +15,7 @@
-
+
@@ -25,6 +25,9 @@
+
@@ -61,19 +64,18 @@
onLoad(options) {
this.getAllCategory();
},
- onShow(){
- },
+ onShow() {},
methods: {
infoScroll: function() {
let that = this;
let len = that.productList.length;
- let child = that.productList[len - 1]&&that.productList[len - 1].child?that.productList[len - 1].child:[];
- this.number = child?child.length:0;
-
+ let child = that.productList[len - 1] && that.productList[len - 1].child ? that.productList[len - 1].child : [];
+ this.number = child ? child.length : 0;
+
//设置商品列表高度
uni.getSystemInfo({
success: function(res) {
- that.height = (res.windowHeight) * (750 / res.windowWidth) - 98;
+ that.height = (res.windowHeight) * (750 / res.windowWidth);
},
});
let height = 0;
@@ -98,9 +100,9 @@
let that = this;
getCategoryList().then(res => {
that.productList = res.data;
- setTimeout(function(){
+ setTimeout(function() {
that.infoScroll();
- },500)
+ }, 500)
})
},
scroll: function(e) {
@@ -142,7 +144,7 @@
z-index: 9;
border-bottom: 1rpx solid #f5f5f5;
}
-
+
.productSort .header .input {
width: 700rpx;
height: 60rpx;
@@ -151,41 +153,45 @@
box-sizing: border-box;
padding: 0 25rpx;
}
-
+
.productSort .header .input .iconfont {
font-size: 35rpx;
color: #555;
}
-
+
.productSort .header .input .placeholder {
color: #999;
}
-
+
.productSort .header .input input {
font-size: 26rpx;
height: 100%;
width: 597rpx;
}
-
+
.productSort .aside {
position: fixed;
- width: 180rpx;
+ width: 24%;
left: 0;
- top:0;
+ top: 0;
background-color: #f7f7f7;
overflow-y: auto;
overflow-x: hidden;
height: auto;
margin-top: 96rpx;
+ /* 兼容 IOS<11.2 */
+ bottom: calc(100rpx+ constant(safe-area-inset-bottom));
+ /* 兼容 IOS>11.2 */
+ bottom: calc(100rpx + env(safe-area-inset-bottom));
}
-
+
.productSort .aside .item {
height: 100rpx;
width: 100%;
font-size: 26rpx;
color: #424242;
}
-
+
.productSort .aside .item.on {
background-color: #fff;
border-left: 4rpx solid #fc4141;
@@ -194,58 +200,55 @@
color: #fc4141;
font-weight: bold;
}
-
+
.productSort .conter {
margin: 96rpx 0 0 180rpx;
padding: 0 14rpx;
background-color: #fff;
}
-
+
.productSort .conter .listw {
padding-top: 20rpx;
}
-
+
.productSort .conter .listw .title {
height: 90rpx;
}
-
+
.productSort .conter .listw .title .line {
width: 100rpx;
height: 2rpx;
background-color: #f0f0f0;
}
-
+
.productSort .conter .listw .title .name {
font-size: 28rpx;
color: #333;
margin: 0 30rpx;
font-weight: bold;
}
-
+
.productSort .conter .list {
flex-wrap: wrap;
}
-
+
.productSort .conter .list .item {
width: 177rpx;
margin-top: 26rpx;
}
-
+
.productSort .conter .list .item .picture {
width: 120rpx;
height: 120rpx;
border-radius: 50%;
}
-
+
.productSort .conter .list .item .picture image {
width: 100%;
height: 100%;
border-radius: 50%;
- div{
- background-color: #f7f7f7;
- }
}
-
+
.productSort .conter .list .item .name {
font-size: 24rpx;
color: #333;
diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue
index d94b8ef2..14ad0b78 100644
--- a/pages/goods_details/index.vue
+++ b/pages/goods_details/index.vue
@@ -39,7 +39,7 @@
赠送 {{storeInfo.give_integral}} 积分
-->
-
+
优惠券:
满{{item.minPrice}}减{{item.money}}
@@ -152,14 +152,22 @@
购物车
-
+
+
+
+
+
+
+
+
+
@@ -216,7 +224,6 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 美好生活由此开始
+
+
+
+
+ {{item.title}}
+ {{item.info}}
+ GO!
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+ {{item.info}}
+
+
+
+
+
+
+ 秒杀
+ 砍价
+ 拼团
+
+
+
+ {{item.storeName}}
+ ¥{{item.otPrice}}
+
+ ¥{{item.price}}
+ 券
+
+
+
+
+
+
+
+
+ 我是有底线的
+
+
+
+
+
+
+
+
+
+
+ 秒杀
+ 砍价
+ 拼团
+
+
+ {{item.storeName}}
+ ¥{{item.price}}
+
+ ¥{{item.vipPrice}}
+
+
+ 已售{{Number(item.sales) + Number(item.ficti) || 0 }}{{item.unitName}}
+
+
+
+
+ {{loadTitle}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/order_addcart/order_addcart.vue b/pages/order_addcart/order_addcart.vue
index 09974a7f..5e956dfe 100644
--- a/pages/order_addcart/order_addcart.vue
+++ b/pages/order_addcart/order_addcart.vue
@@ -17,10 +17,10 @@
-
+
-
+
@@ -91,7 +91,7 @@
+ -->
@@ -70,6 +92,12 @@
+
+ {{loadTitle}}
+
+
+ {{loadTitleInvalid}}
+
@@ -81,7 +109,7 @@