Bläddra i källkod

✨ 无需迁移的组件,批量 review

YunaiV 1 år sedan
förälder
incheckning
19d90f5df5

+ 1 - 1
pages/goods/components/detail/detail-cell.vue

@@ -1,3 +1,4 @@
+<!-- 商品详情:cell 组件 -->
 <template>
   <view class="detail-cell-wrap ss-flex ss-col-center ss-row-between" @tap="onClick">
     <view class="label-text">{{ label }}</view>
@@ -13,7 +14,6 @@
    * 详情 cell
    *
    */
-
   const props = defineProps({
     label: {
       type: String,

+ 2 - 1
pages/goods/components/detail/detail-content-card.vue

@@ -1,3 +1,4 @@
+<!-- 商品详情:描述卡片 -->
 <template>
   <view class="detail-content-card bg-white ss-m-x-20 ss-p-t-20">
     <view class="card-header ss-flex ss-col-center ss-m-b-30 ss-m-l-20">
@@ -5,7 +6,7 @@
       <view class="title ss-m-l-20 ss-m-r-20">详情</view>
     </view>
     <view class="card-content">
-      <mp-html :content="content"></mp-html>
+      <mp-html :content="content" />
     </view>
   </view>
 </template>

+ 1 - 0
pages/goods/components/detail/detail-navbar.vue

@@ -1,3 +1,4 @@
+<!-- 商品详情:商品/评价/详情的 nav -->
 <template>
   <su-fixed alway :bgStyles="{ background: '#fff' }" :val="0" noNav opacity :placeholder="false">
     <su-status-bar />

+ 1 - 0
pages/goods/components/detail/detail-progress.vue

@@ -1,3 +1,4 @@
+<!-- 秒杀商品:抢购进度 -->
 <template>
   <view class="ss-flex ss-col-center">
     <view class="progress-title ss-m-r-10"> 已抢{{ percent }}% </view>

+ 1 - 1
pages/goods/components/list/list-goods-card.vue

@@ -1,4 +1,4 @@
-<!-- 页面  -->
+<!-- 页面;暂时没用到  -->
 <template>
   <view class="list-goods-card ss-flex-col" @tap="onClick">
     <view class="md-img-box">

+ 1 - 0
pages/goods/components/list/list-navbar.vue

@@ -1,3 +1,4 @@
+<!-- 页面;暂时没用到  -->
 <template>
   <su-fixed
     alway

+ 4 - 1
pages/public/webview.vue

@@ -1,5 +1,8 @@
+<!-- 网页加载 -->
 <template>
-  <view><web-view :src="url"></web-view></view>
+  <view>
+    <web-view :src="url" />
+  </view>
 </template>
 
 <script setup>

+ 2 - 1
sheep/components/s-goods-scroll/s-goods-scroll.vue

@@ -1,3 +1,4 @@
+<!-- 商品组 - 横向滚动商品(目前暂时没用到) -->
 <template>
   <view class="goods-scroll-box">
     <scroll-view class="scroll-box" scroll-x scroll-anchoring>
@@ -8,7 +9,7 @@
             size="sm"
             :data="item"
             :titleWidth="200 - marginLeft - marginRight"
-          ></s-goods-column>
+          />
         </view>
       </view>
     </scroll-view>

+ 2 - 1
sheep/components/s-menu-tools/s-menu-tools.vue

@@ -1,3 +1,4 @@
+<!-- 全局 - 快捷入口 -->
 <template>
   <su-popup :show="show" type="top" round="20" backgroundColor="#F0F0F0" @close="closeMenuTools">
     <su-status-bar />
@@ -10,7 +11,7 @@
               class="ss-reset-button list-image ss-flex ss-row-center ss-col-center"
               @tap="onClick(item)"
             >
-              <image v-if="show" :src="sheep.$url.static(item.icon)" class="list-icon"></image>
+              <image v-if="show" :src="sheep.$url.static(item.icon)" class="list-icon" />
             </button>
             <view class="list-title ss-m-t-20">{{ item.title }}</view>
           </view>

+ 1 - 1
sheep/components/s-statusbar/s-statusbar.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="status_bar"></view>
+  <view class="status_bar" />
 </template>
 
 <style>