Kaynağa Gözat

优化开单页面响应速度

jf 5 yıl önce
ebeveyn
işleme
d97d116bfc

+ 2 - 1
ghsApp/dist/build/mp-weixin/app.json

@@ -282,5 +282,6 @@
     "t-tr": "/components/plugin/t-table/t-tr",
     "t-th": "/components/plugin/t-table/t-th",
     "t-td": "/components/plugin/t-table/t-td"
-  }
+  },
+  "sitemapLocation": "sitemap.json"
 }

+ 34 - 6
ghsApp/dist/build/mp-weixin/project.config.json

@@ -5,27 +5,55 @@
   },
   "setting": {
     "urlCheck": false,
-    "es6": true
+    "es6": true,
+    "enhance": false,
+    "postcss": true,
+    "preloadBackgroundData": false,
+    "minified": true,
+    "newFeature": false,
+    "coverView": true,
+    "nodeModules": false,
+    "autoAudits": false,
+    "showShadowRootInWxmlPanel": true,
+    "scopeDataCheck": false,
+    "uglifyFileName": false,
+    "checkInvalidKey": true,
+    "checkSiteMap": true,
+    "uploadWithSourceMap": true,
+    "compileHotReLoad": false,
+    "useMultiFrameRuntime": true,
+    "useApiHook": true,
+    "useApiHostProcess": true,
+    "babelSetting": {
+      "ignore": [],
+      "disablePlugins": [],
+      "outputPath": ""
+    },
+    "enableEngineNative": false,
+    "bundle": false,
+    "useIsolateContext": true,
+    "useCompilerModule": true,
+    "userConfirmedUseCompilerModuleSwitch": false,
+    "userConfirmedBundleSwitch": false,
+    "packNpmManually": false,
+    "packNpmRelationList": [],
+    "minifyWXSS": true
   },
   "compileType": "miniprogram",
   "libVersion": "",
   "appid": "wx21b7c3ef12082099",
-  "projectname": "供货商",
+  "projectname": "%E4%BE%9B%E8%B4%A7%E5%95%86",
   "condition": {
     "search": {
-      "current": -1,
       "list": []
     },
     "conversation": {
-      "current": -1,
       "list": []
     },
     "game": {
-      "current": -1,
       "list": []
     },
     "miniprogram": {
-      "current": -1,
       "list": []
     }
   }

+ 15 - 3
ghsApp/src/components/module/app-commodity.vue

@@ -1,7 +1,10 @@
 <template>
 	<view class="item-cmd_bx">
-		<view class="img_bx" @click="addEvents">
-			<app-img  :src="info.cover" alt="商品图" mode="aspectFit" :height="160" />
+<!--		<view class="img_bx" @click="addEvents">-->
+<!--			<app-img  :src="info.cover" alt="商品图" mode="aspectFit" :height="160" />-->
+<!--		</view>-->
+		<view class="img_bx">
+			<image :src="info.cover"></image>
 		</view>
 		<view class="cmd-info_bx">
 			<view class="tit" @click="addEvents">{{ info.itemName || "" }}</view>
@@ -40,10 +43,11 @@ import animationMins from "@/mixins/animation";
 
 import allSelectInput from "@/components/module/allSelectInput";
 import allSelectInputMins from "@/mixins/allSelectInput";
+import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue'
 export default {
 	name: "Commodity",
 	components: {
-		AppImg,allSelectInput
+		AppImg,allSelectInput,easyLoadimage
 	},
 	mixins: [animationMins,allSelectInputMins],
 	props: {
@@ -62,6 +66,10 @@ export default {
 			type: Number,
 			default: 0
 		},
+		scrollTop: {
+			type: Number,
+			default: 0
+		},
 		smallCount: {
 			type: Number,
 			default: 0
@@ -174,6 +182,10 @@ export default {
 		position: absolute;
 		left: 0px;
 		top: 0px;
+		image{
+			width: 100%;
+			height: 100%;
+		}
 	}
 	.cmd-info_bx {
 		padding-left: 177px;