diff --git a/Utils/Api.js b/Utils/Api.js
index 786a695..6a2d23c 100644
--- a/Utils/Api.js
+++ b/Utils/Api.js
@@ -1,8 +1,9 @@
import {
POST
-} from "./Request.js";
+} from "./Request.js";
import {
- POSTBREST} from "./bRequest.js";
+ POSTBREST
+} from "./bRequest.js";
let app = getApp();
let base = app.globalData.url;
let brestBase = app.globalData.brestUrl;
@@ -26,12 +27,12 @@ export const setUserPayPwd = params => {
export const updateUserPayPwd = params => {
return POST('POST', `${base}/highUser/updateUserPayPwd`, params).then(res => res.data);
}
-
-//获取用户信息
+
+//获取用户信息
export const findUser = params => {
return POST('GET', `${base}/highUser/findUser`, params).then(res => res.data);
-}
-//绑定用户电话
+}
+//绑定用户电话
export const loginByPhone = params => {
return POST('GET', `${base}/wechat/loginByPhone`, params).then(res => res.data);
};
@@ -58,27 +59,27 @@ export const getMerchantStoreById = params => {
//根据门店ID 获取卡券
export const getCouponListByStoreId = params => {
return POST('GET', `${base}/coupon/getCouponListByStoreId`, params).then(res => res.data);
-}
-//获取优选商品分类
+}
+//获取优选商品分类
export const getListGoodsType = params => {
return POST('GET', `${base}/highGoodsType/getListGoodsType`, params).then(res => res.data);
-}
-//获取优选商品品牌列表
+}
+//获取优选商品品牌列表
export const getBrandByList = params => {
return POST('GET', `${base}/highBrand/getBrandByList`, params).then(res => res.data);
-}
-// 优选商品列表
+}
+// 优选商品列表
export const getBrandCouponList = params => {
return POST('GET', `${base}/coupon/getCouponList`, params).then(res => res.data);
-}
-//优选商品详情
+}
+//优选商品详情
export const getPreByOrderIdId = params => {
return POST('GET', `${base}/orderPre/getPreByOrderIdId`, params).then(res => res.data);
-}
-//优选商品预约完成
+}
+//优选商品预约完成
export const orderComplete = params => {
return POST('POST', `${base}/orderPre/orderComplete`, params).then(res => res.data);
-}
+}
//卡券详情
export const getCouponById = params => {
return POST('GET', `${base}/coupon/getCouponById`, params).then(res => res.data);
@@ -99,31 +100,31 @@ export const orderToGoldPay = params => {
export const getUserGoldRecList = params => {
return POST('GET', `${base}/highGoldRec/getUserGoldRecList`, params).then(res => res.data);
}
-//获取用户卡券
+//获取用户卡券
export const getUserCouponList = params => {
return POST('GET', `${base}/coupon/getUserCouponList`, params).then(res => res.data);
-}
-//获取用户卡券详情
+}
+//获取用户卡券详情
export const getUserCouponDetail = params => {
return POST('GET', `${base}/coupon/getUserCouponDetail`, params).then(res => res.data);
}
//获取用户最新卡券详情
export const getUserNewCouponDetail = params => {
return POST('GET', `${base}/coupon/getUserNewCouponDetail`, params).then(res => res.data);
-}
-//获取订单信息
+}
+//获取订单信息
export const getUserOrderList = params => {
return POST('GET', `${base}/highOrder/getUserOrderList`, params).then(res => res.data);
-}
-//取消订单
+}
+//取消订单
export const cancelOrder = params => {
return POST('GET', `${base}/highOrder/cancelOrder`, params).then(res => res.data);
-}
-//订单查询详情
+}
+//订单查询详情
export const getOrderById = params => {
return POST('GET', `${base}/highOrder/getOrderById`, params).then(res => res.data);
-}
-//获取商户列表
+}
+//获取商户列表
export const getMerchantList = params => {
return POST('GET', `${base}/highMerchantStore/getMerchantList`, params).then(res => res.data);
}
@@ -134,12 +135,12 @@ export const getStoreListByMerchant = params => {
//获取优惠券详情
export const getDiscountByQrCode = params => {
return POST('GET', `${base}/discount/getDiscountByQrCode`, params).then(res => res.data);
-}
-//查询话费优惠券
+}
+//查询话费优惠券
export const getUserOrderPreList = params => {
- return POST('GET', `${base}/userDiscount/getUserOrderPreList`, params).then(res => res.data);
-}
-
+ return POST('GET', `${base}/userDiscount/getUserExclusiveDiscount`, params).then(res => res.data);
+}
+
//领取优惠券
export const receiveDiscount = params => {
return POST('POST', `${base}/userDiscount/receiveDiscount`, params).then(res => res.data);
@@ -185,11 +186,24 @@ export const getDredgeProvince = params => {
export const getCmsContent = params => {
return POST('GET', `${base}/cmsContent/getCmsContent`, params).then(res => res.data);
}
-
-//设置用户参数
+//设置用户参数
export const setCacheParam = params => {
return POST('POST', `${base}/highUser/setCacheParam`, params).then(res => res.data);
}
+//查询充值话费详情
+export const getPhoneOrderById = params => {
+ return POST('GET', `${base}/outRechargeOrder/getOrderById`, params).then(res => res.data);
+}
+//优惠券包列表
+export const getDiscountPackageList = params => {
+ return POST('GET', `${base}/discountPackage/getDiscountPackageList`, params).then(res => res.data);
+}
+//优惠券包详情
+export const getDiscountPackageDetail = params => {
+ return POST('GET', `${base}/discountPackage/getDiscountPackageDetail`, params).then(res => res.data);
+}
+
+
/**
* 工会卡
*/
@@ -197,7 +211,7 @@ export const setCacheParam = params => {
export const getHuiLianTongCardByCardNo = params => {
return POST('GET', `${base}/highUserCard/getHuiLianTongCardByCardNo`, params).then(res => res.data);
}
-// 获取用户卡号列表
+// 获取用户卡号列表
export const getUserCardList = params => {
return POST('GET', `${base}/highUserCard/getUserCardList`, params).then(res => res.data);
}
@@ -209,10 +223,10 @@ export const getHuiLianTongCardByPhone = params => {
export const delUserCard = params => {
return POST('POST', `${base}/highUserCard/delUserCard`, params).then(res => res.data);
}
-// 查询汇联通工会卡详情
+// 查询汇联通工会卡详情
export const getHuiLianTongCardBalance = params => {
return POST('GET', `${base}/highUserCard/getHuiLianTongCardBalance?`, params).then(res => res.data);
-}
+}
// 查询汇联通工会卡消费记录
export const getHuiLianTongCardConsume = params => {
return POST('GET', `${base}/highUserCard/getHuiLianTongCardConsume`, params).then(res => res.data);
@@ -223,7 +237,7 @@ export const hltUnionCardPay = params => {
}
export const bindHuiLianTongCard = params => {
return POST('POST', `${base}/highUserCard/bindHuiLianTongCard`, params).then(res => res.data);
-}
+}
/**
* 工会卡
*/
@@ -252,10 +266,10 @@ export const getUserLotteryNum = params => {
export const getWinLotteryList = params => {
return POST('GET', `${base}/activity/getWinLotteryList`, params).then(res => res.data);
}
-//跳转是否赠券
+//跳转是否赠券
export const getMembershipLevel = params => {
return POST('GET', `${base}/highUser/GetMembershipLevel`, params).then(res => res.data);
-}
+}
/**
* 肯德基地址
*/
@@ -312,14 +326,14 @@ export const useCouponCode = params => {
-//**代理商//
+//**代理商//
export const getAgentCount = params => {
return POSTBREST('GET', `${brestBase}/highCouponAgent/getAgentCount`, params).then(res => res.data);
}
// 查询销售码
export const getCodeListByAgentCoupon = params => {
return POSTBREST('GET', `${brestBase}/highCouponAgent/getCodeListByAgentCoupon`, params).then(res => res.data);
-}
+}
// 生成二维码
export const generateCode = params => {
return POSTBREST('POST', `${brestBase}/highCouponAgent/generateCode`, params).then(res => res.data);
@@ -339,8 +353,8 @@ export const getAgentSalesPriceCount = params => {
//修改密码
export const sendUserPass = params => {
return POSTBREST('POST', `${brestBase}/secUser/sendUserPass`, params).then(res => res.data);
-}
-
+}
+
@@ -371,5 +385,4 @@ export const hltUnionCardPayUnion = params => {
//话费列表
export const getUserOrderListhuafei = params => {
return POST('GET', `${base}/outRechargeOrder/getUserOrderList`, params).then(res => res.data);
-}
-
+}
diff --git a/pages.json b/pages.json
index 0d94345..88b5fb8 100644
--- a/pages.json
+++ b/pages.json
@@ -1,34 +1,34 @@
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
- {
- "path": "pages/tabBar/home/home",
- "style": {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "首页",
- "navigationBarBackgroundColor": "#0083f5",
- "backgroundColorTop": "#0083f5",
- "onReachBottomDistance": 50,
- "app-plus": {
- "titleNView": false, //禁用原生导航栏
- "softinputNavBar": "none",
- "subNVues": [{
- "id": "homeTitleNvue", // 唯一标识
- "path": "pages/tabBar/home/subNvue/homeTitleNvue", // 页面路径
- "type": "navigationBar"
- }]
- }
- }
- }, {
- "path": "pages/qianZhuPay/union-pay/union-pay",
- "style": {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "选择方式",
- "navigationBarBackgroundColor": "#0083f5",
- "backgroundColorTop": "#0083f5",
- "enablePullDownRefresh": false
- }
-
- },{
+ {
+ "path": "pages/tabBar/home/home",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "首页",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none",
+ "subNVues": [{
+ "id": "homeTitleNvue", // 唯一标识
+ "path": "pages/tabBar/home/subNvue/homeTitleNvue", // 页面路径
+ "type": "navigationBar"
+ }]
+ }
+ }
+ }, {
+ "path": "pages/qianZhuPay/union-pay/union-pay",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "选择方式",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
"path": "pages/user/bindingCardList/bindingCardList",
"style": {
"navigationBarTitleText": "卡列表",
@@ -331,21 +331,21 @@
}, {
"path": "pages/goods/externalCoupon/externalCoupon",
- "style": {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "扫码领取优惠券",
- "navigationBarBackgroundColor": "#0083f5",
- "backgroundColorTop": "#0083f5",
- "onReachBottomDistance": 50,
- "app-plus": {
- "titleNView": false, //禁用原生导航栏
- "softinputNavBar": "none",
- "subNVues": [{
- "id": "homeTitleNvue", // 唯一标识
- "path": "pages/tabBar/home/subNvue/homeTitleNvue", // 页面路径
- "type": "navigationBar"
- }]
- }
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "扫码领取优惠券",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none",
+ "subNVues": [{
+ "id": "homeTitleNvue", // 唯一标识
+ "path": "pages/tabBar/home/subNvue/homeTitleNvue", // 页面路径
+ "type": "navigationBar"
+ }]
+ }
}
}, {
@@ -434,17 +434,6 @@
"navigationBarTextStyle": "white"
}
- }, {
- "path": "pages/login/loginInvalid/loginInvalid",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "",
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#0083f5",
- "backgroundColorTop": "#0083f5",
- "navigationBarTextStyle": "white"
- }
-
}, {
"path": "pages/user/bindingCard/bindingCard",
"style": {
@@ -483,110 +472,168 @@
"backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white"
}
-
}
-
-
+
],
"subpackages": [{
"root": "subPages",
- "pages": [{
- "path": "brand-classification/brand-classification",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "品牌分类",
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#0083f5",
- "backgroundColorTop": "#0083f5",
- "navigationBarTextStyle": "white"
- }
-
- },{
- "path": "preferred-goods/preferred-goods",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "商品分类",
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#0083f5",
- "backgroundColorTop": "#0083f5",
- "navigationBarTextStyle": "white"
- }
-
- },{
- "path": "lottery/lottery",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "抽奖活动",
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#e62601",
- "backgroundColorTop": "#e62601",
- "navigationBarTextStyle": "white"
- }
-
- },
- {
- "path": "recharge/recharge",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "话费充值",
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#0083f5",
- "backgroundColorTop": "#0083f5",
- "navigationBarTextStyle": "white"
- }
-
- },
- {
- "path": "recharge-centre/recharge-centre",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "话费充值",
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#0083f5",
- "backgroundColorTop": "#0083f5",
- "navigationBarTextStyle": "white"
- }
-
- },{
- "path": "unionComfirmation/unionComfirmation",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "确认订单",
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#0083f5",
- "backgroundColorTop": "#0083f5",
- "navigationBarTextStyle": "white"
- }
- },{
- "path": "unionPay-orderList/unionPay-orderList",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "话费订单",
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#0083f5",
- "backgroundColorTop": "#0083f5",
- "navigationBarTextStyle": "white"
- }
- },
- {
- "path": "unionPay/unionPay",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "入口选择",
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#0083f5",
- "backgroundColorTop": "#0083f5",
- "navigationBarTextStyle": "white"
+ "pages": [
+ {
+ "path" : "coupon-comfirmation-success/coupon-comfirmation-success",
+ "style" :
+ {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "支付成功",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
+ },{
+ "path": "brand-classification/brand-classification",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "品牌分类",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
+ }, {
+ "path": "preferred-goods/preferred-goods",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "商品分类",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
+ }, {
+ "path": "lottery/lottery",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "抽奖活动",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#e62601",
+ "backgroundColorTop": "#e62601",
+ "navigationBarTextStyle": "white"
+ }
+
+ },
+ {
+ "path": "recharge/recharge",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "话费充值",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
+ },
+ {
+ "path": "recharge-centre/recharge-centre",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "话费充值",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
+ }, {
+ "path": "unionComfirmation/unionComfirmation",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "确认订单",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+ }, {
+ "path": "unionPay-orderList/unionPay-orderList",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "话费订单",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+ },
+ {
+ "path": "unionPay/unionPay",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "入口选择",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+ }, {
+ "path": "unionWeb/unionWeb",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "Phone-recharge-details/Phone-recharge-details",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "交易详情",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+ }, {
+ "path": "sotre-details-list/sotre-details-list",
+ "style": {
+ "navigationBarTitleText": "门店列表",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
+ }, {
+ "path": "coupon-package/coupon-package",
+ "style": {
+ "navigationBarTitleText": "",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+ }, {
+ "path": "coupon-packge-details/coupon-packge-details",
+ "style": {
+ "navigationBarTitleText": "优惠券包详情",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+ }, {
+ "path": "coupon-comfirmation/coupon-comfirmation",
+ "style": {
+ "navigationBarTitleText": "确认订单",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
}
- } ,{
- "path" : "unionWeb/unionWeb",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- }
]
}],
"globalStyle": {
diff --git a/pages/goods/coupon-details/coupon-details.vue b/pages/goods/coupon-details/coupon-details.vue
index 41ae1cc..7860f9a 100644
--- a/pages/goods/coupon-details/coupon-details.vue
+++ b/pages/goods/coupon-details/coupon-details.vue
@@ -25,9 +25,9 @@
-
-
+
+
预约订单已成功 门店会在24小时内联系您
@@ -35,24 +35,31 @@
请告知加油员用码商支付
-
+
- {{couponDesInfo.couponCodeInfo.codeKey}}
+ {{couponDesInfo.couponCodeInfo.codeKey}}
+
-
- 门店信息
+
+
+ 门店信息
+
+
+ 查看更多
+
+
- {{store.storeName}}
- {{store.address}}
+ {{store.storeName}}
+ {{store.address}}
@@ -62,8 +69,6 @@
-
@@ -95,7 +100,7 @@
threeTime: '',
menddesId: '',
pageNum: 1,
- pageSize: 10,
+ pageSize: 1,
isNoMoreData: false
}
},
@@ -123,7 +128,6 @@
}
},
onReachBottom() {
- this.getStoreListByCoupon();
},
methods: {
//我的卡券详情
@@ -162,7 +166,12 @@
address: e.address
})
},
-
+ //跳转门店
+ jumpstorelist() {
+ uni.navigateTo({
+ url: '../../../subPages/sotre-details-list/sotre-details-list?id=' + this.menddesId
+ })
+ },
/**
* 查询门店列表
*/
@@ -346,7 +355,8 @@
position: fixed;
bottom: 0px;
background-color: red;
- color: #FFFFFF;
+ color: #FFFFFF;
+ border-radius: 0px;
}
.czlq {
diff --git a/pages/goods/coupons-info-details/coupons-info-details.vue b/pages/goods/coupons-info-details/coupons-info-details.vue
index 9f7b8b5..6b06dad 100644
--- a/pages/goods/coupons-info-details/coupons-info-details.vue
+++ b/pages/goods/coupons-info-details/coupons-info-details.vue
@@ -216,6 +216,7 @@
bottom: 0px;
background-color: red;
color: #FFFFFF;
+ border-radius: 0px;
}
.czlq {
diff --git a/pages/goods/goods.vue b/pages/goods/goods.vue
index 808bf7f..6462245 100644
--- a/pages/goods/goods.vue
+++ b/pages/goods/goods.vue
@@ -139,8 +139,6 @@
return {
//控制渐变标题栏的参数
beforeHeaderzIndex: 11, //层级
- afterHeaderzIndex: 10, //层级
- beforeHeaderOpacity: 1, //不透明度
afterHeaderOpacity: 0, //不透明度
//是否显示返回按钮
// #ifndef MP
@@ -152,14 +150,8 @@
//轮播图下标
currentSwiper: 0,
anchorlist: [], //导航条锚点
- selectAnchor: 0, //选中锚点
- serviceClass: '', //服务弹窗css类,控制开关动画
- specClass: '', //规格弹窗css类,控制开关动画
- shareClass: '', //分享弹窗css类,控制开关动画
// 商品信息
goodsData: "",
- selectSpec: null, //选中规格
- isKeep: false, //收藏
//商品描述html
desid: '',
imageUrl: app.globalData.imgUrl,
@@ -258,29 +250,6 @@
swiperChange(event) {
this.currentSwiper = event.detail.current;
},
- hideShare() {
- this.shareClass = 'hide';
- setTimeout(() => {
- this.shareClass = 'none';
- }, 150);
- },
- //收藏
- keep() {
- this.isKeep = this.isKeep ? false : true;
- },
- // 加入购物车
- joinCart() {
- if (this.selectSpec == null) {
- return this.showSpec(() => {
- uni.showToast({
- title: "已加入购物车"
- });
- });
- }
- uni.showToast({
- title: "已加入购物车"
- });
- },
//获取登陆信息
getuserinfo() {
let that = this;
@@ -363,100 +332,10 @@
})
},
- //跳转评论列表
- showComments(goodsid) {
-
- },
- //选择规格
- setSelectSpec(index) {
- this.selectSpec = index;
- },
- //减少数量
- sub() {
- if (this.goodsData.number <= 1) {
- return;
- }
- this.goodsData.number--;
- },
- //增加数量
- add() {
- this.goodsData.number++;
- },
- //跳转锚点
- toAnchor(index) {
- this.selectAnchor = index;
- uni.pageScrollTo({
- scrollTop: this.anchorlist[index].top,
- duration: 200
- });
- },
- //计算锚点高度
- calcAnchor() {
- this.anchorlist = [{
- name: '主图',
- top: 0
- },
- {
- name: '评价',
- top: 0
- },
- {
- name: '详情',
- top: 0
- }
- ]
- let commentsView = uni.createSelectorQuery().select("#comments");
- commentsView.boundingClientRect((data) => {
- let statusbarHeight = 0;
- //APP内还要计算状态栏高度
- // #ifdef APP-PLUS
- statusbarHeight = plus.navigator.getStatusbarHeight()
- // #endif
- let headerHeight = uni.upx2px(100);
- this.anchorlist[1].top = data.top - headerHeight - statusbarHeight;
- this.anchorlist[2].top = data.bottom - headerHeight - statusbarHeight;
-
- }).exec();
- },
//返回上一页
back() {
uni.navigateBack();
},
- //服务弹窗
- showService() {
- console.log('show');
- this.serviceClass = 'show';
- },
- //关闭服务弹窗
- hideService() {
- this.serviceClass = 'hide';
- setTimeout(() => {
- this.serviceClass = 'none';
- }, 200);
- },
- //规格弹窗
- showSpec(fun) {
- console.log('show');
- this.specClass = 'show';
- this.specCallback = fun;
- },
- specCallback() {
- return;
- },
- //关闭规格弹窗
- hideSpec() {
- this.specClass = 'hide';
- //回调
-
- this.selectSpec && this.specCallback && this.specCallback();
- this.specCallback = false;
- setTimeout(() => {
- this.specClass = 'none';
- }, 200);
- },
- discard() {
- //丢弃
- }
}
};
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 65f7e8b..291068a 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -9,12 +9,12 @@
-
+
-
+
登 录
diff --git a/pages/login/loginInvalid/loginInvalid.vue b/pages/login/loginInvalid/loginInvalid.vue
deleted file mode 100644
index 8183fd0..0000000
--- a/pages/login/loginInvalid/loginInvalid.vue
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/pages/order/confirmation.vue b/pages/order/confirmation.vue
index 0bcbf0e..f418e69 100644
--- a/pages/order/confirmation.vue
+++ b/pages/order/confirmation.vue
@@ -7,16 +7,27 @@
{{couponList.couponName}}
规格: 默认
-
+
+ ¥{{couponList.salesPrice}}
+
+
+ {{couponList.salesPrice * 100}}
+
+ x1
+
+
¥{{couponList.discountPrice}}
{{couponList.discountPrice*100}}
-
+
+
¥{{couponList.salesPrice}}
-
+
{{couponList.salesPrice*100}}
@@ -29,10 +40,21 @@
商品总额
-
+
+ ¥{{couponList.salesPrice}}
+
+
+
+ {{couponList.salesPrice*100}}
+
+
¥{{couponList.discountPrice}}
-
+
{{couponList.discountPrice*100}}
@@ -204,7 +226,9 @@
orderId: '',
jumpType: '',
tongCardPrice: 0,
- storeId: ''
+ storeId: '',
+ isDiscont: false,
+ coupondiscountid:''
};
},
@@ -284,37 +308,32 @@
showPopup() {
this.$refs.popup.show();
},
-
radioChanges(item) {
- if (this.memDiscountId == item.id) { // 如果已经选中,则取消选中
- this.memDiscountId = '';
+ if (this.memDiscountId == item.highDiscount.id) { // 如果已经选中,则取消选中
+ this.memDiscountId = '';
+ this.coupondiscountid = '';
this.paytheprice = this.couponList.discountPrice;
this.deductionPrice = '0.00';
+ this.isDiscont = false;
} else { // 否则进行选中赋值
- this.memDiscountId = item.id;
+ this.isDiscont = true;
+ this.memDiscountId = item.highDiscount.id;
+ this.coupondiscountid = item.id;
if (item.highDiscount.discountType == 1) {
- if (this.couponList.salesPrice > item.highDiscount.discountPrice) {
- //满减价格
- this.deductionPrice = item.highDiscount.discountPrice;
- this.paytheprice = (((this.couponList.salesPrice * 100) - (this.deductionPrice * 100)) /
- 100);
- } else {
- uni.showToast({
- title: '未满足满减条件',
- icon: 'none',
- duration: 2000
- })
- }
+ //满减价格
+ this.deductionPrice = item.highDiscount.discountPrice;
+ this.paytheprice = this.couponList.salesPrice - this.deductionPrice;
} else if (item.highDiscount.discountType == 2) {
//抵扣价格
this.deductionPrice = item.highDiscount.discountPrice;
- this.paytheprice = (((this.couponList.salesPrice * 100) - (this.deductionPrice * 100)) / 100);
+ this.paytheprice = this.couponList.salesPrice - this.deductionPrice;
} else if (item.highDiscount.discountType == 3) {
// 打折
- this.deductionPrice = this.couponList.salesPrice - this.couponList.salesPrice * (
- item.highDiscount.discountPrice / 10);
- this.paytheprice = this.couponList.salesPrice * (item.highDiscount
- .discountPrice / 10);
+ this.deductionPrice = parseFloat(this.couponList.salesPrice - (this.couponList.salesPrice *
+ item
+ .highDiscount.discountPrice)).toFixed(2)
+ this.paytheprice = parseFloat(this.couponList.salesPrice * item.highDiscount.discountPrice)
+ .toFixed(2);
}
}
this.$refs.popup.hide();
@@ -403,7 +422,7 @@
this.storeId = app.globalData.storeid
}
let goods = {
- "memDiscountId": this.memDiscountId,
+ "memDiscountId": this.coupondiscountid,
"identificationCode": app.globalData.identificationCode,
"highChildOrderList": [{
"goodsType": 1,
@@ -492,7 +511,8 @@
app.globalData.storeid = '';
app.globalData.storename = '';
uni.reLaunch({
- url: '../pay/success/success?id=' + that.couponId
+ url: '../pay/success/success?id=' + that
+ .couponId
});
},
fail: function(err) {
@@ -516,6 +536,21 @@
}
})
} else if (that.paytype == 'jinbi') {
+ if (that.user.gold < that.paytheprice * 100) {
+ uni.showToast({
+ icon: 'none',
+ title: '积分不足',
+ duration: 2000,
+ success() {
+ setTimeout(() => {
+ uni.navigateTo({
+ url: '../user/deposit/deposit'
+ })
+ }, 1000)
+ }
+ });
+ return;
+ }
if (!that.user.isSetPayPwd) {
uni.navigateTo({
url: '../login/updatePas/updatePas'
@@ -524,6 +559,14 @@
}
that.$refs.paymentPassword.modalFun('show');
} else if (that.paytype == 'gonghuika') {
+ if (that.tongCardPrice < that.paytheprice) {
+ uni.showToast({
+ icon: 'none',
+ title: '工会卡余额不足',
+ duration: 2000,
+ });
+ return;
+ }
if (!that.user.isSetPayPwd) {
uni.navigateTo({
url: '../login/updatePas/updatePas'
diff --git a/pages/pay/payment/payment.vue b/pages/pay/payment/payment.vue
index 4ec5de9..42f0118 100644
--- a/pages/pay/payment/payment.vue
+++ b/pages/pay/payment/payment.vue
@@ -20,7 +20,7 @@
-
+
积分支付(积分:{{user.gold}})
@@ -96,7 +96,7 @@
jumpType: '',
PaymentPassword: '',
tongCardPrice: 0,
- goodsType:''
+ goodsType: ''
};
},
onLoad(e) {
@@ -115,7 +115,7 @@
this.amount = parseFloat(e.amount).toFixed(2);
},
onShow() {
- let that = this;
+ let that = this;
that.user = app.globalData.userInfo;
that.getHuiLianTongCardBalance();
},
@@ -209,6 +209,21 @@
}
})
} else if (that.paytype == 'jinbi') {
+ if (that.user.gold < that.amount * 100) {
+ uni.showToast({
+ icon: 'none',
+ title: '积分不足',
+ duration: 2000,
+ success() {
+ setTimeout(() => {
+ uni.navigateTo({
+ url:'../../user/deposit/deposit'
+ })
+ }, 1000)
+ }
+ });
+ return;
+ }
if (!that.user.isSetPayPwd) {
uni.navigateTo({
url: '../../login/updatePas/updatePas'
@@ -217,6 +232,14 @@
}
that.$refs.paymentPassword.modalFun('show');
} else if (that.paytype == 'gonghuika') {
+ if (that.tongCardPrice < that.amount) {
+ uni.showToast({
+ icon: 'none',
+ title: '工会卡余额不足',
+ duration: 2000,
+ });
+ return;
+ }
if (!that.user.isSetPayPwd) {
uni.navigateTo({
url: '../../login/updatePas/updatePas'
diff --git a/pages/pay/success/success.vue b/pages/pay/success/success.vue
index 9134df2..8a45d77 100644
--- a/pages/pay/success/success.vue
+++ b/pages/pay/success/success.vue
@@ -10,7 +10,8 @@
-
+
+
{{couponDesInfo.couponInfo.couponName}}
@@ -26,28 +27,30 @@
视频教程
-
+
+
-
-
- 预约订单已成功 门店会在24小时内联系您
- 请出示核销码(商户扫客户)
- 请告知加油员用码商支付
+
+
+ 预约订单已成功
+ 门店会在24小时内联系您
+
+ 请出示核销码(商户扫客户)
+
+ 请告知加油员用码商支付
二维码生效中,前往个人中心查看
-
+
{{store.distance}}km
+ -->
+
+
+
+ 门店信息
+
+ 查看更多
+
-
+
+
+
+ {{store.storeName}}
+ {{store.address}}
+
+
+
+
+ {{store.distance}}km
+
+
+
+
+
-
+
@@ -101,7 +128,7 @@
twoTime: '',
threeTime: '',
pageNum: 1,
- pageSize: 10,
+ pageSize: 1,
isNoMoreData: false
}
},
@@ -129,7 +156,7 @@
}
},
onReachBottom() {
- this.getStoreListByCoupon();
+ // this.getStoreListByCoupon();
},
methods: {
//我的卡券详情
@@ -144,7 +171,7 @@
if (res.return_code == '000000') {
uni.hideLoading();
this.couponDesInfo = res.return_data;
- if(res.return_data.couponInfo.couponSource == 4){
+ if (res.return_data.couponInfo.couponSource == 4) {
this.oneTime = res.return_data.highUserCoupon.createTime;
this.twoTime = res.return_data.highUserCoupon.useEndTime;
this.threeTime = res.return_data.highUserCoupon.consumeTime;
@@ -179,10 +206,16 @@
});
},
//跳转抽奖活动
- jumpcjhuod(){
+ jumpcjhuod() {
this.closePopup();
uni.reLaunch({
- url:'../../../subPages/lottery/lottery?id='+this.couDesId
+ url: '../../../subPages/lottery/lottery?id=' + this.couDesId
+ })
+ },
+ //跳转门店
+ jumpstorelist() {
+ uni.navigateTo({
+ url: '../../../subPages/sotre-details-list/sotre-details-list?id=' + this.couDesId
})
},
//导航
@@ -246,8 +279,11 @@
}
diff --git a/pages/tabBar/category/category.vue b/pages/tabBar/category/category.vue
index 23c3ee4..aef54a5 100644
--- a/pages/tabBar/category/category.vue
+++ b/pages/tabBar/category/category.vue
@@ -62,6 +62,9 @@
+
+
+
diff --git a/subPages/coupon-comfirmation-success/coupon-comfirmation-success.vue b/subPages/coupon-comfirmation-success/coupon-comfirmation-success.vue
new file mode 100644
index 0000000..acb03cd
--- /dev/null
+++ b/subPages/coupon-comfirmation-success/coupon-comfirmation-success.vue
@@ -0,0 +1,35 @@
+
+
+
+ 支付成功
+ 查看我的优惠券
+
+
+
+
+
+
diff --git a/subPages/coupon-comfirmation/coupon-comfirmation.vue b/subPages/coupon-comfirmation/coupon-comfirmation.vue
new file mode 100644
index 0000000..557140c
--- /dev/null
+++ b/subPages/coupon-comfirmation/coupon-comfirmation.vue
@@ -0,0 +1,908 @@
+
+
+
+
+
+
+
+ {{couponList.packageDetail.title}}
+ 规格: 默认
+
+ ¥{{couponList.packageDetail.price}}
+ x1
+
+
+
+
+
+
+ 商品总额
+
+
+ ¥{{couponList.packageDetail.price}}
+
+
+
+
+
+
+
+ 支付方式
+
+
+
+
+
+ 积分支付可用积分: {{user.gold}}
+
+
+
+
+
+
+
+
+ 微信支付
+
+
+
+
+
+
+
+
+ 汇联通工会卡可用余额: {{tongCardPrice}}元
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/subPages/coupon-package/coupon-package.vue b/subPages/coupon-package/coupon-package.vue
new file mode 100644
index 0000000..f460418
--- /dev/null
+++ b/subPages/coupon-package/coupon-package.vue
@@ -0,0 +1,280 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{row.title}}
+ 限购{{row.purchaseNum}}件
+
+
+
+ ¥ {{row.price}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/subPages/coupon-packge-details/coupon-packge-details.vue b/subPages/coupon-packge-details/coupon-packge-details.vue
new file mode 100644
index 0000000..f1f9991
--- /dev/null
+++ b/subPages/coupon-packge-details/coupon-packge-details.vue
@@ -0,0 +1,988 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{currentSwiper+1}}/{{swiperList.length}}
+
+
+
+ ¥{{goodsData.packageDetail.price}}
+
+
+ 限购{{goodsData.packageDetail.purchaseNum}}件
+
+
+
+
+
+
+ {{goodsData.packageDetail.title}}
+
+
+ 库存:{{goodsData.packageDetail.totalStock}}件
+
+
+
+
+
+ 优惠券包
+
+
+
+
+
+
+
+ ———— 商品详情 ————
+
+
+
+
+
+
+ 优惠券包
+
+
+
+ {{ product.discountDetail.discountName}}
+ 数量: x{{product.num}}
+
+
+
+
+
+
+
+
+
diff --git a/subPages/recharge-centre/recharge-centre.vue b/subPages/recharge-centre/recharge-centre.vue
index 33045e1..475c0a2 100644
--- a/subPages/recharge-centre/recharge-centre.vue
+++ b/subPages/recharge-centre/recharge-centre.vue
@@ -15,7 +15,8 @@
- {{item.price}}元
+ {{item.price}}元
+ 已售空
@@ -84,7 +85,8 @@
amoutType: '',
codesVlues: '',
amountList: [],
- price: ''
+ price: '',
+ amoutstatus:''
}
},
onLoad(options) {
@@ -120,7 +122,8 @@
select(amoutinfos) {
this.inputAmount = amoutinfos.realPrice;
this.price = amoutinfos.price;
- this.inputAmountId = amoutinfos.id;
+ this.inputAmountId = amoutinfos.id;
+ this.amoutstatus = amoutinfos.status;
},
/**
@@ -145,17 +148,27 @@
* 提交订单
*/
addOrderPay() {
- let that = this;
+ let that = this;
+ if(that.amoutstatus == 2){
+ uni.showToast({
+ title: '当前面值已售空',
+ duration:2000,
+ icon: "none"
+ });
+ return;
+ }
if (that.inputPhone == '') {
uni.showToast({
- title: '请输入充值号码',
+ title: '请输入充值号码',
+ duration:2000,
icon: "none"
});
return;
}
if (that.inputAmount == '') {
uni.showToast({
- title: '请选择价格',
+ title: '请选择价格',
+ duration:2000,
icon: "none"
});
return false;
@@ -305,7 +318,8 @@
width: 94%;
margin-left: 3%;
display: flow-root;
- justify-content: space-between;
+ justify-content: space-between;
+ align-items: center;
padding: 20upx 0;
.box {
@@ -315,7 +329,8 @@
margin-top: 20upx;
float: left;
height: 120upx;
- line-height: 120upx;
+ // line-height: 120upx;
+ display: inline-grid;
justify-content: center;
align-items: center;
text-align: center;
diff --git a/subPages/sotre-details-list/sotre-details-list.vue b/subPages/sotre-details-list/sotre-details-list.vue
new file mode 100644
index 0000000..f51c212
--- /dev/null
+++ b/subPages/sotre-details-list/sotre-details-list.vue
@@ -0,0 +1,95 @@
+
+
+
+
+ {{store.storeName}}
+ {{store.address}}
+
+
+
+
+ {{store.distance}}km
+
+
+
+
+
+
+
+
diff --git a/subPages/static/coupsucces.png b/subPages/static/coupsucces.png
new file mode 100644
index 0000000..81cc999
Binary files /dev/null and b/subPages/static/coupsucces.png differ
diff --git a/subPages/static/phone.png b/subPages/static/phone.png
new file mode 100644
index 0000000..d63a2b7
Binary files /dev/null and b/subPages/static/phone.png differ
diff --git a/subPages/unionComfirmation/unionComfirmation.vue b/subPages/unionComfirmation/unionComfirmation.vue
index ea6e16a..38767c1 100644
--- a/subPages/unionComfirmation/unionComfirmation.vue
+++ b/subPages/unionComfirmation/unionComfirmation.vue
@@ -107,14 +107,17 @@
优惠券选择
-
-
-
-
+
+
+
+ {{items.discountName}}
+ 有效期至:{{items.useEndTime | timeFormat('yyyy-mm-dd')}}
+
+
+
+
+
- {{items.discountName}}
- 有效期至:{{items.useEndTime | timeFormat('yyyy-mm-dd')}}
-
@@ -221,7 +224,7 @@
//查询优惠券
getUserOrderPreList() {
let params = {
- usingAttribution: 1
+ useScope: 3
}
getUserOrderPreList(params).then(res => {
if (res.return_code == '000000') {
@@ -253,7 +256,7 @@
})
},
radioChanges(item) {
- this.paytheprice = this.saveprice;
+ this.paytheprice = this.orderPrice;
if (this.memDiscountId == item.id) { // 如果已经选中,则取消选中
this.memDiscountId = '';
this.payPrice = this.saveprice;
@@ -261,27 +264,19 @@
} else { // 否则进行选中赋值
this.memDiscountId = item.id;
if (item.discountType == 1) {
- if (this.paytheprice > item.discountPrice) {
- //满减价格
- this.deductionPrice = item.discountPrice;
- this.payPrice = (((this.paytheprice * 100) - (this.deductionPrice * 100)) /
- 100);
- } else {
- uni.showToast({
- title: '未满足满减条件',
- icon: 'none',
- duration: 2000
- })
- }
+ //满减价格
+ this.deductionPrice = item.discountPrice;
+ this.payPrice = this.paytheprice- this.deductionPrice;
+
} else if (item.discountType == 2) {
//抵扣价格
this.deductionPrice = item.discountPrice;
- this.payPrice = (((this.paytheprice * 100) - (this.deductionPrice * 100)) / 100);
+ this.payPrice = this.paytheprice - this.deductionPrice;
} else if (item.discountType == 3) {
// 打折
- this.deductionPrice = this.paytheprice - this.paytheprice * (
- item.discountPrice / 10);
- this.payPrice = this.paytheprice * (item.discountPrice / 10);
+ this.deductionPrice = parseFloat(this.paytheprice - (this.paytheprice * item.discountPrice))
+ .toFixed(2);
+ this.payPrice = parseFloat(this.paytheprice * item.discountPrice).toFixed(2)
}
}
this.$refs.popup.hide();
@@ -333,7 +328,8 @@
uni.showLoading({
title: '提交订单中...'
})
- let params = {
+ let params = {
+ "memDiscountId": this.memDiscountId,
"orderPrice": this.orderPrice,
"payPrice": this.payPrice,
"rechargeContent": this.rechargeContent,
@@ -405,8 +401,12 @@
uni.showToast({
title: '支付成功'
})
- uni.switchTab({
- url: '../../pages/tabBar/user/user'
+ // uni.switchTab({
+ // url: '../../pages/tabBar/user/user'
+ // })
+ uni.reLaunch({
+ url: '../Phone-recharge-details/Phone-recharge-details?id=' +
+ that.orderId
})
},
fail: function(err) {
@@ -492,8 +492,9 @@
uni.showToast({
title: '支付成功'
})
- uni.switchTab({
- url: '../../pages/tabBar/user/user'
+ uni.reLaunch({
+ url: '../Phone-recharge-details/Phone-recharge-details?id=' +
+ this.orderId
})
return;
}
@@ -541,6 +542,7 @@
},
payRequest: function(self) {
+ let that = this;
uni.showLoading({
title: '支付中...'
})
@@ -573,15 +575,10 @@
uni.showToast({
title: '支付成功'
})
- if (that.jumpType == 4) {
- uni.reLaunch({
- url: '/pages/tabBar/user/user'
- });
- } else {
- uni.reLaunch({
- url: '../success/success?id=' + that.couponId
- });
- }
+ uni.reLaunch({
+ url: '../Phone-recharge-details/Phone-recharge-details?id=' +
+ that.orderId
+ })
},
cancel: function(r) {},
fail: function(res) {}
@@ -628,11 +625,7 @@
}
.yhprice {
- width: 100%;
- height: 25px;
- text-align: right;
margin-top: -30px;
- margin-left: 50px;
}
.price-number {
@@ -713,10 +706,9 @@
box-shadow: 0rpx 0rpx 10rpx rgba(0, 0, 0, 0.2);
border: 1px solid #f6f6f6;
border-radius: 8px;
- align-items: center;
- display: flex;
image {
+ float: left;
width: 170rpx;
max-height: 170rpx;
margin-left: 10px;
@@ -727,6 +719,10 @@
margin-left: 20rpx;
}
+ .contrig {
+ margin-left: 180rpx;
+ }
+
.info {
display: flex;
justify-content: space-between;
diff --git a/subPages/unionPay-orderList/unionPay-orderList.vue b/subPages/unionPay-orderList/unionPay-orderList.vue
index 57b4f16..ef1f32b 100644
--- a/subPages/unionPay-orderList/unionPay-orderList.vue
+++ b/subPages/unionPay-orderList/unionPay-orderList.vue
@@ -69,8 +69,8 @@
1: '等待付款',
2: '订单已支付',
3: '订单已完成',
- 5: '订单已取消',
- 4: '订单已退款'
+ 4: '订单已取消',
+ 5: '订单已退款'
},
// 退换货
orderType: ['全部', '待支付', '已支付', '已完成', '已取消', '已退款'],
diff --git a/uni.scss b/uni.scss
index b3e09b1..5462e4d 100644
--- a/uni.scss
+++ b/uni.scss
@@ -117,8 +117,13 @@ $uni-font-size-paragraph:30upx;
.font28 {
font-size: 28px;
+}
+
+.font48 {
+ font-size: 48px;
}
+
// 字体加粗
.fontwig6{
font-weight: bold;
@@ -317,6 +322,16 @@ $uni-font-size-paragraph:30upx;
width: 60%;
margin-left: 20%;
}
+
+.width40w {
+ width: 40%;
+ margin-left: 30%;
+}
+
+.width20w {
+ width: 20%;
+ margin-left: 40%;
+}
.width35 {
width: 35%;
@@ -626,6 +641,11 @@ $uni-font-size-paragraph:30upx;
.line1 {
height: 1px;
background-color: #f4f4f4;
+}
+
+.linec6 {
+ height: 1px;
+ background-color: #f1f1f1;
}
.line10 {