diff --git a/Utils/Api.js b/Utils/Api.js
index 6a2d23c..a5a7d9d 100644
--- a/Utils/Api.js
+++ b/Utils/Api.js
@@ -337,7 +337,12 @@ export const getCodeListByAgentCoupon = params => {
// 生成二维码
export const generateCode = params => {
return POSTBREST('POST', `${brestBase}/highCouponAgent/generateCode`, params).then(res => res.data);
-}
+}
+// 兑换码填写备注
+export const highremark = params => {
+ return POSTBREST('POST', `${brestBase}/highCouponAgent/remark`, params).then(res => res.data);
+}
+
// 查看二维码
export const getCodeById = params => {
return POSTBREST('GET', `${brestBase}/highCouponAgent/getCodeById`, params).then(res => res.data);
diff --git a/pages.json b/pages.json
index 14925eb..2e2af72 100644
--- a/pages.json
+++ b/pages.json
@@ -130,7 +130,6 @@
"navigationBarTitleText": "分类",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
- "navigationBarTextStyle": "white",
"app-plus": {
"titleNView": false, //禁用原生导航栏
"bounce": "none"
diff --git a/pages/goods/coupons-info-details/coupons-info-details.vue b/pages/goods/coupons-info-details/coupons-info-details.vue
index 6b06dad..c6c92b5 100644
--- a/pages/goods/coupons-info-details/coupons-info-details.vue
+++ b/pages/goods/coupons-info-details/coupons-info-details.vue
@@ -1,228 +1,237 @@
-
-
- 待使用
-
- 待销售
-
- 已使用
-
-
-
-
-
-
-
- {{couponDesInfo.couponInfo.couponName}}
-
- 出售时间:{{oneTime | formatDate('-')}}
-
- 使用有效期:{{twoTime | formatDate('-')}}
-
- 消费时间:{{threeTime | formatDate('-')}}
-
-
- 加油站点:{{couponDesInfo.couponCode.storeName}}
- 备注:{{couponDesInfo.couponAgentCode.remark}}
-
-
- 核销码(商户扫客户)
- 请告知加油员用码商支付
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/goods/goods-list/goods-list.vue b/pages/goods/goods-list/goods-list.vue
index 49aad80..a57e57f 100644
--- a/pages/goods/goods-list/goods-list.vue
+++ b/pages/goods/goods-list/goods-list.vue
@@ -34,13 +34,16 @@
{{ row.discountPrice*100}}
- ¥ {{ row.discountPrice*100}}
+ ¥ {{ row.discountPrice}}
-
- ¥{{ row.salesPrice*100}}
+
+
+ {{ row.salesPrice*100}}
+
+ ¥{{ row.salesPrice}}
@@ -80,15 +83,15 @@
pageSize: 10,
isNoMoreData: false,
typeId: '',
- couponName: '',
- brandid : '',
+ couponName: '',
+ brandid: '',
goodtyid: ''
};
},
onLoad: function(option) { //option为object类型,会序列化上个页面传递的参数
- this.typeId = option.id;
- this.brandid = option.brandId;
+ this.typeId = option.id;
+ this.brandid = option.brandId;
this.goodtyid = option.goodsId;
if (option.id == 1) {
uni.setNavigationBarTitle({
@@ -108,19 +111,19 @@
uni.setNavigationBarTitle({
title: '优选商品'
});
- this.getCmsContent('CMS_PRE_LIST');
- this.getBrandCouponList();
+ this.getCmsContent('CMS_PRE_LIST');
+ this.getBrandCouponList();
}
},
onPageScroll(e) {
},
//上拉加载,需要自己在page.json文件中配置"onReachBottomDistance"
- onReachBottom() {
- if(this.typeId == 3){
- this.getBrandCouponList();
- }else{
- this.getCouponListArea();
+ onReachBottom() {
+ if (this.typeId == 3) {
+ this.getBrandCouponList();
+ } else {
+ this.getCouponListArea();
}
},
methods: {
@@ -170,48 +173,48 @@
this.goodsList = [];
}
})
- },
- //优选商品列表
- getBrandCouponList() {
- uni.showLoading({
- title: '加载中...'
- })
- if (this.isNoMoreData) {
- uni.hideLoading()
- return false;
- }
- let pagenum = this.pageNum;
- let params = {
- regionId: app.globalData.cityId,
- pageNum: pagenum,
- pageSize: this.pageSize,
- brandId: this.brandid,
- goodsTypeId: this.goodtyid,
- couponName: this.couponName
- }
- getBrandCouponList(params).then(res => {
- uni.hideLoading();
- if (res.return_code == '000000') {
- this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true;
- this.goodsList = this.goodsList.concat(res.return_data.list);
- if (res.return_data.total == (this.pageNum * this.pageSize)) {
- this.isNoMoreData = true;
- }
- this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum;
- } else {
- this.goodsList = [];
- }
- })
+ },
+ //优选商品列表
+ getBrandCouponList() {
+ uni.showLoading({
+ title: '加载中...'
+ })
+ if (this.isNoMoreData) {
+ uni.hideLoading()
+ return false;
+ }
+ let pagenum = this.pageNum;
+ let params = {
+ regionId: app.globalData.cityId,
+ pageNum: pagenum,
+ pageSize: this.pageSize,
+ brandId: this.brandid,
+ goodsTypeId: this.goodtyid,
+ couponName: this.couponName
+ }
+ getBrandCouponList(params).then(res => {
+ uni.hideLoading();
+ if (res.return_code == '000000') {
+ this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true;
+ this.goodsList = this.goodsList.concat(res.return_data.list);
+ if (res.return_data.total == (this.pageNum * this.pageSize)) {
+ this.isNoMoreData = true;
+ }
+ this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum;
+ } else {
+ this.goodsList = [];
+ }
+ })
},
toSearch() {
this.pageNum = 1;
this.pageSize = 10;
this.isNoMoreData = false;
this.goodsList = [];
- if(this.typeId == 3){
- this.getBrandCouponList();
- }else{
- this.getCouponListArea();
+ if (this.typeId == 3) {
+ this.getBrandCouponList();
+ } else {
+ this.getCouponListArea();
}
},
//商品跳转
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 291068a..eb0334c 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -10,11 +10,11 @@
+ placeholder="请输入账号" v-model="phoneNumber" placeholder-style="color: #333333;" />
+ placeholder="请输入密码" v-model="passwd" password=true placeholder-style="color: #333333;" />
登 录
diff --git a/pages/tabBar/category/category.vue b/pages/tabBar/category/category.vue
index aef54a5..2797422 100644
--- a/pages/tabBar/category/category.vue
+++ b/pages/tabBar/category/category.vue
@@ -18,15 +18,14 @@
-
@@ -53,7 +52,7 @@
-
+
@@ -82,14 +81,14 @@
data() {
return {
showCategoryIndex: '',
- showCategoryIndexId: '',
+ showCategoryIndexId: '',
headerPosition: "fixed",
imagewxUrl: app.globalData.imageWxImg,
imgadres: 'jt.png',
imgadres2: 'xiala.png',
imgadres1: 'noorder.png',
imgadres4: 'dh.png',
- imgadres3: 'noorder.png',
+ imgadres3: 'noorder.png',
imgadres5: 'cusservice.png',
city: "",
imageUrl: app.globalData.imgUrl,
@@ -99,7 +98,7 @@
pageNum: 1,
pageSize: 10,
isNoMoreData: false
- // loadingText: '点击加载更多'
+ // loadingText: '点击加载更多'
}
},
onPageScroll(e) {
@@ -186,7 +185,7 @@
}
getMerchantList(params).then(res => {
if (res.return_code == '000000' && res.return_data != '') {
- this.MerchantList = res.return_data;
+ this.MerchantList = res.return_data;
this.showCategoryIndex = res.return_data[0].merchantName;
this.showCategoryIndexId = res.return_data[0].id;
this.getStoreListByMerchant();
@@ -242,10 +241,9 @@
},
//分类切换显示
- showCategory(index, item) {
- this.showCategoryIndex = index;
- this.$refs.popup.hide();
- this.showCategoryIndexId = item;
+ showCategory(e) {
+ this.showCategoryIndex = this.MerchantList[e.target.value].merchantName;
+ this.showCategoryIndexId = this.MerchantList[e.target.value].id;
this.pageNum = 1;
this.pageSize = 10;
this.isNoMoreData = false;
@@ -340,11 +338,10 @@
font-size: 14px;
margin-top: 10px;
color: #333333;
-
- .stuimg {
- width: 10px;
- vertical-align: middle;
- }
+ }
+ .stuimg {
+ width: 10px;
+ vertical-align: middle;
}
.loading-text {
diff --git a/pages/user/agentCoupons/agentCoupons.vue b/pages/user/agentCoupons/agentCoupons.vue
index 98d9103..e23bd9f 100644
--- a/pages/user/agentCoupons/agentCoupons.vue
+++ b/pages/user/agentCoupons/agentCoupons.vue
@@ -1,318 +1,352 @@
-
-
-
-
-
-
-
-
-
- {{agent.highCoupon.couponName}}
-
-
-
- {{agent.highCoupon.salesPrice}}.00
-
-
-
-
-
-
-
-
- 备注:{{agent.remark}}
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/user/minePromotion/minePromotion.vue b/pages/user/minePromotion/minePromotion.vue
index 6b9dc48..deeba7b 100644
--- a/pages/user/minePromotion/minePromotion.vue
+++ b/pages/user/minePromotion/minePromotion.vue
@@ -1,226 +1,314 @@
-
-
- 我的推广
-
-
-
-
- 今日数据
-
-
-
-
- {{agentList.orderCount}}
- {{agentList.turnoverPrice}}
-
-
- 今日订单
- 今日流水
-
-
-
-
-
-
-
- 库存管理
-
-
-
-
-
-
-
-
-
- 剩余库存({{agentList.laveStockCount}})
-
-
- 总计 {{agentList.surplusCountPrice}}
-
-
-
- 暂无数据
-
-
- 面额{{mers.salesPrice}}
-
-
- {{mers.stockCount}}张
-
-
- {{mers.salesPrice*mers.stockCount}}
-
-
-
-
-
-
-
-
- 销售统计
-
-
-
-
-
-
-
-
-
- 已销售({{agentList.soldCount}})
-
-
- 总计 {{agentList.salesCountPrice}}
-
-
- 暂无数据
-
-
-
- 面额{{mers.salesPrice}}
-
-
- {{mers.salesCount}}张
-
-
- {{mers.salesPrice*mers.salesCount}}
-
-
-
- 修改密码
-
-
-
-
-
-
diff --git a/static/css/login.scss b/static/css/login.scss
index eddecf0..4c3f4e7 100644
--- a/static/css/login.scss
+++ b/static/css/login.scss
@@ -48,7 +48,8 @@ page {
height: 50upx;
font-size: 16px;
color: #333333;
- font-weight: blod;
+ font-weight: blod;
+ padding-left: 10px;
}
}
diff --git a/uni.scss b/uni.scss
index 5462e4d..0a178fb 100644
--- a/uni.scss
+++ b/uni.scss
@@ -422,6 +422,10 @@ $uni-font-size-paragraph:30upx;
.height120{
height: 120px;
}
+
+.height130{
+ height: 130px;
+}
.height150{
height: 150px;