xuxueyang
2024-08-09 a326f6598f08a11e8c25c36ffd315af546eb2288
update 默认地址修改
已修改3个文件
11 ■■■■ 文件已修改
manifest.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/components/home-category.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/user/address/address.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json
@@ -49,7 +49,7 @@
    "quickapp" : {},
    /* 快应用特有相关 */
    "mp-weixin" : {
        "appid" : "wx6d0ecc4e18710458",
        "appid" : "wx1441324401626290",
        "setting" : {
            "urlCheck" : false,
            "es6" : true,
pages/home/components/home-category.vue
@@ -2,7 +2,7 @@
    <view class="home-category">
        <view class="flex">
            <view class="t1">{{today}}(今日)第一场交易中</view>
            <view class="t2">当前在售123435扎</view>
            <view class="t2">当前在售</view>
        </view>
        <view class="m-t-12 flex">
            <view class="item" v-for="(item,index) of list" :key="index" @click.stop="toList(item)">
pages/user/address/address.vue
@@ -404,11 +404,18 @@
                if (code === 0) {
                    this.$refs.popup_form.close()
                    this.$message.showToast(this.submitForm.id ? '修改成功' : '新增成功')
                    let tmp = this
                    setTimeout(() => {
                        tmp.page.current = 1
                        tmp.refreshList()
                    }, 300)
                    //如果当前选择的地址是这个,需要更新一下数据
                    if (this.address.id && this.submitForm.id === this.address.id) {
                        this.$store.commit('setDefaultAddress', {
                            ...this.submitForm
                        })
                    }
                }
            },