Explorar el Código

feat: 统一按钮加载状态颜色并调整状态提示组件图片尺寸

- 将多个页面中的 wd-button 组件的 loading-color 统一设置为 #9ED605
- 调整 StatusTip 组件默认图片尺寸从 100rpx 改为 248rpx
zhangtao hace 1 día
padre
commit
00b4281944

+ 1 - 1
src/components/StatusTip.vue

@@ -2,7 +2,7 @@
 import { statusTipProps } from 'wot-design-uni/components/wd-status-tip/types'
 import { StaticUrl } from '@/config'
 
-const props = defineProps({ ...statusTipProps, image: { type: String, default: '' }, imageSize: { type: String, default: '100rpx' } })
+const props = defineProps({ ...statusTipProps, image: { type: String, default: '' }, imageSize: { type: String, default: '248rpx' } })
 const imgs = computed(() => {
   if (props.image)
     return `${StaticUrl}/${props.image}`

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

@@ -205,7 +205,7 @@ async function handlePay() {
           </view>
         </view>
         <view class="w180rpx">
-          <wd-button size="large" :loading="isPay" :disabled="isPay" @click="handlePay">
+          <wd-button size="large" :loading="isPay" loading-color="#9ED605" @click="handlePay">
             立即支付
           </wd-button>
         </view>

+ 4 - 4
src/subPack-xsb/goods/index.vue

@@ -157,7 +157,7 @@ async function handleAddCart() {
           </view>
         </template>
       </wd-swiper>
-      <view class="header view-0 relative z-3 rounded-t-32rpx px24rpx pt24rpx -mt30rpx">
+      <view class="view-0 header relative z-3 rounded-t-32rpx px24rpx pt24rpx -mt30rpx">
         <view class="flex items-center justify-between">
           <view class="flex items-end text-#FF4D3A font-semibold">
             <view class="text-24rpx">
@@ -357,7 +357,7 @@ async function handleAddCart() {
 
           <view class="flex items-center">
             <view class="w220rpx">
-              <wd-button plain hairline block @click="selectGoods = true">
+              <wd-button hairline plain block @click="selectGoods = true">
                 加入购物车
               </wd-button>
             </view>
@@ -373,12 +373,12 @@ async function handleAddCart() {
         <template #footer>
           <view class="box-border w-full flex items-center justify-between py20rpx">
             <view class="w-48%">
-              <wd-button plain hairline block :loading="isLoging" :disabled="isLoging" @click="handleAddCart">
+              <wd-button plain hairline block :loading="isLoging" loading-color="#9ED605" @click="handleAddCart">
                 加入购物车
               </wd-button>
             </view>
             <view class="w-48%">
-              <wd-button block :loading="isLoging" :disabled="isLoging" @click="handleConfimOrder">
+              <wd-button block :loading="isLoging" loading-color="#9ED605" @click="handleConfimOrder">
                 立即购买
               </wd-button>
             </view>