Browse Source

feat(components): 新增多个组件类型声明

- 新增 WdCountDown 组件类型声明
- 新增 WdStep 组件类型声明
- 新增 WdSteps 组件类型声明
- 新增 WdSticky 组件类型声明

fix(config): 更新开发环境服务器地址配置

- 注释原开发环境地址
- 替换为新的开发环境地址 https://smqjh.api.zswlgz.com

refactor(index): 移除首页商品价格展示模块

- 删除商品价格的视图结构及样式相关代码

fix(confirmOrder): 调整确认订单页样式和图标颜色

- 修改位置图标颜色为主题色变量
- 调整底部固定区域的 z-index 值,从 1000 改为 10
zhangtao 3 days ago
parent
commit
c5b42d65f8
4 changed files with 8 additions and 14 deletions
  1. 4 0
      src/components.d.ts
  2. 2 1
      src/config/index.ts
  3. 0 11
      src/pages/index/index.vue
  4. 2 2
      src/subPack-xsb/confirmOrder/index.vue

+ 4 - 0
src/components.d.ts

@@ -23,6 +23,7 @@ declare module 'vue' {
     WdCheckbox: typeof import('wot-design-uni/components/wd-checkbox/wd-checkbox.vue')['default']
     WdCheckboxGroup: typeof import('wot-design-uni/components/wd-checkbox-group/wd-checkbox-group.vue')['default']
     WdConfigProvider: typeof import('wot-design-uni/components/wd-config-provider/wd-config-provider.vue')['default']
+    WdCountDown: typeof import('wot-design-uni/components/wd-count-down/wd-count-down.vue')['default']
     WdDivider: typeof import('wot-design-uni/components/wd-divider/wd-divider.vue')['default']
     WdIcon: typeof import('wot-design-uni/components/wd-icon/wd-icon.vue')['default']
     WdInput: typeof import('wot-design-uni/components/wd-input/wd-input.vue')['default']
@@ -41,6 +42,9 @@ declare module 'vue' {
     WdSkeleton: typeof import('wot-design-uni/components/wd-skeleton/wd-skeleton.vue')['default']
     WdSortButton: typeof import('wot-design-uni/components/wd-sort-button/wd-sort-button.vue')['default']
     WdStatusTip: typeof import('wot-design-uni/components/wd-status-tip/wd-status-tip.vue')['default']
+    WdStep: typeof import('wot-design-uni/components/wd-step/wd-step.vue')['default']
+    WdSteps: typeof import('wot-design-uni/components/wd-steps/wd-steps.vue')['default']
+    WdSticky: typeof import('wot-design-uni/components/wd-sticky/wd-sticky.vue')['default']
     WdSwiper: typeof import('wot-design-uni/components/wd-swiper/wd-swiper.vue')['default']
     WdTab: typeof import('wot-design-uni/components/wd-tab/wd-tab.vue')['default']
     WdTabbar: typeof import('wot-design-uni/components/wd-tabbar/wd-tabbar.vue')['default']

+ 2 - 1
src/config/index.ts

@@ -47,8 +47,9 @@ function handleEnvVersion() {
   const h5Server = {
     // development: 'http://47.109.84.152:8081',
     // development: 'http://192.168.0.157:8080',
-    development: 'http://192.168.0.11:8080',
+    // development: 'http://192.168.0.11:8080',
     // development: 'http://192.168.1.21:8080',
+    development: 'https://smqjh.api.zswlgz.com',
     production: 'https://smqjh.api.zswlgz.com',
   }
   return h5Server[mode as 'development' | 'production']

+ 0 - 11
src/pages/index/index.vue

@@ -323,17 +323,6 @@ function handleJyBanner() {
                       </view>
                     </view>
                   </view>
-                  <view class="mt-20rpx flex items-end text-[#FF4D3A]">
-                    <view class="text-24rpx">
-                      ¥
-                    </view>
-                    <view class="text-36rpx line-height-[36rpx]">
-                      {{ item.channelProdPrice }}
-                    </view>
-                    <view class="text-24rpx">
-                      元
-                    </view>
-                  </view>
                 </view>
                 <view
                   v-if="!item.spuStock"

+ 2 - 2
src/subPack-xsb/confirmOrder/index.vue

@@ -357,7 +357,7 @@ async function handlePay() {
           <view v-if="shopDistanceText" class="mb-20rpx text-24rpx text-#AAAAAA">
             {{ shopDistanceText }}
           </view>
-          <wd-icon name="location" size="22px" color="#9ED605" />
+          <wd-icon name="location" size="22px" color="var(--them-color)" />
         </view>
       </view>
       <view>
@@ -573,7 +573,7 @@ async function handlePay() {
         </view>
       </template>
     </Zpopup>
-    <view class="ios footer fixed bottom-0 left-0 z-1000 box-border w-full rounded-t-16rpx bg-white px24rpx">
+    <view class="ios footer fixed bottom-0 left-0 z-10 box-border w-full rounded-t-16rpx bg-white px24rpx">
       <view class="box-border w-full flex items-center justify-between py20rpx">
         <view v-if="isMemberGiftOrder" class="flex items-center">
           <text class="mr-8rpx rounded-8rpx bg-#FF4D3A px-12rpx py-4rpx text-22rpx text-#FFF">