├── .gitattributes ├── .gitignore ├── README.md ├── babel.config.js ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── img │ └── icons │ │ ├── DD114.png │ │ ├── DD128.png │ │ ├── DD144.png │ │ ├── DD72.png │ │ ├── android-chrome-192x192.png │ │ ├── android-chrome-512x512.png │ │ ├── apple-touch-icon-120x120.png │ │ ├── apple-touch-icon-152x152.png │ │ ├── apple-touch-icon-180x180.png │ │ ├── apple-touch-icon-60x60.png │ │ ├── apple-touch-icon-76x76.png │ │ ├── apple-touch-icon.png │ │ ├── dd.png │ │ ├── dd48.png │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ ├── msapplication-icon-144x144.png │ │ ├── mstile-150x150.png │ │ └── safari-pinned-tab.svg ├── index.html ├── manifest.json └── robots.txt ├── src ├── App.vue ├── assets │ ├── images │ │ ├── DD128.png │ │ ├── QQ.png │ │ ├── banner.jpg │ │ ├── coupon-back.png │ │ ├── dd.png │ │ ├── dd32.png │ │ ├── dd48.png │ │ ├── dd64.png │ │ ├── hongbao.gif │ │ ├── noData.png │ │ ├── p1.jpg │ │ ├── shirt.jpg │ │ ├── shirt.png │ │ ├── swipe-1.jpg │ │ ├── swper-1.jpg │ │ ├── swper-2.jpg │ │ ├── taobao.png │ │ ├── wecaht.png │ │ ├── xiaohongbao-155x212.gif │ │ └── xiaohongbao.gif │ └── logo.png ├── common │ └── user.js ├── components │ ├── FloatBtn.vue │ ├── NewPop.vue │ ├── NoData.vue │ ├── Notice.vue │ ├── RoundBtn.vue │ ├── Tab.vue │ └── good │ │ ├── Coupon.vue │ │ └── Coupon2.vue ├── main.js ├── registerServiceWorker.js ├── router.js ├── store.js └── views │ ├── cart │ └── index.vue │ ├── goods │ └── index.vue │ ├── index │ └── index.vue │ ├── profit │ └── index.vue │ ├── search │ └── Search.vue │ └── user │ ├── alipay.vue │ ├── cash.vue │ ├── cashLog.vue │ ├── index.vue │ ├── login.vue │ ├── orderList.vue │ ├── register.vue │ └── tuiLog.vue └── vue.config.js /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw* 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 淘宝客+返利系统的前端界面(支持拼多多商品) 2 | ## 支持预览[Demo](https://www.ddyfl.com) 3 | ## 淘宝优惠券搜索 4 | 使用淘宝商品链接(淘口令)搜索商品是否有优惠券 5 | ## 产品分类展示 6 | 根据产品分类显示有优惠券或返利的商品 7 | ## 推广代理系统 8 | 支持多级代理,推广下级收益等 9 | ## 淘礼金红包 10 | 5元,9.9元商品专区,可以使用淘礼金红包 11 | ## 基于vue-cli3 + vant框架 12 | + npm i 13 | + npm run serve 14 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@vue/app"], 3 | plugins: [ 4 | [ 5 | "import", 6 | { libraryName: "vant", libraryDirectory: "es", style: true }, 7 | "vant" 8 | ] 9 | ] 10 | }; 11 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ddshop", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build", 8 | "lint": "vue-cli-service lint" 9 | }, 10 | "dependencies": { 11 | "axios": "^0.18.0", 12 | "clipboard": "^2.0.4", 13 | "fastclick": "^1.0.6", 14 | "register-service-worker": "^1.5.2", 15 | "vant": "^2.2.16", 16 | "vconsole": "^3.3.0", 17 | "vue": "^2.6.6", 18 | "vue-loading-overlay": "^3.2.0", 19 | "vue-router": "^3.0.1", 20 | "vuex": "^3.0.1", 21 | "web-open-app": "^1.0.1" 22 | }, 23 | "devDependencies": { 24 | "@vue/cli-plugin-babel": "^3.4.0", 25 | "@vue/cli-plugin-eslint": "^3.4.0", 26 | "@vue/cli-plugin-pwa": "^3.4.0", 27 | "@vue/cli-service": "^3.4.0", 28 | "@vue/eslint-config-prettier": "^4.0.1", 29 | "babel-eslint": "^10.0.1", 30 | "babel-plugin-import": "^1.11.0", 31 | "eslint": "^5.8.0", 32 | "eslint-plugin-vue": "^5.0.0", 33 | "less": "^3.0.4", 34 | "less-loader": "^4.1.0", 35 | "vue-template-compiler": "^2.5.21" 36 | }, 37 | "eslintConfig": { 38 | "root": true, 39 | "env": { 40 | "node": true 41 | }, 42 | "extends": [ 43 | "plugin:vue/essential", 44 | "@vue/prettier" 45 | ], 46 | "rules": { 47 | "no-console": "off", 48 | "semi": 0, 49 | "no-unused-vars": "off", 50 | "prettier/prettier": [ 51 | "error", 52 | { 53 | "singleQuote": true, 54 | "trailingComma": "none", 55 | "bracketSpacing": true, 56 | "jsxBracketSameLine": true, 57 | "parser": "flow" 58 | } 59 | ] 60 | }, 61 | "parserOptions": { 62 | "parser": "babel-eslint" 63 | } 64 | }, 65 | "postcss": { 66 | "plugins": { 67 | "autoprefixer": {} 68 | } 69 | }, 70 | "browserslist": [ 71 | "> 1%", 72 | "last 2 versions", 73 | "not ie <= 8", 74 | "Android >= 4.0", 75 | "iOS >= 7" 76 | ] 77 | } 78 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/favicon.ico -------------------------------------------------------------------------------- /public/img/icons/DD114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/DD114.png -------------------------------------------------------------------------------- /public/img/icons/DD128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/DD128.png -------------------------------------------------------------------------------- /public/img/icons/DD144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/DD144.png -------------------------------------------------------------------------------- /public/img/icons/DD72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/DD72.png -------------------------------------------------------------------------------- /public/img/icons/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/android-chrome-192x192.png -------------------------------------------------------------------------------- /public/img/icons/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/android-chrome-512x512.png -------------------------------------------------------------------------------- /public/img/icons/apple-touch-icon-120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/apple-touch-icon-120x120.png -------------------------------------------------------------------------------- /public/img/icons/apple-touch-icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/apple-touch-icon-152x152.png -------------------------------------------------------------------------------- /public/img/icons/apple-touch-icon-180x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/apple-touch-icon-180x180.png -------------------------------------------------------------------------------- /public/img/icons/apple-touch-icon-60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/apple-touch-icon-60x60.png -------------------------------------------------------------------------------- /public/img/icons/apple-touch-icon-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/apple-touch-icon-76x76.png -------------------------------------------------------------------------------- /public/img/icons/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/apple-touch-icon.png -------------------------------------------------------------------------------- /public/img/icons/dd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/dd.png -------------------------------------------------------------------------------- /public/img/icons/dd48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/dd48.png -------------------------------------------------------------------------------- /public/img/icons/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/favicon-16x16.png -------------------------------------------------------------------------------- /public/img/icons/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/favicon-32x32.png -------------------------------------------------------------------------------- /public/img/icons/msapplication-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/msapplication-icon-144x144.png -------------------------------------------------------------------------------- /public/img/icons/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/public/img/icons/mstile-150x150.png -------------------------------------------------------------------------------- /public/img/icons/safari-pinned-tab.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | Created by potrace 1.11, written by Peter Selinger 2001-2013 9 | 10 | 12 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 多多云返利 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 31 | 32 | 33 | 34 | 38 |
39 | 40 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "多多云返利", 3 | "short_name": "多多云返利", 4 | "scope": "/", 5 | "description": "多多返利云平台,选中淘宝商品,来多多云搜索后再去下单,轻松获取返利。", 6 | "start_url": "/", 7 | "icons": [ 8 | { 9 | "src": "./img/icons/dd.png", 10 | "sizes": "57x57", 11 | "type": "image/png" 12 | }, 13 | { 14 | "src": "./img/icons/DD72.png", 15 | "sizes": "72x72", 16 | "type": "image/png" 17 | }, 18 | { 19 | "src": "./img/icons/android-chrome-192x192.png", 20 | "sizes": "192x192", 21 | "type": "image/png" 22 | }, 23 | { 24 | "src": "./img/icons/android-chrome-512x512.png", 25 | "sizes": "512x512", 26 | "type": "image/png" 27 | } 28 | ], 29 | "display": "standalone", 30 | "background_color": "#2196F3", 31 | "theme_color": "#4DBA87" 32 | } 33 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 10 | 22 | 23 | -------------------------------------------------------------------------------- /src/assets/images/DD128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/DD128.png -------------------------------------------------------------------------------- /src/assets/images/QQ.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/QQ.png -------------------------------------------------------------------------------- /src/assets/images/banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/banner.jpg -------------------------------------------------------------------------------- /src/assets/images/coupon-back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/coupon-back.png -------------------------------------------------------------------------------- /src/assets/images/dd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/dd.png -------------------------------------------------------------------------------- /src/assets/images/dd32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/dd32.png -------------------------------------------------------------------------------- /src/assets/images/dd48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/dd48.png -------------------------------------------------------------------------------- /src/assets/images/dd64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/dd64.png -------------------------------------------------------------------------------- /src/assets/images/hongbao.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/hongbao.gif -------------------------------------------------------------------------------- /src/assets/images/noData.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/noData.png -------------------------------------------------------------------------------- /src/assets/images/p1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/p1.jpg -------------------------------------------------------------------------------- /src/assets/images/shirt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/shirt.jpg -------------------------------------------------------------------------------- /src/assets/images/shirt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/shirt.png -------------------------------------------------------------------------------- /src/assets/images/swipe-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/swipe-1.jpg -------------------------------------------------------------------------------- /src/assets/images/swper-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/swper-1.jpg -------------------------------------------------------------------------------- /src/assets/images/swper-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/swper-2.jpg -------------------------------------------------------------------------------- /src/assets/images/taobao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/taobao.png -------------------------------------------------------------------------------- /src/assets/images/wecaht.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/wecaht.png -------------------------------------------------------------------------------- /src/assets/images/xiaohongbao-155x212.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/xiaohongbao-155x212.gif -------------------------------------------------------------------------------- /src/assets/images/xiaohongbao.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/images/xiaohongbao.gif -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lanix516/tbkshop/6d35bfec01f5442174ccf64582d5b2ca50120605/src/assets/logo.png -------------------------------------------------------------------------------- /src/common/user.js: -------------------------------------------------------------------------------- 1 | export var getUserSession = function() { 2 | return localStorage.getItem("session_id"); 3 | }; 4 | export var setUserSession = function() { 5 | return localStorage.setItem("session_id"); 6 | }; 7 | -------------------------------------------------------------------------------- /src/components/FloatBtn.vue: -------------------------------------------------------------------------------- 1 | 8 | 15 | -------------------------------------------------------------------------------- /src/components/NewPop.vue: -------------------------------------------------------------------------------- 1 | 21 | 32 | 75 | -------------------------------------------------------------------------------- /src/components/NoData.vue: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 14 | 16 | 17 | -------------------------------------------------------------------------------- /src/components/Notice.vue: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 18 | -------------------------------------------------------------------------------- /src/components/RoundBtn.vue: -------------------------------------------------------------------------------- 1 | 6 | 13 | 24 | 25 | -------------------------------------------------------------------------------- /src/components/Tab.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 25 | 26 | -------------------------------------------------------------------------------- /src/components/good/Coupon.vue: -------------------------------------------------------------------------------- 1 | 9 | 14 | 53 | 54 | -------------------------------------------------------------------------------- /src/components/good/Coupon2.vue: -------------------------------------------------------------------------------- 1 | 55 | 60 | 159 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | import App from "./App.vue"; 3 | import router from "./router"; 4 | import store from "./store"; 5 | import "./registerServiceWorker"; 6 | 7 | import Axios from "axios"; 8 | //Import FastClick 9 | import FastClick from "fastclick"; 10 | 11 | FastClick.attach(document.body); 12 | // Import Loading and stylesheet 13 | import Loading from "vue-loading-overlay"; 14 | import "vue-loading-overlay/dist/vue-loading.css"; 15 | Vue.use(Loading); 16 | 17 | //Import Toast 18 | import { Toast, Dialog, List } from "vant"; 19 | Vue.use(Toast); 20 | Vue.use(List); 21 | Vue.use(Dialog); 22 | 23 | if (process.env.NODE_ENV == "development") { 24 | Axios.defaults.baseURL = "/api"; 25 | } else { 26 | Axios.defaults.baseURL = "/interface/"; 27 | } 28 | 29 | Axios.defaults.headers = { 30 | "Content-Type": "multipart/form-data" 31 | }; 32 | 33 | Vue.config.productionTip = false; 34 | let user_str = localStorage.getItem("userInfo"); 35 | if (user_str) { 36 | let user = JSON.parse(user_str); 37 | store.commit("setUserInfo", user); 38 | store.commit("setLogin", true); 39 | Axios.defaults.headers.AuthUserId = user.uid; 40 | } 41 | Vue.prototype.axios = Axios; 42 | new Vue({ 43 | router, 44 | store, 45 | render: h => h(App) 46 | }).$mount("#app"); 47 | -------------------------------------------------------------------------------- /src/registerServiceWorker.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable no-console */ 2 | 3 | import { register } from "register-service-worker"; 4 | let version = "v1.5" 5 | if (process.env.NODE_ENV === "production") { 6 | register(`${process.env.BASE_URL}service-worker.js`, { 7 | ready() { 8 | console.log( 9 | "App is being served from cache by a service worker.\n" + 10 | "For more details, visit https://goo.gl/AFskqB" 11 | ); 12 | }, 13 | registered() { 14 | console.log("Service worker has been registered."); 15 | }, 16 | cached() { 17 | console.log("Content has been cached for offline use."); 18 | }, 19 | updatefound(reg) { 20 | let v = localStorage.getItem("version") 21 | if (v && v != version) { 22 | reg.update(); 23 | localStorage.setItem("version", version) 24 | } 25 | console.log("New content is downloading."); 26 | }, 27 | updated() { 28 | console.log("New content is available; please refresh."); 29 | }, 30 | offline() { 31 | console.log( 32 | "No internet connection found. App is running in offline mode." 33 | ); 34 | }, 35 | error(error) { 36 | console.error("Error during service worker registration:", error); 37 | } 38 | }); 39 | } 40 | -------------------------------------------------------------------------------- /src/router.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | import Router from "vue-router"; 3 | 4 | Vue.use(Router); 5 | 6 | export default new Router({ 7 | base: process.env.BASE_URL, 8 | mode: "history", 9 | routes: [ 10 | { 11 | path: "*", 12 | redirect: "/" 13 | }, 14 | { 15 | name: "home", 16 | path: "/", 17 | component: () => import("./views/index"), 18 | meta: { 19 | title: "首页", 20 | keepAlive: true, 21 | } 22 | }, 23 | { 24 | name: "user", 25 | path: "/user", 26 | component: () => import("./views/user"), 27 | meta: { 28 | title: "会员中心" 29 | } 30 | }, 31 | { 32 | name: "alipay", 33 | path: "/alipay", 34 | component: () => import("./views/user/alipay"), 35 | meta: { 36 | title: "支付宝账号", 37 | fullScreen: true 38 | } 39 | }, 40 | { 41 | name: "cash", 42 | path: "/cash", 43 | component: () => import("./views/user/cash"), 44 | meta: { 45 | title: "申请提现", 46 | fullScreen: true 47 | } 48 | }, 49 | { 50 | name: "cashlog", 51 | path: "/cashlog", 52 | component: () => import("./views/user/cashLog"), 53 | meta: { 54 | title: "提现记录", 55 | fullScreen: true 56 | } 57 | }, 58 | { 59 | name: "orderList", 60 | path: "/orderlist", 61 | component: () => import("./views/user/orderList"), 62 | meta: { 63 | title: "所有订单", 64 | fullScreen: true 65 | } 66 | }, 67 | { 68 | name: "tuiLog", 69 | path: "/tuilog", 70 | component: () => import("./views/user/tuiLog"), 71 | meta: { 72 | title: "推广记录", 73 | fullScreen: true 74 | } 75 | }, 76 | { 77 | name: "cart", 78 | path: "/cart", 79 | component: () => import("./views/cart"), 80 | meta: { 81 | title: "购物车" 82 | } 83 | }, 84 | { 85 | name: "search", 86 | path: "/search", 87 | component: () => import("./views/search/Search"), 88 | meta: { 89 | title: "搜索", 90 | keepAlive: true 91 | } 92 | }, 93 | { 94 | name: "goods", 95 | path: "/goods", 96 | component: () => import("./views/goods"), 97 | props: route => ({ keyword: route.query.keyword }), 98 | meta: { 99 | title: "商品详情", 100 | fullScreen: true 101 | } 102 | }, 103 | { 104 | name: "profit", 105 | path: "/profit", 106 | component: () => import("./views/profit"), 107 | meta:{ 108 | title: "我要赚钱", 109 | keepAlive: true 110 | } 111 | }, 112 | { 113 | name: "register", 114 | path: "/register", 115 | component: () => import("./views/user/register.vue"), 116 | meta: { 117 | title: "用户注册", 118 | fullScreen: true 119 | } 120 | }, 121 | { 122 | name: "registeruser", 123 | path: "/register/:uid", 124 | component: () => import("./views/user/register.vue"), 125 | meta: { 126 | title: "用户注册", 127 | fullScreen: true 128 | } 129 | }, 130 | { 131 | name: "login", 132 | path: "/login", 133 | component: () => import("./views/user/login.vue"), 134 | meta: { 135 | title: "登陆", 136 | fullScreen: true 137 | } 138 | } 139 | ] 140 | }); 141 | -------------------------------------------------------------------------------- /src/store.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | import Vuex from "vuex"; 3 | 4 | Vue.use(Vuex); 5 | 6 | export default new Vuex.Store({ 7 | state: { 8 | isLogin: false, 9 | userInfo: {} 10 | }, 11 | mutations: { 12 | setLogin(state, sign) { 13 | state.isLogin = sign; 14 | }, 15 | setUserInfo(state, userInfo) { 16 | state.userInfo = userInfo; 17 | } 18 | }, 19 | actions: {} 20 | }); 21 | -------------------------------------------------------------------------------- /src/views/cart/index.vue: -------------------------------------------------------------------------------- 1 | 27 | 28 | 89 | 90 | 120 | -------------------------------------------------------------------------------- /src/views/goods/index.vue: -------------------------------------------------------------------------------- 1 | 98 | 99 | 333 | 334 | 400 | -------------------------------------------------------------------------------- /src/views/index/index.vue: -------------------------------------------------------------------------------- 1 | 81 | 82 | 255 | 256 | -------------------------------------------------------------------------------- /src/views/profit/index.vue: -------------------------------------------------------------------------------- 1 | 14 | 35 | 45 | -------------------------------------------------------------------------------- /src/views/search/Search.vue: -------------------------------------------------------------------------------- 1 | 49 | 50 | 186 | 187 | 213 | -------------------------------------------------------------------------------- /src/views/user/alipay.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 85 | 86 | 92 | -------------------------------------------------------------------------------- /src/views/user/cash.vue: -------------------------------------------------------------------------------- 1 | 31 | 32 | 115 | 116 | 122 | -------------------------------------------------------------------------------- /src/views/user/cashLog.vue: -------------------------------------------------------------------------------- 1 | 15 | 16 | 74 | 75 | 81 | -------------------------------------------------------------------------------- /src/views/user/index.vue: -------------------------------------------------------------------------------- 1 | 78 | 79 | 192 | 193 | 238 | -------------------------------------------------------------------------------- /src/views/user/login.vue: -------------------------------------------------------------------------------- 1 | 66 | 128 | 129 | 154 | -------------------------------------------------------------------------------- /src/views/user/orderList.vue: -------------------------------------------------------------------------------- 1 | 37 | 38 | 107 | 108 | 118 | -------------------------------------------------------------------------------- /src/views/user/register.vue: -------------------------------------------------------------------------------- 1 | 72 | 149 | 150 | 175 | -------------------------------------------------------------------------------- /src/views/user/tuiLog.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | 83 | 84 | 104 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | outputDir: "./dist", 3 | publicPath: process.env.NODE_ENV === "production" ? "/" : "/", 4 | devServer: { 5 | proxy: { 6 | "/api": { 7 | target: "https://www.ddyfl.com", 8 | changeOrigin: true, 9 | ws: true, 10 | secure: false, 11 | pathRewrite: { 12 | "^/api": "/interface" 13 | } 14 | } 15 | } 16 | } 17 | }; 18 | --------------------------------------------------------------------------------