From edf848a3c39d7ba4085753bc8039d98f1c2726be Mon Sep 17 00:00:00 2001 From: chenkainan Date: Fri, 30 Aug 2024 11:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 14 +- mixins/myMixins.js | 2 +- pages.json | 19 + pages/login/login.vue | 131 +++++++ static/js/request.js | 2 +- subPackages/order/detail.vue | 681 ++++++++++++++++++++++++++++++++++ subPackages/order/trades.vue | 701 +++++++++++++++++++++++++++++++++++ 7 files changed, 1545 insertions(+), 5 deletions(-) create mode 100644 pages/login/login.vue create mode 100644 subPackages/order/detail.vue create mode 100644 subPackages/order/trades.vue diff --git a/manifest.json b/manifest.json index 98332f7..bca1372 100644 --- a/manifest.json +++ b/manifest.json @@ -50,11 +50,19 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "", + "appid" : "wxb8f15afe2765976d", "setting" : { - "urlCheck" : false + "urlCheck" : false, + "es6" : true, + "minified" : true, + "postcss" : true }, - "usingComponents" : true + "usingComponents" : true, + "permission" : { + "scope.userLocation" : { + "desc" : "获取用户距离商家距离" + } + } }, "mp-alipay" : { "usingComponents" : true diff --git a/mixins/myMixins.js b/mixins/myMixins.js index 27f72f4..094ffc2 100644 --- a/mixins/myMixins.js +++ b/mixins/myMixins.js @@ -15,7 +15,7 @@ export const myMixins ={ // 分享到朋友圈 onShareTimeline() { return { - title: '吴优游', + title: '盐都文旅', type: 0, summary: "edewdewdewf", imageUrl: "https://static.ticket.sz-trip.com/dongtai/images/index/share.jpg" diff --git a/pages.json b/pages.json index bd571e8..2596b3f 100644 --- a/pages.json +++ b/pages.json @@ -25,6 +25,12 @@ "navigationStyle": "custom", "navigationBarTitleText": "我的" } + }, + { + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "盐都文旅" + } } ], "subPackages": [{ @@ -185,6 +191,19 @@ "style" : { "navigationBarTitleText" : "个人收藏" } + }, + { + "path" : "order/trades", + "style" : { + "navigationBarTitleText" : "全部订单" + } + }, + { + "path" : "order/detail", + "style" : { + "navigationBarTitleText" : "订单状态", + "navigationStyle": "custom" + } } ] }], diff --git a/pages/login/login.vue b/pages/login/login.vue new file mode 100644 index 0000000..fe74898 --- /dev/null +++ b/pages/login/login.vue @@ -0,0 +1,131 @@ + + + + + \ No newline at end of file diff --git a/static/js/request.js b/static/js/request.js index e71d867..c40490f 100644 --- a/static/js/request.js +++ b/static/js/request.js @@ -16,7 +16,7 @@ Vue.prototype.Post = (params, apiurl) => { data: params || {}, header: params.header || { 'content-type': 'application/json', - 'token': params.token || '2dd9b712-f118-41f6-b3a8-602e4fbb0ce3' + 'token': params.token || '' }, success: res => { uni.hideLoading() diff --git a/subPackages/order/detail.vue b/subPackages/order/detail.vue new file mode 100644 index 0000000..f51820d --- /dev/null +++ b/subPackages/order/detail.vue @@ -0,0 +1,681 @@ + + + + + \ No newline at end of file diff --git a/subPackages/order/trades.vue b/subPackages/order/trades.vue new file mode 100644 index 0000000..6a903cc --- /dev/null +++ b/subPackages/order/trades.vue @@ -0,0 +1,701 @@ + + + + +