diff --git a/App.vue b/App.vue
index 80e20c0..5a54d7e 100644
--- a/App.vue
+++ b/App.vue
@@ -20,6 +20,7 @@
token: '',
brestToken:'',
cityId: '',
+ cityName:'',
longitude : '',
latitude : ''
},
diff --git a/Utils/Api.js b/Utils/Api.js
index 9409ab1..d84e19f 100644
--- a/Utils/Api.js
+++ b/Utils/Api.js
@@ -140,6 +140,12 @@ export const getGasDetailByStoreKey = params => {
return POST('GET', `${base}/highGas/getGasDetailByStoreKey`, params).then(res => res.data);
}
+//获取已开通的省份
+export const getDredgeProvince = params => {
+ return POST('GET', `${base}/common/getDredgeProvince`, params).then(res => res.data);
+}
+
+
/**
* H5 获取用户信息
*/
diff --git a/pages copy.json b/pages copy.json
index 3085e89..aec8c41 100644
--- a/pages copy.json
+++ b/pages copy.json
@@ -58,8 +58,8 @@
"style": {
"enablePullDownRefresh": true,
"backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#f06c7a",
- "backgroundColorTop": "#f06c7a",
+ "navigationBarBackgroundColor": "#0083f5",
+ "backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": false, //禁用原生导航栏
@@ -109,7 +109,7 @@
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录",
- "navigationBarBackgroundColor": "#f06c7a",
+ "navigationBarBackgroundColor": "#0083f5",
"navigationBarTextStyle": "white",
"app-plus": {
"bounce": "none", //关闭窗口回弹效果
@@ -121,7 +121,7 @@
"path": "pages/login/register",
"style": {
"navigationBarTitleText": "手机号登录",
- "navigationBarBackgroundColor": "#f06c7a",
+ "navigationBarBackgroundColor": "#0083f5",
"navigationBarTextStyle": "white",
"app-plus": {
"bounce": "none", //关闭窗口回弹效果
@@ -133,7 +133,7 @@
"path": "pages/login/resetpasswd",
"style": {
"navigationBarTitleText": "重置密码",
- "navigationBarBackgroundColor": "#f06c7a",
+ "navigationBarBackgroundColor": "#0083f5",
"navigationBarTextStyle": "white",
"app-plus": {
"bounce": "none", //关闭窗口回弹效果
@@ -174,7 +174,7 @@
"path": "pages/user/coupon/coupon",
"style": {
"navigationBarTitleText": "优惠券",
- "navigationBarBackgroundColor": "#f06c7a",
+ "navigationBarBackgroundColor": "#0083f5",
"navigationBarTextStyle": "white",
"app-plus": {
"bounce": "none"
@@ -184,7 +184,7 @@
"path": "pages/user/keep/keep",
"style": {
"navigationBarTitleText": "我的收藏",
- "navigationBarBackgroundColor": "#f06c7a",
+ "navigationBarBackgroundColor": "#0083f5",
"navigationBarTextStyle": "white",
"app-plus": {
"bounce": "none"
@@ -268,7 +268,7 @@
},
"tabBar": {
"color": "#333333",
- "selectedColor": "#f06c7a",
+ "selectedColor": "#0083f5",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [{
@@ -297,4 +297,4 @@
}
]
}
-}
+}
diff --git a/pages/goods/goods-list/goods-list.vue b/pages/goods/goods-list/goods-list.vue
index c6236cd..6b824cd 100644
--- a/pages/goods/goods-list/goods-list.vue
+++ b/pages/goods/goods-list/goods-list.vue
@@ -1,27 +1,27 @@
-
-
-
+
+
+
-
-
-
-
-
- {{goods.name}}
-
- {{goods.price}}
- {{goods.slogan}}
-
-
-
- {{loadingText}}
+
+
+
+
+
+ {{goods.name}}
+
+ {{goods.price}}
+ {{goods.slogan}}
+
+
+
+ {{loadingText}}
@@ -30,219 +30,219 @@
export default {
data() {
return {
- goodsList:[
- { goods_id: 0, img: '/static/img/goods/p1.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
- { goods_id: 1, img: '/static/img/goods/p2.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
- { goods_id: 2, img: '/static/img/goods/p3.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
- { goods_id: 3, img: '/static/img/goods/p4.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
- { goods_id: 4, img: '/static/img/goods/p5.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
- { goods_id: 5, img: '/static/img/goods/p6.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
- { goods_id: 6, img: '/static/img/goods/p7.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
- { goods_id: 7, img: '/static/img/goods/p8.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
- { goods_id: 8, img: '/static/img/goods/p9.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
- { goods_id: 9, img: '/static/img/goods/p10.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' }
- ],
- loadingText:"正在加载...",
- headerTop:"0px",
- headerPosition:"fixed",
- orderbyList:[
- {text:"销量",selected:true,orderbyicon:false,orderby:0},
- {text:"价格",selected:false,orderbyicon:['sheng','jiang'],orderby:0},
- {text:"好评",selected:false,orderbyicon:false,orderby:0}
- ],
+ goodsList:[
+ { goods_id: 0, img: '/static/img/goods/p1.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
+ { goods_id: 1, img: '/static/img/goods/p2.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
+ { goods_id: 2, img: '/static/img/goods/p3.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
+ { goods_id: 3, img: '/static/img/goods/p4.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
+ { goods_id: 4, img: '/static/img/goods/p5.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
+ { goods_id: 5, img: '/static/img/goods/p6.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
+ { goods_id: 6, img: '/static/img/goods/p7.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
+ { goods_id: 7, img: '/static/img/goods/p8.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
+ { goods_id: 8, img: '/static/img/goods/p9.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' },
+ { goods_id: 9, img: '/static/img/goods/p10.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' }
+ ],
+ loadingText:"正在加载...",
+ headerTop:"0px",
+ headerPosition:"fixed",
+ orderbyList:[
+ {text:"销量",selected:true,orderbyicon:false,orderby:0},
+ {text:"价格",selected:false,orderbyicon:['sheng','jiang'],orderby:0},
+ {text:"好评",selected:false,orderbyicon:false,orderby:0}
+ ],
orderby:"sheng"
};
- },
- onLoad: function (option) { //option为object类型,会序列化上个页面传递的参数
- console.log(option.cid); //打印出上个页面传递的参数。
- uni.setNavigationBarTitle({
- title: option.name
- });
-
- //兼容H5下排序栏位置
- // #ifdef H5
- //定时器方式循环获取高度为止,这么写的原因是onLoad中head未必已经渲染出来。
- let Timer = setInterval(()=>{
- let uniHead = document.getElementsByTagName('uni-page-head');
- if(uniHead.length>0){
- this.headerTop = uniHead[0].offsetHeight+'px';
- clearInterval(Timer);//清除定时器
- }
- },1);
- // #endif
- },
- onPageScroll(e){
- //兼容iOS端下拉时顶部漂移
- if(e.scrollTop>=0){
- this.headerPosition = "fixed";
- }else{
- this.headerPosition = "absolute";
- }
- },
- //下拉刷新,需要自己在page.json文件中配置开启页面下拉刷新 "enablePullDownRefresh": true
- onPullDownRefresh() {
- setTimeout(()=>{
- this.reload();
- uni.stopPullDownRefresh();
- }, 1000);
- },
- //上拉加载,需要自己在page.json文件中配置"onReachBottomDistance"
- onReachBottom(){
- uni.showToast({title: '触发上拉加载'});
- let len = this.goodsList.length;
- if(len>=40){
- this.loadingText="到底了";
- return false;
- }else{
- this.loadingText="正在加载...";
- }
- let end_goods_id = this.goodsList[len-1].goods_id;
- for(let i=1;i<=10;i++){
- let goods_id = end_goods_id+i;
- let p = { goods_id: goods_id, img: '/static/img/goods/p'+(goods_id%10==0?10:goods_id%10)+'.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' };
- this.goodsList.push(p);
- }
- },
- methods:{
- reload(){
- console.log("reload");
- let tmpArr = []
- this.goodsList = [];
- let end_goods_id = 0;
- for(let i=1;i<=10;i++){
- let goods_id = end_goods_id+i;
- let p = { goods_id: goods_id, img: '/static/img/goods/p'+(goods_id%10==0?10:goods_id%10)+'.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' };
- this.goodsList.push(p);
- }
- },
- //商品跳转
- toGoods(e){
- uni.showToast({title: '商品'+e.goods_id,icon:"none"});
- uni.navigateTo({
- url: '../goods'
- });
- },
- //排序类型
- select(index){
- let tmpTis = this.orderbyList[index].text+"排序 "
- if(this.orderbyList[index].orderbyicon){
- let type = this.orderbyList[index].orderby==0?'升序':'降序';
- if(this.orderbyList[index].selected){
- type = this.orderbyList[index].orderby==0?'降序':'升序';
- this.orderbyList[index].orderby = this.orderbyList[index].orderby==0?1:0;
- }
- tmpTis+=type
- }
- this.orderbyList[index].selected = true;
- let len = this.orderbyList.length;
- for(let i=0;i{
+ let uniHead = document.getElementsByTagName('uni-page-head');
+ if(uniHead.length>0){
+ this.headerTop = uniHead[0].offsetHeight+'px';
+ clearInterval(Timer);//清除定时器
+ }
+ },1);
+ // #endif
+ },
+ onPageScroll(e){
+ //兼容iOS端下拉时顶部漂移
+ if(e.scrollTop>=0){
+ this.headerPosition = "fixed";
+ }else{
+ this.headerPosition = "absolute";
+ }
+ },
+ //下拉刷新,需要自己在page.json文件中配置开启页面下拉刷新 "enablePullDownRefresh": true
+ onPullDownRefresh() {
+ setTimeout(()=>{
+ this.reload();
+ uni.stopPullDownRefresh();
+ }, 1000);
+ },
+ //上拉加载,需要自己在page.json文件中配置"onReachBottomDistance"
+ onReachBottom(){
+ uni.showToast({title: '触发上拉加载'});
+ let len = this.goodsList.length;
+ if(len>=40){
+ this.loadingText="到底了";
+ return false;
+ }else{
+ this.loadingText="正在加载...";
+ }
+ let end_goods_id = this.goodsList[len-1].goods_id;
+ for(let i=1;i<=10;i++){
+ let goods_id = end_goods_id+i;
+ let p = { goods_id: goods_id, img: '/static/img/goods/p'+(goods_id%10==0?10:goods_id%10)+'.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' };
+ this.goodsList.push(p);
+ }
+ },
+ methods:{
+ reload(){
+ console.log("reload");
+ let tmpArr = []
+ this.goodsList = [];
+ let end_goods_id = 0;
+ for(let i=1;i<=10;i++){
+ let goods_id = end_goods_id+i;
+ let p = { goods_id: goods_id, img: '/static/img/goods/p'+(goods_id%10==0?10:goods_id%10)+'.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168', slogan:'1235人付款' };
+ this.goodsList.push(p);
+ }
+ },
+ //商品跳转
+ toGoods(e){
+ uni.showToast({title: '商品'+e.goods_id,icon:"none"});
+ uni.navigateTo({
+ url: '../goods'
+ });
+ },
+ //排序类型
+ select(index){
+ let tmpTis = this.orderbyList[index].text+"排序 "
+ if(this.orderbyList[index].orderbyicon){
+ let type = this.orderbyList[index].orderby==0?'升序':'降序';
+ if(this.orderbyList[index].selected){
+ type = this.orderbyList[index].orderby==0?'降序':'升序';
+ this.orderbyList[index].orderby = this.orderbyList[index].orderby==0?1:0;
+ }
+ tmpTis+=type
+ }
+ this.orderbyList[index].selected = true;
+ let len = this.orderbyList.length;
+ for(let i=0;i
-
diff --git a/pages/goods/goods.vue b/pages/goods/goods.vue
index f06ed8e..6b8f420 100644
--- a/pages/goods/goods.vue
+++ b/pages/goods/goods.vue
@@ -102,9 +102,7 @@
-
-
@@ -981,7 +979,7 @@
}
.buy {
- background-color: #f06c7a;
+ background-color: #0083f5;
}
}
}
@@ -1262,4 +1260,4 @@
}
}
-
+
diff --git a/pages/goods/ratings/ratings.vue b/pages/goods/ratings/ratings.vue
index 3dae4e7..c5c210f 100644
--- a/pages/goods/ratings/ratings.vue
+++ b/pages/goods/ratings/ratings.vue
@@ -1,72 +1,72 @@
-
-
@@ -74,315 +74,315 @@
-
diff --git a/pages/goods/refuel-confirm/refuel-confirm.vue b/pages/goods/refuel-confirm/refuel-confirm.vue
index 403b3b8..db16716 100644
--- a/pages/goods/refuel-confirm/refuel-confirm.vue
+++ b/pages/goods/refuel-confirm/refuel-confirm.vue
@@ -1,13 +1,13 @@
-
+
-
+
- 乌江能源加油站(大一型国企)
- 贵州省贵阳市什么什么大道65号
- ¥6.40
- ¥6.38
+ {{orderList.goodsName}}
+ {{refulAdress}}
+ ¥{{orderList.gasPriceVip}}
+ ¥{{orderList.gasPriceGun}}
@@ -19,7 +19,7 @@
油号\油枪
- 92#/2号
+ {{orderList.gasOilNo}}#/{{orderList.gasGunNo}}号
@@ -28,32 +28,171 @@
加油金额
- 500
+ {{orderList.totalPrice}}
-
+
重要说明
- 1.请先加油后下单,即您到站后,与工作人员确认油号,抢号后再付款。
- 2.请勿先付款后加油,若您已下单付款。请于24小时内到加油站完成加油;若您48小时内未完成加油,请及时发起退单;逾期退单可能会退单失败。
+ 1.请先加油后下单,即您到站后,与工作人员确认油号,抢号后再付款。
+
+ 2.请勿先付款后加油,若您已下单付款。请于24小时内到加油站完成加油;若您48小时内未完成加油,请及时发起退单;逾期退单可能会退单失败。
@@ -62,18 +201,22 @@
page {
background-color: #f7f7f7;
}
- .conImg{
+
+ .conImg {
width: 100px;
height: 100px;
border-radius: 8px;
}
- .conCont{
+
+ .conCont {
margin-left: 115px;
}
+
.slogan {
color: #807c87;
text-decoration: line-through;
}
+
.footer {
position: fixed;
bottom: 0upx;
@@ -86,7 +229,8 @@
display: flex;
justify-content: space-between;
align-items: center;
- .reBtn{
+
+ .reBtn {
width: 110px;
background-color: #089bf5;
color: #FFFFFF;
diff --git a/pages/goods/refuel-details/refuel-details.vue b/pages/goods/refuel-details/refuel-details.vue
index 04247c9..613fe50 100644
--- a/pages/goods/refuel-details/refuel-details.vue
+++ b/pages/goods/refuel-details/refuel-details.vue
@@ -7,7 +7,7 @@
{{storeList.gasName}}
{{storeList.gasAddress}}
-
+
{{storeList.distance}}km
@@ -65,15 +65,16 @@
加油金额
¥
-
-
+
- 约0.01L
+ 约{{litre}}L
+ :class="{'on':amount.price == inputMoney}">
{{amount.price}}元
@@ -81,9 +82,19 @@
@@ -110,7 +121,8 @@
diff --git a/pages/goods/refuel/refuel.vue b/pages/goods/refuel/refuel.vue
index 388444a..d81c9c6 100644
--- a/pages/goods/refuel/refuel.vue
+++ b/pages/goods/refuel/refuel.vue
@@ -8,50 +8,75 @@
@result="result"> -->
-