From 68565b60b23e522985350ca56c25afa3cc4e64eb Mon Sep 17 00:00:00 2001 From: xk_guohonglei <2057494155@qq.com> Date: Tue, 18 Aug 2020 18:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9F=A9=E9=A3=9E=E7=BB=99=E7=9A=84=E5=85=A8?= =?UTF-8?q?=E9=83=A8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/global.js | 9 ++ main.js | 1 + manifest.json | 2 +- pages.json | 26 ++-- pages/index/index.vue | 10 +- pages/qrcode/QrCode_xy.vue | 77 ++++++++++ pages/stationDetail/stationDetail.vue | 205 ++++++++++++++++++++++++++ 7 files changed, 313 insertions(+), 17 deletions(-) create mode 100644 api/global.js create mode 100644 pages/qrcode/QrCode_xy.vue create mode 100644 pages/stationDetail/stationDetail.vue diff --git a/api/global.js b/api/global.js new file mode 100644 index 0000000..02d7320 --- /dev/null +++ b/api/global.js @@ -0,0 +1,9 @@ +const baseURL = 'https://www.51xingka.net/LSMOIL/' +const token = '123456' +const userSite = '林花落了春红,太匆匆' + +export default { + baseURL, + token, + userSite +} \ No newline at end of file diff --git a/main.js b/main.js index 4f5401a..562cbfe 100644 --- a/main.js +++ b/main.js @@ -2,6 +2,7 @@ import Vue from 'vue' import App from './App' import cuCustom from './colorui/components/cu-custom.vue' import encode from '@/utils/encode' +import global from '@/api/global.js' Vue.component('cu-custom',cuCustom) Vue.config.productionTip = false diff --git a/manifest.json b/manifest.json index 3eb93ef..40d0255 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name" : "wechat-oil", + "name" : "星油云站", "appid" : "__UNI__EA8D131", "description" : "", "versionName" : "1.0.0", diff --git a/pages.json b/pages.json index e70046f..442c546 100644 --- a/pages.json +++ b/pages.json @@ -1,35 +1,33 @@ { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { - "path" : "pages/login/login", - "style" : {} - }, { "path": "pages/index/index", "style": { "navigationBarTitleText": "星油" } }, { - "path": "pages/station-info/station-info", + "path": "pages/login/login", "style": {} - }, { - "path": "pages/qrcode/qrcodeList/qrcodeList", + }, + { + "path": "pages/station-info/station-info", "style": {} }, { - "path": "pages/qrcode/QrCode_xy/QrCode_xy", - "style": {} - } - - , { - "path": "pages/qrcode/QrCode-wjy/QrCode-wjy", + "path": "pages/qrcode/QrCode_xy", "style": {} }, + + { "path": "pages/orderList/orderList", "style": {} } - ], + ,{ + "path" : "pages/stationDetail/stationDetail", + "style" : {} + } + ], "globalStyle": { "mp-alipay": { /* 支付宝小程序特有相关 */ diff --git a/pages/index/index.vue b/pages/index/index.vue index a7593df..73b06d8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -41,7 +41,7 @@ - + {{ cuIconList[0].badge > 99 ? '99+' : cuIconList[0].badge }} @@ -49,7 +49,7 @@ {{ cuIconList[0].name }} - + {{ cuIconList[1].badge > 99 ? '99+' : cuIconList[1].badge }} @@ -152,10 +152,16 @@ uni.vibrate({ success: function() { console.log('success'); + this.routerTo('/pages/stationDetail/stationDetail') } }) } }) + }, + routerTo(url){ + uni.navigateTo({ + url:url + }) } } }; diff --git a/pages/qrcode/QrCode_xy.vue b/pages/qrcode/QrCode_xy.vue new file mode 100644 index 0000000..c76ea8b --- /dev/null +++ b/pages/qrcode/QrCode_xy.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/pages/stationDetail/stationDetail.vue b/pages/stationDetail/stationDetail.vue new file mode 100644 index 0000000..11c2b48 --- /dev/null +++ b/pages/stationDetail/stationDetail.vue @@ -0,0 +1,205 @@ + + + + +