郑柏铃 4 dagar sedan
förälder
incheckning
80c16ffb9a
17 ändrade filer med 16 tillägg och 79 borttagningar
  1. 2 2
      18.uniapp小程序/project2/components/listContent.vue
  2. 3 3
      18.uniapp小程序/project2/pages/home/home.vue
  3. 1 1
      18.uniapp小程序/project2/unpackage/dist/dev/.sourcemap/mp-weixin/components/listContent.js.map
  4. 0 1
      18.uniapp小程序/project2/unpackage/dist/dev/.sourcemap/mp-weixin/pages/home/home.js.map
  5. 0 4
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/common/assets.js
  6. 2 1
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/components/listContent.js
  7. 0 9
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/componets/listContent.js
  8. 0 4
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/componets/listContent.json
  9. 0 1
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/componets/listContent.wxml
  10. 0 0
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/componets/listContent.wxss
  11. 6 0
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/home/home.js
  12. 1 1
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/home/home.wxml
  13. 0 22
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/index/index.js
  14. 0 4
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/index/index.json
  15. 0 1
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/index/index.wxml
  16. 0 23
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
  17. 1 2
      18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/project.config.json

+ 2 - 2
18.uniapp小程序/project2/components/listContent.vue

@@ -2,7 +2,7 @@
 	<view class="listContent">
 		<view class="list_header">
 			<view class="list_text">
-				{{main.subject_collection.name}}
+				{{main.subject_collection?.name}}
 			</view>
 			<view class="list_more">
 				更多
@@ -16,4 +16,4 @@
 </script>
 
 <style scoped lang="scss">
-</style>
+</style>

+ 3 - 3
18.uniapp小程序/project2/pages/home/home.vue

@@ -1,9 +1,9 @@
 <template>
 	<view class="home">
 		首页
-		<listContent :main='domesticList'></listContent>
-		<listContent></listContent>
-		<listContent></listContent>
+		<listContent  :main='domesticList'></listContent>
+		<listContent  :main='domesticList'></listContent>
+		<listContent  :main='domesticList'></listContent>
 	</view>
 </template>
 

+ 1 - 1
18.uniapp小程序/project2/unpackage/dist/dev/.sourcemap/mp-weixin/components/listContent.js.map

@@ -1 +1 @@
-{"version":3,"file":"listContent.js","sources":["/Applications/学习/班级/w1020/18.uniapp小程序/project2/components/listContent.vue?type=component"],"sourcesContent":["import Component from '/Applications/学习/班级/w1020/18.uniapp小程序/project2/components/listContent.vue'\nwx.createComponent(Component)"],"names":["Component"],"mappings":";;;;;;;;;;;;;AACA,GAAG,gBAAgBA,SAAS;"}
+{"version":3,"file":"listContent.js","sources":["/Applications/学习/班级/w1020/18.uniapp小程序/project2/components/listContent.vue?type=component"],"sourcesContent":["import Component from '/Applications/学习/班级/w1020/18.uniapp小程序/project2/components/listContent.vue'\nwx.createComponent(Component)"],"names":["Component"],"mappings":";;;;;;;;;;;;;;AACA,GAAG,gBAAgBA,SAAS;"}

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 1
18.uniapp小程序/project2/unpackage/dist/dev/.sourcemap/mp-weixin/pages/home/home.js.map


+ 0 - 4
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/common/assets.js

@@ -1,4 +0,0 @@
-"use strict";
-const _imports_0 = "/static/logo.png";
-exports._imports_0 = _imports_0;
-//# sourceMappingURL=../../.sourcemap/mp-weixin/common/assets.js.map

+ 2 - 1
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/components/listContent.js

@@ -5,8 +5,9 @@ const _sfc_main = {
   props: ["main"],
   setup(__props) {
     return (_ctx, _cache) => {
+      var _a;
       return {
-        a: common_vendor.t(__props.main.subject_collection.name)
+        a: common_vendor.t((_a = __props.main.subject_collection) == null ? void 0 : _a.name)
       };
     };
   }

+ 0 - 9
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/componets/listContent.js

@@ -1,9 +0,0 @@
-"use strict";
-const common_vendor = require("../common/vendor.js");
-const _sfc_main = {};
-function _sfc_render(_ctx, _cache) {
-  return {};
-}
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
-wx.createComponent(Component);
-//# sourceMappingURL=../../.sourcemap/mp-weixin/componets/listContent.js.map

+ 0 - 4
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/componets/listContent.json

@@ -1,4 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {}
-}

+ 0 - 1
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/componets/listContent.wxml

@@ -1 +0,0 @@
-<view class="listContent"> 121212 </view>

+ 0 - 0
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/componets/listContent.wxss


+ 6 - 0
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/home/home.js

@@ -33,6 +33,12 @@ const _sfc_main = {
       return {
         a: common_vendor.p({
           main: common_vendor.unref(domesticList)
+        }),
+        b: common_vendor.p({
+          main: common_vendor.unref(domesticList)
+        }),
+        c: common_vendor.p({
+          main: common_vendor.unref(domesticList)
         })
       };
     };

+ 1 - 1
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/home/home.wxml

@@ -1 +1 @@
-<view class="home"> 首页 <list-content wx:if="{{a}}" u-i="98a93928-0" bind:__l="__l" u-p="{{a}}"></list-content><list-content u-i="98a93928-1" bind:__l="__l"></list-content><list-content u-i="98a93928-2" bind:__l="__l"></list-content></view>
+<view class="home"> 首页 <list-content wx:if="{{a}}" u-i="98a93928-0" bind:__l="__l" u-p="{{a}}"></list-content><list-content wx:if="{{b}}" u-i="98a93928-1" bind:__l="__l" u-p="{{b}}"></list-content><list-content wx:if="{{c}}" u-i="98a93928-2" bind:__l="__l" u-p="{{c}}"></list-content></view>

+ 0 - 22
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/index/index.js

@@ -1,22 +0,0 @@
-"use strict";
-const common_vendor = require("../../common/vendor.js");
-const common_assets = require("../../common/assets.js");
-const _sfc_main = {
-  data() {
-    return {
-      title: "Hello"
-    };
-  },
-  onLoad() {
-  },
-  methods: {}
-};
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return {
-    a: common_assets._imports_0,
-    b: common_vendor.t($data.title)
-  };
-}
-const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
-wx.createPage(MiniProgramPage);
-//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map

+ 0 - 4
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/index/index.json

@@ -1,4 +0,0 @@
-{
-  "navigationBarTitleText": "uni-app",
-  "usingComponents": {}
-}

+ 0 - 1
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/index/index.wxml

@@ -1 +0,0 @@
-<view class="content"><image class="logo" src="{{a}}"></image><view class="text-area"><text class="title">{{b}}</text></view></view>

+ 0 - 23
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/pages/index/index.wxss

@@ -1,23 +0,0 @@
-
-.content {
-		display: flex;
-		flex-direction: column;
-		align-items: center;
-		justify-content: center;
-}
-.logo {
-		height: 200rpx;
-		width: 200rpx;
-		margin-top: 200rpx;
-		margin-left: auto;
-		margin-right: auto;
-		margin-bottom: 50rpx;
-}
-.text-area {
-		display: flex;
-		justify-content: center;
-}
-.title {
-		font-size: 36rpx;
-		color: #8f8f94;
-}

+ 1 - 2
18.uniapp小程序/project2/unpackage/dist/dev/mp-weixin/project.config.json

@@ -9,8 +9,7 @@
     "postcss": false,
     "minified": false,
     "newFeature": true,
-    "bigPackageSizeSupport": true,
-    "minifyWXML": true
+    "bigPackageSizeSupport": true
   },
   "compileType": "miniprogram",
   "libVersion": "",

Vissa filer visades inte eftersom för många filer har ändrats