zhengyiming
2 天以前 4d73194c017d0c568280780887c2cc2048278f09
apps/housekeepingMiniApp/src/subpackages/sercice/addStandardOrder/InnerPage.vue
@@ -120,7 +120,13 @@
      :is-show-custom-address="false"
      @selected="selected"
      exist-address-title="选择地址"
    ></nut-address>
    >
      <template #bottom v-if="!infiniteLoadingProps?.flattenListData?.length">
        <div class="select-address-bottom">
          <nut-button type="primary" @click="goAddAddress">新增地址</nut-button>
        </div>
      </template>
    </nut-address>
  </LoadingLayout>
</template>
@@ -141,6 +147,7 @@
import dayjs from 'dayjs';
import { EnumUserBankCardAccess, EnumUserBankCardAccessTextFormStandard } from '@12333/constants';
import { Message } from '@12333/utils';
import { template } from 'lodash';
defineOptions({
  name: 'InnerPage',
@@ -240,6 +247,12 @@
  form.selectAddressVisible = true;
}
function goAddAddress() {
  Taro.navigateTo({
    url: `${RouterPath.editAddress}`,
  });
}
const selected = (prevExistAdd, nowExistAdd, arr) => {
  form.addressId = nowExistAdd.id;
};
@@ -349,5 +362,11 @@
      }
    }
  }
  .select-address-bottom {
    display: flex;
    justify-content: center;
    padding: 40px 0;
  }
}
</style>