diff --git a/App.vue b/App.vue
index 48a6792..7cb8b06 100644
--- a/App.vue
+++ b/App.vue
@@ -15,7 +15,8 @@
// imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
// imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
userInfo: "",
- brestUserInfo : '',
+ brestUserInfo : '',
+ bresthighAgent:'',
openId: '',
code: '',
token: '',
diff --git a/Utils/Api.js b/Utils/Api.js
index 2e4bb98..1476a3d 100644
--- a/Utils/Api.js
+++ b/Utils/Api.js
@@ -412,10 +412,37 @@ export const getAgentSalesPriceCount = params => {
export const sendUserPass = params => {
return POSTBREST('POST', `${brestBase}/secUser/sendUserPass`, params).then(res => res.data);
}
-
-
-
-
+
+//增加子代理商
+export const insertChildAgent = params => {
+ return POSTBREST('POST', `${brestBase}/highAgent/insertChildAgent`, params).then(res => res.data);
+}
+
+//变更代理商状态
+export const changeAgentStatus = params => {
+ return POSTBREST('GET', `${brestBase}/highAgent/changeAgentStatus`, params).then(res => res.data);
+}
+
+//查询子级代理商列表
+export const getChildAgentList = params => {
+ return POSTBREST('GET', `${brestBase}/highAgent/getChildAgentList`, params).then(res => res.data);
+}
+
+//分发给子代理商
+export const assignCouponChildAgent = params => {
+ return POSTBREST('POST', `${brestBase}/highCouponAgent/assignCouponChildAgent`, params).then(res => res.data);
+}
+
+//根据代理商 查询卡券
+export const getCouponByAgent = params => {
+ return POSTBREST('GET', `${brestBase}/highCouponAgent/getCouponByAgent`, params).then(res => res.data);
+}
+
+//根据卡券与代理商关系 查询分发记录
+export const getRecordByCouponAgentId = params => {
+ return POSTBREST('GET', `${brestBase}/highCouponAgent/getRecordByCouponAgentId`, params).then(res => res.data);
+}
+
// 话费
diff --git a/components/cartcontrol.vue b/components/cartcontrol.vue
new file mode 100644
index 0000000..0764f6d
--- /dev/null
+++ b/components/cartcontrol.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/shopcart.vue b/components/shopcart.vue
new file mode 100644
index 0000000..7467260
--- /dev/null
+++ b/components/shopcart.vue
@@ -0,0 +1,303 @@
+
+
+
+
+
+
+ {{getAllCount}}
+
+
+
+
+ ¥{{getAllPrice}}
+ 免配送费|支持自取
+
+
+ 选好了
+
+
+
+
+
+
+ 已选餐品
+
+ 清空
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+ ¥{{item.price}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages.json b/pages.json
index da2b650..a2b3e10 100644
--- a/pages.json
+++ b/pages.json
@@ -461,7 +461,8 @@
"navigationBarTextStyle": "white"
}
}
- ],
+
+ ],
"subpackages": [{
"root": "subPages",
"pages": [{
@@ -681,44 +682,133 @@
"navigationBarTextStyle": "white"
}
+ }, {
+ "path": "agenthome/agenthome",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "代理商",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
+ }, {
+ "path": "agentmanage/agentmanage",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "代理商管理",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
+ }, {
+ "path": "addAgent/addAgent",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "添加代理商",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
+ }, {
+ "path": "agentDistribution/agentDistribution",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "分销代理商",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
+ }, {
+ "path": "agentCardList/agentCardList",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "分发卡券列表",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+ }, {
+ "path": "agentcardsDetails/agentcardsDetails",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "分发记录",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
+ "navigationBarTextStyle": "white"
+ }
+
}
]
}, {
"root": "qianzhu-KFC",
"pages": [{
- "path" : "home/home",
- "style" :
- {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "肯德基",
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black"
- }
-
- },{
- "path" : "address/address",
- "style" :
- {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "肯德基在线点餐",
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black"
- }
-
- },{
- "path" : "update-address/update-address",
- "style" :
- {
- "enablePullDownRefresh": false,
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#ffffff",
- "navigationBarTextStyle": "black"
- }
-
- }
- ]
+ "path": "home/home",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "肯德基",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#ffffff",
+ "navigationBarTextStyle": "black"
+ }
+
+ }, {
+ "path": "address/address",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationBarTitleText": "肯德基在线点餐",
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#ffffff",
+ "navigationBarTextStyle": "black"
+ }
+
+ }, {
+ "path": "update-address/update-address",
+ "style": {
+ "enablePullDownRefresh": false,
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#ffffff",
+ "navigationBarTextStyle": "black"
+ }
+
+ }, {
+ "path": "buffet-order/buffet-order",
+ "style": {
+ "navigationBarTitleText": "选择餐厅",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "menu-list/menu-list",
+ "style": {
+ "navigationBarTitleText": "菜单",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "confirmOrder/confirmOrder",
+ "style": {
+ "navigationBarTitleText": "肯德基在线点餐",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "order-details/order-details",
+ "style": {
+ "navigationBarTitleText": "订单详情",
+ "enablePullDownRefresh": false
+ }
+
+ }]
}],
"globalStyle": {
"navigationBarTextStyle": "black",
diff --git a/pages/goods/coupons-info-details/coupons-info-details.vue b/pages/goods/coupons-info-details/coupons-info-details.vue
index 522400d..f1b7fdc 100644
--- a/pages/goods/coupons-info-details/coupons-info-details.vue
+++ b/pages/goods/coupons-info-details/coupons-info-details.vue
@@ -23,8 +23,8 @@
备注:{{couponDesInfo.couponAgentCode.remark}}
-
-
+
+
加油站点:{{couponDesInfo.couponCode.storeName}}
@@ -113,10 +113,12 @@
uni.hideLoading()
if (res.return_code == '000000') {
this.couponDesInfo = res.return_data;
- if (res.return_data.couponInfo.couponSource != 4 && res.return_data.couponCode) {
- this.oneTime = res.return_data.couponCode.receiveTime;
- this.twoTime = res.return_data.couponCode.useEndTime;
- this.threeTime = res.return_data.couponCode.consumeTime;
+ if (res.return_data.couponInfo.couponSource != 4) {
+ if(res.return_data.couponCode != null){
+ this.oneTime = res.return_data.couponCode.receiveTime;
+ this.twoTime = res.return_data.couponCode.useEndTime;
+ this.threeTime = res.return_data.couponCode.consumeTime;
+ }
return;
}
this.oneTime = res.return_data.couponCodeOther.activeTime;
diff --git a/pages/login/login.vue b/pages/login/login.vue
index eb0334c..0e0d340 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -181,10 +181,12 @@
})
} else {
uni.navigateTo({
- url: '/pages/user/minePromotion/minePromotion'
+ // url: '/pages/user/minePromotion/minePromotion'
+ url:'/subPages/agenthome/agenthome'
})
}
- app.globalData.brestUserInfo = res.return_data.object.secUser;
+ app.globalData.brestUserInfo = res.return_data.object.secUser;
+ app.globalData.bresthighAgent = res.return_data.object.highAgent;
app.globalData.brestToken = res.return_data.uniqueCode;
} else {
uni.hideLoading();
diff --git a/pages/login/resetpasswd.vue b/pages/login/resetpasswd.vue
index 0a74c7f..a51228e 100644
--- a/pages/login/resetpasswd.vue
+++ b/pages/login/resetpasswd.vue
@@ -1,168 +1,147 @@
-
+
-
+
+
-
+
-
+
-
+
重置密码
-
+
+
+
diff --git a/qianzhu-KFC/confirmOrder/confirmOrder.vue b/qianzhu-KFC/confirmOrder/confirmOrder.vue
new file mode 100644
index 0000000..ac0584c
--- /dev/null
+++ b/qianzhu-KFC/confirmOrder/confirmOrder.vue
@@ -0,0 +1,125 @@
+
+
+
+
+ 时代天街
+
+ 时代天街时代天街时代天街时代天街
+
+
+ 注:约5分钟后取餐,请尽快到餐厅取餐哦
+
+
+
+
+ 餐品详情
+
+
+
+
+
+
+
+ 香辣鸡腿堡
+ x1
+
+ ¥16.8
+ ¥17.8
+
+
+
+ 共 1 件 小计: ¥16.8
+
+
+
+
+
+
+ 联系电话
+ 15583658692
+
+ 经用于接收取餐码,请正确填写
+
+
+
+
+ 就餐方式
+
+
+
+
+ 店内就餐
+
+
+
+ 打包带走
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/qianzhu-KFC/home/home.vue b/qianzhu-KFC/home/home.vue
index fc82781..4ae60b5 100644
--- a/qianzhu-KFC/home/home.vue
+++ b/qianzhu-KFC/home/home.vue
@@ -6,7 +6,7 @@
KFC在线点餐
5折起
-
+
立即点餐(堂食/外带)
@@ -33,7 +33,14 @@
}
},
- methods: {
+ methods: {
+ //跳转自助点餐
+ jumpbuffert(){
+ uni.navigateTo({
+ url:'../buffet-order/buffet-order'
+ })
+ },
+ //跳转外卖
jumpaddress() {
uni.navigateTo({
url: '../address/address'
diff --git a/qianzhu-KFC/menu-list/menu-list.vue b/qianzhu-KFC/menu-list/menu-list.vue
new file mode 100644
index 0000000..b4022a1
--- /dev/null
+++ b/qianzhu-KFC/menu-list/menu-list.vue
@@ -0,0 +1,824 @@
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+ 香辣鸡腿堡
+
+
+
+
+
+
+ ¥16.8
+
+ 已减¥1.7元
+ 原价¥18.5
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/qianzhu-KFC/order-details/order-details.vue b/qianzhu-KFC/order-details/order-details.vue
new file mode 100644
index 0000000..c3dc09f
--- /dev/null
+++ b/qianzhu-KFC/order-details/order-details.vue
@@ -0,0 +1,156 @@
+
+
+
+
+
+ 待支付
+ 若超时未支付,订单将自动取消
+ 立即支付
+
+
+
+
+
+ 餐品明细
+
+
+
+
+
+
+
+ 香辣鸡腿堡
+ x1
+
+ ¥16.8
+ ¥17.8
+
+
+
+ 共 1 件 小计: ¥16.8
+
+
+
+
+
+
+ 订单信息
+
+
+ 取餐门店
+ 时代天街时代天街时代天街时代天街
+
+
+ 订单号
+ 2901012002828228288482828
+
+
+ 就餐方式
+ 店内就餐
+
+
+ 支付方式
+ 未支付
+
+
+ 联系方式
+ 15583253627
+
+
+
+ 取消订单
+ 联系客服
+
+
+
+
+
+
+
+
diff --git a/qianzhu-KFC/static/imgs/buffstu.png b/qianzhu-KFC/static/imgs/buffstu.png
new file mode 100644
index 0000000..1395bad
Binary files /dev/null and b/qianzhu-KFC/static/imgs/buffstu.png differ
diff --git a/qianzhu-KFC/static/imgs/collection.png b/qianzhu-KFC/static/imgs/collection.png
new file mode 100644
index 0000000..73409d6
Binary files /dev/null and b/qianzhu-KFC/static/imgs/collection.png differ
diff --git a/qianzhu-KFC/static/imgs/kfcicon.png b/qianzhu-KFC/static/imgs/kfcicon.png
new file mode 100644
index 0000000..8b73313
Binary files /dev/null and b/qianzhu-KFC/static/imgs/kfcicon.png differ
diff --git a/qianzhu-KFC/static/imgs/location.png b/qianzhu-KFC/static/imgs/location.png
new file mode 100644
index 0000000..d424e06
Binary files /dev/null and b/qianzhu-KFC/static/imgs/location.png differ
diff --git a/qianzhu-KFC/static/imgs/menu1.png b/qianzhu-KFC/static/imgs/menu1.png
new file mode 100644
index 0000000..2a8e7a9
Binary files /dev/null and b/qianzhu-KFC/static/imgs/menu1.png differ
diff --git a/qianzhu-KFC/static/imgs/menu2.png b/qianzhu-KFC/static/imgs/menu2.png
new file mode 100644
index 0000000..69b6e37
Binary files /dev/null and b/qianzhu-KFC/static/imgs/menu2.png differ
diff --git a/qianzhu-KFC/static/imgs/menu3.png b/qianzhu-KFC/static/imgs/menu3.png
new file mode 100644
index 0000000..4f6d0b1
Binary files /dev/null and b/qianzhu-KFC/static/imgs/menu3.png differ
diff --git a/qianzhu-KFC/static/imgs/nocollection.png b/qianzhu-KFC/static/imgs/nocollection.png
new file mode 100644
index 0000000..5b392e8
Binary files /dev/null and b/qianzhu-KFC/static/imgs/nocollection.png differ
diff --git a/qianzhu-KFC/static/imgs/plus.png b/qianzhu-KFC/static/imgs/plus.png
new file mode 100644
index 0000000..1276939
Binary files /dev/null and b/qianzhu-KFC/static/imgs/plus.png differ
diff --git a/qianzhu-KFC/static/imgs/prod1.png b/qianzhu-KFC/static/imgs/prod1.png
new file mode 100644
index 0000000..ba57bea
Binary files /dev/null and b/qianzhu-KFC/static/imgs/prod1.png differ
diff --git a/qianzhu-KFC/static/imgs/reduce.png b/qianzhu-KFC/static/imgs/reduce.png
new file mode 100644
index 0000000..792e593
Binary files /dev/null and b/qianzhu-KFC/static/imgs/reduce.png differ
diff --git a/qianzhu-KFC/static/imgs/shop.png b/qianzhu-KFC/static/imgs/shop.png
new file mode 100644
index 0000000..edf1b50
Binary files /dev/null and b/qianzhu-KFC/static/imgs/shop.png differ
diff --git a/subPages/addAgent/addAgent.vue b/subPages/addAgent/addAgent.vue
new file mode 100644
index 0000000..0ec8dee
--- /dev/null
+++ b/subPages/addAgent/addAgent.vue
@@ -0,0 +1,169 @@
+
+
+
+ 代理商名称
+
+
+
+ 手机号
+
+
+
+ 所在地址
+
+
+ 提 交
+
+
+
+
+
+
diff --git a/subPages/agentCardList/agentCardList.vue b/subPages/agentCardList/agentCardList.vue
new file mode 100644
index 0000000..3ab9f02
--- /dev/null
+++ b/subPages/agentCardList/agentCardList.vue
@@ -0,0 +1,71 @@
+
+
+
+ 卡券名称
+ 销售价格
+ 库存数量
+ 销售数量
+
+
+
+
+
+
+ {{item.couponName}}
+ {{item.salesPrice}}元
+ {{item.stockCount}}
+ {{item.salesCount}}
+
+
+
+
+
+
+
diff --git a/subPages/agentDistribution/agentDistribution.vue b/subPages/agentDistribution/agentDistribution.vue
new file mode 100644
index 0000000..c0c8cf8
--- /dev/null
+++ b/subPages/agentDistribution/agentDistribution.vue
@@ -0,0 +1,189 @@
+
+
+
+ 卡券选择
+
+ {{typeName}}
+
+
+
+
+ 库存数量
+
+
+
+ 分配数量
+
+
+ 分 发
+
+
+
+
+
+
diff --git a/subPages/agentcardsDetails/agentcardsDetails.vue b/subPages/agentcardsDetails/agentcardsDetails.vue
new file mode 100644
index 0000000..3a3f1bf
--- /dev/null
+++ b/subPages/agentcardsDetails/agentcardsDetails.vue
@@ -0,0 +1,82 @@
+
+
+
+ 卡券名称
+ 分发数量
+ 分发时间
+
+
+
+
+
+ {{item.couponName}}
+ {{item.stockCount}}
+ {{item.createTime | timeFormat('yyyy-mm-dd')}}
+ {{item.createTime | timeFormat('hh:mm')}}
+
+
+
+
+
+
+
diff --git a/subPages/agenthome/agenthome.vue b/subPages/agenthome/agenthome.vue
new file mode 100644
index 0000000..10ebf73
--- /dev/null
+++ b/subPages/agenthome/agenthome.vue
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
diff --git a/subPages/agentmanage/agentmanage.vue b/subPages/agentmanage/agentmanage.vue
new file mode 100644
index 0000000..455d382
--- /dev/null
+++ b/subPages/agentmanage/agentmanage.vue
@@ -0,0 +1,181 @@
+
+
+
+
+
+
+
+ {{item.agentName}}
+
+
+ {{item.agentPhone}}
+
+
+
+ 分发
+ 查看
+
+ 禁用
+
+ 解除
+
+
+
+
+
+
+
+
+
+
diff --git a/subPages/recharge-centre/recharge-centre.vue b/subPages/recharge-centre/recharge-centre.vue
index 244b67e..b1ac4d8 100644
--- a/subPages/recharge-centre/recharge-centre.vue
+++ b/subPages/recharge-centre/recharge-centre.vue
@@ -29,10 +29,10 @@
充值说明:
-
+
-
+
diff --git a/qianzhu-KFC/static/imgs/add.png b/subPages/static/add.png
similarity index 100%
rename from qianzhu-KFC/static/imgs/add.png
rename to subPages/static/add.png
diff --git a/subPages/static/agent1.png b/subPages/static/agent1.png
new file mode 100644
index 0000000..c0f44cd
Binary files /dev/null and b/subPages/static/agent1.png differ
diff --git a/subPages/static/agent2.png b/subPages/static/agent2.png
new file mode 100644
index 0000000..e037d8e
Binary files /dev/null and b/subPages/static/agent2.png differ
diff --git a/subPages/static/agent3.png b/subPages/static/agent3.png
new file mode 100644
index 0000000..11d05f6
Binary files /dev/null and b/subPages/static/agent3.png differ
diff --git a/uni.scss b/uni.scss
index 9e500d1..1915805 100644
--- a/uni.scss
+++ b/uni.scss
@@ -223,6 +223,10 @@ $uni-font-size-paragraph:30upx;
.fcoreb5 {
color: #eb5823;
+}
+
+.colorc3 {
+ color: #c32b21;
}
.fcorred{
@@ -243,11 +247,30 @@ $uni-font-size-paragraph:30upx;
/* 背景颜色 */
.backcor9 {
background-color: #f6f6f6;
+}
+
+.backcor99 {
+ background-color: #999999;
+}
+
+.backcor66 {
+ background-color: #666666;
+}
+
+.backcor33 {
+ background-color: #333333;
}
.backcolorb9 {
background-color: #b85958;
-}
+}
+.backcolor41{
+ background-color: #41cda2;
+}
+
+.backcolorred {
+ background-color: red;
+}
.backcolor32 {
background-color: #32649d;
@@ -257,10 +280,6 @@ $uni-font-size-paragraph:30upx;
background: linear-gradient(to right, #fe1a1a, #ff722e);
}
-.backcor9 {
- background-color: #f6f6f6;
-}
-
.backcorf06{
background-color: #0083f5;
}
@@ -311,8 +330,11 @@ $uni-font-size-paragraph:30upx;
.width80p {
width: 80%;
-}
+}
+.width90w {
+ width: 90%;
+}
.width70 {
width: 70%;
@@ -437,7 +459,9 @@ $uni-font-size-paragraph:30upx;
height: 80px;
}
-
+.height85 {
+ height: 85px;
+}
.height90 {
height: 90px;
@@ -573,8 +597,14 @@ $uni-font-size-paragraph:30upx;
.marb65 {
margin-bottom: 65px;
+}
+
+.marb80 {
+ margin-bottom: 80px;
+}
+.marb100 {
+ margin-bottom: 100px;
}
-
.marb50 {
margin-bottom: 50px;
}
@@ -769,3 +799,10 @@ $uni-font-size-paragraph:30upx;
align-items: center;
display: flex;
}
+.icon20 {
+ width: 20px;
+}
+
+.icon15 {
+ width: 15px;
+}
\ No newline at end of file