Selaa lähdekoodia

添加汇付页面路由

soobin 2 vuotta sitten
vanhempi
commit
9eaf0897cb
2 muutettua tiedostoa jossa 5 lisäystä ja 7 poistoa
  1. 1 3
      src/utils/config.js
  2. 4 4
      src/views/device/showGoods/index.vue

+ 1 - 3
src/utils/config.js

@@ -14,11 +14,9 @@ if (process.env.NODE_ENV === 'development') {
 } else {
     // 判断当前页面的主机名是否包含 'szwltest.sunzee.com.cn'。如果包含,则条件成立(即为 true);否则,条件不成立
     if (window.location.host.indexOf('szwltest.sunzee.com.cn') !== -1) {
-        // baseURL = 'https://szwl.sunzee.com.cn/'
-        baseURL = 'https://szwltest.sunzee.com.cn/'
+        baseURL = 'https://szwl.sunzee.com.cn/'
     } else {
         baseURL = 'https://sz.sunzee.com.cn/'
-        // baseURL = 'https://xavi.c1.sidoc.cn'
     }
 }
 export default {

+ 4 - 4
src/views/device/showGoods/index.vue

@@ -10,11 +10,11 @@
     </div>
   </div>
   <van-row class="goods o-mlr-8" wrap="true">
-    <van-col v-for="(item, index) in tableData" :key="index" class="goodsCon" span="12">
+    <van-col v-for="(item, index) in tableData" :key="index" class="goodsCon o-mr-14" span="11">
       <div class="l-flex-RC">
-        <van-image width="75" height="75" fit="scale-down" :src="showSugerPhoto(item)" />
-        <span class="o-ml-10">{{ item.productName }}</span>
-        <van-switch class="o-ml-5" v-model="switchStates[index]" size="20px" active-color="#4dc294"
+        <van-image width="60" height="60" fit="contain" :src="showSugerPhoto(item)" />
+        <span class="o-ml-10" style="word-wrap: break-word; width: 50px;" >{{ item.productName }}</span>
+        <van-switch class="o-ml-1" v-model="switchStates[index]" size="20px" active-color="#4dc294"
                     @change="handleChange(index)" />
       </div>
       <van-divider :style="{ color: '#1baeae', borderColor: '#1baeae', fontSize: '20px', fontWeight: 500 }" />