sys 3 anni fa
parent
commit
305c050f59

+ 13 - 0
alais.config.js

@@ -0,0 +1,13 @@
+const path = require('path');
+
+function resolve(dir) {
+    return path.join(__dirname, dir);
+}
+
+module.exports = {
+    resolve: {
+        alias: {
+            '@': resolve('/')
+        }
+    }
+};

+ 7 - 3
components/en-utils/en-blank.vue → components/en-utils/en-blank/en-blank.vue

@@ -1,9 +1,9 @@
 <template>
 	<view class="blank-page" v-if="showBlank">
 		<view class="blank-img-box">
-			<slot name="blankImg">
-				<image src="../static/img/blank-box.svg" class="blank-img"></image>
-			</slot>
+			<text class="iconfont">
+        &#xe614;
+			</text>
 		</view>
 		<view class="blank-text">
 			<text>{{message}}</text>
@@ -57,6 +57,7 @@
 </script>
 
 <style scoped lang="scss">
+  @import url("../../static/css/en-common.css") ;
 	.blank-page {
 		width: 100vw;
 		padding-top: 200rpx;
@@ -70,6 +71,9 @@
 		display: flex;
 		justify-content: center;
 		width: 100%;
+    .iconfont{
+      font-size: 200rpx;
+    }
 	}
 
 	.blank-img {

+ 4 - 0
components/en-from/en-nav/en-nav.vue → components/en-utils/en-nav/en-nav.vue

@@ -6,6 +6,7 @@
         <view @tap="goBack">
           <text  class="iconfont" v-if="leftShow">
             &#xe60e;
+
           </text>
         </view>
         <!-- <view v-if="false">
@@ -109,6 +110,9 @@
     display: flex;
     justify-content: space-between;
     padding: 0 20px;
+    .iconfont{
+      color: #fff;
+    }
     .title-text {
       font-size: 36rpx;
       font-weight: 600;

+ 5 - 1
components/static/css/en-common.css

@@ -1,3 +1,7 @@
+:root {
+
+}
+
 @font-face {
     font-family: 'iconfont';
     src:  url('/components/static/icon/iconfont.ttf') format('truetype');
@@ -8,7 +12,7 @@
     font-style: normal;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
-    color: #000;
+    color: #333333;
 }
 .box{
     background-color: #ffffff;

BIN
components/static/icon/iconfont.ttf


+ 1 - 1
main.js

@@ -9,7 +9,7 @@ Vue.use(router)
 // #ifndef VUE3
 import Vue from 'vue'
 import store from './store'
-import Nav from './components/en-from/en-nav/en-nav.vue'
+import Nav from './components/en-utils/en-nav/en-nav.vue'
 
 Vue.component('Nav', Nav)
 Vue.config.productionTip = false

+ 1 - 1
pages.json

@@ -31,7 +31,7 @@
 		"current": 0,
 		"list": [{
 			"name": "",
-			"path": "",
+			"path": "/pages/text/index",
 			"query": ""
 		}]
 	}

+ 3 - 3
pages/text/index.vue

@@ -6,8 +6,8 @@
 </template>
 
 <script>
-	import Black from '@/components/en-utils/en-blank.vue'
-	
+	import Black from '@/components/en-utils/en-blank/en-blank'
+
 	export default {
 		components:{
 			Black,
@@ -17,4 +17,4 @@
 
 <style scoped lang="scss">
 
-</style>	
+</style>