فهرست منبع

初始化项目

zhujindu 9 ماه پیش
والد
کامیت
313dc92ecd

+ 2 - 2
.env.development

@@ -1,12 +1,12 @@
 # 页面标题
-VUE_APP_TITLE = 门店拜访
+VUE_APP_TITLE = 经销商拜访
 
 # 开发环境配置
 ENV = 'development'
 VUE_APP_Target=https://ssbsfatest.nipponpaint.com.cn
 VUE_APP_SSB_LINK=http://suishenbangtest.nipponpaint.com.cn
 VUE_APP_XD_LINK=http://b2btest.nipponpaint.com.cn
-# 门店拜访/开发环境
+# 经销商拜访/开发环境
 #VUE_APP_BASE_API = '/dev-api/'
 VUE_APP_BASE_API = '/ssbsfa/'
 # VUE_APP_BASE_API = '/'

+ 1 - 1
.env.production

@@ -1,6 +1,6 @@
 
 # 页面标题
-VUE_APP_TITLE = 门店拜访
+VUE_APP_TITLE = 经销商拜访
 
 # 开发环境配置
 ENV = 'production'

+ 1 - 1
.env.test

@@ -1,5 +1,5 @@
 # 页面标题
-VUE_APP_TITLE = 门店拜访
+VUE_APP_TITLE = 经销商拜访
 ENV = 'test'
 
 # 本地开发环境配置

+ 1 - 19
public/index.html

@@ -10,7 +10,7 @@
     <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
     <title><%= webpackConfig.name %></title>
   </head>
-  <body class="bgcolor">
+  <body>
     <noscript>
       <strong
         >We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without
@@ -18,24 +18,6 @@
       >
     </noscript>
     <div id="app"></div>
-    <script>
-      if (GetQueryValue('loginName') != null) {
-        localStorage.removeItem('loginType');
-        localStorage.setItem('loginName', GetQueryValue('loginName'));
-        location.href = location.href.split('?')[0] + '?v=' + new Date().getTime();
-      }
-      function GetQueryValue(queryName) {
-        var query = decodeURI(window.location.search.substring(1));
-        var vars = query.split('&');
-        for (var i = 0; i < vars.length; i++) {
-          var pair = vars[i].split('=');
-          if (pair[0] == queryName) {
-            return pair[1];
-          }
-        }
-        return null;
-      }
-    </script>
     <script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
     <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
     <!--生产、uat-->

+ 5 - 1
src/App.vue

@@ -1,5 +1,5 @@
 <template>
-  <div id="app" class="bgcolor">
+  <div id="app">
     <router-view />
   </div>
 </template>
@@ -53,4 +53,8 @@ export default {
   height: 100%;
   z-index: 9999999;
 }
+#app {
+  width: 100%;
+  height: 100%;
+}
 </style>

+ 2 - 2
src/api/index.js

@@ -87,9 +87,9 @@ export function restartProcess(query) {
   });
 }
 // 计划外
-export function getUserOutPlaList(query) {
+export function queryMyChainsGroupList(query) {
   return request({
-    url: 'mobile/route/userOutPlan',
+    url: 'mobile/chainsGroup/queryMyChainsGroupList',
     method: 'get',
     params: query,
   });

BIN
src/assets/icon/bfxx.png


BIN
src/assets/icon/call.png


BIN
src/assets/icon/image.png


BIN
src/assets/icon/kehuxinxi-2.png


BIN
src/assets/icon/paste.png


BIN
src/assets/icon/times.png


BIN
src/assets/icon/yichang.png


+ 98 - 0
src/assets/styles/index.css

@@ -0,0 +1,98 @@
+
+body {
+    height: 100%;
+    -moz-osx-font-smoothing: grayscale;
+    -webkit-font-smoothing: antialiased;
+    text-rendering: optimizeLegibility;
+    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
+}
+html {height: 100%;box-sizing: border-box;}
+*,
+*:before,
+*:after {box-sizing: inherit;}
+.no-padding {padding: 0px !important;}
+.padding-content {padding: 4px 0;}
+a:focus,
+a:active {outline: none;}
+a,
+a:focus,
+a:hover {cursor: pointer;color: inherit;text-decoration: none;}
+div:focus {outline: none;}
+.fr {float: right;}
+.fl {float: left;}
+.pr-5 {padding-right: 5px;}
+.pl-5 {padding-left: 5px;}
+.block {display: block;}
+.pointer {cursor: pointer;}
+.inlineBlock {display: block;}
+.clearfix:after {visibility: hidden;display: block;font-size: 0;content: " ";clear: both;height: 0;}
+.tc {text-align: center}
+.per50 {width: 50%;}
+.tr {text-align: right;}
+.tl {text-align: left;}
+.position-r {position: relative;}
+.van-checkbox__icon .van-icon {border: 1px solid #0057ba !important;}
+.van-radio__icon .van-icon {border: 1px solid #5ECEB1 !important;}
+@media screen and (max-width: 1400px) {
+    html {
+        font-size: 62.5%;
+    }
+}
+
+@media screen and (min-width: 1400px) {
+    html {
+        font-size: 75%;
+    }
+}
+/*public*/
+.bgcolor {background-color: #F5F5F5;width: 100%;height: 100%;}
+.contentborder {background-color: #fff;border-radius: 5px;margin: 0 10px 16px;overflow: hidden}
+.colorbalck {color: #333;}
+.rateText{vertical-align: super;display: inline-block;font-size: 14px;}
+.lineGrey {height: 10px;width: 100%;background: #f5f5f5;}
+.f-color {color: #666;}
+.navBarTOP {position: fixed;width: 100%;z-index: 2;top: 0;background-color: #fff;}
+.navBar .van-nav-bar__title {font-size: 16px;font-weight: bold;}
+.linep .colorbalck {color: #333333}
+.contentborder .Btn1 {display: block;width: 100%;border-radius: 6px;color: #fff !important;background-color: #0057ba;border: 1px solid #0057ba;height: 44px;font-size: 16px;}
+.container .van-cell__title{white-space: inherit;}
+.containers .van-cell__title{white-space: inherit;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;}
+.containertext .van-cell__title{white-space: inherit;overflow: hidden;overflow: hidden;text-overflow:ellipsis;white-space:normal;}
+.van-f-red {color: red;width: 8px;display: inline-block;line-height: 26px;}
+.envelopes{width: 100px;height: 90px;position: fixed;bottom: 16px;right: 0;text-align: center;}
+.envelopes img{display: block;width: 100%;}
+.envelopes p{color:peachpuff;margin-top: -40px;}
+.zpover{
+    background-color: #ED5C68 !important;color:#fff !important;padding: 8px 10px !important;z-index: 1 !important;border-radius: 6px !important;
+    border:0 !important;box-shadow:none !important;
+}
+.zpover p{margin: 0;}
+.zpover  .popper__arrow::after{border-bottom-color: #ED5C68 !important;border-top-color: #ED5C68 !important;}
+.zpover1{background-color: #0057ba !important;}
+.zpover2{background-color: #FFBA13 !important;}
+.zpover5{background-color: #2BC59F !important;}
+.zpover5  .popper__arrow::after{border-bottom-color: #2BC59F !important;border-top-color: #2BC59F !important;}
+.zpover6{background-color: #8F82BC !important;}
+.zpover6 .popper__arrow::after{border-bottom-color: #8F82BC !important;border-top-color: #8F82BC !important;}
+.zpover2  .popper__arrow::after{border-bottom-color: #FFBA13 !important;border-top-color: #FFBA13 !important;}
+.zpover1  .popper__arrow::after{border-bottom-color: #0057ba !important;border-top-color: #0057ba !important;}
+.itenHhistory{margin: 10px;border-bottom: 1px solid #eee;}
+.itenHhistory:last-child{border:0}
+.flex1{overflow: hidden;}
+.van-calendar__selected-day{background-color: #0057ba !important;}
+.van-button--danger{background-color: #0057ba !important;border: 1px solid #0057ba!important;}
+.mapCheckbox,.icoImgMAP{width: 100%;background-color: white;}
+.mapCheckbox .van-checkbox__icon{display: none;}
+.mapCheckbox .van-checkbox__label,.mapCheckbox .van-checkbox--horizontal{margin: 0;}
+.mapCheckbox .van-checkbox__icon--checked +span{color:red;}
+.van-dialog__confirm, .van-dialog__confirm:active {color: #0057ba;}
+.processIco{top:50%;float: right;right:20px;position: absolute;margin-top: -8px}
+.van-checkbox__icon--round .van-icon{border-radius: 4px !important;}
+.textsize .van-button--small{height: 25px;padding: 0 11px;}
+.mapaddress{position: fixed;bottom:20px;height: 240px;background-color: white;width: 100%;z-index: 1001;font-size: 14px;overflow: hidden;border-radius: 6px;}
+.mapaddress .title{padding:14px;border-bottom: 1px solid #eee;height: 48px}
+.mapaddress .titleText{width: 174px;margin: 0px auto;text-align: center;position: absolute;left: 50%;margin-left: -87px;}
+.mapaddress .listBox{padding:5px 12px;overflow-y: auto;height: 240px;}
+.zpover1sb{width: 97%;}
+.zpover1sb .el-table .el-table__cell{padding:8px 0;}
+.hid{overflow: hidden}

+ 8 - 0
src/assets/styles/variable.scss

@@ -0,0 +1,8 @@
+
+
+@use "sass:math";
+$vw_base: 750; //设计稿宽度
+@function vw($px) {
+	// @return ($px / $vw_base) * 100vw;
+	@return (math.div( $px , $vw_base ))*100vw;
+}

+ 1 - 1
src/layout/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="container bgcolor">
+  <div class="container" style="width: 100%; height: 100%">
     <template v-if="$route.meta.keepAlive">
       <keep-alive>
         <router-view></router-view>

+ 1 - 2
src/main.js

@@ -3,7 +3,7 @@ import App from './App.vue';
 import store from './store';
 import router from './router';
 import permission from './permission';
-// import '@/assets/styles/index.css';
+import '@/assets/styles/index.css';
 import {
   parseTime,
   selectDictLabelu,
@@ -38,7 +38,6 @@ import 'element-ui/lib/theme-chalk/progress.css';
 import ElDialog from 'element-ui/lib/dialog';
 import 'element-ui/lib/theme-chalk/dialog.css';
 // import wx from 'weixin-js-sdk';
-// jenkins 测试打包前先合并
 
 Vue.use(ElTable);
 Vue.use(ElTableColumn);

+ 17 - 1
src/router/index.js

@@ -29,7 +29,23 @@ const router = new VueRouter({
           name: 'home',
           component: () => import('@/views/home/index.vue'),
           meta: {
-            keepAlive: true,
+            title: '经销商拜访',
+          },
+        },
+        {
+          path: '/err',
+          name: 'err',
+          component: () => import('@/views/home/err.vue'),
+          meta: {
+            title: '404',
+          },
+        },
+        {
+          path: '/login',
+          name: 'login',
+          component: () => import('@/views/home/login.vue'),
+          meta: {
+            title: '登录',
           },
         },
       ],

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1427 - 6
src/views/home/index.vue


+ 1 - 1
vue.config.js

@@ -3,7 +3,7 @@ const path = require('path');
 function resolve(dir) {
   return path.join(__dirname, dir);
 }
-const name = process.env.VUE_APP_TITLE || '门店拜访'; // 网页标题
+const name = process.env.VUE_APP_TITLE || '经销商拜访'; // 网页标题
 const port = 9999; // 端口
 module.exports = {
   // publicPath: process.env.NODE_ENV === "production" ? "/mobile/" : "/",