panhui 5 سال پیش
والد
کامیت
bc6baca0e3
1فایلهای تغییر یافته به همراه21 افزوده شده و 2 حذف شده
  1. 21 2
      src/pagesChat/ChatForm.vue

+ 21 - 2
src/pagesChat/ChatForm.vue

@@ -4,7 +4,7 @@
 }
 }
 </config>
 </config>
 <template>
 <template>
-    <div class="pageBottom">
+    <div class="pageBottom" :class="{ isEn: !isChinese }">
         <van-cell-group :border="false">
         <van-cell-group :border="false">
             <van-cell :border="false" :title="$t('xing-ming')" :value="info.nickname" />
             <van-cell :border="false" :title="$t('xing-ming')" :value="info.nickname" />
             <van-cell :border="false" :title="$t('cheng-hu')" v-if="sex" :value="sex" />
             <van-cell :border="false" :title="$t('cheng-hu')" v-if="sex" :value="sex" />
@@ -39,6 +39,7 @@
                         :hasDel="false"
                         :hasDel="false"
                         :hasCheck="false"
                         :hasCheck="false"
                         imgKey="mainPicture"
                         imgKey="mainPicture"
+                        @choose="goDetail"
                     ></product-row>
                     ></product-row>
                 </div>
                 </div>
             </van-cell>
             </van-cell>
@@ -48,7 +49,7 @@
 <script>
 <script>
 import { mapState } from 'vuex';
 import { mapState } from 'vuex';
 import { sexModels } from '../utils/appState';
 import { sexModels } from '../utils/appState';
-import ProductRow from '../components/product/RowMini';
+import ProductRow from '../components/product/RowMini.vue';
 export default {
 export default {
     data() {
     data() {
         return {};
         return {};
@@ -73,6 +74,11 @@ export default {
         wx.setNavigationBarTitle({
         wx.setNavigationBarTitle({
             title: this.$t('zi-xun-dan-xiang-qing')
             title: this.$t('zi-xun-dan-xiang-qing')
         });
         });
+    },
+    methods: {
+        goDetail(id) {
+            this.navigateTo(`/pagesProduct/Detail?id=${id}`, false);
+        }
     }
     }
 };
 };
 </script>
 </script>
@@ -101,4 +107,17 @@ export default {
         }
         }
     }
     }
 }
 }
+
+.isEn {
+    .van-cell {
+        .van-cell__title {
+            width: 120px;
+            font-size: 12px;
+            min-width: 120px;
+        }
+        .van-cell__value {
+            margin-left: 5px;
+        }
+    }
+}
 </style>
 </style>