From c2e17b26c7ddb82176b35b25be9fa6484865cd50 Mon Sep 17 00:00:00 2001 From: GL <954534408@qq.com> Date: Thu, 22 Oct 2020 11:35:33 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AF=BC=E8=88=AA=E6=A0=8F=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 +- src/assets/images/calendar.png | Bin 0 -> 366 bytes src/assets/images/gou.png | Bin 0 -> 599 bytes src/assets/images/search.png | Bin 0 -> 1193 bytes src/routers/index.js | 105 ++++++ src/services/apiUrl.js | 14 +- src/services/request.js | 2 +- src/views/home/index.vue | 70 +++- src/views/login/index.vue | 4 +- src/views/navigation/accomplish.vue | 63 ++++ .../navigation/accounts/marketingClose.vue | 329 ++++++++++++++++++ src/views/navigation/billing.vue | 164 +++++++++ src/views/navigation/commodity.vue | 186 ++++++++++ src/views/navigation/consume/current.vue | 213 ++++++++++++ .../navigation/consume/memberGathering.vue | 58 +++ src/views/navigation/consume/todayConsume.vue | 122 +++++++ src/views/navigation/details.vue | 124 +++++++ .../integral/integralParticulars.vue | 74 ++++ .../navigation/integral/memberIntegral.vue | 26 ++ src/views/navigation/integral/userMessage.vue | 139 ++++++++ src/views/navigation/memberCancel.vue | 31 ++ src/views/navigation/memberPublic.vue | 58 +++ src/views/navigation/ticket/chPhone.vue | 74 ++++ src/views/navigation/ticket/memberTicket.vue | 26 ++ src/views/navigation/ticket/ticketDetails.vue | 226 ++++++++++++ vue.config.js | 2 +- 26 files changed, 2103 insertions(+), 10 deletions(-) create mode 100644 src/assets/images/calendar.png create mode 100644 src/assets/images/gou.png create mode 100644 src/assets/images/search.png create mode 100644 src/views/navigation/accomplish.vue create mode 100644 src/views/navigation/accounts/marketingClose.vue create mode 100644 src/views/navigation/billing.vue create mode 100644 src/views/navigation/commodity.vue create mode 100644 src/views/navigation/consume/current.vue create mode 100644 src/views/navigation/consume/memberGathering.vue create mode 100644 src/views/navigation/consume/todayConsume.vue create mode 100644 src/views/navigation/details.vue create mode 100644 src/views/navigation/integral/integralParticulars.vue create mode 100644 src/views/navigation/integral/memberIntegral.vue create mode 100644 src/views/navigation/integral/userMessage.vue create mode 100644 src/views/navigation/memberCancel.vue create mode 100644 src/views/navigation/memberPublic.vue create mode 100644 src/views/navigation/ticket/chPhone.vue create mode 100644 src/views/navigation/ticket/memberTicket.vue create mode 100644 src/views/navigation/ticket/ticketDetails.vue diff --git a/package.json b/package.json index 88bf604..00493b9 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "vant": "^2.10.3", "vue": "^2.6.10", "vue-router": "^3.0.3", - "vuex": "^3.0.1" + "vuex": "^3.0.1", + "moment": "^2.29.1" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.10.0", diff --git a/src/assets/images/calendar.png b/src/assets/images/calendar.png new file mode 100644 index 0000000000000000000000000000000000000000..b46345a816b43cb7ca5ebcc6869716593dee61c4 GIT binary patch literal 366 zcmV-!0g?WRP)cwlt2lT5ITSkk`AB(LIq*u=$MOxk#udqYj&r18H4wt2LL>gR8-yeW|O;T7uYANB_ z0B=f|PtMC^13rLP#Ypn;y#iLiR7uu=d?c1Y-fps%c&~|+bspggn3oy^gaz~-=snPT zp!Yy<&Y1ADauNeOC56L6n3*_-#J>a}=M#aapHg+!H4AnDpAsZPDy8r+H M07*qoM6N<$g1Us6tOi3A~rI*fz<p4i_y$~<06rt>N0Y=T1Z-~vR)BL;K)*=3GFk!K zn_}nBHb9P7!1m?{f4XIzk8=sx-V)(YwZK1>^kj6K*!I>4e=-L?)UNp^w!JOFpU8zz z60m&>xDRXxK1+Hu>)CHRj1i8?<0arb1#E}S^?hQp6-k%+O4!~J;g6MqPZ4+n+?g`r zvZSl261I0n_@gD^Qv^N&*Bd7NAn9h8gza6xSKvr#_!NQLz*5V^OOmD~^ryu3?g)Q) z2>4Ec2oZkq7h3>cOS(7t-u9ljYz_?t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gjtHoAW1RUHt+y4W;1)h$!iS5sT z=$D3k2`rNIU9GKg0TdwnX16+iCx{GkEU import(/* webpackChunkName: "login" */ '@/views/login'); const Home = () => import(/* webpackChunkName: "home" */ '@/views/home'); @@ -80,6 +95,96 @@ const routes = [ title: '登陆信息' } }, + { + path: '/marketingClose',//营销结算 + name: 'marketingClose', + component:marketingClose + + }, + { + path: '/memberCancel',//会员核销 + name: 'memberCancel', + component:memberCancel + + }, + { + path: '/memberGathering',//消费卡收款 + name: 'memberGathering', + component:memberGathering + + }, + { + path: '/memberIntegral',//会员积分integralParticulars + name: 'memberIntegral', + component:memberIntegral + + }, + { + path: '/integralParticulars',//会员积分 - 查询详情页 + name: 'integralParticulars', + component:integralParticulars + + }, + { + path: '/userMessage',//会员积分 - 查询详情页 -会员详情 + name: 'userMessage', + component:userMessage + + }, + { + path: '/memberTicket',//会员赠券 + name: 'memberTicket', + component:memberTicket + + }, + { + path: '/chPhone',//会员赠券 - 详情页 + name: 'chPhone', + component:chPhone + + }, + { + path: '/ticketDetails',//会员赠券 - 详情页 + name: 'ticketDetails', + component:ticketDetails + + }, + { + path: '/details',//手动核销 子页面 + name: 'details', + component:details + + }, + { + path: '/commodity',//核销 详情页 + name: 'commodity', + component:commodity + + }, + { + path: '/accomplish',//核销 完成返回页面 + name: 'accomplish', + component:accomplish + + }, + { + path: '/billing',//核销 账单 + name: 'billing', + component:billing + + }, + { + path: '/todayConsume',//消费卡收款 -当日记录 + name: 'todayConsume', + component:todayConsume + + }, + { + path: '/current',//消费卡收款 -当日记录 + name: 'current', + component:current + + }, ]; diff --git a/src/services/apiUrl.js b/src/services/apiUrl.js index 73b8fe9..d3b5e4a 100644 --- a/src/services/apiUrl.js +++ b/src/services/apiUrl.js @@ -8,15 +8,15 @@ export const apiUrl = { //交易,核销,收银的echarts图表数据 getTabletListOrder: '/api/wxDateAmountRecord/listOrder', getTabletListVerify: '/api/wxDateAmountRecord/listVerified', - getMicroPayAmountOnDate:'/api/wxDateAmountRecord/listMicropay', + getMicroPayAmountOnDate: '/api/wxDateAmountRecord/listMicropay', // 检查用户是否有权限修改收款账户 permitModifiy: "/api/merchant/permitModifiy", // B端用户详情 userDetail: '/api/user/detail', //获取积分操作记录 - getCreditList:"/api/credit/list", + getCreditList: "/api/credit/list", //获取会员可赠送的券列表 - wxMerchantcouponSend:"/api/couponSend/list", + wxMerchantcouponSend: "/api/couponSend/list", // 商户注券记录 wxMerchantcouponStory: "/api/couponSend/actionLog", @@ -25,5 +25,11 @@ export const apiUrl = { // mock qryPageConfig: '/test/pageConfig', - msg: '/index/securityPolicy' + msg: '/index/securityPolicy', + // 查询券详情 + ticketDetails: '/api/couponOrder/detail', + // 券核销 + cancel: "/api/couponOrder/verify", + // 已被核销的券包 + couponOrderListVerified: '/api/couponOrder/listVerified', } diff --git a/src/services/request.js b/src/services/request.js index 652089e..4b97fff 100644 --- a/src/services/request.js +++ b/src/services/request.js @@ -32,7 +32,7 @@ const instance = axios.create({ instance.interceptors.request.use( function(config) { config.headers.bid = store.state.token; - config.headers.token = store.state.token; + // config.headers.token = store.state.token; // 在发送请求之前做处理... config.headers = Object.assign( config.method === "post" diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 9559201..7231b6a 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -8,7 +8,16 @@

富茂服务商

- +
+
+
+
+ +
+ {{item.text}} +
+
+
@@ -67,6 +76,38 @@ export default { showJiaoyi: true, showHexiao: true, showShouyin: true, + classIfyList: [ + { + text: "会员核销", + icon: "iconfont icon-hexiao", + id: 0, + path:"/memberCancel" + }, + { + text: "消费卡收款", + icon: "iconfont icon-shouye1", + id: 1, + path:"/memberGathering" + }, + { + text: "会员积分", + icon: "iconfont icon-jifen", + id: 4, + path:"/memberIntegral" + }, + { + text: "会员赠券", + icon: "iconfont icon-quan", + id: 5, + path:"/memberTicket" + }, + { + text: "营销结算", + icon: "iconfont icon-jiesuan", + id: 6, + path:"/marketingClose" + }, + ], }; }, mounted() { @@ -76,6 +117,9 @@ export default { }, methods: { + toWriteoff(path){ + this.$router.push(path) + }, /** * 交易记录 */ @@ -358,6 +402,29 @@ export default { background: #f8f8fa; margin-bottom: 1.6rem; } +.writeOff { + width: 100%; + margin-top: 0.1rem; +} +.classification { + position: relative; + width: 93%; + height: 3.7rem; + background: #fff; + border-radius: .15rem; + margin: .3rem auto; + z-index: 1000; + width: 9.5rem; + margin: 0 auto; + display: flex; + flex-wrap: wrap; + +} +.category{ + border: 0.01rem #eee solid; + padding: 0.2rem; + width: 25%; +} .header-wrap { width: 100%; height: 4rem; @@ -444,4 +511,5 @@ export default { height: 4rem; margin-top: .2rem; } + diff --git a/src/views/login/index.vue b/src/views/login/index.vue index f191590..2cdceb6 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -57,14 +57,14 @@ export default { data: { phone: val.userName, password: val.password, - appId: "wxa2c60cdeef4ec602", + appId: "wx9ff823abeef23b94", // latitude: 34.51685, // longitude: 110.89456, } }).then(res => { console.log(res) if (res.code === 200) { - // this.doLogin(res) + this.doLogin(res) this.$router.push({ path: '/home' }) diff --git a/src/views/navigation/accomplish.vue b/src/views/navigation/accomplish.vue new file mode 100644 index 0000000..1ea8f89 --- /dev/null +++ b/src/views/navigation/accomplish.vue @@ -0,0 +1,63 @@ + + + + + \ No newline at end of file diff --git a/src/views/navigation/accounts/marketingClose.vue b/src/views/navigation/accounts/marketingClose.vue new file mode 100644 index 0000000..9b8f245 --- /dev/null +++ b/src/views/navigation/accounts/marketingClose.vue @@ -0,0 +1,329 @@ + + + \ No newline at end of file diff --git a/src/views/navigation/billing.vue b/src/views/navigation/billing.vue new file mode 100644 index 0000000..5b8565c --- /dev/null +++ b/src/views/navigation/billing.vue @@ -0,0 +1,164 @@ + + + + + \ No newline at end of file diff --git a/src/views/navigation/commodity.vue b/src/views/navigation/commodity.vue new file mode 100644 index 0000000..89d9407 --- /dev/null +++ b/src/views/navigation/commodity.vue @@ -0,0 +1,186 @@ + + + + + \ No newline at end of file diff --git a/src/views/navigation/consume/current.vue b/src/views/navigation/consume/current.vue new file mode 100644 index 0000000..ce6a1b4 --- /dev/null +++ b/src/views/navigation/consume/current.vue @@ -0,0 +1,213 @@ + + + \ No newline at end of file diff --git a/src/views/navigation/consume/memberGathering.vue b/src/views/navigation/consume/memberGathering.vue new file mode 100644 index 0000000..1bb61e8 --- /dev/null +++ b/src/views/navigation/consume/memberGathering.vue @@ -0,0 +1,58 @@ + + + + \ No newline at end of file diff --git a/src/views/navigation/consume/todayConsume.vue b/src/views/navigation/consume/todayConsume.vue new file mode 100644 index 0000000..3005467 --- /dev/null +++ b/src/views/navigation/consume/todayConsume.vue @@ -0,0 +1,122 @@ + + + + \ No newline at end of file diff --git a/src/views/navigation/details.vue b/src/views/navigation/details.vue new file mode 100644 index 0000000..6aff7af --- /dev/null +++ b/src/views/navigation/details.vue @@ -0,0 +1,124 @@ + + + + + + + diff --git a/src/views/navigation/integral/integralParticulars.vue b/src/views/navigation/integral/integralParticulars.vue new file mode 100644 index 0000000..a95be25 --- /dev/null +++ b/src/views/navigation/integral/integralParticulars.vue @@ -0,0 +1,74 @@ + + + \ No newline at end of file diff --git a/src/views/navigation/integral/memberIntegral.vue b/src/views/navigation/integral/memberIntegral.vue new file mode 100644 index 0000000..3f39f1a --- /dev/null +++ b/src/views/navigation/integral/memberIntegral.vue @@ -0,0 +1,26 @@ + + + \ No newline at end of file diff --git a/src/views/navigation/integral/userMessage.vue b/src/views/navigation/integral/userMessage.vue new file mode 100644 index 0000000..ad6c4ef --- /dev/null +++ b/src/views/navigation/integral/userMessage.vue @@ -0,0 +1,139 @@ + + + + \ No newline at end of file diff --git a/src/views/navigation/memberCancel.vue b/src/views/navigation/memberCancel.vue new file mode 100644 index 0000000..9c936f5 --- /dev/null +++ b/src/views/navigation/memberCancel.vue @@ -0,0 +1,31 @@ + + + \ No newline at end of file diff --git a/src/views/navigation/memberPublic.vue b/src/views/navigation/memberPublic.vue new file mode 100644 index 0000000..4520f6e --- /dev/null +++ b/src/views/navigation/memberPublic.vue @@ -0,0 +1,58 @@ + + + + + + \ No newline at end of file diff --git a/src/views/navigation/ticket/chPhone.vue b/src/views/navigation/ticket/chPhone.vue new file mode 100644 index 0000000..d662091 --- /dev/null +++ b/src/views/navigation/ticket/chPhone.vue @@ -0,0 +1,74 @@ + + + \ No newline at end of file diff --git a/src/views/navigation/ticket/memberTicket.vue b/src/views/navigation/ticket/memberTicket.vue new file mode 100644 index 0000000..91dcbc4 --- /dev/null +++ b/src/views/navigation/ticket/memberTicket.vue @@ -0,0 +1,26 @@ + + + \ No newline at end of file diff --git a/src/views/navigation/ticket/ticketDetails.vue b/src/views/navigation/ticket/ticketDetails.vue new file mode 100644 index 0000000..d8e96f1 --- /dev/null +++ b/src/views/navigation/ticket/ticketDetails.vue @@ -0,0 +1,226 @@ + + + + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index aa09f71..1e97682 100644 --- a/vue.config.js +++ b/vue.config.js @@ -20,7 +20,7 @@ module.exports = { } }, '/fumao': { - target: 'https://b.malls.iformall.com/B', + target: 'https://btest.malls.iformall.com/B', changeOrigin: true, pathRewrite: { '^/fumao': ''