This commit is contained in:
lnn19986213 2024-01-26 17:20:40 +08:00
parent 91c80d7c8c
commit 41e0c0dc71
13 changed files with 318 additions and 102 deletions

View File

@ -12,12 +12,21 @@
</view>
<view class="user_name">
<view class="user_name_de">
{{ userName }}
<view class="sf_textA" v-if="yhsf == '文艺工作者'">
<image src="../../static/sfFws.png"></image>
<view style="display: flex; ">
<view style="width: 50%;">
{{ userName }}
</view>
<view class="sf_textA" v-if="yhsf == '文艺工作者'">
<image src="../../static/sfFws.png"></image>
</view>
<view class="sf_textB" v-if="yhsf == '文艺爱好者'">
<image src="../../static/sfRc.png"></image>
</view>
</view>
<view class="sf_textB" v-if="yhsf == '文艺爱好者'">
<image src="../../static/sfRc.png"></image>
<view style="width: 100%; font-size: 32rpx;">
{{ association }}
</view>
</view>
</view>
@ -153,6 +162,7 @@
titleHeight: 90,
isAdmin: null,
isVillageAdmin: null,
association: '',
};
},
onReady() {
@ -185,6 +195,7 @@
this.userId = res.data.id;
this.yhsf = res.data.yhsf;
this.point = res.data.point;
this.association = res.data.association.name
this.getCol();
}
})
@ -414,6 +425,7 @@
color: #251b1d;
font-size: 40rpx;
font-weight: 600;
.sf_textA {
width: 146rpx;

View File

@ -204,9 +204,7 @@
});
})
}else {
this.http.request('/works/details', {
id: this.sonId
}, "GET").then(res => {
this.http.request('/works/details/' + this.sonId, {}, "GET").then(res => {
if (res.code == 200) {
if(!res.data.isColl){
this.list.splice(this.sonNum,1)

View File

@ -38,18 +38,30 @@
</view>
<view class="" v-if="item.sendWay == '3'">
<view>
默认地址
默认地址:
</view>
<view>4564864afdvsdag645sdf</view>
<u-button text="更换地址" throttleTime=1000 color="#99241B" >
<view>{{item.addName}}</view>
<view>{{item.addDet}}</view>
<u-button text="更换地址" throttleTime=1000 color="#99241B" @click="changeAddress(index)">
</u-button>
</view>
</view>
</view>
</view>
<u-gap height="84" bgColor="#fff"></u-gap>
<u-popup :show="showAddList" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
<u-radio-group @change="selectFormB" v-model="radiovalue1" :borderBottom="true" placement="column"
iconPlacement="right">
<u-radio :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist1" :key="index"
:label="item.label" labelSize="28rpx" labelColor="#231F1C" :name="item.id"
activeColor="#99241B ">
</u-radio>
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
type="default" @click="showAddList=false">确认</u-button>
</u-radio-group>
</u-popup>
<u-gap height="84" bgColor="#F4F5F7"></u-gap>
<view class="bottom_opration">
<view class="txt">
<text>合计</text> <text class="total_prc_color">{{total}}积分</text>
<text>合计</text> <text class="total_prc_color">{{total}}积分</text>
</view>
<view class="pay_button" @click="pay">
立即支付
@ -64,11 +76,18 @@
data() {
return {
load: true,
data:[],
data: [],
total: 0,
point: '',
value1: '',
addressList: [],
addName: '',
addDet: '',
addressId: '',
showAddList: false,
radiovalue1: '',
radiolist1: [],
changeNum: null,
};
},
onLoad(option) {
@ -77,15 +96,35 @@
},
onShow() {
this.total = 0
this.radiolist1 = []
this.getTotal()
this.getUserInfo()
this.getAddress()
},
methods:{
methods: {
getAddress() {
this.http.request('/address/list', {}, "GET").then(res => {
if (res.code == 200) {
this.addressList = res.data
this.addressList.forEach(item => {
if (item.isDefault) {
this.addName = item.userName
this.addressId = item.id
this.addDet = item.province + item.city + item.area + item.userAddress
}
this.radiolist1.push({
id: item.id,
label: item.userName + '' + item.province + item.city + item
.area + item.userAddress
})
})
this.data.forEach(ele => {
if (ele.sendWay == '3') {
ele.addressId = this.addressId,
ele.addName = this.addName
ele.addDet = this.addDet
}
})
}
}).catch(e => {
uni.showToast({
@ -94,7 +133,7 @@
});
})
},
getUserInfo(){
getUserInfo() {
let _this = this
this.http.request('/user/userInfo', {}, "GET").then(res => {
if (res.code == 200) {
@ -108,57 +147,90 @@
});
})
},
getTotal(){
getTotal() {
let _this = this
this.data.forEach(function(item){
this.data.forEach(function(item) {
let num = item.count * item.money
_this.total += num
})
},
pay(){
if(this.total > this.point){
pay() {
if (this.total > this.point) {
uni.navigateTo({
url:'/pagesB/ConfirmOrder/purchaseDetail?success=1' + '&id=' + this.data[0].id + '&num=' + this.data.length
url: '/pagesB/ConfirmOrder/purchaseDetail?success=1' + '&id=' + this.data[0].id + '&num=' +
this.data.length
})
}else{
let data = []
this.data.forEach(function(item){
data.push({
goodsId: item.goodsId,
count: item.count,
addressId: item.addressId,
remark: item.remark,
shopCarId: item.shopCarId,
})
})
this.http.request('/order/newOrder', data, "POST").then(res => {
if (res.code == 200) {
uni.navigateTo({
url:'/pagesB/ConfirmOrder/purchaseDetail?success=0' + '&id=' + this.data[0].id + '&num=' + this.data.length
} else {
let arr = []
console.log(this.data)
let can = true
this.data.forEach(function(item) {
if (item.sendWay == '2' && item.remark == '') {
uni.showToast({
title: '请填写买家联系方式',
icon: "none",
});
can = false
return
} else {
arr.push({
goodsId: item.goodsId,
count: item.count,
addressId: item.addressId,
remark: item.remark,
shopCarId: item.shopCarId,
})
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
if(can){
this.http.request('/order/newOrder', arr, "POST").then(res => {
if (res.code == 200) {
uni.navigateTo({
url:'/pagesB/ConfirmOrder/purchaseDetail?success=0' + '&id=' + this.data[0].id + '&num=' + this.data.length
})
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
}
}
},
close() {
this.showAddList = false
},
selectFormB(form) {
this.addressList.forEach(item => {
if (item.id == form) {
this.data[this.changeNum].addressId = item.id
this.data[this.changeNum].addName = item.userName
this.data[this.changeNum].addDet = item.province + item.city + item.area + item.userAddress
}
})
},
changeAddress(val) {
this.showAddList = true
this.changeNum = val
}
}
}
</script>
<style lang="scss">
page{
page {
background-color: #F4F5F7;
}
image{
image {
vertical-align: middle;
}
.person_des {
display: flex;
.person_con {
@ -169,7 +241,8 @@
display: flex;
align-items: center;
justify-content: space-between;
.info_txt{
.info_txt {
font-weight: 600;
font-size: 32rpx;
margin-bottom: 16rpx;
@ -179,75 +252,85 @@
}
.goods_box {
.goods_itm {
.goods_itm_top{
.goods_itm_top {
display: flex;
align-items: center;
.goods_itm_top_title{
.goods_itm_top_title {
margin-left: 10px;
font-size: 16px;
font-weight: 600;
}
}
.goods_itm_bott{
margin-top: 16rpx;
.goods_itm_bott {
margin-top: 16rpx;
display: flex;
.goods_itm_bott_left{
.goods_itm_bott_left {
flex: 1;
margin-left: 36rpx;
.goods_itm_bott_left_count{
.goods_itm_bott_left_count {
color: $gray;
display: flex;
justify-content: space-between;
}
}
}
}
}
.price_box{
background-color: #FFFFFF;
.price_tit{
.price_box {
background-color: #FFFFFF;
.price_tit {
font-weight: 600;
border-bottom: 1rpx #E0E0E0 solid;
padding-bottom: 32rpx;
}
.price_total{
.price_total {
width: 100%;
height: 32px;
line-height: 32px;
overflow: hidden;
.price_total_left{
.price_total_left {
float: left;
font-size: 16px;
font-weight: 600;
}
.price_total_right{
.price_total_right {
float: right;
font-size: 16px;
font-weight: 600;
}
}
.express_price{
padding: 24rpx 0;
.express_price {
padding: 24rpx 0;
display: flex;
justify-content: space-between;
align-items: center;
}
}
.pay_methods{
.pay_methods {
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 600;
}
//
.bg_col_cirle_margin{
.bg_col_cirle_margin {
background-color: #FFFFFF;
margin-top: 16rpx;
border-radius: 16rpx;
@ -257,7 +340,8 @@
padding: 32rpx;
box-sizing: border-box;
}
.bottom_opration{
.bottom_opration {
position: fixed;
bottom: 0;
left: 0;
@ -269,17 +353,19 @@
display: flex;
align-items: center;
height: 166rpx;
.txt{
.txt {
display: flex;
align-items: center;
.total_prc_color{
.total_prc_color {
font-weight: 600;
color: #FF6600;
font-size: 44rpx;
}
}
.pay_button{
.pay_button {
background-color: $red;
color: #FFFFFF;
width: 284rpx;
@ -290,4 +376,4 @@
align-items: center;
}
}
</style>
</style>

View File

@ -11,6 +11,9 @@
<view class="button" @click="toDetail()">
查看订单
</view>
<view class="button" @click="toShop()">
返回
</view>
</view>
<view v-else-if="success == 1">
<view class="error_box">
@ -49,6 +52,11 @@
},
returnBack() {
uni.navigateBack()
},
toShop() {
uni.redirectTo({
url: "/pagesC/shop/Shop?typesOf=1"
});
}
}
}

View File

@ -186,12 +186,9 @@
size: this.size
}, "GET").then(res => {
if (res.code == 200) {
console.log(1)
res.data.records.forEach(function(item) {
let data = JSON.parse(item.quickPhoto)
item.quickPhoto = data
console.log(2,item.quickPhoto)
if (item.quickPhoto.domainInfo.file) {
let fileArr = item.quickPhoto.domainInfo.file.split(',')
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
@ -206,7 +203,6 @@
let img = item.quickPhoto.shopInfo.images.split(',')
item.quickPhoto.shopInfo.images = img[0]
})
console.log(3)
this.orderList = res.data.records
this.load = false
}
@ -281,7 +277,7 @@
item.quickPhoto.domainInfo.file = '../../static/fileImg/pdfS.png'
}
}
let img = JSON.parse(item.quickPhoto.shopInfo.images)
let img = item.quickPhoto.shopInfo.images.split(',')
item.quickPhoto.shopInfo.images = img[0]
})
this.orderList = res.data.records
@ -317,7 +313,7 @@
item.quickPhoto.domainInfo.file = '../../static/fileImg/pdfS.png'
}
}
let img = JSON.parse(item.quickPhoto.shopInfo.images)
let img = item.quickPhoto.shopInfo.images.split(',')
item.quickPhoto.shopInfo.images = img[0]
_this.orderList.push(item)
})
@ -350,7 +346,7 @@
//
toDetail(val) {
uni.navigateTo({
url: "/pagesB/MyOrder/fictitiousDetail?id=" + val
url: "/pagesB/MyOrder/fictitiousDetail?id=" + val + '&cho=' + this.cho
})
},
//

View File

@ -4,6 +4,7 @@
<u-loading-page :loading="load"></u-loading-page>
</view>
<view v-if="load == false">
<u-gap height="1" bgColor="#fff"></u-gap>
<view class="goods_box bg_col_cirle_margin">
<view class="goods_itm">
<view class="goods_itm_top">
@ -22,8 +23,13 @@
</view>
</view>
</view>
<view class="price_box bg_col_cirle_margin" v-if="state == 1 && cho == 1">
<u--input placeholder="请输入快递单号" v-model="courierNum" clearable
style="color: #251B1D;">
</u--input>
</view>
<view class="price_box bg_col_cirle_margin">
<view class="price_box bg_col_cirle_margin" v-if="sendWay == '1'">
<view class="price_tit">
取货链接
</view>
@ -38,6 +44,31 @@
提取码{{item.pass}}
</view>
</view>
<view class="price_box bg_col_cirle_margin" v-else-if="sendWay == '2' ">
<view class="price_tit">
买家联系方式
</view>
<view class="word_link_pas">
{{det.remark}}
</view>
</view>
<view class="price_box bg_col_cirle_margin" v-else-if="sendWay == '3' ">
<view class="price_tit">
买家收货地址
</view>
<view class="word_link" style="width: 100%;">
{{addName}}
</view>
<view class="word_link_pas">
{{addDet}}
</view>
</view>
<view class="operation" v-else-if="state == 3 && cho == 0">
<button type="default" class="next" @click="next">确认收货</button>
</view>
<view class="operation" v-else-if="state == 1 && cho == 1">
<button type="default" class="next" @click="toOut">发货</button>
</view>
</view>
</view>
@ -51,10 +82,16 @@
id: '',
item:{},
det: {},
sendWay: '',
state: '',
courierNum: '',
addName: '',
addDet: '',
};
},
onLoad(o) {
this.id = o.id
this.cho = o.cho
},
onShow() {
this.getData()
@ -76,7 +113,11 @@
}
this.item.url = res.data.quickPhoto.panUrl
this.item.pass = res.data.quickPhoto.panCode
this.sendWay = res.data.domain.sendWay
this.det = res.data
this.state = res.data.state
this.addName = res.data.userName
this.addDet = res.data.province + res.data.city + res.data.area + res.data.userAddress
this.load = false
}
}).catch(e => {
@ -114,6 +155,41 @@
}
});
},
next() {
this.http.request('/order/confirm?orderId=' + this.id, {}, "POST").then(res => {
if (res.code == 200) {
uni.showToast({
title: '收货成功',
icon: "none",
});
this.getData()
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
toOut() {
this.http.request('/order/send', {
courierNum: this.courierNum,
orderId:this.id
}, "GET").then(res => {
if (res.code == 200) {
uni.showToast({
title: '发货成功',
icon: "none",
});
this.getData()
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
}
}
</script>
@ -203,4 +279,36 @@
padding: 32rpx;
box-sizing: border-box;
}
.operation {
display: flex;
justify-content: space-between;
align-items: center;
padding: 32rpx 32rpx 48rpx;
position: fixed;
left: 0;
bottom: 0;
right: 0;
background-color: #FFFFFF;
box-shadow: 0px -4px 10px 1px rgba(192, 192, 192, 0.12);
.next {
width: calc(100% - 48rpx);
height: 80rpx;
line-height: 80rpx;
background-color: #99241B;
color: #fff;
font-size: 32rpx;
font-weight: 600;
border: none;
button {
&::after {
border: none;
}
}
}
}
</style>

View File

@ -29,14 +29,14 @@
<view class="date m16" @click="DatePicker"
v-if="Edkey=='出生年月'||Edkey=='入会时间'||Edkey=='服务开始时间'||Edkey=='服务结束时间'">
<u--input class='p32 gray' readonly v-model="Edvalue" >
<u--input class='p32 gray' readonly v-model="Edvalue" placeholder="请选择" >
<u-icon slot="suffix" name="calendar"></u-icon>
</u--input>
</view>
<!-- 政治面貌 民族 籍贯 选择 input-->
<view class="select m16" @click="zhengzhiShow=true"
v-if="Edkey=='政治面貌'||Edkey=='会员级别'||Edkey=='所属协会'||Edkey=='学历'">
<u--input class="p32 gray" readonly v-model="Edvalue" >
<u--input class="p32 gray" readonly v-model="Edvalue" placeholder="请选择" >
<u-icon slot="suffix" name="arrow-right"></u-icon>
</u--input>
</view>

View File

@ -70,7 +70,7 @@
</view>
<view class="data_itm_box">
<u-form-item prop="userInfo.pasw" ref="item1" class="data_itm">
<text class="label_t"><text style="color: #99241B;">*</text>密码</text>
<text class="label_t">密码</text>
<u--input class="p32" placeholder="请设置登录密码" inputAlign="right" clearable
v-model="model1.userInfo.pasw" border="none"></u--input>
</u-form-item>
@ -364,14 +364,10 @@
userData: {},
rules: {
'userInfo.pasw': [{
required: true,
message: '请设置登录密码',
trigger: ['blur', 'change']
}, {
min: 6,
max: 20,
message: '密码需由长度不小于12位的大小写英文、数字及特殊符号组成!',
trigger: ['blur', 'change']
trigger: ['change']
},],
'userInfo.serverInstrutor': [{
type: 'string',

View File

@ -4,7 +4,7 @@
<u-loading-page :loading="load"></u-loading-page>
</view>
<view class="workDetail" v-if="load == false">
<u-swiper :list="list" :autoplay="true" @change="e => currentNum = e.current" indicatorStyle="right: 20px" height="300px">
<u-swiper :list="list" :autoplay="true" @change="e => currentNum = e.current" indicatorStyle="right: 20px" height="300px" imgMode="aspectFit">
<view slot="indicator" class="indicator-num">
<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list.length }}</text>
</view>
@ -17,10 +17,7 @@
<!-- 作品名称自由生活向美而生作品 -->
{{actDetObj.title}}
</view>
<view class="work_desc">
<!-- 摄影作品摄影作品摄影作品摄影作品摄影作品介绍作品介绍摄影作品自由生活向美而生作品 -->
{{actDetObj.record}}
</view>
<view class="work_det">
<view class="det_box">
<view class="box_left">
@ -41,6 +38,11 @@
</view>
</view>
</view>
<view class="work_desc">
<!-- 摄影作品摄影作品摄影作品摄影作品摄影作品介绍作品介绍摄影作品自由生活向美而生作品 -->
<!-- {{actDetObj.record}} -->
<u-parse :content="actDetObj.record"></u-parse>
</view>
<!-- <image v-if="list.length > 0" v-for="item in list" :src="item" mode="widthFix" alt="" class="decTmgs"></image> -->
</view>
@ -129,7 +131,7 @@
.work_desc {
width: 94%;
margin: 10px 3%;
margin: 10px 3% 20px;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;

View File

@ -158,6 +158,10 @@
this.http.request('/culturalCreativity/list', {}, "GET").then(res => {
if (res.code == 200) {
this.list2 = res.data.records.splice(0,3)
this.list2.forEach(item => {
let img = item.image.split(',')[0]
item.image = img
})
this.load = false
}
}).catch(e => {
@ -278,7 +282,7 @@
}
.layout {
padding: 0 16px;
padding: 0 16px 16px;
box-sizing: border-box;
.activityColumn {

View File

@ -4,7 +4,7 @@
<u-loading-page :loading="load"></u-loading-page>
</view>
<view class="workDetail" v-if="load == false">
<u-swiper :list="list" :autoplay="true" @change="e => currentNum = e.current" indicatorStyle="right: 20px" height="300px">
<u-swiper :list="list" :autoplay="true" @change="e => currentNum = e.current" indicatorStyle="right: 20px" height="300px" imgMode="aspectFit">
<view slot="indicator" class="indicator-num">
<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list.length }}</text>
</view>

View File

@ -17,7 +17,6 @@
<text class="rewardWorkTitle">{{v.name}}</text>
</view>
</view>
</view>
</view>
</view>
@ -80,6 +79,10 @@
associationId: this.associationId
}, "GET").then(res => {
if (res.code == 200) {
res.data.records.forEach(item => {
let img = item.image.split(',')[0]
item.image = img
})
this.fightVirusList = res.data.records
this.load = false
}
@ -140,15 +143,17 @@
background-color: #F4F5F7;
}
.layout{
padding: 0 24rpx;
padding: 0 24rpx 16px;
box-sizing: border-box;
.reward {
// padding: 24rpx;
width: 702rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.reward_itm {
width: 340rpx;
margin-top: 20rpx;
box-sizing: border-box;
border-radius: 16rpx;

View File

@ -285,7 +285,8 @@
userImg: item.goods.shopInfo.images,
mType: '1',
money: item.goods.pointPrice,
count: item.count
count: item.count,
remark: '',
})
}
})