Ver código fonte

修改显示图片

zs 1 ano atrás
pai
commit
8078b6c90c

+ 14 - 0
pages/home/index.vue

@@ -57,6 +57,9 @@
 			</up-list>
 		</view>
 		<up-empty v-else mode="list" icon="/static/list.png"></up-empty>
+		<view class="is_bottom" v-if="is_bottom">
+			<text>{{config.bottom_title||'没有更多了!'}}</text>
+		</view>
 		<up-overlay :show="show">
 			<login @showChange='showChange'></login>
 		</up-overlay>
@@ -318,5 +321,16 @@
 				}
 			}
 		}
+		.is_bottom {
+			width: 100%;
+			text-align: center;
+		
+			text {
+				padding: 2vw 0;
+				display: inline-block;
+				color: var(--f85Color);
+				font-size: var(--font12Size);
+			}
+		}
 	}
 </style>

+ 2 - 1
pages/my/index.vue

@@ -13,7 +13,8 @@
 			</view>
 			<view class="one_1" v-else>
 				<view class="left">
-					<image class="logo" :src="config.icon[0].url"></image>
+					<image class="logo" v-if="config&&config.icon&&config.icon.length>0" :src="config.icon[0].url">
+					</image>
 				</view>
 				<view class="right">
 					<view class="name" @click="show=true">点击登录</view>

+ 14 - 1
pagesMy/course/index.vue

@@ -43,7 +43,8 @@
 						</view>
 						<view class="bottom">
 							<button class="button button_1" type="default" size="mini" @click="toEdit(item)">修改</button>
-							<button v-if="item.status=='0'" class="button button_2" type="default" size="mini" @click="toDelete(item)">删除</button>
+							<button v-if="item.status=='0'" class="button button_2" type="default" size="mini"
+								@click="toDelete(item)">删除</button>
 						</view>
 					</view>
 				</up-list-item>
@@ -320,5 +321,17 @@
 			}
 		}
 
+		.is_bottom {
+			width: 100%;
+			text-align: center;
+
+			text {
+				padding: 2vw 0;
+				display: inline-block;
+				color: var(--f85Color);
+				font-size: var(--font12Size);
+			}
+		}
+
 	}
 </style>

+ 6 - 2
unpackage/dist/dev/mp-weixin/pages/home/index.js

@@ -171,8 +171,12 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
           icon: "/static/list.png"
         })
       }, {
-        k: common_vendor.o(showChange),
-        l: common_vendor.p({
+        k: is_bottom.value
+      }, is_bottom.value ? {
+        l: common_vendor.t(config.value.bottom_title || "没有更多了!")
+      } : {}, {
+        m: common_vendor.o(showChange),
+        n: common_vendor.p({
           show: show.value
         })
       });

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/home/index.wxml


+ 10 - 0
unpackage/dist/dev/mp-weixin/pages/home/index.wxss

@@ -117,4 +117,14 @@
   background: linear-gradient(to right, #1e3fdc, #3c9cff);
   font-size: var(--font12Size);
   border-radius: 5vw;
+}
+.content .is_bottom.data-v-4978fed5 {
+  width: 100%;
+  text-align: center;
+}
+.content .is_bottom text.data-v-4978fed5 {
+  padding: 2vw 0;
+  display: inline-block;
+  color: var(--f85Color);
+  font-size: var(--font12Size);
 }

+ 14 - 11
unpackage/dist/dev/mp-weixin/pages/my/index.js

@@ -94,16 +94,19 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
       }, {
         e: common_vendor.t(user.value.nick_name || "暂无昵称"),
         f: common_vendor.t(getGender(user.value.gender))
-      }) : {
-        g: config$1.value.icon[0].url,
-        h: common_vendor.o(($event) => show.value = true)
-      }, {
-        i: common_vendor.p({
+      }) : common_vendor.e({
+        g: config$1.value && config$1.value.icon && config$1.value.icon.length > 0
+      }, config$1.value && config$1.value.icon && config$1.value.icon.length > 0 ? {
+        h: config$1.value.icon[0].url
+      } : {}, {
+        i: common_vendor.o(($event) => show.value = true)
+      }), {
+        j: common_vendor.p({
           name: "arrow-right",
           size: "16"
         }),
-        j: common_vendor.o(($event) => toCommon(`pagesMy/order/index?status=${"-1"}`)),
-        k: common_vendor.f(common_vendor.unref(config.configInfo).orderList, (item, index, i0) => {
+        k: common_vendor.o(($event) => toCommon(`pagesMy/order/index?status=${"-1"}`)),
+        l: common_vendor.f(common_vendor.unref(config.configInfo).orderList, (item, index, i0) => {
           return {
             a: common_vendor.n(item.icon),
             b: common_vendor.t(item.title),
@@ -117,7 +120,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
             f: common_vendor.o(($event) => toRoute(item), index)
           };
         }),
-        l: common_vendor.f(menuList.value, (item, index, i0) => {
+        m: common_vendor.f(menuList.value, (item, index, i0) => {
           return {
             a: common_vendor.n(item.icon),
             b: common_vendor.t(item.title),
@@ -126,12 +129,12 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
             e: common_vendor.o(($event) => toCommon(item.route), index)
           };
         }),
-        m: common_vendor.p({
+        n: common_vendor.p({
           name: "arrow-right",
           size: "16"
         }),
-        n: common_vendor.o(showChange),
-        o: common_vendor.p({
+        o: common_vendor.o(showChange),
+        p: common_vendor.p({
           show: show.value
         })
       });

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/my/index.wxml


+ 10 - 0
unpackage/dist/dev/mp-weixin/pagesMy/course/index.wxss

@@ -91,4 +91,14 @@
 }
 .content .two .list .bottom .button_2.data-v-5cb065a7 {
   background-color: var(--ff0Color);
+}
+.content .is_bottom.data-v-5cb065a7 {
+  width: 100%;
+  text-align: center;
+}
+.content .is_bottom text.data-v-5cb065a7 {
+  padding: 2vw 0;
+  display: inline-block;
+  color: var(--f85Color);
+  font-size: var(--font12Size);
 }