页面
Some checks are pending
Auto Merge Main to Other Branches / Merge main into i18n (push) Waiting to run
Auto Merge Main to Other Branches / Merge main into base-sard-ui (push) Waiting to run

This commit is contained in:
sjeam 2025-09-06 17:28:01 +08:00
parent 5a7ed3517b
commit 8860453b6b
13 changed files with 77 additions and 52 deletions

View File

@ -51,44 +51,51 @@
<view class="p-2"> <view class="p-2">
<wd-card> <wd-card>
<wd-grid :gutter="2" :column="4"> <wd-grid :gutter="2" :column="5">
<view <view
@click="more(item)" @click="more(item)"
v-for="item in [ v-for="item in [
{ {
name: '名优特产', name: '名优特产',
url: '/pages/columnGoods/goods_list/index?id=38&title=名优特产', url: '/pages/columnGoods/goods_list/index?id=38&title=名优特产',
icon: '/static/icons/village_service.png', icon: '/static/icons/home1.png',
type: 2, type: 2,
color: 'green', color: 'green',
}, },
{ {
name: '当季产品', name: '当季产品',
url: '/pages/columnGoods/goods_list/index?id=37&title=当季产品', url: '/pages/columnGoods/goods_list/index?id=37&title=当季产品',
icon: '/static/icons/agriculture_service.png', icon: '/static/icons/home2.png',
type: 2, type: 2,
color: 'blue', color: 'blue',
}, },
{ {
name: '滞销产品', name: '滞销产品',
url: '/pages/columnGoods/goods_list/index?id=30&title=滞销产品', url: '/pages/columnGoods/goods_list/index?id=30&title=滞销产品',
icon: '/static/icons/agriculture_course.png', icon: '/static/icons/home3.png',
type: 2, type: 2,
color: 'orange', color: 'orange',
}, },
{ {
name: '集体', name: '美丽乡村',
url: '', url: '/pages/about/index',
icon: '/static/icons/rural_ecommerce.png', icon: '/static/icons/home4.png',
type: 2, type: 2,
color: 'red', color: 'red',
}, },
{
name: '景区景点',
url: '',
icon: '/static/icons/home5.png',
type: 1,
color: 'red',
},
]" ]"
> >
<wd-grid-item use-slot> <wd-grid-item use-slot>
<view class="p-2"> <view class="p-2">
<wd-img radius="20rpx" :width="'100rpx'" :height="'100rpx'" :src="item.icon" /> <wd-img radius="20rpx" :width="'60rpx'" :height="'60rpx'" :src="item.icon" />
<view class="ps-2 pt-2 pb-2 text-center font-size-3 font-blod color-black"> <view class="py-2 text-center font-size-3 font-blod color-black">
{{ item.name }} {{ item.name }}
</view> </view>
</view> </view>
@ -248,7 +255,7 @@
</view> </view>
<view class="p-1"> <view class="p-1">
<wd-row class=" "> <wd-row class=" ">
<wd-col :span="12" v-for="item in index_live"> <wd-col :span="12" v-for="(item, index) in index_live">
<view <view
class="p-1" class="p-1"
style="" style=""
@ -258,6 +265,7 @@
url: ' ', url: ' ',
}) })
" "
v-if="index < 4"
> >
<view class="py-2"> <view class="py-2">
<wd-card custom-class="card-content"> <wd-card custom-class="card-content">
@ -297,26 +305,34 @@
</view> </view>
<view class="p-2"> <view class="p-2">
<view class="py-2" v-for="item in index_play" @click="goPage(item)"> <view class="py-2" v-for="(item, index) in index_play" @click="goPage(item)">
<wd-card custom-class="card-content"> <view v-if="index < 4">
<view class="content p-2" style="align-items: normal"> <wd-card custom-class="card-content">
<view style="width: 280rpx; height: 200rpx"> <view class="content p-2" style="align-items: normal">
<wd-img :width="'100%'" :height="'100%'" radius="20rpx" :src="item.cover" alt="joy" /> <view style="width: 280rpx; height: 200rpx">
</view> <wd-img
<view class="ps-2 flex-content-column"> :width="'100%'"
<view class="ps-1 font-size-3 font-bold ellipsis-2 color-black"> :height="'100%'"
{{ item.title }} radius="20rpx"
:src="item.cover"
alt="joy"
/>
</view> </view>
<view class="px-1 font-size-3 ellipsis-2 color-gary">{{ item.description }}</view> <view class="ps-2 flex-content-column">
<view class="p-1 font-size-3 color-gary" style="align-items: end"> <view class="ps-1 font-size-3 font-bold ellipsis-2 color-black">
<text class="pe-2 font-size-3">2025-8-23</text> {{ item.title }}
<!-- <wd-tag custom-class="space font-size-3" type="danger" round> </view>
<view class="px-1 font-size-3 ellipsis-2 color-gary">{{ item.description }}</view>
<view class="p-1 font-size-3 color-gary" style="align-items: end">
<text class="pe-2 font-size-3">2025-8-23</text>
<!-- <wd-tag custom-class="space font-size-3" type="danger" round>
{{ item.category_name }} {{ item.category_name }}
</wd-tag> --> </wd-tag> -->
</view>
</view> </view>
</view> </view>
</view> </wd-card>
</wd-card> </view>
</view> </view>
</view> </view>
@ -337,8 +353,8 @@
</view> </view>
<view class="p-1"> <view class="p-1">
<wd-row class=" "> <wd-row class=" ">
<wd-col :span="12" v-for="item in index_live"> <wd-col :span="12" v-for="(item, index) in index_live">
<view class="p-1"> <view class="p-1" v-if="index < 4">
<view class="py-2" @click="goPage(item)"> <view class="py-2" @click="goPage(item)">
<wd-card custom-class="card-content"> <wd-card custom-class="card-content">
<view style="height: 200rpx"> <view style="height: 200rpx">
@ -432,14 +448,14 @@ export default defineComponent({
}, },
onChange(e) { onChange(e) {
console.log(e) // // console.log(e)
this.city = this.swiperList[e.current].city // this.city = this.swiperList[e.current].city
this.title = this.swiperList[e.current].title // this.title = this.swiperList[e.current].title
}, },
changeTab(e) { changeTab(e) {
console.log(e) // console.log(e)
// this.currentTab = e.id this.current_item = e
}, },
async getArticle() { async getArticle() {

View File

@ -172,12 +172,14 @@ import { defineComponent } from 'vue'
// }) // })
function more(item) { function more(item) {
const islogin = hasLogin() const islogin = hasLogin()
// const islogin = true
if (islogin === false) { if (islogin === false) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/login/login', url: '/pages/login/login',
}) })
return return
} }
if (islogin === true) { if (islogin === true) {
// console.log(item) // console.log(item)
if (item.type == 1) { if (item.type == 1) {

View File

@ -15,7 +15,9 @@
:value="userInfo.nickname" :value="userInfo.nickname"
:border="false" :border="false"
size="large" size="large"
is-link
custom-style="padding:20rpx;font-size:28rpx" custom-style="padding:20rpx;font-size:28rpx"
@click="showName = true"
/> />
<wd-cell <wd-cell
icon="" icon=""
@ -51,7 +53,7 @@
/> />
</wd-cell-group> </wd-cell-group>
<!-- <wd-popup <wd-popup
v-model="showName" v-model="showName"
position="bottom" position="bottom"
custom-style="height: 480rpx;padding:20rpx;font-size:28rpx" custom-style="height: 480rpx;padding:20rpx;font-size:28rpx"
@ -81,7 +83,7 @@
<text class="color-white font-bold font-size-4 text-shadow">提交修改</text> <text class="color-white font-bold font-size-4 text-shadow">提交修改</text>
</wd-button> </wd-button>
</view> </view>
</wd-popup> --> </wd-popup>
<wd-popup <wd-popup
v-model="showPhone" v-model="showPhone"
position="bottom" position="bottom"
@ -174,6 +176,7 @@ import {
setGroupAPI, setGroupAPI,
setPhoneAPI, setPhoneAPI,
setInfoPI, setInfoPI,
setBaseAPI,
} from '@/service/crmeb/product.ts' } from '@/service/crmeb/product.ts'
export default defineComponent({ export default defineComponent({
@ -292,24 +295,23 @@ export default defineComponent({
this.submitGroup() this.submitGroup()
}, },
// async onSubmitInfo() { async onSubmitInfo() {
// if (!this.nickname) { if (!this.nickname) {
// uni.showToast({ uni.showToast({
// title: '', title: '请填写昵称',
// icon: 'none', icon: 'none',
// }) })
// return return
// } }
this.userInfo.nickname = this.nickname
// this.userInfo.nickname = this.nickname const data = {
nickname: this.nickname,
// const data = { avatar: this.userInfo['avatar'],
// nickname: this.nickname, }
// } const res = await setBaseAPI(data)
// const res = await setInfoPI(data) console.log(res)
// console.log(res) this.showName = false
// this.showName = false },
// },
async onSubmitPhone() { async onSubmitPhone() {
if (!this.phone) { if (!this.phone) {
uni.showToast({ uni.showToast({

View File

@ -44,6 +44,11 @@ export function setGroupAPI(data: any) {
return http.post('/api/user/setGroup', data) return http.post('/api/user/setGroup', data)
} }
//基础修改
export function setBaseAPI(data: any) {
return http.post('/api/user/setBase', data)
}
export function getCityAPI() { export function getCityAPI() {
return http.get('/api/location/getCity', {}) return http.get('/api/location/getCity', {})
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

BIN
src/static/icons/home1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
src/static/icons/home2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
src/static/icons/home3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
src/static/icons/home4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
src/static/icons/home5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB