Преглед изворни кода

feat(config): 更新开发和正式环境API地址

- 将开发环境地址从 http://47.109.84.152:8081 更新为 https://smqjh.api.zswlgz.com
- 将正式环境地址设置为 https://smqjh.api.zswlgz.com

feat(classfiy): 添加分类页面功能提示

- 新增 handleClick 函数,点击分类项时显示"此功能暂未开放!"提示
- 暂时禁用跳转到商品列表页面的功能

feat(orderDetaile): 优化订单详情页配送费显示

- 根据订单配送类型 dvyType 显示不同的配送方式标签
- 当 dvyType 为 3 时显示"配送费(即时配送)"
- 当 dvyType 为 1 时显示"快递"
zhangtao пре 2 дана
родитељ
комит
96b63610c4
3 измењених фајлова са 13 додато и 4 уклоњено
  1. 3 2
      src/config/index.ts
  2. 6 1
      src/pages/classfiy/index.vue
  3. 4 1
      src/subPack-xsb/orderDetaile/index.vue

+ 3 - 2
src/config/index.ts

@@ -16,7 +16,8 @@ const mapEnvVersion = {
   // develop: 'http://192.168.0.157:8080',
   // develop: 'http://192.168.1.253:8080',
   // develop: 'http://192.168.1.89:8080', // 田
-  develop: 'http://47.109.84.152:8081',
+  // develop: 'http://47.109.84.152:8081',
+  develop: 'https://smqjh.api.zswlgz.com',
   /**
    * 体验版
    */
@@ -26,7 +27,7 @@ const mapEnvVersion = {
   /**
    * 正式版
    */
-  release: '',
+  release: 'https://smqjh.api.zswlgz.com',
 }
 
 const mapEnvStaticVersion = {

+ 6 - 1
src/pages/classfiy/index.vue

@@ -26,6 +26,11 @@ getCategories()
 const rightList = computed(() => {
   return classfiylist.value.find(item => item.id === active.value)?.children
 })
+function handleClick() {
+  useGlobalToast().show('此功能暂未开放!')
+  return
+  router.push({ name: 'smqjh-goodsList' })
+}
 </script>
 
 <template>
@@ -58,7 +63,7 @@ const rightList = computed(() => {
           </view>
         </view>
         <view class="grid grid-cols-4 mt24rpx gap-24rpx">
-          <view class="flex flex-col items-center" @click="router.push({ name: 'smqjh-goodsList' })">
+          <view class="flex flex-col items-center" @click="handleClick">
             <image
               :src="`${StaticUrl}/smqjh-class-all.png`"
               class="h108rpx w108rpx"

+ 4 - 1
src/subPack-xsb/orderDetaile/index.vue

@@ -239,9 +239,12 @@ function handleCopy() {
         </view>
       </view>
       <view class="mt24rpx flex items-center justify-between">
-        <view class="text-28rpx">
+        <view v-if="orderInfo.dvyType == 3">
           配送费(即时配送)
         </view>
+        <view v-if="orderInfo.dvyType == 1">
+          快递
+        </view>
         <view class="text-#FF4A39 font-semibold">
           ¥{{ orderInfo?.freightAmount }}
         </view>