From 7bd17a36921b7df3c8828b0479c815183b545420 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Thu, 12 Oct 2023 11:02:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 + BagStation/orderDetail/orderDetail.vue | 46 +- .../components/addressSelector.vue | 19 +- .../pages/stationDetail/stationDetail.vue | 539 ++++++++++-------- BagStation/static/img/customer-service.png | Bin 0 -> 988 bytes components/tabbar/index.vue | 121 ++++ main.js | 3 +- pages.json | 4 +- pages/tabbar/home/home.vue | 9 +- pages/tabbar/order/orderList/orderList.vue | 1 + pages/tabbar/qrCenter/qrCenter.vue | 1 + pages/tabbar/station/stationList.vue | 12 +- pages/tabbar/user/user.vue | 1 + static/img/tabbar/icon.png | Bin 0 -> 2791 bytes utils/request.js | 4 +- 15 files changed, 497 insertions(+), 265 deletions(-) create mode 100644 BagStation/static/img/customer-service.png create mode 100644 components/tabbar/index.vue create mode 100644 static/img/tabbar/icon.png diff --git a/App.vue b/App.vue index c04481a..3d42bb1 100644 --- a/App.vue +++ b/App.vue @@ -38,6 +38,8 @@ }) this.onShareAppMessage(option.query.scene); + + }, methods: { diff --git a/BagStation/orderDetail/orderDetail.vue b/BagStation/orderDetail/orderDetail.vue index 0fbea0d..9625806 100644 --- a/BagStation/orderDetail/orderDetail.vue +++ b/BagStation/orderDetail/orderDetail.vue @@ -60,7 +60,8 @@ 油品油枪 - {{order.oilsCode?order.oilsCode+' ':'' }}{{ order.gunName?order.gunName+'号枪': order.oilsBar?order.oilsBar+'号枪':'未选择油枪'}} + {{order.oilsCode?order.oilsCode+' ':'' }}{{ order.gunName?order.gunName+'号枪': order.oilsBar?order.oilsBar+'号枪':'未选择油枪'}} + {{order.oilProductType=='GAS'?'加气重量:':'加油升数:'}} @@ -74,7 +75,8 @@ 优惠价格 - 约{{moneyIntercept(order.realPrice) }}¥/{{order.oilProductType=='GAS'?'L':'L'}} + 约{{moneyIntercept(order.realPrice) }}¥/{{order.oilProductType=='GAS'?'L':'L'}} 加油员 @@ -144,12 +146,16 @@ - + + + + 联系客服 + @@ -194,12 +200,12 @@ tkiQrcode }, methods: { - // 拨打电话 - makeCall() { + arousePhone() { uni.makePhoneCall({ - phoneNumber: '4008-56-5355' //仅为示例 + phoneNumber: '4008-56-5355' }) }, + newQrString() { this.getOrderQrCode() }, @@ -395,7 +401,31 @@ } - diff --git a/BagStation/static/img/customer-service.png b/BagStation/static/img/customer-service.png new file mode 100644 index 0000000000000000000000000000000000000000..50a69d340377c34ae51f08fd5556d1ed26029ca9 GIT binary patch literal 988 zcmeAS@N?(olHy`uVBq!ia0vp^8X(NU3?z3ec*FxK#^NA%Cx&(BWL^T_pkNfk|4fGei46Z!82)F0*+B7BBnFTRRGiN6 zKN(B{r82;>K=nWdP!=c!K|n5$0aO4af#N_eoQ=tasDWz-GSJu%F2qc@EL;u5Mu;Jp zBwQJUflNX)!WF>v;$i?*;#UmU2v-JSfXUWH*1^EYXetTv3ua(sW?^IJ;N;@w;pG<) z6ciPgRZ><{*EKLQF)_2WvbJ?_aP#o;4-5(p2@Q*gjEYZ4N={49$jr&jFDNdltZHa# zZf$Gt?4LYk>a2P57cE)7a@FcJ>o;xQvUS_ueMgR+JAdKw)oa&p+`e=7!NW(7pFVs3 z=H2@bA3uHm`tAFVpTB>|U-vysLH+^Qc`ApSc)}dK)^UH4R&Nk8xo$r3Y zpLLGtr*+TeKIrppjf(hvPg==4Dl=>kbK+jRiCn+e3taHtX(WG6>L_oTnN-r{SiyE% zU$66jN^Fm?oD=Zh z&UC(hfiqXxqt@rGvn!hVSD3#%v){BWPDx(q!feT^|A~1Ynoe{HDqUK!=};4+?$$X< zdqU?iva!kvPSosrt#IyYQik(^*Svd=O%|5tUUTupLANt{Y)1l$c^+h2eAM@~VPweb z^k{!N + + + + + + + + + + + diff --git a/main.js b/main.js index 9086bcc..c122703 100644 --- a/main.js +++ b/main.js @@ -9,7 +9,7 @@ import encode from '@/utils/encode' import global from '@/api/global.js' import topBar from './components/topbar.vue' import tools from '@/utils/tools.js' - +// import tabbar from '@/components/tabbar/index.vue' @@ -17,6 +17,7 @@ import tools from '@/utils/tools.js' import Empty from '@/components/Empty.vue' +// Vue.component('tabbar', tabbar) Vue.component('my-icon', myIcon) Vue.component('cu-custom', cuCustom) Vue.component('my-empty', Empty) diff --git a/pages.json b/pages.json index 95c93ec..9402493 100644 --- a/pages.json +++ b/pages.json @@ -377,8 +377,8 @@ //#ifdef MP-WEIXIN { "pagePath": "pages/tabbar/qrCenter/qrCenter", - "iconPath": "static/img/tabbar/qr.png", - "selectedIconPath": "static/img/tabbar/qractive.png" + "iconPath": "static/img/tabbar/icon.png", + "selectedIconPath": "static/img/tabbar/icon.png" }, //#endif //#ifndef MP-WEIXIN diff --git a/pages/tabbar/home/home.vue b/pages/tabbar/home/home.vue index b5d4ec0..15b15e9 100644 --- a/pages/tabbar/home/home.vue +++ b/pages/tabbar/home/home.vue @@ -142,7 +142,7 @@ - + @@ -160,6 +160,7 @@ + @@ -330,8 +331,10 @@ console.log(n, o, '=================') } }, - created() {}, + onReady() { + + let _that = this let IsOtherUser = _that.isOther if (IsOtherUser) { @@ -362,6 +365,8 @@ } }, onLoad(e) { + // uni.hideTabBar() + let _that = this let IsOtherUser = _that.isOther diff --git a/pages/tabbar/order/orderList/orderList.vue b/pages/tabbar/order/orderList/orderList.vue index e0e2335..472de80 100644 --- a/pages/tabbar/order/orderList/orderList.vue +++ b/pages/tabbar/order/orderList/orderList.vue @@ -63,6 +63,7 @@ + diff --git a/pages/tabbar/qrCenter/qrCenter.vue b/pages/tabbar/qrCenter/qrCenter.vue index 0426d9e..a981606 100644 --- a/pages/tabbar/qrCenter/qrCenter.vue +++ b/pages/tabbar/qrCenter/qrCenter.vue @@ -33,6 +33,7 @@ + diff --git a/pages/tabbar/station/stationList.vue b/pages/tabbar/station/stationList.vue index 4d1a2d5..1a4115e 100644 --- a/pages/tabbar/station/stationList.vue +++ b/pages/tabbar/station/stationList.vue @@ -52,6 +52,7 @@ + @@ -280,7 +281,8 @@ currentPage: this.currentPage, pageSize: 10, params: { //类型:Object 必有字段 备注:// 筛选对象 - siteNameOrId: this.siteName, //产品类型(加注方式): + // siteNameOrId: this.siteName, //产品类型(加注方式): + address:this.siteAddress, productType: this.productType ? this.productType : '', //1-加注机; 2-桶装 brandName: this.brandName ? this.brandName : '', // 桶装品牌名称 currentLongitude: location.longitude + '', // 当前经度 @@ -392,10 +394,10 @@ res.data.channelCodes.map(item => { - this.menuList[3].detailLists.push({ - title: item.name, - value: item.id - }) + // this.menuList[3].detailLists.push({ + // title: item.name, + // value: item.id + // }) }) res.data.productCodes.map(item => { this.menuList[2].detailList.push({ diff --git a/pages/tabbar/user/user.vue b/pages/tabbar/user/user.vue index 2e32550..6a81ace 100644 --- a/pages/tabbar/user/user.vue +++ b/pages/tabbar/user/user.vue @@ -134,6 +134,7 @@ + diff --git a/static/img/tabbar/icon.png b/static/img/tabbar/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ca4bc9000c97204f70cbb7dd75721b2de67deb63 GIT binary patch literal 2791 zcmXYy2{=^y8^?cAOhgo}8e6VV%F^vhgD#=yTH~55rHxS5EQ29T7`qsuh=d`bG9pwL zg`_Z+j3wDKw9IApGvj~G^Zb9$bAIPJ?|I+v`}w}-_dF-n(f+iQ#9j#ifRv53(cSP9ffOQ9OvVbrUK;eLyCn5+$B7#uB z%t0a?JYeO3^;`f20YMPp#e(%rupSSf5Foq`_|eGDAt0H;8(bSm`2s9AZ=G54ed4KMV=;@NNOYb+CB@F#^ZANr=sjbO1#GUH}r` z+}wm|`H@H?R)z={o z;)Rm{gaLqk8{vU1a}$vHz}AG*Z#KE>5VchJb4EDXvdL#d?}*$i1>v`0ex)^+Ahs#s z3)jYli~WMZ3PCSP@H!r9@`awbLsibu{l9qm2YA_P{4_OQ%C1f3s*pY`ob3`!QiL>$ z;B%dj`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gY=}Pee!c*HGZ{?t(T0VwhshOrT#5Wzf(2U z_9e>wWPbuqY2KHDJ#|G%T2;T|#n6q16sg^bT`FILB{eCt;RQS8_659TC)iQ^^u;^_ zh_XDTD$`Px5>psi6y0xgZIK^O2)uxC^+mh0hTdO2s$!0&7PV*BsZ0cmM|4LPLk5cH z9KUHSMQXY^P6n?e#H1KznqD5g=PNhRB6|&cnWk03K-1_$hEuTtT@p%Jo^1+t1bZy1 zQD!r)TzXvQ(7|q%>|*T)A!M}>9l5ouwPe4pX^CmbM0lHWH}-{=?>$tAhS%wt<8Ez5 zrc___sZ;)VFHg*1uFMf9#*uKhb8R!1kNpR-TA%U9!N;gsI)a&fQ(x7Mm)rtW7GxsVzI! zD@0=kO|%%c-H$^}GVNEDfu2w4gT1`+55UAKY)Z{@cmPckpst)girZSLH^Ay7U&l_RgE|`_)@LT@l60 fkPnp^fVLUNFI249sQ(53&Vh}Uy=DE$i;4dO+`5>M literal 0 HcmV?d00001 diff --git a/utils/request.js b/utils/request.js index b3f52f0..dd7714e 100644 --- a/utils/request.js +++ b/utils/request.js @@ -6,9 +6,9 @@ import utils from '@/utils/encode' const env = 'production' // 45 const testUrl = 'http://192.168.1.132:38080' -// const productUrl = 'https://www.xingoil.com/adminapi' +const productUrl = 'https://www.xingoil.com/adminapi' -const productUrl = 'http://uat.xingoil.com/adminapi' +// const productUrl = 'http://uat.xingoil.com/adminapi' // const productUrl = 'http://192.168.0.191:38080' // const productUrl = 'http://121.196.213.68/adminapi' const service = axios.create({