diff --git a/src/components/fly-login/fly-login.vue b/src/components/fly-login/fly-login.vue index 4d827d6..10ea692 100644 --- a/src/components/fly-login/fly-login.vue +++ b/src/components/fly-login/fly-login.vue @@ -49,7 +49,7 @@ const onChange = (e) => { console.log(value) } -const onSubmit = () => { +const onSubmit = async () => { // 1、上传刚刚的图片,并返回网络地址 // 2、把用户信息存起来 // if (avatarUrl.value === defaultAvatarUrl) { @@ -70,7 +70,8 @@ const onSubmit = () => { emit('update:modelValue', false) // console.log('保存用户信息') // userStore.setUserInfo({ nickname: nickname.value, avatar: avatarUrl.value }) - userStore.wxLogin() + await userStore.wxLogin() + await userStore.getUserInfo() } diff --git a/src/pages/about/detail.vue b/src/pages/about/detail.vue index 617563e..9c548a1 100644 --- a/src/pages/about/detail.vue +++ b/src/pages/about/detail.vue @@ -33,12 +33,16 @@ > - {{ detail.author }} + {{ detail.author }} {{ detail.description }} - + 泸州市龙马潭区海吉星路 @@ -61,7 +65,7 @@ - 场所介绍 + 场所介绍 @@ -73,8 +77,8 @@ @@ -92,7 +96,7 @@ {{ item.description }} - 泸州市龙马潭区海吉星路 + 泸州市龙马潭区海吉星路 @@ -153,6 +157,10 @@ export default defineComponent({ this.detail = res.data this.getIndex(this.detail['category_id']) this.swiperList = res.data['images'] + + uni.setNavigationBarTitle({ + title: this.detail.title, // 运行时修改标题 + }) }, goPage(item) { getUrl('/pages/about/detail?id=' + item.id) diff --git a/src/pages/about/index.vue b/src/pages/about/index.vue index 7e2eedb..afc4cec 100644 --- a/src/pages/about/index.vue +++ b/src/pages/about/index.vue @@ -24,15 +24,13 @@ :height="'100%'" :src="banner_list.image" /> - {{ banner_list.name }} - - - - + + --> @@ -42,11 +40,10 @@ - - - + + {{ item.name }} @@ -73,12 +70,12 @@ - {{ item.category_name }} - + --> diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 93c8faf..8a39861 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -36,7 +36,7 @@ :indicator="{ type: 'dots-bar' }" @change="onChange" > - @@ -44,7 +44,7 @@ {{ title }} - + --> @@ -57,21 +57,21 @@ v-for="item in [ { name: '名优特产', - url: '/pages/columnGoods/goods_list/index?id=38', + url: '/pages/columnGoods/goods_list/index?id=38&title=名优特产', icon: '/static/icons/village_service.png', type: 2, color: 'green', }, { name: '当季产品', - url: '/pages/columnGoods/goods_list/index?id=37', + url: '/pages/columnGoods/goods_list/index?id=37&title=当季产品', icon: '/static/icons/agriculture_service.png', type: 2, color: 'blue', }, { name: '滞销产品', - url: '/pages/columnGoods/goods_list/index?id=30', + url: '/pages/columnGoods/goods_list/index?id=30&title=滞销产品', icon: '/static/icons/agriculture_course.png', type: 2, color: 'orange', @@ -88,7 +88,7 @@ - + {{ item.name }} @@ -104,13 +104,13 @@ @@ -133,7 +133,7 @@ @click=" more({ type: 2, - url: `/pages/goods_details/index?id=${item.product_id} `, + url: '/pages/goods_details/index?id=${item.product_id}', }) " v-for="item in product_30" @@ -143,12 +143,18 @@ - {{ item.store_name }} - {{ item.store_info }} - + + + {{ item.store_name }} + + + + {{ item.store_info }} + + - - + + @@ -170,13 +176,11 @@ @@ -201,7 +205,9 @@ class="m-2 p-2 absolute bottom-0 text-center left-0 right-0 text-white bg-gray-300 bg-opacity-5" style="backdrop-filter: blur(2rpx); border-radius: 10rpx" > - {{ current_item.title }} + + {{ current_item.title }} + {{ current_item.description }} @@ -230,13 +236,11 @@ @@ -260,22 +264,13 @@ - {{ item.title }} - {{ item.description }} - - + + {{ item.title }}发放接口连接啊发生金坷拉激发 + + {{ item.description }} + + @@ -288,13 +283,13 @@ @@ -309,13 +304,15 @@ - {{ item.title }} - {{ item.description }} - + + {{ item.title }} + + {{ item.description }} + 2025-8-23 - + @@ -328,13 +325,11 @@ @@ -349,7 +344,9 @@ - {{ item.author }} + + {{ item.author }} + {{ item.description }} diff --git a/src/pages/my/setting.vue b/src/pages/my/setting.vue index 0e8aca7..d7f53f4 100644 --- a/src/pages/my/setting.vue +++ b/src/pages/my/setting.vue @@ -142,11 +142,11 @@ }, ]" > + - @@ -179,10 +179,12 @@ import { export default defineComponent({ data() { return { + type: 0, // 0 点击进入 1 跳转登录 + show: false, hasLogin: false, showPhone: false, showName: false, - show: false, + address_string: '', propShowOrder: false, @@ -216,9 +218,19 @@ export default defineComponent({ } }, async onLoad(option) { - this.show = option.show || false this.getArea() this.getUserInfo() + console.log(option) + this.type = parseInt(option.type) || 0 + console.log('type值', this.type) + if (this.type === 1) { + //跳转登录 + this.show = true + } else { + //点击进入 + this.show = false + } + console.log('type值', this.show) }, methods: { logout() { @@ -319,10 +331,14 @@ export default defineComponent({ }, async submitGroup() { const res = await setGroupAPI(this.addressinfo) - console.log(res) + // console.log(res) this.show = false //重新获取地址信息 userStore.getUserInfo() + //跳转页面,设置后返回 + if (this.type === 1) { + this.goBack() + } }, //地址改版事件 diff --git a/src/pages/service/index.vue b/src/pages/service/index.vue index ff40ec1..c125035 100644 --- a/src/pages/service/index.vue +++ b/src/pages/service/index.vue @@ -58,7 +58,7 @@ function more(item) {