This commit is contained in:
lnn19986213 2022-07-28 14:26:43 +08:00
parent e825f9e895
commit b472961bbb
19 changed files with 107 additions and 64 deletions

View File

@ -1,6 +1,6 @@
{ {
"name" : "艺象心", "name" : "艺象心",
"appid" : "__UNI__C2FB70F", "appid" : "__UNI__77CA6BC",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : "100", "versionCode" : "100",

View File

@ -1,10 +1,9 @@
<template> <template>
<view> <view>
<view class="art_act_itm" v-for="(v,i) in list2" :key="i" @click="goActDeat(i)">
<view class="art_act_itm" v-for="(v,i) in 3" :key="i" @click="goActDeat(i)"> <image :src="v.image" mode=""></image>
<image src="../../static/artWork.png" mode=""></image>
<view class="title"> <view class="title">
露凝而白鸿雁来清秋满怀 {{v.title}}
</view> </view>
</view> </view>
</view> </view>
@ -14,13 +13,19 @@
export default { export default {
data() { data() {
return { return {
list2: [{
image: '../../static/hd1.png',
title: '昨夜星辰昨夜风,画楼西畔桂堂东',
}, {
image: '../../static/hd2.png',
title: '身无彩凤双飞翼,心有灵犀一点通'
}],
}; };
}, },
methods:{ methods: {
goActDeat(id){ goActDeat(id) {
uni.navigateTo({ uni.navigateTo({
url:`/pages/ActivitiesDetail/ActivitiesDetail?id=${id}` url: `/pages/ActivitiesDetail/ActivitiesDetail?id=${id}`
}) })
} }
} }
@ -28,32 +33,36 @@
</script> </script>
<style lang="scss"> <style lang="scss">
page{ page {
width: calc(100% - 32px); width: calc(100% - 32px);
margin: 0px 16px; margin: 0px 16px;
} }
image{
image {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.art_act_itm{
.art_act_itm {
margin-top: 12px; margin-top: 12px;
height: 164px; height: 328rpx;
border-radius: 8px; border-radius: 8px;
border: 1px solid transparnt; border: 1px solid transparnt;
position: relative; position: relative;
.title{
.title {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
background: #000000; background: #000000;
border-radius: 0px 0px 8px 8px; border-radius: 0px 0px 8px 8px;
opacity: 0.3; opacity: 0.3;
height: 44px; height: 88rpx;
color: #FFFFFF; color: #FFFFFF;
line-height: 44px; line-height: 88rpx;
font-size: 14px; font-size: 28rpx;
padding-left: 12px; padding-left: 24rpx;
width: calc(100% - 24rpx);
} }
} }
</style> </style>

View File

@ -11,17 +11,17 @@
<view class="left"> <view class="left">
<view class="content"> <view class="content">
<view class="title"> <view class="title">
<text class="zd">置顶</text> <text class="zd" v-if="v.is">置顶</text>
送万福进万家文艺惠民 暖人心嫁得好风扇电机接收到删掉就惊世毒妃 {{v.name}}
</view> </view>
</view> </view>
<view class="clidate"> <view class="clidate">
<view class="cliNum">点击量:15</view> <view class="cliNum">点击量:{{v.click}}</view>
<view class="date">2022-01-11</view> <view class="date">{{v.time}}</view>
</view> </view>
</view> </view>
<view class="right"> <view class="right">
<image src="../../static/icon12.jpg" mode=""></image> <image :src="v.url" mode=""></image>
</view> </view>
</view> </view>
@ -36,7 +36,29 @@
statusHeight: 0, statusHeight: 0,
titleHeight: 50, titleHeight: 50,
zwHeight: 0, zwHeight: 0,
num:4, num:[
{
is: true,
click: '1522',
time: '2022-02-01',
name: '送万福、进万家文艺惠民暖人心',
url: '../../static/dt2.png'
},
{
is: false,
click: '1522',
time: '2022-02-01',
name: '虎年新春活动再上央视《新闻联播》',
url: '../../static/dt1.png'
},
{
is: false,
click: '1522',
time: '2022-02-01',
name: '文联送欢乐 安置点享真情',
url: '../../static/dt1.png'
}
],
id:'', id:'',
}; };
}, },
@ -106,8 +128,8 @@
.activity { .activity {
display: flex; display: flex;
padding-top:10px; padding-top:20rpx;
padding-bottom:10px; padding-bottom:20rpx;
border-bottom:1px solid #F5F5F5; border-bottom:1px solid #F5F5F5;
&:last-of-type{ &:last-of-type{
border-bottom:none; border-bottom:none;
@ -122,7 +144,8 @@
align-items: center; align-items: center;
.title { .title {
font-size: 16px; font-size: 32rpx;
font-weight: 700;
} }
} }
@ -136,11 +159,11 @@
} }
.right { .right {
margin-left: 10px; margin-left: 20rpx;
image { image {
width: 124px; width: 240rpx;
height: 93px; height: 160rpx;
border-radius:4px; border-radius:4px;
} }
} }

View File

@ -12,7 +12,7 @@
</view> </view>
<view class="user_name"> <view class="user_name">
<view class="user_name_de"> <view class="user_name_de">
{{userName}} {{userName}}<text class="sf_text">({{yhsf}})</text>
</view> </view>
</view> </view>
<view class="arrow"> <view class="arrow">
@ -139,6 +139,7 @@
colNum: '', colNum: '',
fans:'', fans:'',
care:'', care:'',
yhsf: '',
}; };
}, },
onShow() { onShow() {
@ -154,6 +155,7 @@
this.image = img[0] this.image = img[0]
this.userName = res.data.userName this.userName = res.data.userName
this.userId = res.data.id this.userId = res.data.id
this.yhsf = res.data.yhsf
this.point = res.data.point this.point = res.data.point
this.getCol() this.getCol()
} }
@ -320,9 +322,11 @@
.user_name_de { .user_name_de {
color: #251B1D; color: #251B1D;
font-size: 20px; font-size: 40rpx;
font-weight: 600; font-weight: 600;
.sf_text {
font-size: 32rpx;
}
} }
.words { .words {

View File

@ -82,7 +82,7 @@
</view> </view>
</view> </view>
<u-popup :show="showUser" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;"> <u-popup :show="showUser" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
<u-radio-group @change="selectForm2" v-model="userType" :borderBottom="true" placement="column" <!-- <u-radio-group @change="selectForm2" v-model="userType" :borderBottom="true" placement="column"
iconPlacement="right"> iconPlacement="right">
<u-radio :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2" :key="index" <u-radio :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2" :key="index"
:label="item.label" labelSize="28rpx" labelColor="#231F1C" :name="item.label" :label="item.label" labelSize="28rpx" labelColor="#231F1C" :name="item.label"
@ -90,16 +90,16 @@
</u-radio> </u-radio>
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;" <u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
type="default" @click="showUser=false">确认</u-button> type="default" @click="showUser=false">确认</u-button>
</u-radio-group> </u-radio-group> -->
<!-- <u-checkbox-group @change="selectForm2" v-model="radiovalue2" :borderBottom="true" placement="column" <u-checkbox-group v-model="radiovalue2" :borderBottom="true" placement="column"
iconPlacement="right"> iconPlacement="right">
<u-checkbox :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2" :key="index" <u-checkbox :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2" :key="index"
:label="item.label" labelSize="28rpx" labelColor="#231F1C" :name="item.label" :label="item.label" labelSize="28rpx" labelColor="#231F1C" :name="item.label"
activeColor="#99241B "> activeColor="#99241B ">
</u-checkbox> </u-checkbox>
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;" <u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
type="default" @click="showUser=false">确认</u-button> type="default" @click="selectForm2">确认</u-button>
</u-checkbox-group> --> </u-checkbox-group>
</u-popup> </u-popup>
<view class="form_line"> <view class="form_line">
<view class="form_left"> <view class="form_left">
@ -157,7 +157,7 @@
showUser: false, showUser: false,
userType: '', userType: '',
userTypeValue: '', userTypeValue: '',
// radiovalue2: [], radiovalue2: [],
radiolist2: [], radiolist2: [],
morePer: true, morePer: true,
perNumber: 1, perNumber: 1,
@ -221,15 +221,19 @@
} }
this.showTime = false this.showTime = false
}, },
selectForm2(form) { selectForm2() {
let _this = this let _this = this
let code = []
this.radiolist2.forEach(function(item) { this.radiolist2.forEach(function(item) {
if (item.label == form) { _this.radiovalue2.forEach(function(ele){
_this.userTypeValue = item.value if(item.label == ele) {
code.push(item.value)
} }
}) })
// let data = form })
// this.userType = data.join(',') this.userTypeValue = code.join(',')
this.userType = this.radiovalue2.join(',')
this.showUser = false
}, },
changeTrue(e) { changeTrue(e) {
console.log('change', e); console.log('change', e);

View File

@ -50,6 +50,10 @@
<view class="left">类型</view> <view class="left">类型</view>
<view class="right">{{data.typeName}}</view> <view class="right">{{data.typeName}}</view>
</view> </view>
<view class="formList">
<view class="left">可接单人才类型</view>
<view class="right">{{data.rclx}}</view>
</view>
<view class="formList"> <view class="formList">
<view class="left">可接单人数</view> <view class="left">可接单人数</view>
<view class="right"><text style="color: #99241B;">{{data.jdrs}}</text>/{{data.quantity}}</view> <view class="right"><text style="color: #99241B;">{{data.jdrs}}</text>/{{data.quantity}}</view>
@ -137,6 +141,7 @@
}) })
} }
this.data = res.data this.data = res.data
this.data.rclx = this.data.yhsf.join(',')
this.userList = res.data.users this.userList = res.data.users
this.userList.forEach(function(el){ this.userList.forEach(function(el){
let img = JSON.stringify(el.userTx) let img = JSON.stringify(el.userTx)
@ -308,12 +313,10 @@
.form { .form {
padding: 32rpx 32rpx 24rpx; padding: 32rpx 32rpx 24rpx;
margin-bottom: 116rpx;
.formList { .formList {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
height: 40rpx;
line-height: 40rpx;
margin-bottom: 40rpx; margin-bottom: 40rpx;
.left { .left {

View File

@ -110,10 +110,10 @@
titleHeight: 50, titleHeight: 50,
list: [], list: [],
list2: [{ list2: [{
image: 'https://cdn.uviewui.com/uview/swiper/swiper2.png', image: '../../static/hd1.png',
title: '昨夜星辰昨夜风,画楼西畔桂堂东', title: '昨夜星辰昨夜风,画楼西畔桂堂东',
}, { }, {
image: 'https://cdn.uviewui.com/uview/swiper/swiper1.png', image: '../../static/hd2.png',
title: '身无彩凤双飞翼,心有灵犀一点通' title: '身无彩凤双飞翼,心有灵犀一点通'
}], }],
menus: [{ menus: [{

View File

@ -7,8 +7,8 @@ export default {
config: { config: {
// baseUrl: "http://192.168.0.57:8080/h5/api", //王锡 // baseUrl: "http://192.168.0.57:8080/h5/api", //王锡
// baseUrl: "http://192.168.124.110:8088/api", //周源 // baseUrl: "http://192.168.124.110:8088/api", //周源
baseUrl: "http://10.0.0.54:8080/h5/api", //俞燕红 // baseUrl: "http://10.0.0.78:8080/h5/api", //俞燕红
// baseUrl: "https://yxx.ydool.net/h5/api", //线上 baseUrl: "https://yxx.ydool.net/h5/api", //线上
header: { header: {
'Content-Type': 'application/json;charset=UTF-8', 'Content-Type': 'application/json;charset=UTF-8',
// 'Content-Type':'application/x-www-form-urlencoded' // 'Content-Type':'application/x-www-form-urlencoded'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

BIN
src/static/dt1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

BIN
src/static/dt2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

BIN
src/static/hd1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

BIN
src/static/hd2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB