暂存code

This commit is contained in:
hejiangming
2025-05-07 09:54:33 +08:00
parent 78270eeda0
commit 007b002b81
403 changed files with 14507 additions and 6320 deletions
@@ -1,12 +1,17 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_address = require("../../api/address.js");
const Header = () => "../../components/header.js";
const _sfc_main = {
data() {
return {
addressList: []
addressList: [],
options: [
{ text: "删除" }
]
};
},
components: { Header },
mounted() {
this.getAddressList();
},
@@ -36,7 +41,6 @@ const _sfc_main = {
},
// 删除地址
deleteAddressFun(item) {
common_vendor.index.__f__("log", "at pages/mine_address/mine_address.vue:79", "item", item);
const then = this;
common_vendor.index.showModal({
title: "提示",
@@ -67,9 +71,10 @@ const _sfc_main = {
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
(_easycom_up_checkbox2 + _easycom_up_image2)();
(_component_Header + _easycom_up_checkbox2 + _easycom_up_image2)();
}
const _easycom_up_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
@@ -78,9 +83,14 @@ if (!Math) {
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $data.addressList && $data.addressList.length !== 0
a: common_vendor.p({
leftTitle: _ctx.$t("address.title"),
["left-path-type"]: "switchTab",
["left-path"]: "/pages/mine/mine"
}),
b: $data.addressList && $data.addressList.length !== 0
}, $data.addressList && $data.addressList.length !== 0 ? {
b: common_vendor.f($data.addressList, (item, k0, i0) => {
c: common_vendor.f($data.addressList, (item, k0, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.t(item.phone),
@@ -90,7 +100,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
f: common_vendor.t(item.areaName),
g: common_vendor.t(item.address),
h: common_vendor.o(($event) => $options.isDefaultChange(item), item.id),
i: "1172d71f-0-" + i0,
i: "1172d71f-1-" + i0,
j: common_vendor.p({
customStyle: {},
label: "已默认",
@@ -106,14 +116,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
};
})
} : {
c: common_vendor.p({
d: common_vendor.p({
src: "/static/common/not_search.png",
width: "100",
height: "100",
bgColor: "#f1f6ff00"
})
}, {
d: common_vendor.o((...args) => $options.jumpAddAddress && $options.jumpAddAddress(...args))
e: common_vendor.o((...args) => $options.jumpAddAddress && $options.jumpAddAddress(...args))
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1172d71f"]]);
@@ -1,10 +1,7 @@
{
"navigationBarTitleText": "地址管理",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"navigationStyle": "custom",
"usingComponents": {
"header": "../../components/header",
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
@@ -1 +1 @@
<view class="mine_address_warp data-v-1172d71f"><block wx:if="{{a}}"><view wx:for="{{b}}" wx:for-item="item" wx:key="m" class="address_item data-v-1172d71f"><view class="address_item_info data-v-1172d71f"><view class="data-v-1172d71f">{{item.a}}</view><view class="data-v-1172d71f" style="margin-left:20rpx">{{item.b}}</view></view><view class="address_item_address data-v-1172d71f">{{item.c}} {{item.d}} {{item.e}} {{item.f}} {{item.g}}</view><view class="address_operate data-v-1172d71f"><up-checkbox wx:if="{{item.j}}" class="data-v-1172d71f" bindchange="{{item.h}}" u-i="{{item.i}}" bind:__l="__l" u-p="{{item.j}}"></up-checkbox><view class="operate_item data-v-1172d71f"><view class="operate_ data-v-1172d71f" bindtap="{{item.k}}">删除</view><view class="operate_ data-v-1172d71f" bindtap="{{item.l}}">修改</view></view></view></view></block><view wx:else class="not_order_warp data-v-1172d71f"><view class="not_order_warp_img data-v-1172d71f"><up-image wx:if="{{c}}" class="data-v-1172d71f" u-i="1172d71f-1" bind:__l="__l" u-p="{{c}}"></up-image></view><view class="not_order_msg_warp data-v-1172d71f">暂无地址,快去添加吧~</view></view><view class="add_but data-v-1172d71f" bindtap="{{d}}"> 新增地址 </view></view>
<view class="mine_address_warp data-v-1172d71f"><header wx:if="{{a}}" class="data-v-1172d71f" u-i="1172d71f-0" bind:__l="__l" u-p="{{a}}"/><block wx:if="{{b}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="m" class="address_item data-v-1172d71f"><view class="address_item_info data-v-1172d71f"><view class="data-v-1172d71f">{{item.a}}</view><view class="data-v-1172d71f" style="margin-left:20rpx">{{item.b}}</view></view><view class="address_item_address data-v-1172d71f">{{item.c}} {{item.d}} {{item.e}} {{item.f}} {{item.g}}</view><view class="address_operate data-v-1172d71f"><up-checkbox wx:if="{{item.j}}" class="data-v-1172d71f" bindchange="{{item.h}}" u-i="{{item.i}}" bind:__l="__l" u-p="{{item.j}}"></up-checkbox><view class="operate_item data-v-1172d71f"><view class="operate_ data-v-1172d71f" bindtap="{{item.k}}">删除</view><view class="operate_ data-v-1172d71f" bindtap="{{item.l}}">修改</view></view></view></view></block><view wx:else class="not_order_warp data-v-1172d71f"><view class="not_order_warp_img data-v-1172d71f"><up-image wx:if="{{d}}" class="data-v-1172d71f" u-i="1172d71f-2" bind:__l="__l" u-p="{{d}}"></up-image></view><view class="not_order_msg_warp data-v-1172d71f">暂无地址,快去添加吧~</view></view><view class="add_but data-v-1172d71f" bindtap="{{e}}"> 新增地址 </view></view>