分包-更新

This commit is contained in:
lnn19986213 2023-07-07 16:33:43 +08:00
parent 32fd02b059
commit c97f59d753
280 changed files with 12993 additions and 11019 deletions

813
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -46,51 +46,54 @@
"test:mp-weixin": "cross-env UNI_PLATFORM=mp-weixin jest -i" "test:mp-weixin": "cross-env UNI_PLATFORM=mp-weixin jest -i"
}, },
"dependencies": { "dependencies": {
"@dcloudio/uni-app-plus": "^2.0.1-33920220314002", "@dcloudio/uni-app": "2.0.2-3080420230530001",
"@dcloudio/uni-h5": "^2.0.1-33920220314002", "@dcloudio/uni-app-plus": "2.0.2-3080420230530001",
"@dcloudio/uni-h5": "2.0.2-3080420230530001",
"@dcloudio/uni-helper-json": "*", "@dcloudio/uni-helper-json": "*",
"@dcloudio/uni-i18n": "^2.0.1-33920220314002", "@dcloudio/uni-i18n": "2.0.2-3080420230530001",
"@dcloudio/uni-mp-360": "^2.0.1-33920220314002", "@dcloudio/uni-mp-360": "2.0.2-3080420230530001",
"@dcloudio/uni-mp-alipay": "^2.0.1-33920220314002", "@dcloudio/uni-mp-alipay": "2.0.2-3080420230530001",
"@dcloudio/uni-mp-baidu": "^2.0.1-33920220314002", "@dcloudio/uni-mp-baidu": "2.0.2-3080420230530001",
"@dcloudio/uni-mp-jd": "^2.0.1-33920220314002", "@dcloudio/uni-mp-jd": "2.0.2-3080420230530001",
"@dcloudio/uni-mp-kuaishou": "^2.0.1-33920220314002", "@dcloudio/uni-mp-kuaishou": "2.0.2-3080420230530001",
"@dcloudio/uni-mp-lark": "^2.0.1-33920220314002", "@dcloudio/uni-mp-lark": "2.0.2-3080420230530001",
"@dcloudio/uni-mp-qq": "^2.0.1-33920220314002", "@dcloudio/uni-mp-qq": "2.0.2-3080420230530001",
"@dcloudio/uni-mp-toutiao": "^2.0.1-33920220314002", "@dcloudio/uni-mp-toutiao": "2.0.2-3080420230530001",
"@dcloudio/uni-mp-vue": "^2.0.1-33920220314002", "@dcloudio/uni-mp-vue": "2.0.2-3080420230530001",
"@dcloudio/uni-mp-weixin": "^2.0.1-33920220314002", "@dcloudio/uni-mp-weixin": "2.0.2-3080420230530001",
"@dcloudio/uni-quickapp-native": "^2.0.1-33920220314002", "@dcloudio/uni-mp-xhs": "2.0.2-3080420230530001",
"@dcloudio/uni-quickapp-webview": "^2.0.1-33920220314002", "@dcloudio/uni-quickapp-native": "2.0.2-3080420230530001",
"@dcloudio/uni-stat": "^2.0.1-33920220314002", "@dcloudio/uni-quickapp-webview": "2.0.2-3080420230530001",
"@vue/shared": "^3.0.0", "@dcloudio/uni-stacktracey": "2.0.2-3080420230530001",
"@dcloudio/uni-stat": "2.0.2-3080420230530001",
"@vue/shared": "3.3.4",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"flyio": "^0.6.2", "flyio": "0.6.14",
"image-tools": "^1.4.0", "image-tools": "^1.4.0",
"regenerator-runtime": "^0.12.1", "regenerator-runtime": "^0.12.1",
"uview-ui": "^2.0.31", "uview-ui": "^2.0.31",
"vconsole": "^3.15.0", "vconsole": "^3.15.0",
"vue": "^2.6.11", "vue": "^2.6.11",
"vuex": "^3.2.0" "vuex": "3.6.2"
}, },
"devDependencies": { "devDependencies": {
"@babel/runtime": "~7.12.0", "@babel/runtime": "~7.12.0",
"@dcloudio/types": "*", "@dcloudio/types": "*",
"@dcloudio/uni-automator": "^2.0.1-33920220314002", "@dcloudio/uni-automator": "2.0.2-3080420230530001",
"@dcloudio/uni-cli-i18n": "^2.0.1-33920220314002", "@dcloudio/uni-cli-i18n": "2.0.2-3080420230530001",
"@dcloudio/uni-cli-shared": "^2.0.1-33920220314002", "@dcloudio/uni-cli-shared": "2.0.2-3080420230530001",
"@dcloudio/uni-migration": "^2.0.1-33920220314002", "@dcloudio/uni-migration": "2.0.2-3080420230530001",
"@dcloudio/uni-template-compiler": "^2.0.1-33920220314002", "@dcloudio/uni-template-compiler": "2.0.2-3080420230530001",
"@dcloudio/vue-cli-plugin-hbuilderx": "^2.0.1-33920220314002", "@dcloudio/vue-cli-plugin-hbuilderx": "2.0.2-3080420230530001",
"@dcloudio/vue-cli-plugin-uni": "^2.0.1-33920220314002", "@dcloudio/vue-cli-plugin-uni": "2.0.2-3080420230530001",
"@dcloudio/vue-cli-plugin-uni-optimize": "^2.0.1-33920220314002", "@dcloudio/vue-cli-plugin-uni-optimize": "2.0.2-3080420230530001",
"@dcloudio/webpack-uni-mp-loader": "^2.0.1-33920220314002", "@dcloudio/webpack-uni-mp-loader": "2.0.2-3080420230530001",
"@dcloudio/webpack-uni-pages-loader": "^2.0.1-33920220314002", "@dcloudio/webpack-uni-pages-loader": "2.0.2-3080420230530001",
"@vue/cli-plugin-babel": "~4.5.13", "@vue/cli-plugin-babel": "~4.5.13",
"@vue/cli-service": "~4.5.13", "@vue/cli-service": "~4.5.13",
"babel-plugin-import": "^1.11.0", "babel-plugin-import": "1.13.6",
"cross-env": "^7.0.2", "cross-env": "7.0.3",
"jest": "^25.4.0", "jest": "25.5.4",
"less": "^4.1.3", "less": "^4.1.3",
"less-loader": "^6.2.0", "less-loader": "^6.2.0",
"mini-types": "*", "mini-types": "*",

View File

@ -49,22 +49,22 @@
return return
} else if (val == '2') { } else if (val == '2') {
uni.reLaunch({ uni.reLaunch({
url: '/pages/activity/activity' url: '/pagesC/activity/activity'
}); });
return return
} else if (val == '3') { } else if (val == '3') {
uni.navigateTo({ uni.navigateTo({
url: '/pages/PublishWorks/PublishWorks' url: '/pagesB/PublishWorks/PublishWorks'
}) })
return return
} else if (val == '4') { } else if (val == '4') {
uni.reLaunch({ uni.reLaunch({
url: '/pages/shop/Shop' url: '/pagesC/shop/Shop'
}); });
return return
} else if (val == '5') { } else if (val == '5') {
uni.reLaunch({ uni.reLaunch({
url: '/pages/my/My' url: '/pagesA/my/My'
}); });
return return
} }

View File

@ -1,5 +1,5 @@
{ {
"name" : "艺象心", "name" : "yxx",
"appid" : "__UNI__77CA6BC", "appid" : "__UNI__77CA6BC",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
@ -54,13 +54,18 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
/* */ "appid" : "wx55b187e6ed92e2ac",
"appid" : "wx4f17720066e6ab83",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : true,
"minified" : true "minified" : true,
"es6" : true,
"postcss" : true
}, },
"usingComponents" : true "usingComponents" : true,
"lazyCodeLoading" : "requiredComponents",
"optimization" : {
"subPackages" : true
}
}, },
"mp-alipay" : { "mp-alipay" : {
"usingComponents" : true "usingComponents" : true
@ -85,7 +90,7 @@
// vueproxyTable, // vueproxyTable,
"/pre" : { "/pre" : {
// //
"target" : "http://10.0.0.28:8080/h5/api", // "target" : "http://10.0.0.61:8080/h5/api", //
// "target" : "https://yxx.ydool.net/h5/api", // // "target" : "https://yxx.ydool.net/h5/api", //
"changeOrigin" : true, // "changeOrigin" : true, //

File diff suppressed because it is too large Load Diff

View File

@ -1,254 +0,0 @@
<template>
<view class="">
<view v-if="load">
<u-loading-page loading-text="登录中..." :loading="load"></u-loading-page>
</view>
<view v-else>
<u-gap height="60" bgColor="#FFF"></u-gap>
<u--form :model="userInfo" ref="loginForm">
<view class="content_main">
<view class="copyright_iocn">
<image style="width: 80rpx; height: 60rpx;" src="../../static/icon10.png" mode=""></image>
<image style="width: 156rpx; height: 50rpx;margin-left: 16rpx;" src="../../static/icon11.png"
mode="">
</image>
</view>
<view class="tab_op">
<view :class="tab == 0?'choosed':'unchoosed'" @click="pwdLog()">
密码登录
</view>
<view class="whiteBox"></view>
<view :class="tab == 1?'choosed':'unchoosed'" @click="codeLog()">
验证码登录
</view>
</view>
<u-form-item prop="number" ref="item1" class="data_itm" v-if="tab == 0">
<u--input placeholder="请输入手机号" border="bottom" clearable v-model="userInfo.number"></u--input>
</u-form-item>
<u-form-item prop="pasw" ref="item1" class="data_itm" v-if="tab == 0">
<u--input type="password" placeholder="请输入密码" border="bottom" clearable v-model="userInfo.pasw">
</u--input>
</u-form-item>
<u-form-item prop="phone" ref="item1" class="data_itm" v-if="tab == 1">
<u--input placeholder="请输入手机号" border="bottom" clearable v-model="userInfo.phone"></u--input>
</u-form-item>
<u-form-item prop="code" ref="item1" class="data_itm" v-if="tab == 1">
<u-input placeholder="请输入验证码" border="bottom" clearable v-model="userInfo.code">
<template slot="suffix">
<u-code ref="uCode" @change="codeChange" seconds="60" changeText="X秒重新获取"></u-code>
<u-button @click="getCode" :text="tips" :hairline="false" plain style="border: 0px; height: 21px;">
</u-button>
</template>
</u-input>
</u-form-item>
<u-button text="登录" size="large" throttleTime=1000 color="#99241B" style="margin-top: 84rpx; height: 40px;"
@click="login()">
</u-button>
<view class="other_op">
<!-- <text @click="goRegist">注册账号</text> -->
<text @click="goRemeber">忘记密码</text>
</view>
</view>
</u--form>
</view>
</view>
</template>
<script>
export default {
data() {
return {
tips: '',
userInfo: {
number: null,
pasw: null,
phone: null,
code: null,
},
rules: {
'number': [{
required: true,
message: '请填写账号',
trigger: ['blur']
}],
'phone': [{
type: 'number',
required: true,
message: '请填写手机号',
trigger: ['blur']
}, {
validator: (rule, value, callback) => {
return uni.$u.test.mobile(value);
},
message: '请输入格式正确的手机号',
trigger: ['change', 'blur'],
}],
'pasw': [{
required: true,
message: '请填写密码',
trigger: ['blur']
}],
'code': [{
required: true,
message: '请填写验证码',
trigger: ['blur']
}],
},
tab: 0,
load: false,
};
},
methods: {
pwdLog() {
this.tab = 0
this.$refs.loginForm.clearValidate()
},
codeLog() {
this.tab = 1
this.$refs.loginForm.clearValidate()
},
goRegist() {
uni.navigateTo({
url: '/pages/Login/Register'
})
},
goRemeber() {
uni.navigateTo({
url: '/pages/Login/RemeberPW'
})
},
login() {
if (this.tab == 0) {
this.load = true
this.http.request('/auth/loginByPwd', {
phone: this.userInfo.number,
pwd: this.userInfo.pasw
}, "POST").then(res => {
uni.setStorageSync('token', res.data.tokenValue)
this.load = false
if (res.code == 200) {
uni.navigateTo({
url: '/pages/pageHome/pageHome'
})
}
}).catch(e => {
this.load = false
uni.showToast({
title: e.data.message,
icon: "none",
});
})
} else if (this.tab == 1) {
this.load = true
this.http.request('/auth/loginByPhone', {
phone: this.userInfo.phone,
code: this.userInfo.code
}, "POST").then(res => {
uni.setStorageSync('token', res.data.tokenValue)
this.load = false
if (res.code == 200) {
uni.navigateTo({
url: '/pages/pageHome/pageHome'
})
}
}).catch(e => {
this.load = false
uni.showToast({
title: e.data.message,
icon: "none",
});
})
}
},
codeChange(text) {
this.tips = text;
},
getCode() {
uni.hideKeyboard()
if (!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.userInfo.phone))) { //
uni.showToast({
title: '请填写正确手机号码',
icon: "none"
});
return false;
}
if (this.$refs.uCode.canGetCode) {
//
uni.showLoading({
title: '正在获取验证码'
})
this.http.request('/auth/getCode?phone=' + this.userInfo.phone, {}, "GET").then(res => {
if (res.code == 200) {
uni.hideLoading();
uni.$u.toast('验证码已发送');
this.$refs.uCode.start();
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
} else {
uni.$u.toast('倒计时结束后再发送');
}
},
},
onReady() {
this.$refs.loginForm.setRules(this.rules);
},
}
</script>
<style lang="scss">
::v-deep .u-form-item__body__right__message{
margin-left: 10px !important;
}
.content_main {
margin: 0rpx 76rpx;
.copyright_iocn {
margin: 0rpx 0rpx 120rpx;
display: flex;
align-items: center;
justify-content: center;
}
.other_op {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24rpx 0rpx;
}
.tab_op {
height: 60rpx;
width: 100%;
overflow: hidden;
font-size: 16px;
font-weight: 600;
.choosed {
color: #99241B;
float: left;
font-size: 17px;
}
.whiteBox{
width: 60rpx;
height: 60rpx;
float: left;
}
.unchoosed {
color: #32333B;
float: left;
}
}
}
</style>

View File

@ -1,258 +0,0 @@
<template>
<view class="">
<view class="">
<u-loading-page :loading="load"></u-loading-page>
</view>
<view class="layout" v-if="load == false">
<view class="container">
<view class="left">
<view class="scroll-list__goods-item" v-for="(item, index) in leftList" :key="index"
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']"
@click="ToEnjoy(item.id)">
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
<view class="scroll-list__goods-item__title">
{{ item.name }}
</view>
<view class="scroll-list__goods-item__text">
<text class="det-type">类型:{{ item.name }}</text>
<view class="det_box">
<view class="box_left">
<image src="../../static/workDetail/seen.png" class="img"></image>
</view>
<view class="box_right">
{{item.views}}
</view>
</view>
</view>
</view>
</view>
<view class="right">
<view class="scroll-list__goods-item" v-for="(item, index) in rightList" :key="index"
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']"
@click="ToEnjoy(item.id)">
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
<view class="scroll-list__goods-item__title">
{{ item.name }}
</view>
<view class="scroll-list__goods-item__text">
<text class="det-type">类型:{{ item.name }}</text>
<view class="det_box">
<view class="box_left">
<image src="../../static/workDetail/seen.png" class="img"></image>
</view>
<view class="box_right">
{{item.views}}
</view>
</view>
</view>
</view>
</view>
</view>
<!-- <view class="shelves">
<view class="shelves-item" v-for="(item,index) in enjoyList" :key="index" @click="ToEnjoy(item.id)">
<image :src="item.file" class="shelves-img"></image>
<view class="name">{{item.name}}</view>
</view>
</view> -->
</view>
</view>
</template>
<script>
export default {
data() {
return {
load: true,
enjoyList: [],
//
leftList: [],
rightList: [],
//
leftH: 0,
rightH: 0
};
},
onReady() {
let date = new Date()
let Y = date.getFullYear()
let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
let D = date.getDate() < 10 ? ('0' + date.getDate()) : date.getDate()
this.dateTime = Y + '-' + M + '-' + D
// #ifdef MP-WEIXIN
//
this.$refs.datetimePicker.setFormatter(this.formatter)
// #endif
},
onShow() {
this.getEnjoy()
},
methods: {
getEnjoy() {
let _this = this
this.http.request('/indexImage/recommend', {}, "GET").then(res => {
if (res.code == 200) {
res.data.forEach(function(item) {
if (item.file) {
let fileArr = item.file.split(',')
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs ==
'gif' || gs == 'tif' || gs == 'tiff') {
item.file = fileArr[0]
} else if (gs == 'pdf') {
item.file = '../../static/fileImg/pdfS.png'
}
}
})
this.enjoyList = res.data
this.doList()
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
ToEnjoy(val) {
uni.navigateTo({
url: "/pages/ArtWorks/artWorkDetail?id=" + val
})
},
doList() {
const that = this
this.leftList = []
this.rightList = []
this.leftH = 0
this.rightH = 0
this.enjoyList.forEach(res => {
//
uni.getImageInfo({
src: res.file,
success: (image) => {
//
let showH = (50 * image.height) / image.width
//
if (that.leftH <= that.rightH) {
that.leftList.push(res)
that.leftH += showH
} else {
that.rightList.push(res)
that.rightH += showH
}
}
})
})
this.load = false
}
},
}
</script>
<style lang="scss">
.layout {
padding: 16rpx 32rpx;
.container {
font-size: 14rpx;
line-height: 24rpx;
.right,
.left {
display: inline-block;
width: 49%;
vertical-align: top;
.scroll-list {
display: flex;
&__goods-item {
width: 100%;
margin: 20rpx 10rpx;
&__image {
width: 100%;
border-radius: 8px;
}
&__title {
font-size: 14px;
font-weight: 500;
padding: 10rpx 24rpx;
}
&__text {
margin-top: 3px;
padding: 0 24rpx 10rpx;
font-size: 12px;
color: #AFADB0;
overflow: hidden;
.det-type {
float: left;
line-height: 16px;
}
.det_box {
float: right;
overflow: hidden;
.box_left {
width: 16px;
height: 16px;
float: left;
.img {
width: 100%;
height: 100%;
}
}
.box_right {
margin-left: 2px;
line-height: 16px;
float: left;
}
}
}
}
}
}
.left {
margin-right: 2%;
}
.left image,
.right image {
width: 100%;
margin-bottom: 10rpx;
}
}
.shelves {
width: 100%;
.shelves-item {
width: calc(50% - 32rpx);
margin-top: 32rpx;
margin-left: 16rpx;
margin-right: 16rpx;
float: left;
.shelves-img {
border-radius: 8px 8px 8px 8px;
width: 100%;
height: 312rpx;
}
.name {
font-weight: 800;
font-size: 16px;
margin-top: 12rpx;
}
}
}
}
</style>

View File

@ -1,47 +0,0 @@
<template>
<view class="content">
<u-button type="primary" text="确定"></u-button>
<tabbar tabbarId='3'></tabbar>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {
},
methods: {
}
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200rpx;
width: 200rpx;
margin: 200rpx auto 50rpx auto;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style>

View File

@ -3,7 +3,7 @@
<view class=""> <view class="">
<u-loading-page :loading="load"></u-loading-page> <u-loading-page :loading="load"></u-loading-page>
</view> </view>
<view class="layout" v-if="load == false"> <view class="layout" :style="{backgroundImage: 'url('+background+')'}" v-if="load == false">
<view class="status_bar" :style="{'height':statusHeight+'px'}"></view> <view class="status_bar" :style="{'height':statusHeight+'px'}"></view>
<view class="apptitle" :style="{'height':titleHeight+'px'}"> <view class="apptitle" :style="{'height':titleHeight+'px'}">
<image src="../../static/icon10.png" mode="" class="logo"></image> <image src="../../static/icon10.png" mode="" class="logo"></image>
@ -27,7 +27,7 @@
<view class="title"> <view class="title">
文艺名家 文艺名家
</view> </view>
<view class="more" @click="navigateToFun('/pages/famousArts/artistList')"> <view class="more" @click="navigateToFun('/pagesC/famousArts/artistList')">
更多 更多
</view> </view>
</view> </view>
@ -54,7 +54,7 @@
<view class="title"> <view class="title">
热门活动 热门活动
</view> </view>
<view class="more" @click="navigateToFun('/pages/ArtActivities/ArtActivities')"> <view class="more" @click="navigateToFun('/pagesC/ArtActivities/ArtActivities')">
更多 更多
</view> </view>
</view> </view>
@ -72,7 +72,7 @@
<view class="title"> <view class="title">
每日一赏 每日一赏
</view> </view>
<view class="more" @click="navigateToFun('/pages/enjoy/enjoy')"> <view class="more" @click="navigateToFun('/pagesC/enjoy/enjoy')">
更多 更多
</view> </view>
</view> </view>
@ -89,7 +89,7 @@
{{ item.name }} {{ item.name }}
</view> </view>
<view class="scroll-list__goods-item__text"> <view class="scroll-list__goods-item__text">
<text class="det-type">类型:{{ item.name }}</text> <view class="det-type">类型:{{ item.name }}</view>
<view class="det_box"> <view class="det_box">
<view class="box_left"> <view class="box_left">
<image src="../../static/workDetail/seen.png" class="img"></image> <image src="../../static/workDetail/seen.png" class="img"></image>
@ -110,7 +110,7 @@
{{ item.name }} {{ item.name }}
</view> </view>
<view class="scroll-list__goods-item__text"> <view class="scroll-list__goods-item__text">
<text class="det-type">类型:{{ item.typesName }}</text> <view class="det-type">类型:{{ item.typesName }}</view>
<view class="det_box"> <view class="det_box">
<view class="box_left"> <view class="box_left">
<image src="../../static/workDetail/seen.png" class="img"></image> <image src="../../static/workDetail/seen.png" class="img"></image>
@ -143,8 +143,8 @@
</view> </view>
<view class="notice"> <view class="notice">
服务咨询热线 服务咨询热线
<!-- <text class="phone" @click="callPhone()">65712324</text> --> <text class="phone" @click="callPhone()">65712324</text>
<a href="tel:65712324">65712324</a> <!-- <a href="tel:65712324">65712324</a> -->
</view> </view>
</view> </view>
<u-gap height="32"></u-gap> <u-gap height="32"></u-gap>
@ -219,7 +219,8 @@
rightList: [], rightList: [],
// //
leftH: 0, leftH: 0,
rightH: 0 rightH: 0,
background: '',
}; };
}, },
onReady() { onReady() {
@ -343,6 +344,20 @@
} }
}) })
this.list2 = res.data.records this.list2 = res.data.records
this.getBackgroundImage()
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
//
getBackgroundImage() {
this.http.request('/indexImage/sybjt', {}, "GET").then(res => {
if (res.code == 200) {
this.background = res.data[0].imagePath
this.load = false this.load = false
} }
}).catch(e => { }).catch(e => {
@ -361,66 +376,66 @@
switch (name) { switch (name) {
case 1: case 1:
uni.navigateTo({ uni.navigateTo({
url: "/pages/PolicyExpress/PolicyExpress" url: "/pagesC/PolicyExpress/PolicyExpress"
}) })
break; break;
case 2: case 2:
uni.navigateTo({ uni.navigateTo({
url: "/pages/ArtActivities/ArtActivities" url: "/pagesC/ArtActivities/ArtActivities"
}) })
break; break;
case 3: case 3:
uni.navigateTo({ uni.navigateTo({
url: "/pages/ArtWorks/ArtWorks" url: "/pagesB/ArtWorks/ArtWorks"
}) })
break; break;
case 4: case 4:
uni.redirectTo({ uni.redirectTo({
url: "/pages/shop/Shop" url: "/pagesC/shop/Shop"
}) })
break; break;
case 5: case 5:
uni.navigateTo({ uni.navigateTo({
url: "/pages/orderHall/orderHall" url: "/pagesB/orderHall/orderHall"
}) })
break; break;
case 6: case 6:
uni.navigateTo({ uni.navigateTo({
url: "/pages/literFamily/literFamily" url: "/pagesB/literFamily/literFamily"
}) })
break; break;
// case 6: // case 6:
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/literHelp/literHelp" // url: "/pagesC/literHelp/literHelp"
// }) // })
// break; // break;
case 7: case 7:
uni.navigateTo({ uni.navigateTo({
url: "/pages/MyPoints/MyPoints" url: "/pagesB/MyPoints/MyPoints"
}) })
break; break;
// case 8: // case 8:
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/moreFun/moreFun" // url: "/pagesC/moreFun/moreFun"
// }) // })
// break; // break;
} }
}, },
famouserDetaol(val) { famouserDetaol(val) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/famousArts/famousArts?id=" + val url: "/pagesC/famousArts/famousArts?id=" + val
}) })
}, },
ToEnjoy(val) { ToEnjoy(val) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/ArtWorks/artWorkDetail?id=" + val url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
}) })
}, },
// //
goActDeat(index) { goActDeat(index) {
let id = this.list2[index].id let id = this.list2[index].id
uni.navigateTo({ uni.navigateTo({
url: '/pages/ActivitiesDetail/ActivitiesDetail?id=' + id url: '/pagesC/ActivitiesDetail/ActivitiesDetail?id=' + id
}) })
}, },
callPhone() { callPhone() {
@ -475,7 +490,6 @@
padding: 0 16px; padding: 0 16px;
padding-bottom: 50px; padding-bottom: 50px;
background-color: #F9F8F7; background-color: #F9F8F7;
background-image: url('../../static/home/home-bg.png');
background-position: center top; background-position: center top;
background-size: 100% auto; background-size: 100% auto;
@ -544,7 +558,6 @@
vertical-align: top; vertical-align: top;
.scroll-list { .scroll-list {
display: flex;
&__goods-item { &__goods-item {
width: 100%; width: 100%;
@ -599,7 +612,6 @@
} }
} }
} }
} }
} }

View File

@ -14,7 +14,7 @@
onLoad(params){ onLoad(params){
console.log(params) console.log(params)
let {url} = params let {url} = params
this.url = `../../../static/pdf/pdf.html?url=${url}` this.url = `../../../components/pdf/pdf.html?url=${url}`
}, },
} }
</script> </script>

View File

@ -12,17 +12,34 @@
<view class="textLine" v-if="tab == 0"></view> <view class="textLine" v-if="tab == 0"></view>
</view> </view>
<view class="tabBox"> <view class="tabBox">
<view class="textBox" @click="toZZ()" v-if="userType == 'fws'"> <view class="textBox" @click="toZZ()">
我赞助的 我赞助的
</view> </view>
<view class="textBox" @click="toBM()" v-else> <view class="textLine" v-if="tab == 2"></view>
</view>
<view class="tabBox">
<view class="textBox" @click="toBM()">
我报名的 我报名的
</view> </view>
<view class="textLine" v-if="tab == 1"></view> <view class="textLine" v-if="tab == 1"></view>
</view> </view>
</view> </view>
<view class="tabs" v-else>
<view class="tabBox" style="width: 50%;">
<view class="textBox" @click="toBM()">
我报名的
</view>
<view class="textLine" v-if="tab == 1"></view>
</view>
<view class="tabBox" style="width: 50%;">
<view class="textBox" @click="toZZ()">
我赞助的
</view>
<view class="textLine" v-if="tab == 2"></view>
</view>
</view>
<u-gap height="5" bgColor="#fff"></u-gap> <u-gap height="5" bgColor="#fff"></u-gap>
<view class="art_act_itmF" v-for="(v,i) in list2" :key="i" v-if="tab == 0"> <view class="art_act_itmF" v-for="(v,i0) in list2" :key="i0" v-if="tab == 0">
<view style="height: 328rpx;position: relative;"> <view style="height: 328rpx;position: relative;">
<image :src="v.image" mode="" @click="goActDeat(v.id)"></image> <image :src="v.image" mode="" @click="goActDeat(v.id)"></image>
<view class="title" @click="goActDeat(v.id)"> <view class="title" @click="goActDeat(v.id)">
@ -38,8 +55,8 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="tab == 1"> <view>
<view class="art_act_itm" v-for="(v,i) in list2" :key="i" v-if="userType == 'fws'"> <view class="art_act_itm" v-for="(v,i1) in list2" :key="i1" v-if="tab == 2">
<view class="imgPart" @click="goActDeat(v.activityId)"> <view class="imgPart" @click="goActDeat(v.activityId)">
<image :src="v.activity.image" mode=""></image> <image :src="v.activity.image" mode=""></image>
</view> </view>
@ -73,7 +90,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="art_act_itm" v-for="(v,i) in list2" :key="i" v-else> <view class="art_act_itm" v-for="(v,i2) in list2" :key="i2" v-if="tab == 1">
<view class="imgPart" @click="goActDeat(v.activityId)"> <view class="imgPart" @click="goActDeat(v.activityId)">
<image :src="v.activity.image" mode=""></image> <image :src="v.activity.image" mode=""></image>
</view> </view>
@ -207,7 +224,7 @@
</template> </template>
<script> <script>
var qrcode = require('../../static/js/qrcode.js'); var qrcode = require('../../components/js/qrcode.js');
export default { export default {
data() { data() {
return { return {
@ -254,11 +271,9 @@
if (this.tab == 0) { if (this.tab == 0) {
this.getFB() this.getFB()
} else if (this.tab == 1) { } else if (this.tab == 1) {
if(this.userType == 'fws'){
this.getZZ()
}else{
this.getData() this.getData()
} } else if (this.tab == 2) {
this.getZZ()
} }
}, },
// //
@ -268,11 +283,9 @@
if (this.tab == 0) { if (this.tab == 0) {
this.getFB() this.getFB()
} else if (this.tab == 1) { } else if (this.tab == 1) {
if(this.userType == 'fws'){
this.getZZ()
}else{
this.getData() this.getData()
} }else if (this.tab == 2) {
this.getZZ()
} }
setTimeout(function() { setTimeout(function() {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
@ -284,18 +297,16 @@
if (this.tab == 0) { if (this.tab == 0) {
this.getFB() this.getFB()
} else if (this.tab == 1) { } else if (this.tab == 1) {
if(this.userType == 'fws'){
this.getZZ()
}else{
this.getData() this.getData()
} }else if (this.tab == 2) {
this.getZZ()
} }
}, },
methods: { methods: {
// //
goActDeat(id) { goActDeat(id) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/ActivitiesDetail/ActivitiesDetail?id=${id}` url: `/pagesC/ActivitiesDetail/ActivitiesDetail?id=${id}`
}) })
}, },
// //
@ -397,7 +408,7 @@
this.getData() this.getData()
}, },
toZZ() { toZZ() {
this.tab = 1 this.tab = 2
this.pages = 1 this.pages = 1
this.list2 = [] this.list2 = []
this.getZZ() this.getZZ()
@ -422,8 +433,7 @@
}) })
} }
}); });
} } else {
else{
uni.chooseImage({ uni.chooseImage({
sizeType: ['original'], sizeType: ['original'],
count: 1, count: 1,
@ -440,7 +450,8 @@
}) })
} else { } else {
// //
that.http.request('/activityUser/sing/' + res1, {}, "POST").then(res => { that.http.request('/activityUser/sing/' + res1, {}, "POST").then(
res => {
if (res.code == 200) { if (res.code == 200) {
that.pages = 1 that.pages = 1
that.list2 = [] that.list2 = []
@ -538,8 +549,10 @@
this.http.request('/activityUser/evaluate?id=' + this.id + '&evaluate=' + this.star, {}, "POST") this.http.request('/activityUser/evaluate?id=' + this.id + '&evaluate=' + this.star, {}, "POST")
.then(res => { .then(res => {
if (res.code == 200) { if (res.code == 200) {
this.showH = false this.pages = 1
this.list2 = []
this.getData() this.getData()
this.showH = false
} }
}).catch(e => { }).catch(e => {
uni.showToast({ uni.showToast({
@ -746,7 +759,7 @@
background-color: #FFFFFF; background-color: #FFFFFF;
.tabBox { .tabBox {
width: 50%; width: 33%;
height: 70rpx; height: 70rpx;
text-align: center; text-align: center;
line-height: 70rpx; line-height: 70rpx;

View File

@ -59,10 +59,13 @@
} }
</script> </script>
<style lang="scss" scoped> <style>
page { page {
background-color: #F4F5F7; background-color: #F4F5F7;
} }
</style>
<style lang="scss" scoped>
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@ -68,7 +68,7 @@
{{v.material}} {{v.material}}
</view> </view>
<view class="exaReason" v-else> <view class="exaReason" v-else>
{{v.evaluate}} {{v.reason}}
</view> </view>
<view class="exaImg" v-if="type =='2' || type == '3'"> <view class="exaImg" v-if="type =='2' || type == '3'">
<view class="exaImgItem" v-for="(a,b) in v.image" :key="b"> <view class="exaImgItem" v-for="(a,b) in v.image" :key="b">

View File

@ -17,7 +17,7 @@
<uni-th width="60" align="center">是否签到</uni-th> <uni-th width="60" align="center">是否签到</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item, index) in tableData" :key="index"> <uni-tr v-for="(item, index) in tableData" :key="index">
<uni-td align="center">{{ item.startTime}} - {{ item.startTime }}</uni-td> <uni-td align="center">{{ item.startTime}} - {{ item.endTime }}</uni-td>
<uni-td align="center">{{ item.userName }}</uni-td> <uni-td align="center">{{ item.userName }}</uni-td>
<uni-td align="center"> <uni-td align="center">
<view v-if="item.sign"> <view v-if="item.sign">
@ -29,9 +29,9 @@
</uni-td> </uni-td>
</uni-tr> </uni-tr>
</uni-table> </uni-table>
<view class="uni-pagination-box"> <!-- <view class="uni-pagination-box">
<uni-pagination :page-size="pageSize" :current="pageCurrent" :total="total" @change="change" /> <uni-pagination :page-size="pageSize" :current="pageCurrent" :total="total" @change="change" />
</view> </view> -->
</view> </view>
</view> </view>
</view> </view>
@ -58,6 +58,7 @@
timeNum: 0, timeNum: 0,
activityId: '', activityId: '',
type: '', type: '',
isWx: true
} }
}, },
onLoad(op) { onLoad(op) {
@ -65,17 +66,23 @@
this.type = op.type this.type = op.type
this.getData() this.getData()
}, },
onReady() {
// #ifdef MP-WEIXIN
this.isWx = true
// #endif
// #ifndef MP-WEIXIN
//
this.isWx = false
// #endif
},
methods: { methods: {
getData() { getData() {
let _this = this let _this = this
this.loading = true this.loading = true
this.http.request('/activityUser/singIn/' + this.activityId + '/' + this.type, { this.http.request('/activityUser/singIn/' + this.activityId + '/' + this.type, {}, "GET").then(res => {
size: this.pageSize,
page: this.pageCurrent
}, "GET").then(res => {
if (res.code == 200) { if (res.code == 200) {
this.tableData = res.data.records this.tableData = res.data
this.total = res.total
this.loading = false this.loading = false
this.load = false this.load = false
} }
@ -92,8 +99,33 @@
this.getData() this.getData()
}, },
outList() { outList() {
let url = http.config.baseUrl + '/activityUser/sign_export/'+ this.activityId + '/' + this.type let urlPath = http.config.baseUrl + '/activityUser/sign_export/' + this.activityId + '/' + this.type
window.location.href = url const token = uni.getStorageSync('token')
if (this.isWx) {
wx.downloadFile({
url: urlPath, //
header: {
'Authorization': "Bearer " + token,
'x-token': token
},
success(res) {
// success
if (res.statusCode === 200) {
const filePath = res.tempFilePath;
wx.openDocument({
filePath: filePath,
showMenu: true,
success: function(res) {
console.log(res, '打开文档成功');
}
});
}
}
})
} else {
window.location.href = urlPath
}
} }
} }
} }

View File

@ -36,7 +36,7 @@
<view class="codeImg"> <view class="codeImg">
<view class="codeEle"> <view class="codeEle">
<uqrcode ref="uQRCode" canvas-id="uQRCode" :value="item.text" :size="QRsize" :start="true" :auto="true"></uqrcode> <uqrcode ref="uQRCode" canvas-id="uQRCode" :value="item.text" :size="QRsize" :start="true" :auto="true"></uqrcode>
<!-- <uqrcode :id="'uQRCode'+index" ref="uQRCode0" :size='QRsize' :text='item.text' /> --> <!-- <uqrcode :id="'uQRCode'" ref="uQRCode0" :size='QRsize' :text='item.text' /> -->
</view> </view>
</view> </view>
</view> </view>

View File

@ -4,7 +4,7 @@
<u-loading-page :loading="load"></u-loading-page> <u-loading-page :loading="load"></u-loading-page>
</view> </view>
<view v-if="load == false"> <view v-if="load == false">
<view class="top"> <view class="top" :style="{'height':titleHeight+'px'}">
<image class="bg" src="../../static/MyBg.png" mode=""></image> <image class="bg" src="../../static/MyBg.png" mode=""></image>
<view class="avator_box" @click="GoPersonalCenter"> <view class="avator_box" @click="GoPersonalCenter">
<view class="tou"> <view class="tou">
@ -13,18 +13,12 @@
<view class="user_name"> <view class="user_name">
<view class="user_name_de"> <view class="user_name_de">
{{userName}} {{userName}}
<view class="sf_textA" v-if="yhsf == '服务商'"> <view class="sf_textA" v-if="yhsf == '文艺工作者'">
<image src="../../static/sfFws.png" ></image> <image src="../../static/sfFws.png" ></image>
</view> </view>
<view class="sf_textB" v-if="yhsf == '文艺人才'"> <view class="sf_textB" v-if="yhsf == '文艺爱好者'">
<image src="../../static/sfRc.png" ></image> <image src="../../static/sfRc.png" ></image>
</view> </view>
<view class="sf_textB" v-if="yhsf == '协会会员'">
<image src="../../static/sfHy.png" ></image>
</view>
<view class="sf_textC" v-if="yhsf == '文艺志愿者'">
<image src="../../static/sfZyz.png"></image>
</view>
</view> </view>
</view> </view>
<view class="arrow"> <view class="arrow">
@ -161,8 +155,18 @@
fans:'', fans:'',
care:'', care:'',
yhsf: '', yhsf: '',
isUnread: false isUnread: false,
statusHeight: 0,
titleHeight: 90,
}; };
},
onReady() {
const systemMsg = uni.getSystemInfoSync();
this.statusHeight = systemMsg.statusBarHeight
// #ifdef MP-WEIXIN
const menuButtonInfo = uni.getMenuButtonBoundingClientRect() //
this.titleHeight = 90 + menuButtonInfo.height + (menuButtonInfo.top - systemMsg.statusBarHeight) * 2
// #endif
}, },
onShow() { onShow() {
this.getUserInfo() this.getUserInfo()
@ -264,43 +268,43 @@
// //
gopointsPg() { gopointsPg() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/MyPoints/MyPoints" url: "/pagesB/MyPoints/MyPoints"
}) })
}, },
// //
goOrderDetails() { goOrderDetails() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/MyOrder/MyOrder" url: "/pagesB/MyOrder/MyOrder"
}) })
}, },
// //
GoPersonalCenter() { GoPersonalCenter() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/PersonalCenter/PersonalCenter" url: "/pagesB/PersonalCenter/PersonalCenter"
}) })
}, },
// //
toCol(){ toCol(){
uni.navigateTo({ uni.navigateTo({
url: "/pages/my/myCollection" url: "/pagesA/my/myCollection"
}) })
}, },
// //
toFollow(){ toFollow(){
uni.navigateTo({ uni.navigateTo({
url: "/pages/my/myFollow?tab=0" url: "/pagesA/my/myFollow?tab=0"
}) })
}, },
// //
toFans(){ toFans(){
uni.navigateTo({ uni.navigateTo({
url: "/pages/my/myFollow?tab=1" url: "/pagesA/my/myFollow?tab=1"
}) })
}, },
// //
toWork(){ toWork(){
uni.navigateTo({ uni.navigateTo({
url: "/pages/my/myWoekList", url: "/pagesA/my/myWoekList",
}) })
}, },
// //
@ -319,7 +323,7 @@
// //
toSz(){ toSz(){
uni.navigateTo({ uni.navigateTo({
url: "/pages/my/logOut" url: "/pagesA/my/logOut"
}) })
}, },
// //
@ -339,11 +343,13 @@
} }
</script> </script>
<style lang="scss" scoped> <style>
page { page {
background-color: #F4F5F7; background-color: #F4F5F7;
} }
</style>
<style lang="scss" scoped>
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@ -212,7 +212,7 @@
}, },
// //
onReachBottom() { onReachBottom() {
this.pages++ this.page++
this.moreOrder(); this.moreOrder();
}, },
methods: { methods: {
@ -452,11 +452,11 @@
goActDeat(id, typEnum) { goActDeat(id, typEnum) {
if (typEnum) { if (typEnum) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/orderHall/orderHallDetails?id=${id}&isCheck=${typEnum}` url: `/pagesB/orderHall/orderHallDetails?id=${id}&isCheck=${typEnum}`
}) })
} else { } else {
uni.navigateTo({ uni.navigateTo({
url: `/pages/orderHall/orderHallDetails?id=${id}` url: `/pagesB/orderHall/orderHallDetails?id=${id}`
}) })
} }
@ -467,7 +467,7 @@
console.log("reg", res.data) console.log("reg", res.data)
if (res.data.length > 0) { if (res.data.length > 0) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/my/imgUpload?id=` + id url: `/pagesA/my/imgUpload?id=` + id
}) })
} else { } else {
uni.showToast({ uni.showToast({
@ -486,7 +486,7 @@
}, },
touploadedimg(imgstr) { touploadedimg(imgstr) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/my/uploadedImgShow?imgstring=` + imgstr url: '/pagesA/my/uploadedImgShow?imgstring=' + imgstr
}) })
}, },
subEvalue(item) { subEvalue(item) {
@ -518,7 +518,7 @@
}, },
toEvlauedpg(id) { toEvlauedpg(id) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/my/evaluated?id=` + id url: `/pagesA/my/evaluated?id=` + id
}) })
}, },
close() { close() {

View File

@ -6,12 +6,12 @@
<view v-if="load == false"> <view v-if="load == false">
<!-- 发布作品 --> <!-- 发布作品 -->
<view class="rightBox"> <view class="rightBox">
<u--input placeholder="请输入作品名称" v-model="name" clearable border="none" style="color: #251B1D;margin-left: 32rpx;"> <u--input placeholder="请输入作品名称" v-model="name" clearable border="none" style="color: #251B1D;">
</u--input> </u--input>
</view> </view>
<!-- 作品类型 --> <!-- 作品类型 -->
<view class="rightBox" @click="selectType"> <view class="rightBox" @click="selectType">
<text class="right_titl" style="color: #c0c4cc; font-size: 15px;margin-left: 32rpx;">请选择作品类型</text> <text class="right_titl" style="color: #c0c4cc; font-size: 15px;;">请选择作品类型</text>
<u--input fontSize="30rpx" border="none" readonly v-model="v1" disabledColor="#ffffff" <u--input fontSize="30rpx" border="none" readonly v-model="v1" disabledColor="#ffffff"
inputAlign="right"> inputAlign="right">
<u-icon slot="suffix" name="arrow-right" style="margin-right: 10px;"></u-icon> <u-icon slot="suffix" name="arrow-right" style="margin-right: 10px;"></u-icon>
@ -19,7 +19,7 @@
</view> </view>
<!-- 作品标签 --> <!-- 作品标签 -->
<view class="rightBox" @click="showTab=true"> <view class="rightBox" @click="showTab=true">
<text class="right_titl" style="color: #c0c4cc; font-size: 15px;margin-left: 32rpx;">请选择作品标签</text> <text class="right_titl" style="color: #c0c4cc; font-size: 15px;">请选择作品标签</text>
<u--input fontSize="30rpx" border="none" readonly v-model="v2" disabledColor="#ffffff" <u--input fontSize="30rpx" border="none" readonly v-model="v2" disabledColor="#ffffff"
inputAlign="right"> inputAlign="right">
<u-icon slot="suffix" name="arrow-right" style="margin-right: 10px;"></u-icon> <u-icon slot="suffix" name="arrow-right" style="margin-right: 10px;"></u-icon>
@ -57,9 +57,10 @@
<u--textarea style="padding: 32rpx;" v-model="detailValue" placeholder="请输入作品说明" border="none"> <u--textarea style="padding: 32rpx;" v-model="detailValue" placeholder="请输入作品说明" border="none">
</u--textarea> </u--textarea>
<view class="gap"> <view class="gap">
作品内容可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)或pdf <text v-if="iswx == 1">作品内容可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)或pdf</text>
<text v-else-if="iswx == 0">作品内容可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)</text>
</view> </view>
<view class="gap" style="line-height: 30rpx;"> <view class="gap" style="line-height: 30rpx;" v-if="iswx == 1">
(若有图片请先上传图片) (若有图片请先上传图片)
</view> </view>
<!-- H5下的上传 --> <!-- H5下的上传 -->
@ -68,7 +69,7 @@
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image> <image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload> </u-upload>
<!-- 微信小程序下的上传 --> <!-- 微信小程序下的上传 -->
<u-upload v-else-if="iswx == 0" class="upload" accept="all" width="172rpx" height="172rpx" <u-upload v-else-if="iswx == 0" class="upload" width="172rpx" height="172rpx"
:fileList="fileList3" @afterRead="afterRead" @delete="deletePic" name="3" multiple> :fileList="fileList3" @afterRead="afterRead" @delete="deletePic" name="3" multiple>
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image> <image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload> </u-upload>
@ -149,7 +150,7 @@
this.worksVo.wpPath = this.data.wpPath this.worksVo.wpPath = this.data.wpPath
this.worksVo.price = this.data.price this.worksVo.price = this.data.price
this.worksVo.code = this.data.code this.worksVo.code = this.data.code
this.worksVo.workId = this.data.id this.worksVo.id = this.data.id
this.worksVo.type = this.data.type this.worksVo.type = this.data.type
this.worksVo.types = this.data.types this.worksVo.types = this.data.types
}, },
@ -252,7 +253,7 @@
}) })
this.worksVo.file = imgList.join(',') this.worksVo.file = imgList.join(',')
uni.navigateTo({ uni.navigateTo({
url: "/pages/my/editWorkNext?worksVo=" + encodeURIComponent(JSON.stringify(this.worksVo)) url: "/pagesA/my/editWorkNext?worksVo=" + encodeURIComponent(JSON.stringify(this.worksVo))
}) })
}, },
// //
@ -362,7 +363,6 @@
}); });
}) })
}, },
} }
} }
</script> </script>
@ -391,12 +391,19 @@
height: 104rpx; height: 104rpx;
border: 1px solid transparent; border: 1px solid transparent;
border-bottom: 1rpx solid #dadbde; border-bottom: 1rpx solid #dadbde;
padding: 0 32rpx;
} }
::v-deep .u-textarea__field {
.upload { padding: 0 7px;
}
::v-deep .u-upload__wrap {
padding: 32rpx; padding: 32rpx;
} }
// .upload {
// padding: 32rpx;
// }
.operation { .operation {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

View File

@ -324,7 +324,7 @@
}); });
setTimeout(() => { setTimeout(() => {
uni.redirectTo({ uni.redirectTo({
url: "/pages/my/My" url: "/pagesA/my/My"
}) })
}, 1000) }, 1000)
} }

View File

@ -17,10 +17,10 @@
}, },
methods: { methods: {
out(){ out(){
this.http.request('/worksCollection', {}, "GET").then(res => { this.http.request('/auth/logout', {}, "GET").then(res => {
if (res.code == 200) { if (res.code == 200) {
uni.navigateTo({ uni.redirectTo({
url: "/pages/Login/Login" url: "/pagesC/Login/Login"
}) })
} }
}).catch(e => { }).catch(e => {
@ -34,10 +34,13 @@
} }
</script> </script>
<style lang="scss"> <style>
page { page {
background-color: #F4F5F7; background-color: #F4F5F7;
} }
</style>
<style lang="scss">
.but{ .but{
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;

View File

@ -171,11 +171,11 @@
toDetail(val1,val2){ toDetail(val1,val2){
if(val1 != null){ if(val1 != null){
uni.navigateTo({ uni.navigateTo({
url: "/pages/OrderDetail/OrderDetail?id=" + val1 url: "/pagesC/OrderDetail/OrderDetail?id=" + val1
}) })
}else{ }else{
uni.navigateTo({ uni.navigateTo({
url: "/pages/ArtWorks/artWorkDetail?id=" + val2 url: "/pagesB/ArtWorks/artWorkDetail?id=" + val2
}) })
} }
} }

View File

@ -269,7 +269,7 @@
// //
toUser(val1,val2,val3,val4){ toUser(val1,val2,val3,val4){
uni.navigateTo({ uni.navigateTo({
url: "/pages/my/myWorks?id=" + val1 + '&userName=' + val3 + '&userImg=' + val2 + '&isFollow=' + val4 url: "/pagesA/my/myWorks?id=" + val1 + '&userName=' + val3 + '&userImg=' + val2 + '&isFollow=' + val4
}) })
} }
}, },

View File

@ -191,7 +191,7 @@
// //
toDetail(val) { toDetail(val) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/my/myWorkDetail?id=" + val url: "/pagesA/my/myWorkDetail?id=" + val
}) })
} }
}, },
@ -355,9 +355,9 @@
.sub_title { .sub_title {
font-size: 12px; font-size: 12px;
color: #AFADB0; color: #AFADB0;
height: 18px;
margin-top: 2px; margin-top: 2px;
margin-bottom: 6px; margin-bottom: 6rpx;
overflow: hidden;
.tag { .tag {
// width: 80rpx; // width: 80rpx;
@ -366,7 +366,7 @@
border: 1rpx solid #AFADB0; border: 1rpx solid #AFADB0;
border-radius: 20px; border-radius: 20px;
float: left; float: left;
margin: 0 10rpx; margin: 10rpx;
} }
} }

View File

@ -173,7 +173,7 @@
// //
editWork(){ editWork(){
uni.navigateTo({ uni.navigateTo({
url: "/pages/my/editWork?data=" + encodeURIComponent(JSON.stringify(this.detailData)) url: "/pagesA/my/editWork?data=" + encodeURIComponent(JSON.stringify(this.detailData))
}) })
}, },
// //
@ -183,7 +183,7 @@
this.openPDF() this.openPDF()
}else if(this.iswx == 1){ }else if(this.iswx == 1){
uni.navigateTo({ uni.navigateTo({
url: "/pages/ArtWorks/webView?url=" + this.contractUrl url: "/pagesB/ArtWorks/webView?url=" + this.contractUrl
}) })
} }
}, },

View File

@ -216,11 +216,11 @@
toDetail(val1,val2){ toDetail(val1,val2){
if(val2 != null){ if(val2 != null){
uni.navigateTo({ uni.navigateTo({
url: "/pages/OrderDetail/OrderDetail?id=" + val2 url: "/pagesC/OrderDetail/OrderDetail?id=" + val2
}) })
}else{ }else{
uni.navigateTo({ uni.navigateTo({
url: "/pages/ArtWorks/artWorkDetail?id=" + val1 url: "/pagesB/ArtWorks/artWorkDetail?id=" + val1
}) })
} }
}, },
@ -419,9 +419,9 @@
.sub_title { .sub_title {
font-size: 12px; font-size: 12px;
color: #AFADB0; color: #AFADB0;
height: 18px;
margin-top: 6px; margin-top: 6px;
margin-bottom: 6px; margin-bottom: 6rpx;
overflow: hidden;
.tag{ .tag{
text-align: center; text-align: center;

View File

@ -498,7 +498,7 @@
return return
} }
uni.navigateTo({ uni.navigateTo({
url: "/pages/shop/home/home?id=" + id url: "/pagesC/shop/home/home?id=" + id
}) })
}, },
toGoodsInfo(josnstring) { toGoodsInfo(josnstring) {

View File

@ -1,7 +1,7 @@
<template> <template>
<view> <view>
<view class="art_race_itm" v-for="(v,i) in 6" @click="goRaceDetail(i)"> <view class="art_race_itm" v-for="(v,i) in 6" @click="goRaceDetail(i)">
<image style="width: 100%; height: 296rpx;" src="../../static/artRace/race1.png" mode=""></image> <image style="width: 100%; height: 296rpx;" src="../../static/orderE.png" mode=""></image>
<view class="art_race_bot"> <view class="art_race_bot">
<text class="art_title">艺起战疫</text> <text class="art_title">艺起战疫</text>
<text class="art_race_con u-line-2">寒冬虽冷美术工作者们以画传心心是热的疫情虽紧艺术家们以笔 墨为歌信心是充足的在市委宣传部和市递正能量吹响新时代的...</text> <text class="art_race_con u-line-2">寒冬虽冷美术工作者们以画传心心是热的疫情虽紧艺术家们以笔 墨为歌信心是充足的在市委宣传部和市递正能量吹响新时代的...</text>
@ -21,7 +21,7 @@
goRaceDetail(id){ goRaceDetail(id){
console.log(id); console.log(id);
uni.navigateTo({ uni.navigateTo({
url:"/pages/ArtRace/ArtRaceDetail?id="+String(id), url:"/pagesB/ArtRace/ArtRaceDetail?id="+String(id),
}) })
} }
} }

View File

@ -10,7 +10,7 @@
<!--导航栏ed --> <!--导航栏ed -->
<view class="art_race_itm"> <view class="art_race_itm">
<image style="width: 100%; height: 440rpx;" src="../../static/artRace/race1.png" mode=""></image> <image style="width: 100%; height: 440rpx;" src="../../static/orderE.png" mode=""></image>
<view class="art_race_bot"> <view class="art_race_bot">
<text class="art_title">艺起战疫</text> <text class="art_title">艺起战疫</text>
<text class="art_race_con ">寒冬虽冷美术工作者们以画传心心是热的疫情虽紧艺术家们以笔 墨为歌信心是充足的在市委宣传部和市递正能量吹响新时代的...</text> <text class="art_race_con ">寒冬虽冷美术工作者们以画传心心是热的疫情虽紧艺术家们以笔 墨为歌信心是充足的在市委宣传部和市递正能量吹响新时代的...</text>
@ -65,7 +65,7 @@
}, },
throwWork() { throwWork() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/ArtRace/ThrowWork" url: "/pagesB/ArtRace/ThrowWork"
}) })
} }
}, },
@ -86,6 +86,7 @@
}, },
onLoad(opt) { onLoad(opt) {
console.log(opt.id); console.log(opt.id);
} }
} }
</script> </script>

View File

@ -6,29 +6,21 @@
<u--input style="padding: 32rpx;" placeholder="请输入作品名称" border="none" clearable></u--input> <u--input style="padding: 32rpx;" placeholder="请输入作品名称" border="none" clearable></u--input>
<u--textarea style="padding: 32rpx; height: 200rpx;" v-model="value" placeholder="请输入作品说明" border="none"></u--textarea> <u--textarea style="padding: 32rpx; height: 200rpx;" v-model="value" placeholder="请输入作品说明" border="none"></u--textarea>
<view class="gap"> <view class="gap">
作品内容可上传图片/视频/音频等 作品内容可上传图片/视频/音频等
</view> </view>
<u-upload class="upload" accept="media" width="172rpx" height="172rpx" :fileList="fileList3" <u-upload class="upload" accept="media" width="172rpx" height="172rpx" :fileList="fileList3"
@afterRead="afterRead" @delete="deletePic" name="3" multiple :maxCount="2"> @afterRead="afterRead" @delete="deletePic" name="3" multiple :maxCount="2">
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image> <image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload> </u-upload>
<view class="operation"> <view class="operation">
<button type="default" class="next" @click="throwMyWork">投稿</button> <button type="default" class="next" @click="throwMyWork">投稿</button>
</view> </view>
<view class="zhanwei"> <view class="zhanwei">
</view> </view>
</view> </view>
</template> </template>
@ -54,7 +46,7 @@
title:"投稿作品" title:"投稿作品"
}) })
/* uni.navigateTo({ /* uni.navigateTo({
url: "/pages/PublishWorks/PublishWorksNext" url: "/pagesB/PublishWorks/PublishWorksNext"
}) */ }) */
}, },
// //

View File

@ -1,9 +1,9 @@
<template> <template>
<view> <view>
<view class=""> <view v-if="load">
<u-loading-page :loading="load"></u-loading-page> <u-loading-page :loading="load"></u-loading-page>
</view> </view>
<view v-if="load == false"> <view v-else>
<view class="search_box"> <view class="search_box">
<u-search height=42 margin="0 0 12px 0" searchIconColor="#251B1D" shape="square" :showAction="false" <u-search height=42 margin="0 0 12px 0" searchIconColor="#251B1D" shape="square" :showAction="false"
v-model="artValue" placeholder="请输入名家名称" @search='search'></u-search> v-model="artValue" placeholder="请输入名家名称" @search='search'></u-search>
@ -61,12 +61,14 @@
<view class="title" @click="toDetail(v.id)"> <view class="title" @click="toDetail(v.id)">
{{ v.name }} {{ v.name }}
</view> </view>
<view class="sub_title"> <view class="sub_title" style="overflow: hidden;">
{{ v.typeName }}-{{ v.typesName }}作品 <view style="float: left; width: 40%">{{ v.typeName }}-{{ v.typesName }}作品</view>
<view style="float: right; width: 60%; display: flex; flex-wrap: wrap; justify-content: flex-end;">
<view class="tag" v-for="(a,b) in v.workTag" :key="b"> <view class="tag" v-for="(a,b) in v.workTag" :key="b">
{{a}} {{a}}
</view> </view>
</view> </view>
</view>
<view class="img_box"> <view class="img_box">
<view class=" puber" @click="toUser(v.user.id,v.user.images,v.user.userName,v.isFollow)"> <view class=" puber" @click="toUser(v.user.id,v.user.images,v.user.userName,v.isFollow)">
<view class="avtor"> <view class="avtor">
@ -192,7 +194,7 @@
// let img = JSON.parse(item.user.images) // let img = JSON.parse(item.user.images)
// item.user.images = img[0] // item.user.images = img[0]
}else{ }else{
item.images = '../../static/txIcon.png' item.user.images = '../../static/txIcon.png'
} }
// //
if (item.file) { if (item.file) {
@ -204,6 +206,10 @@
item.file = '../../static/fileImg/pdfS.png' item.file = '../../static/fileImg/pdfS.png'
} }
} }
if (item.workTag.length > 3) {
let tags = item.workTag.slice(0,3)
item.workTag = tags
}
}) })
_this.load = false _this.load = false
} }
@ -284,7 +290,7 @@
// //
toDetail(val) { toDetail(val) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/ArtWorks/artWorkDetail?id=" + val url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
}) })
}, },
// //
@ -318,7 +324,7 @@
}, },
toUser(val1,val2,val3,val4){ toUser(val1,val2,val3,val4){
uni.navigateTo({ uni.navigateTo({
url: "/pages/my/myWorks?id=" + val1 + '&userName=' + val3 + '&userImg=' + val2 + '&isFollow=' + val4 url: "/pagesA/my/myWorks?id=" + val1 + '&userName=' + val3 + '&userImg=' + val2 + '&isFollow=' + val4
}) })
}, },
Clickfilter(){ Clickfilter(){
@ -451,8 +457,6 @@
padding: 0 30rpx; padding: 0 30rpx;
margin: 0 10rpx; margin: 0 10rpx;
float: left; float: left;
// background: url(../../static/shop/bg2.png) no-repeat;
// background-size:100% 100%;
.line{ .line{
width: calc(100% - 40rpx); width: calc(100% - 40rpx);
min-width: 36rpx; min-width: 36rpx;
@ -530,7 +534,7 @@
border: 1rpx solid #AFADB0; border: 1rpx solid #AFADB0;
border-radius: 20px; border-radius: 20px;
float: right; float: right;
margin: 0 10rpx; margin: 0 10rpx 6rpx;
padding: 4rpx 10rpx; padding: 4rpx 10rpx;
} }
} }

View File

@ -5,7 +5,10 @@
</view> </view>
<view class="workDetail" v-if="load == false"> <view class="workDetail" v-if="load == false">
<!-- 封面图片 --> <!-- 封面图片 -->
<image :src="cover" mode="widthFix" alt="" class="coverImg"></image> <view style="width: 100%;">
<image style="width: 100%;" :src="cover" mode="widthFix"></image>
</view>
<!-- 轮播图 --> <!-- 轮播图 -->
<!-- <u-swiper v-if="list.length > 0" :list="list" :autoplay="true" @change="e => currentNum = e.current" indicatorStyle="right: 20px" height="200"> <!-- <u-swiper v-if="list.length > 0" :list="list" :autoplay="true" @change="e => currentNum = e.current" indicatorStyle="right: 20px" height="200">
<view slot="indicator" class="indicator-num"> <view slot="indicator" class="indicator-num">
@ -19,7 +22,7 @@
<view class="img_box"> <view class="img_box">
<view class=" puber" @click="toUser(detailData.user.id,detailData.user.images,detailData.user.userName,detailData.isFollow)"> <view class=" puber" @click="toUser(detailData.user.id,detailData.user.images,detailData.user.userName,detailData.isFollow)">
<view class="avtor"> <view class="avtor">
<image :src="detailData.user.images" mode=""></image> <image :src="detailData.user.images" mode="" style="width: 100%; height: 100%;"></image>
</view> </view>
<view class="autor"> <view class="autor">
<view style="font-size: 14px; color: #251B1D;"> <view style="font-size: 14px; color: #251B1D;">
@ -131,7 +134,8 @@
detailData: {}, detailData: {},
contractUrl: '', contractUrl: '',
isFollow: '', isFollow: '',
userId: '' userId: '',
cover: ''
} }
}, },
onLoad(op) { onLoad(op) {
@ -177,7 +181,7 @@
}) })
} }
if(this.list.length > 0){ if(this.list.length > 0){
this.cover = this.list[0] _this.cover = this.list[0]
this.list.splice(0,1) this.list.splice(0,1)
} }
this.detailData = res.data this.detailData = res.data
@ -246,7 +250,7 @@
}, },
toUser(val1,val2,val3,val4){ toUser(val1,val2,val3,val4){
uni.navigateTo({ uni.navigateTo({
url: "/pages/my/myWorks?id=" + val1 + '&userName=' + val3 + '&userImg=' + val2 + '&isFollow=' + val4 url: "/pagesA/my/myWorks?id=" + val1 + '&userName=' + val3 + '&userImg=' + val2 + '&isFollow=' + val4
}) })
}, },
// //

View File

@ -14,7 +14,7 @@
onLoad(params){ onLoad(params){
console.log(params) console.log(params)
let path = params.url let path = params.url
this.url = `../../static/pdf/pdf.html?url=` + path this.url = `../../components/pdf/pdf.html?url=` + path
}, },
} }
</script> </script>

View File

@ -18,11 +18,11 @@
<view class="goods_box bg_col_cirle_margin"> <view class="goods_box bg_col_cirle_margin">
<view class="goods_itm"> <view class="goods_itm">
<view class="goods_itm_top" style="display: flex; align-items: center;"> <view class="goods_itm_top" style="display: flex; align-items: center;">
<image style="width: 36rpx; height: 36rpx;" src="../../static/RewardWork/avator.png" mode=""></image> <image style="width: 36rpx; height: 36rpx;" src="../../static/new/tx.png" mode=""></image>
<text class="goods_itm_top_title">周科</text> <text class="goods_itm_top_title">周科</text>
</view> </view>
<view class="goods_itm_bott"> <view class="goods_itm_bott">
<image style="width: 148rpx; height: 156rpx; border-radius: 16rpx;" src="../../static/shop/picture.png" mode=""> <image style="width: 148rpx; height: 156rpx; border-radius: 16rpx;" src="../../static/shop/car.png" mode="">
</image> </image>
<view class="goods_itm_bott_left" style="margin-left: 24rpx;"> <view class="goods_itm_bott_left" style="margin-left: 24rpx;">
<text style="font-weight: 600;">绘画作品</text> <text style="font-weight: 600;">绘画作品</text>
@ -52,7 +52,7 @@
<view class="pay_methods bg_col_cirle_margin"> <view class="pay_methods bg_col_cirle_margin">
<text>支付方式</text> <text>支付方式</text>
<view class="pay_right"> <view class="pay_right">
<image style="width: 32rpx; height: 32rpx;margin-right: 8rpx;" src="../../static/RewardWork/fightVirus.png" mode=""></image> <image style="width: 32rpx; height: 32rpx;margin-right: 8rpx;" src="../../static/orderE.png" mode=""></image>
<text>微信支付</text> <text>微信支付</text>
</view> </view>
</view> </view>

View File

@ -90,7 +90,7 @@
pay(){ pay(){
if(this.total > this.point){ if(this.total > this.point){
uni.navigateTo({ uni.navigateTo({
url:'/pages/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{ }else{
let data = [] let data = []
@ -103,7 +103,7 @@
this.http.request('/order/newOrder', data, "POST").then(res => { this.http.request('/order/newOrder', data, "POST").then(res => {
if (res.code == 200) { if (res.code == 200) {
uni.navigateTo({ uni.navigateTo({
url:'/pages/ConfirmOrder/purchaseDetail?success=0' + '&id=' + this.data[0].id + '&num=' + this.data.length url:'/pagesB/ConfirmOrder/purchaseDetail?success=0' + '&id=' + this.data[0].id + '&num=' + this.data.length
}) })
} }
}).catch(e => { }).catch(e => {

View File

@ -44,7 +44,7 @@
methods: { methods: {
toDetail() { toDetail() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/MyOrder/MyOrder' url: '/pagesB/MyOrder/MyOrder'
}) })
}, },
returnBack() { returnBack() {

View File

@ -345,7 +345,7 @@
// //
toDetail(val) { toDetail(val) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/MyOrder/fictitiousDetail?id=" + val url: "/pagesB/MyOrder/fictitiousDetail?id=" + val
}) })
}, },
// //
@ -503,6 +503,7 @@
display: flex; display: flex;
.work_desc { .work_desc {
margin-left: 10px;
flex: 1; flex: 1;
.tit { .tit {

View File

@ -90,7 +90,7 @@
toRefund(){ toRefund(){
console.log('退款') console.log('退款')
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/MyOrder/refund?id=" + val // url: "/pagesB/MyOrder/refund?id=" + val
// }) // })
}, },
} }

View File

@ -89,7 +89,7 @@
toRefund() { toRefund() {
console.log('退款') console.log('退款')
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/MyOrder/refund?id=" + val // url: "/pagesB/MyOrder/refund?id=" + val
// }) // })
}, },
copy(val) { copy(val) {

View File

@ -147,7 +147,7 @@
}, },
goPointDetail() { goPointDetail() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/MyPoints/pointDetail' url: '/pagesB/MyPoints/pointDetail'
}) })
}, },
getPoint() { getPoint() {

View File

@ -23,26 +23,19 @@
<u-icon name="calendar"></u-icon> <u-icon name="calendar"></u-icon>
</view> </view>
</view> </view>
<!-- <view class="person_itm_sign" @click="goChangeInfo('身份证号码',userInfoObj.idCard)">
<text class="person_itm_sign_tit">身份证号码</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.idCard}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view> -->
</view> </view>
<view class="person_itm"> <view class="person_itm">
<view class="person_itm_sign" @click="goChangeInfo('民族',userInfoObj.nation)"> <view class="person_itm_sign" @click="goChangeInfo('通讯地址',userInfoObj.mailAddress)">
<text class="person_itm_sign_tit">民族</text> <text class="person_itm_sign_tit">通讯地址</text>
<view class="person_itm_sign_right"> <view class="person_itm_sign_right">
<text> {{userInfoObj.nation}}</text> <text> {{userInfoObj.mailAddress}}</text>
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> </view>
</view> </view>
<view class="person_itm_sign" @click="goChangeInfo('籍贯',userInfoObj.base)"> <view class="person_itm_sign" @click="goChangeInfo('学历',userInfoObj.education)">
<text class="person_itm_sign_tit">籍贯</text> <text class="person_itm_sign_tit">学历</text>
<view class="person_itm_sign_right"> <view class="person_itm_sign_right">
<text> {{userInfoObj.base}}</text> <text> {{userInfoObj.education}}</text>
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> </view>
</view> </view>
@ -53,19 +46,26 @@
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> </view>
</view> </view>
</view> <!-- <view class="person_itm_sign" @click="goChangeInfo('籍贯',userInfoObj.base)">
<view class="person_itm"> <text class="person_itm_sign_tit">籍贯</text>
<!-- <view class="person_itm_sign" @click="goChangeInfo('联系电话','13888888888')">
<text class="person_itm_sign_tit">联系电话</text>
<view class="person_itm_sign_right"> <view class="person_itm_sign_right">
<text>13888888888</text> <text> {{userInfoObj.base}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('民族',userInfoObj.nation)">
<text class="person_itm_sign_tit">民族</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.nation}}</text>
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> </view>
</view> --> </view> -->
</view>
<view class="person_itm">
<view class="person_itm_sign" @click="goChangePasw"> <view class="person_itm_sign" @click="goChangePasw">
<text class="person_itm_sign_tit">密码</text> <text class="person_itm_sign_tit">密码</text>
<view class="person_itm_sign_right"> <view class="person_itm_sign_right">
<text> {{userInfoObj.pasw}}</text> <text></text>
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> </view>
</view> </view>
@ -79,8 +79,40 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 协会会员个人中心 --> <!-- 文艺爱好者 -->
<view class="person_itm" v-if="userInfoObj.userType=='xhhy'"> <view class="person_itm" v-if="userInfoObj.userType=='zyz'">
<view class="person_itm_sign" @click="goChangeInfo('兴趣爱好',userInfoObj.hobby)">
<text class="person_itm_sign_tit">兴趣爱好</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.hobby}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
<!-- 文艺工作者 -->
<view class="person_itm" v-if="userInfoObj.userType=='wyrc'">
<view class="person_itm_sign" @click="goChangeInfo('单位名称',userInfoObj.unitName)">
<text class="person_itm_sign_tit">单位名称</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.unitName}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('办公室电话',userInfoObj.officeTel)">
<text class="person_itm_sign_tit">办公室电话</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.officeTel}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('住宅电话',userInfoObj.hometTel)">
<text class="person_itm_sign_tit">住宅电话</text>
<view class="person_itm_sign_right">
<text v-if="userInfoObj.hometTel"> {{userInfoObj.hometTel}}</text>
<text v-else></text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('所属协会',userInfoObj.association.name )"> <view class="person_itm_sign" @click="goChangeInfo('所属协会',userInfoObj.association.name )">
<text class="person_itm_sign_tit">所属协会</text> <text class="person_itm_sign_tit">所属协会</text>
<view class="person_itm_sign_right"> <view class="person_itm_sign_right">
@ -88,20 +120,10 @@
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> </view>
</view> </view>
<view class="person_itm_sign" @click="goChangeInfo('入会时间',userInfoObj.comeTime)"> <view class="person_itm_sign" @click="goChangeInfo('会员级别',userInfoObj.member)">
<text class="person_itm_sign_tit">入会时间</text> <text class="person_itm_sign_tit">会员级别</text>
<view class="person_itm_sign_right"> <view class="person_itm_sign_right">
<text> {{userInfoObj.comeTime}}</text> <text> {{userInfoObj.member}}</text>
<u-icon name="calendar"></u-icon>
</view>
</view>
</view>
<!-- 文艺人才-个人中心 -->
<view class="person_itm" v-if="userInfoObj.userType=='wyrc'">
<view class="person_itm_sign" @click="goChangeInfo('人才类型',userInfoObj.rcType)">
<text class="person_itm_sign_tit">人才类型</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.rcType}}</text>
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> </view>
</view> </view>
@ -127,114 +149,8 @@
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> </view>
</view> </view>
<view class="person_itm_sign" @click="goChangeInfo('是否已入协会',JSON.parse(userInfoObj.isAssociation))">
<text class="person_itm_sign_tit">是否已入协会</text>
<view class="person_itm_sign_right">
<u-switch disabled v-model="userInfoObj.isAssociation" activeColor="#99241B" size=20></u-switch>
</view> </view>
</view> </view>
<view class="person_itm_sign" @click="goChangeInfo('所属协会',userInfoObj.association.name )" v-if="userInfoObj.isAssociation">
<text class="person_itm_sign_tit">所属协会</text>
<view class="person_itm_sign_right">
<text v-if="userInfoObj.association">{{userInfoObj.association.name}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('入会时间',userInfoObj.comeTime)" v-if="userInfoObj.isAssociation">
<text class="person_itm_sign_tit">入会时间</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.comeTime}}</text>
<u-icon name="calendar"></u-icon>
</view>
</view>
</view>
<!-- 服务商个人中心 -->
<view class="fwsBox" v-if="userInfoObj.userType=='fws'">
<view class="person_itm">
<view class="person_itm_sign" @click="goChangeInfo('服务名称',userInfoObj.serviceName)">
<text class="person_itm_sign_tit">服务名称</text>
<view class="person_itm_sign_right">
<text>{{userInfoObj.serviceName}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('地址',userInfoObj.serviceAddress)">
<text class="person_itm_sign_tit">地址</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.serviceAddress}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('实景照',userInfoObj.photo)">
<text class="person_itm_sign_tit">实景照</text>
<view class="person_itm_sign_right">
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('资质证',userInfoObj.cfPhoto)">
<text class="person_itm_sign_tit">资质证</text>
<view class="person_itm_sign_right">
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
<view class="person_itm">
<view @click="goChangeInfo('服务内容介绍',userInfoObj.info)">
<view class="textAreaCss">
<text>服务内容介绍</text>
<u-icon name="arrow-right"></u-icon>
</view>
<u--textarea v-model="userInfoObj.info" placeholder="请输入介绍" style="background-color: #F8F8F8;">
</u--textarea>
</view>
<view class="person_itm_sign" @click="goChangeInfo('负责人姓名',userInfoObj.fzr)">
<text class="person_itm_sign_tit">负责人姓名</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.fzr}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('服务开始时间',userInfoObj.timeStart)">
<text class="person_itm_sign_tit">服务开始时间</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.timeStart}}</text>
<u-icon name="calendar"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('服务结束时间',userInfoObj.timeEnd)">
<text class="person_itm_sign_tit">服务结束时间</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.timeEnd}}</text>
<u-icon name="calendar"></u-icon>
</view>
</view>
<!-- <view class="person_itm_sign" @click="goChangeInfo('电话','13888888888')">
<text class="person_itm_sign_tit">电话</text>
<view class="person_itm_sign_right">
<text>13888888888</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view> -->
<view class="person_itm_sign" @click="goChangeInfo('头像',userInfoObj.images)">
<text class="person_itm_sign_tit">头像</text>
<view class="person_itm_sign_right">
<image class="avator" :src='userInfoObj.images'>
</image>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangePasw">
<text class="person_itm_sign_tit">密码</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.pasw}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
</view>
<!-- 服务商个人中心 ed-->
</view>
</template> </template>
<script> <script>
@ -257,7 +173,7 @@
goChangeInfo(k, v) { goChangeInfo(k, v) {
console.log(k, v); console.log(k, v);
uni.navigateTo({ uni.navigateTo({
url: `/pages/PersonalCenter/ReEditSingleInfo?key=${JSON.stringify(k)}&value=${JSON.stringify(v)}` url: `/pagesB/PersonalCenter/ReEditSingleInfo?key=${JSON.stringify(k)}&value=${JSON.stringify(v)}`
}) })
}, },
requestUserinfo() { requestUserinfo() {
@ -284,7 +200,7 @@
}, },
goChangePasw() { goChangePasw() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/PersonalCenter/changePasw' url: '/pagesB/PersonalCenter/changePasw'
}) })
} }
}, },

View File

@ -1,10 +1,13 @@
<template> <template>
<view> <view>
<view class="m16" v-if="Edkey=='姓名'||Edkey=='负责人姓名'||Edkey=='服务名称'||Edkey=='地址' || Edkey =='民族' || Edkey=='籍贯'"> <view class="m16" v-if="Edkey=='姓名'||Edkey=='负责人姓名'||Edkey=='服务名称'||Edkey=='地址' || Edkey =='民族' || Edkey=='籍贯' || Edkey=='通讯地址' || Edkey=='单位名称' || Edkey=='办公室电话' || Edkey=='住宅电话'">
<u--input class="p32 nameClass" placeholder="请填写" clearable v-model.trim="Edvalue" border="none" <u--input class="p32 nameClass" placeholder="请填写" clearable v-model.trim="Edvalue" border="none"
@change="CheckValue" @clear="clearFun"> @change="CheckValue" @clear="clearFun">
</u--input> </u--input>
</view> </view>
<view class="m16" v-if="Edkey=='兴趣爱好'">
<u--textarea v-model.trim="Edvalue" placeholder="请填写兴趣爱好"></u--textarea>
</view>
<!-- 是否已加入协会 --> <!-- 是否已加入协会 -->
<view class="xiehui" v-if="Edkey=='是否已入协会'" <view class="xiehui" v-if="Edkey=='是否已入协会'"
style="display: flex;justify-content: space-between; align-items: center;padding: 0 32rpx;"> style="display: flex;justify-content: space-between; align-items: center;padding: 0 32rpx;">
@ -31,7 +34,7 @@
</view> </view>
<!-- 政治面貌 民族 籍贯 选择 input--> <!-- 政治面貌 民族 籍贯 选择 input-->
<view class="select m16" @click="zhengzhiShow=true" <view class="select m16" @click="zhengzhiShow=true"
v-if="Edkey=='政治面貌'||Edkey=='人才类型'||Edkey=='所属协会'"> v-if="Edkey=='政治面貌'||Edkey=='会员级别'||Edkey=='所属协会'||Edkey=='学历'">
<u--input class="p32 gray" readonly v-model="Edvalue" border="none"> <u--input class="p32 gray" readonly v-model="Edvalue" border="none">
</u--input> </u--input>
</view> </view>
@ -118,7 +121,7 @@
<!-- 实景 资质上传 ed--> <!-- 实景 资质上传 ed-->
<u-picker :show="zhengzhiShow" confirmColor="#99241B" @confirm="confimZheng" immediateChange closeOnClickOverlay <u-picker :show="zhengzhiShow" confirmColor="#99241B" @confirm="confimZheng" immediateChange closeOnClickOverlay
@close="zhengzhiClose" @cancel="zhengzhiClose" @close="zhengzhiClose" @cancel="zhengzhiClose"
:columns="Edkey=='政治面貌'? Zhengcolumns : Edkey=='人才类型'? peopleSkillColums:Edkey=='所属协会'? xiecolumns:[]"> :columns="Edkey=='政治面貌'? Zhengcolumns : Edkey=='会员级别'? peopleSkillColums:Edkey=='所属协会'? xiecolumns:Edkey=='学历'? educolumns:[]">
</u-picker> </u-picker>
<u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :maxDate="1786778555000" <u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :maxDate="1786778555000"
:show="showBirthday" v-if="Edkey=='出生日期'||Edkey=='入会时间'||Edkey=='服务开始时间'||Edkey=='服务结束时间'" :value="Edvalue" :show="showBirthday" v-if="Edkey=='出生日期'||Edkey=='入会时间'||Edkey=='服务开始时间'||Edkey=='服务结束时间'" :value="Edvalue"
@ -166,7 +169,14 @@
'服务内容介绍': 'info', '服务内容介绍': 'info',
// '': 'artAtt', // '': 'artAtt',
'荣誉奖项': 'greats', '荣誉奖项': 'greats',
'密码': 'password' '密码': 'password',
'学历': 'education',
'兴趣爱好': 'hobby',
'住宅电话': 'hometTel',
'办公室电话': 'officeTel',
'单位名称': 'unitName',
'通讯地址': 'mailAddress',
'会员级别': 'member'
}, },
timeMode: 'date', // date tiem timeMode: 'date', // date tiem
@ -194,7 +204,10 @@
["河南", "浙江", '上海', '宁波'], ["河南", "浙江", '上海', '宁波'],
], ],
peopleSkillColums: [ peopleSkillColums: [
["无", "乡镇人才", "县级人才", "市级人才", "省级人才", "国家级人才"] ["全国会员", "省会员", "市会员", "区县(市)会员"]
],
educolumns: [
["初中及以下", "高中", '大专', '本科', '硕士', '博士及以上'],
], ],
xiehuiObj: {}, //name id key value xiehuiObj: {}, //name id key value
artHonrList: [""] artHonrList: [""]
@ -213,8 +226,6 @@
this.Edvalue = [""] this.Edvalue = [""]
console.log("onload 艺术成就", this.Edvalue); console.log("onload 艺术成就", this.Edvalue);
} }
} }
// //
if (this.Edkey == '出生日期' || this.Edkey == '入会时间') { if (this.Edkey == '出生日期' || this.Edkey == '入会时间') {
@ -538,43 +549,8 @@
}) })
}, },
CheckValue() { CheckValue() {
// input value
// console.log("event", event.target.value);
// console.log("gg", event.target.value.indexOf(" ") >= 0);
// this.Edvalue = this.Edvalue.trim()
console.log("this.de",this.Edvalue ); console.log("this.de",this.Edvalue );
console.log("this.deBlone",!!this.Edvalue ); console.log("this.deBlone",!!this.Edvalue );
/* if(this.Edvalue){
console.log("有值");
this.isSubmit = true
}else{
console.log("无");
uni.showToast({
title: "值不能为空或者空格",
icon: 'error'
})
this.isSubmit = false
} */
/* if (!this.Edvalue) {
uni.showToast({
title: "值不能为空或者空格",
icon: 'error'
})
this.isSubmit = false
} else if (event) {
if (event.target.value !== '') {
this.isSubmit = true
}
}
// console.log("this.Edvalue",!this.Edvalue );
/* if (event) {
if (event.target.value !== '') {
this.isSubmit = true
}
}
*/
}, },
clearFun() { clearFun() {
console.log("清空"); console.log("清空");

View File

@ -90,7 +90,7 @@
this.http.request('/user/resetPassword', data, "POST").then(res => { this.http.request('/user/resetPassword', data, "POST").then(res => {
if (res.code == 200) { if (res.code == 200) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/Login/Login" url: "/pagesC/Login/Login"
}) })
} }
}).catch(e => { }).catch(e => {

View File

@ -7,12 +7,12 @@
<!-- 发布作品 --> <!-- 发布作品 -->
<view class="rightBox"> <view class="rightBox">
<u--input placeholder="请输入作品名称" v-model="name" clearable border="none" <u--input placeholder="请输入作品名称" v-model="name" clearable border="none"
style="color: #251B1D;margin-left: 32rpx;"> style="color: #251B1D;">
</u--input> </u--input>
</view> </view>
<!-- 作品类型 --> <!-- 作品类型 -->
<view class="rightBox" @click="selectType"> <view class="rightBox" @click="selectType">
<text class="right_titl" style="color: #c0c4cc; font-size: 15px;margin-left: 32rpx;">请选择作品类型</text> <text class="right_titl" style="color: #c0c4cc; font-size: 15px;">请选择作品类型</text>
<u--input fontSize="30rpx" border="none" readonly v-model="v1" disabledColor="#ffffff" <u--input fontSize="30rpx" border="none" readonly v-model="v1" disabledColor="#ffffff"
inputAlign="right"> inputAlign="right">
<u-icon slot="suffix" name="arrow-right" style="margin-right: 10px;"></u-icon> <u-icon slot="suffix" name="arrow-right" style="margin-right: 10px;"></u-icon>
@ -20,7 +20,7 @@
</view> </view>
<!-- 作品标签 --> <!-- 作品标签 -->
<view class="rightBox" @click="showTab=true"> <view class="rightBox" @click="showTab=true">
<text class="right_titl" style="color: #c0c4cc; font-size: 15px;margin-left: 32rpx;">请选择作品标签</text> <text class="right_titl" style="color: #c0c4cc; font-size: 15px;">请选择作品标签</text>
<u--input fontSize="30rpx" border="none" readonly v-model="v2" disabledColor="#ffffff" <u--input fontSize="30rpx" border="none" readonly v-model="v2" disabledColor="#ffffff"
inputAlign="right"> inputAlign="right">
<u-icon slot="suffix" name="arrow-right" style="margin-right: 10px;"></u-icon> <u-icon slot="suffix" name="arrow-right" style="margin-right: 10px;"></u-icon>
@ -54,13 +54,14 @@
type="default" @click="upDataTab">确认添加</u-button> type="default" @click="upDataTab">确认添加</u-button>
</u-popup> </u-popup>
<u--textarea style="padding: 32rpx;" v-model="detailValue" placeholder="请输入作品说明" border="none" <u--textarea v-model="detailValue" placeholder="请输入作品说明" border="none"
maxlength="-1"> maxlength="-1">
</u--textarea> </u--textarea>
<view class="gap"> <view class="gap">
作品内容可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)或pdf <text v-if="iswx == 1">作品内容可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)或pdf</text>
<text v-else-if="iswx == 0">作品内容可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)</text>
</view> </view>
<view class="gap" style="line-height: 30rpx;"> <view class="gap" style="line-height: 30rpx;" v-if="iswx == 1">
(若有图片请先上传图片) (若有图片请先上传图片)
</view> </view>
<!-- H5下的上传 --> <!-- H5下的上传 -->
@ -69,14 +70,14 @@
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image> <image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload> </u-upload>
<!-- 微信小程序下的上传 --> <!-- 微信小程序下的上传 -->
<u-upload v-else-if="iswx == 0" class="upload" accept="all" width="172rpx" height="172rpx" <u-upload v-else-if="iswx == 0" style="padding: 32rpx;" width="172rpx" height="172rpx"
:fileList="fileList3" @afterRead="afterRead" @delete="deletePic" name="3" multiple> :fileList="fileList3" @afterRead="afterRead" @delete="deletePic" name="3" multiple>
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image> <image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload> </u-upload>
<view style="position: relative; width: 100%; height: 50px;"> <view style="position: relative; width: 100%; height: 50px;">
<uni-data-picker ref="picker" style="border: 0px; position: absolute; " :localdata="radiolist1" <uni-data-picker ref="picker" style="border: 0px; position: absolute; " :localdata="radiolist1" v-model="radiovalue1"
v-model="radiovalue1" :map="{text:'title',value:'id'}" popup-title="请选择作品类型" @change="selectForm1"> :map="{text:'title',value:'id'}" popup-title="请选择作品类型" @change="selectForm1">
</uni-data-picker> </uni-data-picker>
<view style="position: absolute; width: 100%; height: 100%; background-color: #FFFFFF;"> <view style="position: absolute; width: 100%; height: 100%; background-color: #FFFFFF;">
</view> </view>
@ -229,7 +230,7 @@
}) })
this.worksVo.file = imgList.join(',') this.worksVo.file = imgList.join(',')
uni.navigateTo({ uni.navigateTo({
url: "/pages/PublishWorks/PublishWorksNext?worksVo=" + encodeURIComponent(JSON.stringify(this url: "/pagesB/PublishWorks/PublishWorksNext?worksVo=" + encodeURIComponent(JSON.stringify(this
.worksVo)) .worksVo))
}) })
}, },
@ -368,12 +369,19 @@
height: 104rpx; height: 104rpx;
border: 1px solid transparent; border: 1px solid transparent;
border-bottom: 1rpx solid #dadbde; border-bottom: 1rpx solid #dadbde;
padding: 0 32rpx;
} }
::v-deep .u-textarea__field {
.upload { padding: 0 7px;
}
::v-deep .u-upload__wrap {
padding: 32rpx; padding: 32rpx;
} }
// .upload {
// padding: 32rpx;
// }
.operation { .operation {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

View File

@ -3,7 +3,7 @@
<u--form :model="model1" ref="form1" labelPosition="top" labelWidth='auto' :labelStyle='{fontWeight:800}'> <u--form :model="model1" ref="form1" labelPosition="top" labelWidth='auto' :labelStyle='{fontWeight:800}'>
<!-- 完善资料 --> <!-- 完善资料 -->
<!-- 这里加了 v-for 导致 ref 失效 --> <!-- 这里加了 v-for 导致 ref 失效 -->
<view class="wanShan" v-if="pageTypeId!=='fws'"> <view class="wanShan">
<view class="data_itm_box"> <view class="data_itm_box">
<u-form-item prop="userInfo.name" ref="item1" class="data_itm"> <u-form-item prop="userInfo.name" ref="item1" class="data_itm">
<text class="label_t"><text style="color: #99241B;">*</text>姓名</text> <text class="label_t"><text style="color: #99241B;">*</text>姓名</text>
@ -24,24 +24,26 @@
<u-icon slot="suffix" name="calendar"></u-icon> <u-icon slot="suffix" name="calendar"></u-icon>
</u--input> </u--input>
</u-form-item> </u-form-item>
<u-form-item prop="userInfo.idCOde" ref="item1" class="data_itm"> <!-- <u-form-item prop="userInfo.idCOde" ref="item1" class="data_itm">
<text class="label_t"><text style="color: #99241B;">*</text>身份证号</text> <text class="label_t"><text style="color: #99241B;">*</text>身份证号</text>
<u--input class="p32" placeholder="请输入身份证号码" inputAlign="right" clearable <u--input class="p32" placeholder="请输入身份证号码" inputAlign="right" clearable
v-model="model1.userInfo.idCOde" border="none"></u--input> v-model="model1.userInfo.idCOde" border="none"></u--input>
</u-form-item> </u-form-item> -->
</view> </view>
<view class="data_itm_box"> <view class="data_itm_box">
<!-- <u-form-item ref="item1" @click="zuShow=true" class="data_itm"> --> <!-- <u-form-item ref="item1" @click="zuShow=true" class="data_itm"> -->
<u-form-item ref="item1" class="data_itm"> <u-form-item ref="item1" class="data_itm">
<text class="label_t"><text style="color: #99241B;">*</text>民族</text> <text class="label_t"><text style="color: #99241B;">*</text>通讯地址</text>
<u--input class="p32" placeholder="请输入民族" v-model="zuValue" inputAlign="right" border="none"> <u--input class="p32" placeholder="请输入通讯地址" v-model="model1.userInfo.mailAddress"
inputAlign="right" border="none">
<!-- <u-icon slot="suffix" name="arrow-right"></u-icon> --> <!-- <u-icon slot="suffix" name="arrow-right"></u-icon> -->
</u--input> </u--input>
</u-form-item> </u-form-item>
<!-- <u-form-item ref="item1" @click="jigaunShow=true" class="data_itm"> --> <u-form-item ref="item1" @click="jigaunShow=true" class="data_itm">
<u-form-item ref="item1" class="data_itm"> <!-- <u-form-item ref="item1" class="data_itm"> -->
<text class="label_t"><text style="color: #99241B;">*</text>籍贯</text> <text class="label_t"><text style="color: #99241B;">*</text>学历</text>
<u--input class="p32" placeholder="请选择籍贯" v-model="jiguan" inputAlign="right" border="none"> <u--input class="p32" placeholder="请选择学历" v-model="model1.userInfo.education" readonly inputAlign="right"
border="none">
<!-- <u-icon slot="suffix" name="arrow-right"></u-icon> --> <!-- <u-icon slot="suffix" name="arrow-right"></u-icon> -->
</u--input> </u--input>
</u-form-item> </u-form-item>
@ -53,13 +55,20 @@
<u-icon slot="suffix" name="arrow-right"></u-icon> <u-icon slot="suffix" name="arrow-right"></u-icon>
</u--input> </u--input>
</u-form-item> </u-form-item>
<!-- <u-form-item ref="item1" class="data_itm">
<text class="label_t">籍贯</text>
<u--input class="p32" placeholder="请输入籍贯" v-model="jiguan"
inputAlign="right" border="none">
</u--input>
</u-form-item>
<u-form-item ref="item1" class="data_itm">
<text class="label_t">民族</text>
<u--input class="p32" placeholder="请输入民族" v-model="zuValue"
inputAlign="right" border="none">
</u--input>
</u-form-item> -->
</view> </view>
<view class="data_itm_box"> <view class="data_itm_box">
<!-- <u-form-item prop="userInfo.phoneNum" ref="item1" class="data_itm">
<text class="label_t">联系电话</text>
<u--input class="p32" placeholder="请输入联系电话" inputAlign="right" clearable
v-model="model1.userInfo.phoneNum" border="none"></u--input>
</u-form-item> -->
<u-form-item prop="userInfo.pasw" ref="item1" class="data_itm"> <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 style="color: #99241B;">*</text>密码</text>
<u--input class="p32" placeholder="请设置登录密码" inputAlign="right" clearable <u--input class="p32" placeholder="请设置登录密码" inputAlign="right" clearable
@ -77,35 +86,57 @@
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image> <image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload> </u-upload>
</view> </view>
<view class="data_itm_box" v-if="pageTypeId=='zyz'">
<u-form-item prop="userInfo.hobby" ref="item1" class="data_itm">
<text class="label_t"><text style="color: #99241B;">*</text>兴趣爱好</text>
<u--textarea v-model="model1.userInfo.hobby" placeholder="请填写兴趣爱好"></u--textarea>
</u-form-item>
</view> </view>
<!-- 协会会员 --> </view>
<view class="data_itm_box" v-if='pageTypeId=="xhhy"'>
<!-- 文艺人才 -->
<view class="wenyi" v-if="pageTypeId=='wyrc'">
<!-- <view class="wenyi"> -->
<view class="data_itm_box">
<u-form-item ref="item1" class="data_itm">
<text class="label_t"><text style="color: #99241B;">*</text>单位名称</text>
<u--input class="p32" placeholder="请输入单位名称" v-model="model1.userInfo.unitName"
inputAlign="right" border="none">
<!-- <u-icon slot="suffix" name="arrow-right"></u-icon> -->
</u--input>
</u-form-item>
<u-form-item ref="item1" class="data_itm">
<text class="label_t"><text style="color: #99241B;">*</text>办公室电话</text>
<u--input class="p32" placeholder="请输入办公室电话" v-model="model1.userInfo.officeTel"
inputAlign="right" border="none">
<!-- <u-icon slot="suffix" name="arrow-right"></u-icon> -->
</u--input>
</u-form-item>
<u-form-item ref="item1" class="data_itm">
<text class="label_t">住宅电话</text>
<u--input class="p32" placeholder="请输入住宅电话" v-model="model1.userInfo.hometTel"
inputAlign="right" border="none">
<!-- <u-icon slot="suffix" name="arrow-right"></u-icon> -->
</u--input>
</u-form-item>
</view>
<view class="data_itm_box">
<u-form-item ref="item1" @click="xieShow=true" class="data_itm"> <u-form-item ref="item1" @click="xieShow=true" class="data_itm">
<text class="label_t">*所属协会</text> <text class="label_t"><text style="color: #99241B;">*</text>所属协会</text>
<u--input class="p32" placeholder="请选择所属协会" v-model="xieValue" readonly inputAlign="right" <u--input class="p32" placeholder="请选择所属协会" v-model="xieValue" readonly inputAlign="right"
border="none"> border="none">
<u-icon slot="suffix" name="arrow-right"></u-icon> <u-icon slot="suffix" name="arrow-right"></u-icon>
</u--input> </u--input>
</u-form-item> </u-form-item>
<u-form-item ref="item1" @click="showJionmeet=true" class="data_itm">
<text class="label_t">入会时间</text>
<u--input class="p32" placeholder="请选择时间" v-model="model1.userInfo.jionTime" readonly
inputAlign="right" border="none">
<u-icon slot="suffix" name="calendar"></u-icon>
</u--input>
</u-form-item>
</view>
<!-- 文艺人才 -->
<view class="wenyi" v-if="pageTypeId=='wyrc'">
<!-- <view class="wenyi"> -->
<view class="data_itm_box">
<u-form-item ref="item1" @click="renCaiShow=true" class="data_itm"> <u-form-item ref="item1" @click="renCaiShow=true" class="data_itm">
<text class="label_t">人才类型</text> <text class="label_t"><text style="color: #99241B;">*</text>会员级别</text>
<u--input class="p32" placeholder="请选择类型" v-model="renCaiValue" readonly inputAlign="right" <u--input class="p32" placeholder="请选择会员级别" v-model="model1.userInfo.member" readonly
border="none"> inputAlign="right" border="none">
<u-icon slot="suffix" name="arrow-right"></u-icon> <u-icon slot="suffix" name="arrow-right"></u-icon>
</u--input> </u--input>
</u-form-item> </u-form-item>
</view>
<view class="data_itm_box">
<u-form-item ref="item1" label='艺术成就' class="data_itm te"> <u-form-item ref="item1" label='艺术成就' class="data_itm te">
<view class="chen_itm" v-for="(v,i) in artlist" :key="i"> <view class="chen_itm" v-for="(v,i) in artlist" :key="i">
<input type="text" v-model.trim="artlist[i]" placeholder="请输入艺术成就" class="chengjiu" /> <input type="text" v-model.trim="artlist[i]" placeholder="请输入艺术成就" class="chengjiu" />
@ -166,109 +197,8 @@
</view> </view>
</view> </view>
</u-form-item> </u-form-item>
<view class="data_itm xie " style="display: flex;justify-content: space-between;" v-if="true">
<!-- 是否已加入协会 -->
<view>
<text class="label_t">是否已加入协会</text>
</view>
<view>
<u-radio-group v-model="isJioned" @change="groupChange" placement="row" style="">
<u-radio activeColor="#99241b" label="是" :name='true'
style="margin-right: 10px;!important"></u-radio>
<u-radio activeColor="#99241b" label="否" :name='false'></u-radio>
</u-radio-group>
</view>
<!-- <u-switch v-model="isJioned" activeColor="#99241B" size=20></u-switch> -->
</view>
<u-form-item ref="item1" @click="xieShow=true" class="data_itm" v-if="isJioned">
<text class="label_t">*所属协会</text>
<u--input class="p32" placeholder="请选择所属协会" v-model="xieValue" readonly inputAlign="right"
border="none">
<u-icon slot="suffix" name="arrow-right"></u-icon>
</u--input>
</u-form-item>
<u-form-item ref="item1" @click="showJionmeet=true" class="data_itm" v-if="isJioned">
<text class="label_t">入会时间</text>
<u--input class="p32" placeholder="请选择时间" v-model="model1.userInfo.jionTime" readonly
inputAlign="right" border="none">
<u-icon slot="suffix" name="calendar"></u-icon>
</u--input>
</u-form-item>
</view>
</view>
<!-- 服务商 -->
<view class="fuwushang" v-if="pageTypeId=='fws'">
<view class="data_itm_box">
<u-form-item prop="userInfo.ServerName" ref="item1" class="data_itm">
<text class="label_t">*服务商名称</text>
<u--input class="p32" placeholder="请输入服务商名称" inputAlign="right" clearable
v-model="model1.userInfo.ServerName" border="none"></u--input>
</u-form-item>
<view class="data_itm">
<view class="data_itm_key label_t">
*服务商头像上传
</view> </view>
</view> </view>
<u-upload class="upload" accept="image" width="172rpx" height="172rpx" :fileList="fileList3"
@afterRead="afterRead" @delete="deletePic" name="3" multiple :maxCount="1">
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload>
<u-form-item prop="userInfo.Address" ref="item1" class="data_itm">
<text class="label_t">*地址</text>
<u--input class="p32" placeholder="*请输入地址" inputAlign="right" clearable
v-model="model1.userInfo.Address" border="none"></u--input>
</u-form-item>
<u-form-item ref="item1" label="*实景照片上传" class="data_itm">
<u-upload class="upload" accept="image" width="172rpx" height="172rpx" :fileList="fileList1"
@afterRead="afterRead" @delete="deletePic" name="1" multiple>
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload>
</u-form-item>
<u-form-item ref="item1" label="*资质照片上传" class="data_itm">
<u-upload class="upload" accept="image" width="172rpx" height="172rpx" :fileList="fileList4"
@afterRead="afterRead" @delete="deletePic" name="4" multiple>
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload>
</u-form-item>
</view>
<view class="data_itm_box">
<u-form-item prop="userInfo.serverInstrutor" label="*服务内容介绍" ref="item1">
<u--textarea v-model="model1.userInfo.serverInstrutor" placeholder="请输入介绍"
style="background-color: #F8F8F8;"></u--textarea>
</u-form-item>
<u-form-item ref="item1" @click="showServeTime=true" class="data_itm">
<text class="label_t">*服务开始时间</text>
<u--input class="p32" placeholder="请选择服务开始时间" v-model="model1.userInfo.serveTime" readonly
inputAlign="right" border="none">
<u-icon slot="suffix" name="calendar"></u-icon>
</u--input>
</u-form-item>
<u-form-item ref="item1" @click="showServeTimeend=true" class="data_itm">
<text class="label_t">*服务结束时间</text>
<u--input class="p32" placeholder="请选择服务结束时间" v-model="model1.userInfo.serveTimeend" readonly
inputAlign="right" border="none">
<u-icon slot="suffix" name="calendar"></u-icon>
</u--input>
</u-form-item>
<u-form-item prop="userInfo.DutyPeopleName" ref="item1" class="data_itm">
<text class="label_t">*负责人姓名</text>
<u--input class="p32" placeholder="请输入负责人姓名" inputAlign="right" clearable
v-model="model1.userInfo.DutyPeopleName" border="none"></u--input>
</u-form-item>
<!-- <u-form-item prop="userInfo.ServephoneNum" ref="item1" class="data_itm">
<text class="label_t">电话</text>
<u--input class="p32" placeholder="请输入电话" inputAlign="right" clearable
v-model="model1.userInfo.ServephoneNum" border="none"></u--input>
</u-form-item> -->
<u-form-item prop="userInfo.pasw" ref="item1" class="data_itm">
<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>
</view>
</view>
<view class="operation"> <view class="operation">
<button type="default" class="next" @click="submit">登录</button> <button type="default" class="next" @click="submit">登录</button>
</view> </view>
@ -291,28 +221,30 @@
<!-- 日期选择器 --> <!-- 日期选择器 -->
<u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :show="showBirthday" <u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :show="showBirthday"
:value="model1.userInfo.birthday" mode="date" closeOnClickOverlay @confirm="birthdayConfirm" :value="model1.userInfo.birthday" mode="date" closeOnClickOverlay @confirm="birthdayConfirm"
@close="close('showBirthday')" @cancel="close('showBirthday')"></u-datetime-picker> @close="close('showBirthday')" @cancel="close('showBirthday')">
</u-datetime-picker>
<!-- 日期选择器ed --> <!-- 日期选择器ed -->
<!-- 服务日期选择器 --> <!-- 服务日期选择器 -->
<u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :show="showServeTime" <u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :show="showServeTime"
:value="model1.userInfo.serveTime" mode="time" closeOnClickOverlay @confirm="ServeTimeConfirm" :value="model1.userInfo.serveTime" mode="time" closeOnClickOverlay @confirm="ServeTimeConfirm"
@close="close('showServeTime')" @cancel="close('showServeTime')"></u-datetime-picker> @close="close('showServeTime')" @cancel="close('showServeTime')">
</u-datetime-picker>
<u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :show="showServeTimeend" <u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :show="showServeTimeend"
:value="model1.userInfo.serveTimeend" mode="time" closeOnClickOverlay @confirm="ServeTimeConfirmend" :value="model1.userInfo.serveTimeend" mode="time" closeOnClickOverlay @confirm="ServeTimeConfirmend"
@close="close('showServeTimeend')" @cancel="close('showServeTimeend')"></u-datetime-picker> @close="close('showServeTimeend')" @cancel="close('showServeTimeend')">
</u-datetime-picker>
<!-- 服务日期选择器ed --> <!-- 服务日期选择器ed -->
<!-- 入会日期选择器 --> <!-- 入会日期选择器 -->
<u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :show="showJionmeet" <u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :show="showJionmeet"
:value="model1.userInfo.jionTime" mode="date" closeOnClickOverlay @confirm="jionMeetConfirm" :value="model1.userInfo.jionTime" mode="date" closeOnClickOverlay @confirm="jionMeetConfirm"
@close="close('showJionmeet')" @cancel="close('showJionmeet')"></u-datetime-picker> @close="close('showJionmeet')" @cancel="close('showJionmeet')">
</u-datetime-picker>
<!-- 入会日期选择器ed --> <!-- 入会日期选择器ed -->
<!-- 民族选择器 --> <!-- 民族选择器 -->
<u-picker :show="zuShow" confirmColor="#99241B" closeOnClickOverlay @close="close('zuShow')" <u-picker :show="zuShow" confirmColor="#99241B" closeOnClickOverlay @close="close('zuShow')"
@cancel="close('zuShow')" @confirm="confimZu" immediateChange :columns="Zucolumns"></u-picker> @cancel="close('zuShow')" @confirm="confimZu" immediateChange :columns="Zucolumns">
</u-picker>
<!-- 民族选择器 ed--> <!-- 民族选择器 ed-->
<!-- 协会选择器 --> <!-- 协会选择器 -->
<u-picker :show="xieShow" confirmColor="#99241B" @confirm="confirmxie" @close="close('xieShow')" <u-picker :show="xieShow" confirmColor="#99241B" @confirm="confirmxie" @close="close('xieShow')"
@cancel="close('xieShow')" closeOnClickOverlay immediateChange :columns="xiecolumns"> @cancel="close('xieShow')" closeOnClickOverlay immediateChange :columns="xiecolumns">
@ -321,16 +253,18 @@
<!-- 政治面貌选择器 --> <!-- 政治面貌选择器 -->
<u-picker :show="zhengzhiShow" confirmColor="#99241B" @close="close('zhengzhiShow')" <u-picker :show="zhengzhiShow" confirmColor="#99241B" @close="close('zhengzhiShow')"
@cancel="close('zhengzhiShow')" closeOnClickOverlay @confirm="confimZheng" immediateChange @cancel="close('zhengzhiShow')" closeOnClickOverlay @confirm="confimZheng" immediateChange
:columns="Zhengcolumns"></u-picker> :columns="Zhengcolumns">
</u-picker>
<!-- 政治面貌选择器 ed--> <!-- 政治面貌选择器 ed-->
<!-- 学历选择器 -->
<!-- 籍贯面貌选择器 -->
<u-picker :show="jigaunShow" confirmColor="#99241B" @close="close('jigaunShow')" @cancel="close('jigaunShow')" <u-picker :show="jigaunShow" confirmColor="#99241B" @close="close('jigaunShow')" @cancel="close('jigaunShow')"
closeOnClickOverlay @confirm="confimJi" immediateChange :columns="Jicolumns"></u-picker> closeOnClickOverlay @confirm="confimJi" immediateChange :columns="Jicolumns">
</u-picker>
<!-- 籍贯面貌选择器 ed--> <!-- 籍贯面貌选择器 ed-->
<!-- 人才类型选择器 --> <!-- 人才类型选择器 -->
<u-picker :show="renCaiShow" confirmColor="#99241B" @close="close('renCaiShow')" @cancel="close('renCaiShow')" <u-picker :show="renCaiShow" confirmColor="#99241B" @close="close('renCaiShow')" @cancel="close('renCaiShow')"
closeOnClickOverlay @confirm="confimRenCai" immediateChange :columns="peopleSkillColums"></u-picker> closeOnClickOverlay @confirm="confimRenCai" immediateChange :columns="peopleSkillColums">
</u-picker>
<!-- 人才类型选择器 ed--> <!-- 人才类型选择器 ed-->
@ -355,7 +289,7 @@
zhengzhiShow: false, zhengzhiShow: false,
zhengzhiValue: '', zhengzhiValue: '',
renCaiValue: '', renCaiValue: '',
zuValue: "汉族", zuValue: "",
xieValue: '', xieValue: '',
zuShow: false, zuShow: false,
xieShow: false, xieShow: false,
@ -365,18 +299,20 @@
honorList: [''], honorList: [''],
StandradList: [''], StandradList: [''],
peopleSkillColums: [ peopleSkillColums: [
["无", "乡镇人才", "县级人才", "市级人才", "省级人才", "国家级人才"] ["全国会员", "省会员", "市会员", "区县(市)会员"]
], ],
Zucolumns: [ Zucolumns: [
["汉族", "朝鲜族"], ["汉族", "朝鲜族"],
], ],
xiecolumns: [], xiecolumns: [],
Zhengcolumns: [ Zhengcolumns: [
["中共党员", "中共预备党员", '共青团员', "民革党员", "民盟盟员", "民建会员", "民进会员", "农工党党员", "致公党党员", "九三学社社员", "台盟盟员", "无党派人士", "群众"], ["中共党员", "中共预备党员", '共青团员', "民革党员", "民盟盟员", "民建会员", "民进会员", "农工党党员", "致公党党员", "九三学社社员", "台盟盟员",
"无党派人士", "群众"
],
], ],
Jicolumns: [ Jicolumns: [
["河南", "浙江", '上海'], ["初中及以下", "高中", '大专', '本科', '硕士', '博士及以上'],
], ],
fileList4: [], // fileList4: [], //
fileList1: [], // fileList1: [], //
@ -384,7 +320,7 @@
[] []
], // ], //
fileList3: [], // fileList3: [], //
jiguan: '浙江', jiguan: '',
jigaunShow: false, jigaunShow: false,
showBirthday: false, showBirthday: false,
showServeTime: false, showServeTime: false,
@ -403,7 +339,6 @@
sex: '', sex: '',
birthday: "2000-01-01", birthday: "2000-01-01",
idCOde: '', idCOde: '',
phoneNum: '', phoneNum: '',
meeting: '', meeting: '',
// meetingTime: '', // meetingTime: '',
@ -415,9 +350,17 @@
jionTime: '2000-01-01', jionTime: '2000-01-01',
DutyPeopleName: '', // DutyPeopleName: '', //
// ServephoneNum: '', // // ServephoneNum: '', //
pasw: '' pasw: '',
education: '',
hobby: '',
hometTel: '',
officeTel: '',
unitName: '',
mailAddress: '',
member: ''
}, },
}, },
userData: {},
rules: { rules: {
'userInfo.pasw': [{ 'userInfo.pasw': [{
required: true, required: true,
@ -531,7 +474,21 @@
}, },
onLoad(option) { onLoad(option) {
this.pageTypeId = option.id this.pageTypeId = option.id
this.wyrc = option.wyrc this.userData = uni.getStorageSync('userInfo')
if (this.userData) {
console.log('userInfo', this.userData)
this.model1.userInfo.name = this.userData.userName
this.model1.userInfo.sex = this.userData.sex
this.zhengzhiValue = this.userData.politics
// this.jiguan = this.userData.base
// this.zuValue = this.userData.nation
this.model1.userInfo.education = this.userData.education
this.model1.userInfo.hometTel = this.userData.hometTel
this.model1.userInfo.officeTel = this.userData.officeTel
this.model1.userInfo.unitName = this.userData.unitName
this.model1.userInfo.mailAddress = this.userData.mailAddress
this.model1.userInfo.birthday = this.userData.birthDay
}
}, },
onReady() { onReady() {
this.$refs.form1.setRules(this.rules); this.$refs.form1.setRules(this.rules);
@ -631,7 +588,6 @@
this.xieShow = false this.xieShow = false
this.xieValue = e.value[0] this.xieValue = e.value[0]
this.xiehuiId = this.xiehuiObj[this.xieValue] this.xiehuiId = this.xiehuiObj[this.xieValue]
console.log("xiehuiId", this.xiehuiId);
}, },
confimZheng(e) { confimZheng(e) {
this.zhengzhiShow = false this.zhengzhiShow = false
@ -639,11 +595,11 @@
}, },
confimRenCai(e) { confimRenCai(e) {
this.renCaiShow = false this.renCaiShow = false
this.renCaiValue = e.value[0] this.model1.userInfo.member = e.value[0]
}, },
confimJi(e) { confimJi(e) {
this.jigaunShow = false this.jigaunShow = false
this.jiguan = e.value[0] this.model1.userInfo.education = e.value[0]
}, },
// //
deletePic(event) { deletePic(event) {
@ -787,43 +743,51 @@
let that = this.model1.userInfo let that = this.model1.userInfo
let data = { let data = {
// "phone": that.phoneNum, // "phone": that.phoneNum,
"artAtt": yishucj, artAtt: yishucj,
"associationId": this.xiehuiId, associationId: this.xiehuiId,
"base": this.jiguan, base: this.jiguan,
"birthDay": that.birthday, birthDay: that.birthday,
"cfPhoto": fl4, cfPhoto: fl4,
"comeTime": that.jionTime, comeTime: that.jionTime,
"greats": rongyujx, greats: rongyujx,
"idCard": that.idCOde, idCard: that.idCOde,
"images": fl3, images: fl3,
"info": that.serverInstrutor, info: that.serverInstrutor,
"isAssociation": this.isJioned, isAssociation: this.isJioned,
"nation": this.zuValue, nation: this.zuValue,
// "nickName": "", // "nickName": "",
"opus": opsArr, opus: opsArr,
"password": that.pasw, password: that.pasw,
"photo": fl1, photo: fl1,
"politics": this.zhengzhiValue, politics: this.zhengzhiValue,
"rcType": this.renCaiValue, rcType: this.renCaiValue,
"serviceAddress": that.Address, serviceAddress: that.Address,
"serviceName": that.ServerName, serviceName: that.ServerName,
"sex": that.sex, sex: that.sex,
"timeEnd": that.serveTimeend, timeEnd: that.serveTimeend,
"timeStart": that.serveTime, timeStart: that.serveTime,
"userName": that.name, userName: that.name,
"userType": this.pageTypeId, userType: this.pageTypeId,
"fzr": that.DutyPeopleName, fzr: that.DutyPeopleName,
"wyrc": this.wyrc, wyrc: this.wyrc,
education: that.education,
hobby: that.hobby,
hometTel: that.hometTel,
officeTel: that.officeTel,
unitName: that.unitName,
mailAddress: that.mailAddress,
member: that.member,
} }
if(this.pageTypeId=='fws'){ console.log(data)
if (!data.serviceName || !data.fzr || !data.cfPhoto || !data.photo || !data.serviceAddress || !data.info || !data.password || !data.images) { if (!data.userName || !data.sex || !data.birthDay || !data.images || !data.password || !data.education || !
data.mailAddress || !data.politics) {
this.upLoadReady = false this.upLoadReady = false
}else{ console.log(zyz)
data.userName = data.serviceName
} }
}else{ if (this.pageTypeId == 'wyrc') {
if (!data.userName || !data.sex || !data.idCard || !data.images || !data.password || !data.politics) { if (!data.member || !data.unitName || !data.officeTel || !data.associationId) {
this.upLoadReady = false this.upLoadReady = false
console.log(wyrc)
} }
} }
if (this.upLoadReady) { if (this.upLoadReady) {
@ -833,7 +797,7 @@
url: '/pages/pageHome/pageHome' url: '/pages/pageHome/pageHome'
}) })
uni.showToast({ uni.showToast({
title: "成功", title: "提交成功",
icon: "none", icon: "none",
}); });
} }
@ -845,14 +809,8 @@
}) })
} else { } else {
uni.$u.toast('您的资料还未补充完整') uni.$u.toast('您的资料还未补充完整')
this.upLoadReady = true
} }
// this.$refs.form1.validate().then(res => {
//
// }).catch(errors => {
// uni.$u.toast('')
// return
// })
} }
} }

View File

@ -96,7 +96,7 @@
methods: { methods: {
goDetail(id){ goDetail(id){
uni.navigateTo({ uni.navigateTo({
url:'/pages/literFamily/ActJianDetail?id='+id url:'/pagesB/literFamily/ActJianDetail?id='+id
}) })
}, },
// //
@ -183,7 +183,7 @@
}, },
GoWorksShow(id) { GoWorksShow(id) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/AwardWinningWork/AwardWinningWork?id=" + String(id) url: "/pagesC/AwardWinningWork/AwardWinningWork?id=" + String(id)
}) })
} }
}, },

View File

@ -74,36 +74,6 @@
<view class="gap"> <view class="gap">
接单设置 接单设置
</view> </view>
<view class="form_line">
<view class="form_left">
可接单用户选择
</view>
<view class="form_right" @click="showUser=true">
<u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
suffixIcon="arrow-right" readonly v-model="userType" disabledColor="#ffffff">
</u--input>
</view>
</view>
<u-popup :show="showUser" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
<!-- <u-radio-group @change="selectForm2" v-model="userType" :borderBottom="true" placement="column"
iconPlacement="right">
<u-radio :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2" :key="index"
:label="item.label" labelSize="28rpx" labelColor="#231F1C" :name="item.label"
activeColor="#99241B ">
</u-radio>
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
type="default" @click="showUser=false">确认</u-button>
</u-radio-group> -->
<u-checkbox-group v-model="radiovalue2" :borderBottom="true" placement="column"
iconPlacement="right">
<u-checkbox :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist2" :key="index"
:label="item.label" labelSize="28rpx" labelColor="#231F1C" :name="item.label"
activeColor="#99241B ">
</u-checkbox>
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
type="default" @click="selectForm2">确认</u-button>
</u-checkbox-group>
</u-popup>
<view class="form_line"> <view class="form_line">
<view class="form_left"> <view class="form_left">
是否支持多人接单 是否支持多人接单
@ -124,12 +94,9 @@
附件上传 附件上传
</view> </view>
<view class="gap" style="line-height: 30rpx;font-size: 28rpx;"> <view class="gap" style="line-height: 30rpx;font-size: 28rpx;">
可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)或pdf 可上传图片(png/jpg/jpeg/bmp/gif/tif/tiff)
</view> </view>
<view class="gap" style="line-height: 30rpx;font-size: 28rpx;"> <u-upload class="upload" width="172rpx" height="172rpx" :fileList="fileList3"
(若有图片请先上传图片)
</view>
<u-upload class="upload" accept="file" width="172rpx" height="172rpx" :fileList="fileList3"
@afterRead="afterRead" @delete="deletePic" name="3" multiple> @afterRead="afterRead" @delete="deletePic" name="3" multiple>
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image> <image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload> </u-upload>
@ -159,7 +126,7 @@
timeValue: Number(new Date()), timeValue: Number(new Date()),
showUser: false, showUser: false,
userType: '', userType: '',
userTypeValue: '', userTypeValue: 'wyrc,zyz',
radiovalue2: [], radiovalue2: [],
radiolist2: [], radiolist2: [],
morePer: true, morePer: true,
@ -496,6 +463,9 @@
padding: 10rpx 32rpx; padding: 10rpx 32rpx;
font-size: 32rpx; font-size: 32rpx;
} }
::v-deep .u-upload__wrap {
padding: 32rpx;
}
.upload { .upload {
padding: 32rpx; padding: 32rpx;

View File

@ -145,12 +145,12 @@
}, },
toDetail(val){ toDetail(val){
uni.navigateTo({ uni.navigateTo({
url: `/pages/orderHall/orderHallDetails?id=` + val url: `/pagesB/orderHall/orderHallDetails?id=` + val
}) })
}, },
toAddOrder(){ toAddOrder(){
uni.navigateTo({ uni.navigateTo({
url: `/pages/orderHall/addOrder` url: `/pagesB/orderHall/addOrder`
}) })
} }
} }

View File

@ -58,13 +58,13 @@
</view> </view>
<view class="content">{{data.typeName}}</view> <view class="content">{{data.typeName}}</view>
</view> </view>
<view class="item_li"> <!-- <view class="item_li">
<view class="standard"> <view class="standard">
<image class="icon" src="../../static/detailIcon/icon8.png" mode="scaleToFill"></image> <image class="icon" src="../../static/detailIcon/icon8.png" mode="scaleToFill"></image>
<text>可接单用户类型:</text> <text>可接单用户类型:</text>
</view> </view>
<view class="content"> {{data.rclx}} </view> <view class="content"> {{data.rclx}} </view>
</view> </view> -->
<view class="item_li"> <view class="item_li">
<view class="standard"> <view class="standard">
<image class="icon" src="../../static/detailIcon/icon6.png" mode="scaleToFill"></image> <image class="icon" src="../../static/detailIcon/icon6.png" mode="scaleToFill"></image>
@ -193,7 +193,7 @@
downLoad(val) { downLoad(val) {
this.contractUrl = val this.contractUrl = val
uni.navigateTo({ uni.navigateTo({
url: "/pages/ArtWorks/webView?url=" + this.contractUrl url: "/pagesB/ArtWorks/webView?url=" + this.contractUrl
}) })
}, },
bao() { bao() {

View File

@ -83,19 +83,10 @@
</view> </view>
</view> </view>
</view> </view>
<u-gap height="80" bgColor="#fff"></u-gap> <u-gap v-if="hdStatus == '0'" height="150" bgColor="#fff"></u-gap>
<u-gap v-else height="80" bgColor="#fff"></u-gap>
<view v-if="hdStatus == '0'"> <view v-if="hdStatus == '0'">
<view class="operation" v-if="userType == 'fws'"> <view class="operation-A">
<button type="default" class="apply" v-if="serveList.isGm && serveList.gmState == 0">已申请审核中</button>
<button type="default" class="apply" v-else-if="serveList.isGm && serveList.gmState == 1"
@click="toGm(1)">上传物资照片</button>
<button type="default" class="apply" v-else-if="serveList.isGm && serveList.gmState == 2">验收中</button>
<button type="default" class="apply" v-else-if="serveList.isGm && serveList.gmState == 3">已验收</button>
<button type="default" class="apply" v-else-if="serveList.isGm && serveList.gmState == null"
@click="toGm(0)">申请冠名</button>
<button type="default" class="apply" v-else-if="serveList.isGm == false">此活动不接受冠名</button>
</view>
<view class="operation" v-else>
<button type="default" class="apply" @click="baoMingQX(0)" <button type="default" class="apply" @click="baoMingQX(0)"
v-if="serveList.hdbm && serveList.hdqxbm == false">取消活动报名</button> v-if="serveList.hdbm && serveList.hdqxbm == false">取消活动报名</button>
<button type="default" class="apply" @click="baoMing(0)" <button type="default" class="apply" @click="baoMing(0)"
@ -109,14 +100,22 @@
<button type="default" class="collection" <button type="default" class="collection"
v-else-if="serveList.zyzbm == false && serveList.zyzqxbm">已无法报名志愿者</button> v-else-if="serveList.zyzbm == false && serveList.zyzqxbm">已无法报名志愿者</button>
</view> </view>
<view class="operation">
<button type="default" class="apply" v-if="serveList.isGm && serveList.gmState == 0">已申请审核中</button>
<button type="default" class="apply" v-else-if="serveList.isGm && serveList.gmState == 1"
@click="toGm(1)">上传物资照片</button>
<button type="default" class="apply" v-else-if="serveList.isGm && serveList.gmState == 2">验收中</button>
<button type="default" class="apply" v-else-if="serveList.isGm && serveList.gmState == 3">已验收</button>
<button type="default" class="apply" v-else-if="serveList.isGm && serveList.gmState == null"
@click="toGm(0)">申请冠名</button>
<button type="default" class="apply" v-else-if="serveList.isGm == false">此活动不接受冠名</button>
</view>
</view> </view>
<view v-else> <view v-else>
<view class="operation" v-if="userType == 'fws'"> <view class="operation">
<button type="default" class="apply-A" @click="grayGm()">活动冠名</button>
</view>
<view class="operation" v-else>
<button type="default" class="apply-A" @click="grayBm()">活动报名</button> <button type="default" class="apply-A" @click="grayBm()">活动报名</button>
<button type="default" class="collection-A" @click="grayBm()">志愿者报名</button> <button type="default" class="collection-A" @click="grayBm()">志愿者报名</button>
<button type="default" class="collection-A" @click="grayGm()">活动冠名</button>
</view> </view>
</view> </view>
<!-- 取消报名-原因 --> <!-- 取消报名-原因 -->
@ -435,7 +434,7 @@
.collection { .collection {
flex: 1; flex: 1;
margin-left: 24rpx; margin-left: 10rpx;
background-color: #FFFFFF; background-color: #FFFFFF;
border: 1px solid #99241B; border: 1px solid #99241B;
color: #99241B; color: #99241B;
@ -446,7 +445,7 @@
.collection-A { .collection-A {
flex: 1; flex: 1;
margin-left: 24rpx; margin-left: 10rpx;
font-size: 32rpx; font-size: 32rpx;
font-weight: 600; font-weight: 600;
@ -468,6 +467,43 @@
border: none; border: none;
} }
button {
&::after {
border: none;
}
}
}
.operation-A {
display: flex;
// justify-content: space-between;
padding: 12rpx 32rpx 12rpx;
position: fixed;
left: 0;
bottom: 80px;
right: 0;
background-color: #FFFFFF;
box-shadow: 0px -4px 10px 1px rgba(192, 192, 192, 0.12);
.collection {
flex: 1;
margin-left: 10rpx;
background-color: #FFFFFF;
border: 1px solid #99241B;
color: #99241B;
font-size: 32rpx;
font-weight: 600;
}
.apply {
flex: 1;
background-color: $red;
color: #fff;
font-size: 32rpx;
font-weight: 600;
border: none;
}
button { button {
&::after { &::after {
border: none; border: none;

View File

@ -3,10 +3,10 @@
<view> <view>
<u-loading-page :loading="load"></u-loading-page> <u-loading-page :loading="load"></u-loading-page>
</view> </view>
<view v-if="load == false"> <view class="main" v-if="load == false">
<u-gap height="5" bgColor="#fff"></u-gap> <u-gap height="5" bgColor="#fff"></u-gap>
<view class="art_act_itm" v-for="(v,i) in list2" :key="i" @click="goActDeat(v.id)"> <view class="art_act_itm" v-for="(v,i) in list2" :key="i" @click="goActDeat(v.id)">
<image :src="v.image" mode=""></image> <image :src="v.image" mode="" style="border-radius: 8px;"></image>
<view class="title"> <view class="title">
<view class="textT"> <view class="textT">
{{v.title}} {{v.title}}
@ -63,7 +63,7 @@
methods: { methods: {
goActDeat(id) { goActDeat(id) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/ActivitiesDetail/ActivitiesDetail?id=${id}` url: `/pagesC/ActivitiesDetail/ActivitiesDetail?id=${id}`
}) })
}, },
getData(){ getData(){
@ -110,6 +110,11 @@
height: 100%; height: 100%;
} }
.main{
width: 686rpx;
margin: 0px 32rpx;
}
.art_act_itm { .art_act_itm {
margin-top: 24rpx; margin-top: 24rpx;
height: 328rpx; height: 328rpx;

View File

@ -26,29 +26,29 @@
fightVirusList: [{ fightVirusList: [{
id: 1, id: 1,
author: "谢万里", author: "谢万里",
workImgUrl: '../../static/RewardWork/fightVirus.png', workImgUrl: '../../static/orderE.png',
avatorUrl: '../../static/RewardWork/avator.png', avatorUrl: '../../static/new/tx.png',
workTitle: '致敬英雄' workTitle: '致敬英雄'
}, },
{ {
id: 2, id: 2,
author: "谢万里", author: "谢万里",
workImgUrl: '../../static/RewardWork/fightVirus1.png', workImgUrl: '../../static/orderE.png',
avatorUrl: '../../static/RewardWork/avator.png', avatorUrl: '../../static/new/tx.png',
workTitle: '致敬英雄' workTitle: '致敬英雄'
}, },
{ {
id: 3, id: 3,
author: "谢万里", author: "谢万里",
workImgUrl: '../../static/RewardWork/fightVirus1.png', workImgUrl: '../../static/orderE.png',
avatorUrl: '../../static/RewardWork/avator.png', avatorUrl: '../../static/new/tx.png',
workTitle: '致敬英雄' workTitle: '致敬英雄'
}, },
{ {
id: 4, id: 4,
author: "谢万里", author: "谢万里",
workImgUrl: '../../static/RewardWork/fightVirus.png', workImgUrl: '../../static/orderE.png',
avatorUrl: '../../static/RewardWork/avator.png', avatorUrl: '../../static/new/tx.png',
workTitle: '致敬英雄' workTitle: '致敬英雄'
} }

View File

@ -56,7 +56,7 @@
<view class="bottm" @click="show=!show"> <view class="bottm" @click="show=!show">
<image src="../../static/DataSearch/zhanKai.png" mode=""></image> <image src="../../static/orderHall/addOrder.png" mode=""></image>
</view> </view>
<!-- 加号弹出框 --> <!-- 加号弹出框 -->
@ -179,7 +179,7 @@
GofileDetail(id) { GofileDetail(id) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/folderDetail/folderDetail?id=" + String(id) url: "/pagesC/folderDetail/folderDetail?id=" + String(id)
}) })
} }

402
src/pagesC/Login/Login.vue Normal file
View File

@ -0,0 +1,402 @@
<template>
<view class="">
<view v-if="load">
<u-loading-page loading-text="登录中..." :loading="load"></u-loading-page>
</view>
<view v-else>
<u-gap height="60" bgColor="#FFF"></u-gap>
<u--form :model="userInfo" ref="loginForm">
<view class="content_main">
<view class="copyright_iocn">
<image style="width: 80rpx; height: 60rpx;" src="../../static/icon10.png" mode=""></image>
<image style="width: 156rpx; height: 50rpx;margin-left: 16rpx;" src="../../static/icon11.png"
mode="">
</image>
</view>
<view class="tab_op">
<view :class="tab == 0?'choosed':'unchoosed'" @click="pwdLog()">
密码登录
</view>
<view class="whiteBox"></view>
<view :class="tab == 1?'choosed':'unchoosed'" @click="codeLog()">
验证码登录
</view>
</view>
<u-form-item prop="number" ref="item1" class="data_itm" v-if="tab == 0">
<u--input placeholder="请输入手机号" border="bottom" clearable v-model="userInfo.number"></u--input>
</u-form-item>
<u-form-item prop="pasw" ref="item1" class="data_itm" v-if="tab == 0">
<u--input type="password" placeholder="请输入密码" border="bottom" clearable v-model="userInfo.pasw">
</u--input>
</u-form-item>
<u-form-item prop="phone" ref="item1" class="data_itm" v-if="tab == 1">
<u--input placeholder="请输入手机号" border="bottom" clearable v-model="userInfo.phone"></u--input>
</u-form-item>
<u-form-item prop="code" ref="item1" class="data_itm" v-if="tab == 1">
<u-input placeholder="请输入验证码" border="bottom" clearable v-model="userInfo.code">
<template slot="suffix">
<u-code ref="uCode" @change="codeChange" seconds="60" changeText="X秒重新获取"></u-code>
<u-button @click="getCode" :text="tips" :hairline="false" plain
style="border: 0px; height: 21px;">
</u-button>
</template>
</u-input>
</u-form-item>
<u-gap height="20"></u-gap>
<u-button text="登录" size="large" throttleTime=1000 color="#99241B" @click="login()">
</u-button>
<u-gap height="12"></u-gap>
<u-button v-if="isWx" text="微信一键登录" size="large" throttleTime=1000 color="#99241B" open-type="getPhoneNumber"
@getphonenumber="getPhoneNumber" :plain="true">
</u-button>
<view class="other_op">
<text @click="goRemeber">忘记密码</text>
</view>
</view>
</u--form>
</view>
</view>
</template>
<script>
export default {
data() {
return {
tips: '',
userInfo: {
number: null,
pasw: null,
phone: null,
code: null,
},
rules: {
'number': [{
required: true,
message: '请填写账号',
trigger: ['blur']
}],
'phone': [{
type: 'number',
required: true,
message: '请填写手机号',
trigger: ['blur']
}, {
validator: (rule, value, callback) => {
return uni.$u.test.mobile(value);
},
message: '请输入格式正确的手机号',
trigger: ['change', 'blur'],
}],
'pasw': [{
required: true,
message: '请填写密码',
trigger: ['blur']
}],
'code': [{
required: true,
message: '请填写验证码',
trigger: ['blur']
}],
},
tab: 0,
load: false,
show: false,
wxDate: {
phone_iv: '',
phone_encryptedData: '',
openid: '',
session_key: '',
appId: 'wx55b187e6ed92e2ac',
phone: '',
jscode: '',
},
isWx: false
};
},
methods: {
pwdLog() {
this.tab = 0
this.$refs.loginForm.clearValidate()
},
codeLog() {
this.tab = 1
this.$refs.loginForm.clearValidate()
},
goRegist() {
uni.navigateTo({
url: '/pagesC/Login/Register'
})
},
goRemeber() {
uni.navigateTo({
url: '/pagesC/Login/RemeberPW'
})
},
// close() {
// this.show = false
// uni.showToast({
// title: '',
// icon: "error",
// });
// },
getPhoneNumber(e) {
if (e.detail.errMsg == "getPhoneNumber:ok") {
this.wxDate.phone_encryptedData = e.detail.encryptedData
this.wxDate.phone_iv = e.detail.iv
this.getNumber(e.detail.code)
} else if (e.detail.errMsg == "getPhoneNumber:fail user deny") {
uni.showToast({
title: '您拒绝了请求',
icon: "error",
});
}
},
getNumber(code) {
this.load = true
//
this.http.request('/auth/wx/getPhone?code=' + code, {}, "POST").then(res => {
if (res.code == 200) {
this.wxDate.phone = res.data.phone_info.phoneNumber
this.wechatLogin()
}
}).catch(e => {
this.load = false
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
wechatLogin() {
let _this = this
//
uni.checkSession({
provider: 'weixin',
success: function(loginRes) {
console.log('checkSession成功', loginRes);
},
fail: function(loginRes) {
console.log('checkSession失败', loginRes);
},
});
//
let jsCode = ''
uni.login({
provider: 'weixin',
success: function(loginRes) {
jsCode = loginRes.code;
console.log('login重新登录', {
loginRes
});
_this.http.request('/auth/xcx_login', {
code: jsCode,
phone: _this.wxDate.phone
}, "POST").then(res => {
if (res.code == 200) {
uni.setStorageSync('token', res.data.tokenValue)
uni.redirectTo({
url: '/pages/pageHome/pageHome'
})
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
fail: function(loginRes) {
console.log(loginRes)
_this.load = false
}
});
},
login() {
if (this.tab == 0) {
this.load = true
this.http.request('/auth/loginByPwd', {
phone: this.userInfo.number,
pwd: this.userInfo.pasw
}, "POST").then(res => {
uni.setStorageSync('token', res.data.tokenValue)
if (res.code == 200) {
uni.redirectTo({
url: '/pages/pageHome/pageHome'
})
}
}).catch(e => {
this.load = false
uni.showToast({
title: e.data.message,
icon: "none",
});
})
} else if (this.tab == 1) {
this.load = true
this.http.request('/auth/loginByPhone', {
phone: this.userInfo.phone,
code: this.userInfo.code
}, "POST").then(res => {
uni.setStorageSync('token', res.data.tokenValue)
if (res.code == 200) {
uni.redirectTo({
url: '/pages/pageHome/pageHome'
})
}
}).catch(e => {
this.load = false
uni.showToast({
title: e.data.message,
icon: "none",
});
})
}
},
codeChange(text) {
this.tips = text;
},
getCode() {
uni.hideKeyboard()
if (!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.userInfo.phone))) { //
uni.showToast({
title: '请填写正确手机号码',
icon: "none"
});
return false;
}
if (this.$refs.uCode.canGetCode) {
//
uni.showLoading({
title: '正在获取验证码'
})
this.http.request('/auth/getCode?phone=' + this.userInfo.phone, {}, "GET").then(res => {
if (res.code == 200) {
uni.hideLoading();
uni.$u.toast('验证码已发送');
this.$refs.uCode.start();
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
} else {
uni.$u.toast('倒计时结束后再发送');
}
},
},
onReady() {
this.$refs.loginForm.setRules(this.rules);
// #ifdef MP-WEIXIN
this.isWx = true
// #endif
// #ifndef MP-WEIXIN
//
this.isWx = false
// #endif
},
}
</script>
<style lang="scss">
::v-deep .u-form-item__body__right__message {
margin-left: 10px !important;
}
::v-deep .u-button--plain.u-button--info{
width: 100px !important;
border: 0px !important;
height: 21px !important;
}
.content_main {
margin: 0rpx 76rpx;
.copyright_iocn {
margin: 0rpx 0rpx 120rpx;
display: flex;
align-items: center;
justify-content: center;
}
.other_op {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24rpx 0rpx;
}
.tab_op {
height: 60rpx;
width: 100%;
overflow: hidden;
font-size: 16px;
font-weight: 600;
.choosed {
color: #99241B;
float: left;
font-size: 17px;
}
.whiteBox {
width: 60rpx;
height: 60rpx;
float: left;
}
.unchoosed {
color: #32333B;
float: left;
}
}
.wxLogin {
width: 160rpx;
margin: 40rpx auto;
.wx_icon {
display: flex;
justify-content: center;
width: 160rpx;
height: 60rpx;
margin: 30rpx auto;
}
.wx_text {
white-space: nowrap;
text-align: center;
}
}
}
.wxSq {
width: 100%;
padding: 32rpx 0;
.qsTitle {
padding: 32rpx 20rpx;
}
.sqBtns {
width: 80%;
display: flex;
justify-content: space-around;
padding: 20rpx 0;
margin: 20px auto;
.sqBtn {
width: 256rpx;
height: 60rpx;
}
}
}
</style>

View File

@ -149,7 +149,7 @@
}); });
setTimeout(() => { setTimeout(() => {
uni.navigateTo({ uni.navigateTo({
url: '/pages/Login/Login' url: '/pagesC/Login/Login'
}) })
}, 1200) }, 1200)
} }

View File

@ -0,0 +1,238 @@
<template>
<view class="">
<view>
<!-- 导航栏 -->
<view class="navbar">
<view class="status_bar" :style="{'height':statusHeight+'px'}"></view>
<view class="apptitle" :style="{'height':titleHeight+'px'}">
<image src="../../static/blackArrow.png" mode="" class="backImg" @click="back"></image>
</view>
</view>
<!--导航栏ed -->
<view class="select_bg">
<image src="../../static/selectID/selectIdBG.png" mode=""></image>
<view class="tips">
<view class="selct_tips">
您的账号首次登录
</view>
<view class="select_sm_tips">
请选择创建新账号或绑定已有账号
</view>
</view>
</view>
<view class="itm_id_contain" v-for="(v,k,i) in selectList" :key="i">
<view :class=" id === k ? ' itm_id_selected' :'itm_id'" @click="confirm_id(k)">
<view>
<!-- 政协委员 -->
{{v}}
</view>
<view class="gou">
<image src="../../static/selectID/gouXuan.png" mode=""></image>
</view>
</view>
</view>
<view class="operation">
<button type="default" class="next" @click="next">下一步</button>
</view>
<view class="zhan">
<!-- zhanwei -->
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
id: null,
wyrc: null,
statusHeight: 0,
titleHeight: 50,
selectList: {
new: "新建用户",
bind: "绑定用户",
},
};
},
methods: {
next() {
if (this.id == 'new') {
uni.navigateTo({
url: '/pagesC/SelectId/SelectId'
})
}else if (this.id == 'bind') {
uni.navigateTo({
url: '/pagesC/Login/setPas'
})
}
else {
uni.showToast({
title: '请选择身份',
duration: 2000,
icon: 'error'
});
}
},
back() {
uni.navigateBack()
},
confirm_id(id) {
this.id = id
},
confirm_wyrc(val) {
this.wyrc = val
},
},
onReady() {
const systemMsg = uni.getSystemInfoSync();
this.statusHeight = systemMsg.statusBarHeight
// #ifdef MP-WEIXIN
const menuButtonInfo = uni.getMenuButtonBoundingClientRect() //
this.titleHeight = menuButtonInfo.height + (menuButtonInfo.top - systemMsg.statusBarHeight) * 2
this.topHeight = this.statusHeight + this.titleHeight
// #endif
// #ifndef MP-WEIXIN
//
this.topHeight = this.statusHeight + this.titleHeight
// #endif
}
}
</script>
<style lang="scss">
image {
width: 100%;
height: 100%;
}
.zhan {
height: 160rpx;
}
.select_bg {
height: 408rpx;
position: relative;
.tips {
position: absolute;
bottom: 100rpx;
left: 32rpx;
.selct_tips {
color: $black;
font-size: 48rpx;
font-weight: 600;
}
.select_sm_tips {
margin-top: 16rpx;
color: #868785;
font-size: 28rpx;
}
}
}
.itm_id_contain {
padding: 32rpx;
.itm_id {
display: flex;
align-items: center;
justify-content: space-between;
height: 180rpx;
background-color: #FAFAFA;
padding: 24rpx;
border-radius: 16rpx;
font-size: 36rpx;
color: $black;
font-weight: 600;
.gou {
display: none;
}
}
.itm_id_selected {
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 600;
color: $red;
background-color: #FBF0EF;
border: 1px solid #99241B;
height: 180rpx;
padding: 24rpx;
border-radius: 16rpx;
font-size: 36rpx;
font-weight: 600;
.gou {
width: 48rpx;
height: 48rpx;
}
}
}
.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;
}
}
}
}
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 999;
box-sizing: border-box;
.apptitle {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 32rpx;
.backImg {
width: 40rpx;
height: 40rpx;
margin-right: 32rpx;
}
}
}
</style>

205
src/pagesC/Login/setPas.vue Normal file
View File

@ -0,0 +1,205 @@
<template>
<view>
<view class="contain">
<view class="loginbox">
<view class="label">
<u-search placeholder="请输入您要绑定的账号的姓名" v-model="keyword" shape="round" :clearabled="true" :showAction="true"
actionText="搜索" :animation="true" @search="getData" @custom="getData"></u-search>
</view>
<u-radio-group v-model="value" placement="column" iconPlacement="right" @change="groupChange" v-if="userList.length > 0">
<u-radio v-for="(v,i) in userList" :key="i" :label="v.userName+ ' ' + v.sex+ ' ' + v.birthDay" :name="v.id"
activeColor="#99241B" :customStyle="{marginBottom: '10px'}"></u-radio>
</u-radio-group>
<view v-else>
<u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png" >
</u-empty>
</view>
</view>
<u-gap height="80" bgColor="#fff"></u-gap>
<view class="btnbox">
<view class="btn" @click="upLoad">确认</view>
</view>
</view>
<!-- 确认 -->
<u-popup :show="show" mode="center" :round="10" @close="close">
<view style="width: 640rpx;">
<view style="padding: 32rpx;">
<view style="font-size: 36rpx; font-weight: 800;">
确定绑定该账号
</view>
</view>
<!-- <view style="margin: 0 32rpx 32rpx;">
<u--input placeholder="请输入身份证号码" border="surround" v-model="valueId"></u--input>
</view> -->
<view
style="display: flex; border-top:2rpx solid #E7E7E7;height: 112rpx;width: 640rpx;line-height: 112rpx; font-size: 32rpx;font-weight: 600;">
<view style="width: 319rpx; border-right:1rpx solid #E7E7E7; text-align: center;" @click="close">
取消
</view>
<view style="width: 319rpx; border-right:1rpx solid #E7E7E7; text-align: center; color: #99241B;"
@click="sure">
确定
</view>
</view>
</view>
</u-popup>
</view>
</template>
<script>
export default {
data() {
return {
keyword: '',
value: '',
userList: [],
id: '',
show: false,
valueId: ''
};
},
onLoad() {
},
methods: {
getData() {
this.userList = []
this.http.request('/user/userList', {
userName: this.keyword
}, "GET").then(res => {
if (res.code == 200) {
this.userList = res.data
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
upLoad() {
if (this.id) {
this.show = true
} else {
uni.showToast({
title: '请选择要绑定的账号',
icon: "none",
})
}
},
groupChange(n) {
this.id = n
},
//
close() {
this.show = false
this.valueId = ''
},
//
sure() {
this.http.request('/user/userYz/' + this.id, {}, "POST").then(res => {
if (res.code == 200) {
this.show = false
this.userList.forEach((item) =>{
if(item.id == this.id){
item.userName = this.keyword
uni.setStorageSync('userInfo', item)
}
})
uni.navigateTo({
url: '/pagesC/SelectId/SelectId'
})
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
}
}
</script>
<style lang="scss">
page {
background-color: #fff;
height: 100%;
}
.contain {
padding: 10px 20px 0 20px;
.loginbox {
.label {
margin-bottom: 12px;
font-size: 16px;
}
.inputele {
margin-bottom: 20px;
background: #F5F5F5;
border-radius: 4px 4px 4px 4px;
height: 48px;
line-height: 48px;
padding: 0 16px;
}
.yzm {
display: flex;
margin-bottom: 20px;
.inputele {
margin-bottom: 0;
flex: 1;
}
.getYZM {
height: 48px;
width: 110px;
line-height: 48px;
text-align: center;
color: #fff;
margin-left: 12px;
background: #99241B;
border-radius: 4px 4px 4px 4px;
}
}
}
.btnbox {
position: fixed;
left: 0;
bottom: 0;
right: 0;
padding: 32rpx 32rpx 48rpx;
height: 80rpx;
background-color: #fff;
.btn {
width: calc(100% - 48rpx);
height: 80rpx;
line-height: 80rpx;
text-align: center;
background: #99241B;
margin-left: 24rpx;
color: #fff;
border-radius: 4px 4px 4px 4px;
letter-spacing: 2px;
}
.gopage {
display: flex;
justify-content: space-between;
.wjma {
color: #999999;
}
.yhzc {
color: #99241B;
}
}
}
}
</style>

View File

@ -99,8 +99,9 @@
</view> </view>
</view> </view>
</view> </view>
<view class="order_itm"> <view class="order_itm"
<text class="order_itm_t">购买数量</text> style="display: flex;justify-content: space-between;align-items: center;padding: 24rpx 0;">
<view class="order_itm_t">购买数量</view>
<u-number-box v-model="count" buttonSize="20" integer> <u-number-box v-model="count" buttonSize="20" integer>
<view slot="minus" class="minus" @click="minusNum(count,serveList.id)"> <view slot="minus" class="minus" @click="minusNum(count,serveList.id)">
<u-icon name="minus" size="12"></u-icon> <u-icon name="minus" size="12"></u-icon>
@ -110,28 +111,31 @@
</view> </view>
</u-number-box> </u-number-box>
</view> </view>
<view class="order_itm" style=" border-top: solid 1rpx #E0E0E0; border-bottom: 1rpx solid #E0E0E0 ; " <view class="order_itm"
style=" border-top: solid 1rpx #E0E0E0; border-bottom: 1rpx solid #E0E0E0 ;display: flex;justify-content: space-between;align-items: center;padding: 24rpx 0;"
v-if="serveList.moneyPrice > 0"> v-if="serveList.moneyPrice > 0">
<text class="order_itm_t">商品总价</text> <text>{{serveList.moneyPrice * orderDet[0].count}}积分</text> <text class="order_itm_t">商品总价</text> <text>{{serveList.moneyPrice * orderDet[0].count}}积分</text>
</view> </view>
<view class="order_itm" style=" border-top: solid 1rpx #E0E0E0; border-bottom: 1rpx solid #E0E0E0 ; " <view class="order_itm"
style=" border-top: solid 1rpx #E0E0E0; border-bottom: 1rpx solid #E0E0E0 ; display: flex;justify-content: space-between;align-items: center;padding: 24rpx 0;"
v-else> v-else>
<text class="order_itm_t">商品总价</text> <text>{{serveList.pointPrice * orderDet[0].count}}积分</text> <text class="order_itm_t">商品总价</text> <text>{{serveList.pointPrice * orderDet[0].count}}积分</text>
</view> </view>
<view class="order_itm" style="position: relative;"> <view class="order_itm"
<text class="order_itm_t">提货方式</text> style="display: flex;justify-content: space-between;align-items: center;padding: 24rpx 0;">
<view class="order_itm_t">提货方式</view>
<u-radio-group v-model="FetchGoodMethod" placement="row" style="justify-content: flex-end;"> <u-radio-group v-model="FetchGoodMethod" placement="row" style="justify-content: flex-end;">
<u-radio name="1" activeColor="#99241B" labelColor="#251B1D" label="线上发货 "></u-radio> <u-radio name="1" activeColor="#99241B" labelColor="#251B1D" label="线上发货 "></u-radio>
<!-- <u-radio style="margin-left: 24rpx;" name="2" activeColor="#99241B" labelColor="#AFADB0" <!-- <u-radio style="margin-left: 24rpx;" name="2" activeColor="#99241B" labelColor="#AFADB0"
label="线下自取"></u-radio> --> label="线下自取"></u-radio> -->
</u-radio-group> </u-radio-group>
<view class="zuzhi_click" <!-- <view class="zuzhi_click"
style="position: absolute; background-color:transparent; width: 100%; height: 100%;"> style="position: absolute; background-color:transparent; width: 100%; height: 100%;">
</view> </view> -->
</view> </view>
<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="DoBuy">购买</u-button> type="error" @click="DoBuy">购买</u-button>
</u-popup> </u-popup>
<!-- 立即弹框ed --> <!-- 立即弹框ed -->
<view class="operation"> <view class="operation">
@ -140,16 +144,17 @@
<image style="width: 100%; height: 100%;" src='../../static/FamousArts/Talk.png'></image> <image style="width: 100%; height: 100%;" src='../../static/FamousArts/Talk.png'></image>
</view> </view>
</view> </view>
<view class="start_icon" @click="ClickBuy" v-else>> <view class="start_icon" @click="ClickBuy" v-else>
<view class="col_icon " style="position: relative;"> <view class="col_icon " style="position: relative;">
<image style="width: 100%; height: 100%;" src='../../static/shop/car.png'></image> <image style="width: 100%; height: 100%;" src='../../static/shop/car.png'></image>
</view> </view>
</view> </view>
<view class="start_icon" @click="ClickStart"> <view class="start_icon" @click="ClickStart">
<view class="col_icon "> <view class="col_icon ">
<image src="../../static/lightStart.png" style="width: 100%; height: 100%;" <image src="../../static/workDetail/star2.png" style="width: 100%; height: 100%;"
v-if="serveList.follow"></image> v-if="serveList.follow"></image>
<image src="../../static/star.png" style="width: 100%; height: 100%;" v-else></image> <image src="../../static/workDetail/star1.png" style="width: 100%; height: 100%;" v-else>
</image>
</view> </view>
</view> </view>
<view v-if="buyType == '4'"> <view v-if="buyType == '4'">
@ -281,11 +286,11 @@
} }
if (this.orderDet[0].mType == 0) { if (this.orderDet[0].mType == 0) {
// uni.navigateTo({ // uni.navigateTo({
// url:'/pages/ConfirmOrder/ConfirmOrder?data=' + encodeURIComponent(JSON.stringify(this.orderDet)) // url:'/pagesB/ConfirmOrder/ConfirmOrder?data=' + encodeURIComponent(JSON.stringify(this.orderDet))
// }) // })
} else if (this.orderDet[0].mType == 1) { } else if (this.orderDet[0].mType == 1) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/ConfirmOrder/fictitiousOrder?data=' + JSON.stringify(this.orderDet) url: '/pagesB/ConfirmOrder/fictitiousOrder?data=' + JSON.stringify(this.orderDet)
}) })
} }
}, },
@ -320,7 +325,7 @@
// //
goAllPingjia() { goAllPingjia() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/PingJiaList/PingJiaList?score=" + JSON.stringify(this.allScor) url: "/pagesC/PingJiaList/PingJiaList?score=" + JSON.stringify(this.allScor)
}) })
}, },
// //
@ -346,7 +351,7 @@
// //
ClickBuy() { ClickBuy() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/ShoppingCart/ShoppingCart' url: '/pagesC/ShoppingCart/ShoppingCart'
}) })
}, },
// //
@ -378,7 +383,6 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 24rpx 0rpx; padding: 24rpx 0rpx;
.order_itm_t { .order_itm_t {
@ -387,6 +391,15 @@
} }
} }
::v-deep .u-button--error.data-v-3bf2dba7 {
background-color: #99241B;
border-color: #99241B;
}
::v-deep .u-radio-group {
justify-content: flex-end;
}
/deep/ uni-swiper .uni-swiper-dots-horizontal { /deep/ uni-swiper .uni-swiper-dots-horizontal {
bottom: 120rpx; bottom: 120rpx;

View File

@ -86,7 +86,7 @@
}, },
toDetail(val) { toDetail(val) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/PolicyExpress/PolicyExpressDetail?id=" + val url: "/pagesC/PolicyExpress/PolicyExpressDetail?id=" + val
}) })
} }
} }

View File

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<view v-if="show"> <view>
<!-- 导航栏 --> <!-- 导航栏 -->
<view class="navbar"> <view class="navbar">
<view class="status_bar" :style="{'height':statusHeight+'px'}"></view> <view class="status_bar" :style="{'height':statusHeight+'px'}"></view>
@ -36,45 +36,6 @@
<button type="default" class="next" @click="next">下一步</button> <button type="default" class="next" @click="next">下一步</button>
</view> </view>
<view class="zhan">
<!-- zhanwei -->
</view>
</view>
<view v-else>
<!-- 导航栏 -->
<view class="navbar">
<view class="status_bar" :style="{'height':statusHeight+'px'}"></view>
<view class="apptitle" :style="{'height':titleHeight+'px'}">
<image src="../../static/blackArrow.png" mode="" class="backImg" @click="back"></image>
</view>
</view>
<!--导航栏ed -->
<view class="select_bg">
<image src="../../static/selectID/selectIdBG.png" mode=""></image>
<view class="tips">
<view class="selct_tips">
请选择您的身份
</view>
<view class="select_sm_tips">
选择身份后不能修改哦
</view>
</view>
</view>
<view class="itm_id_contain" v-for="(j,t) in rcList" :key="t">
<view :class="wyrc == j.value ? ' itm_id_selected' :'itm_id'" @click="confirm_wyrc(j.value)">
<view>
{{j.name}}
</view>
<view class="gou">
<image src="../../static/selectID/gouXuan.png" mode=""></image>
</view>
</view>
</view>
<view class="operation">
<button type="default" class="next" @click="nextT">下一步</button>
</view>
<view class="zhan"> <view class="zhan">
<!-- zhanwei --> <!-- zhanwei -->
</view> </view>
@ -88,51 +49,34 @@
return { return {
id: null, id: null,
wyrc: null, wyrc: null,
show: true,
statusHeight: 0, statusHeight: 0,
titleHeight: 50, titleHeight: 50,
selectList: { selectList: {
xhhy: "协会会员", wyrc: "文艺工作者",
wyrc: "文艺人才", zyz: "文艺爱好者",
zyz: "文艺志愿者",
fws: "服务商"
}, },
rcList: [{ userInfo: {},
name: "文艺名家",
value: 'wymj',
},{
name: "文艺工作者",
value: 'wygzz',
}
]
}; };
}, },
onLoad() {
this.userInfo = uni.getStorageSync('userInfo')
if(this.userInfo){
console.log('userInfo',this.userInfo)
if(this.userInfo.yhsf == '文艺工作者'){
this.id = 'wyrc'
this.next()
}else if(this.userInfo.yhsf == '文艺爱好者'){
this.id = 'zyz'
this.next()
}
}
},
methods: { methods: {
next() { next() {
console.log("下一步"); console.log("下一步");
let _this = this
if (this.id || this.id == 0) { if (this.id || this.id == 0) {
if (this.id == 'wyrc') {
this.show = false
}
else{
this.wyrc = ''
uni.navigateTo({ uni.navigateTo({
url:`/pages/improveData/improveData?id=` + this.id + '&wyrc=' + this.wyrc url: `/pagesB/improveData/improveData?id=` + this.id
})
}
} else {
uni.showToast({
title: '请选择身份',
duration: 2000,
icon: 'error'
});
}
},
nextT(){
if (this.wyrc) {
uni.navigateTo({
url:`/pages/improveData/improveData?id=` + this.id + '&wyrc=' + this.wyrc
}) })
} else { } else {
uni.showToast({ uni.showToast({
@ -278,6 +222,7 @@
} }
} }
} }
.navbar { .navbar {
position: fixed; position: fixed;
top: 0; top: 0;

View File

@ -288,13 +288,13 @@
}else{ }else{
if(this.total > this.point){ if(this.total > this.point){
uni.navigateTo({ uni.navigateTo({
url:'/pages/ConfirmOrder/purchaseDetail?success=1&id=0&num=0' url:'/pagesB/ConfirmOrder/purchaseDetail?success=1&id=0&num=0'
}) })
}else{ }else{
this.http.request('/order/newOrder', this.orderDet, "POST").then(res => { this.http.request('/order/newOrder', this.orderDet, "POST").then(res => {
if (res.code == 200) { if (res.code == 200) {
uni.navigateTo({ uni.navigateTo({
url:'/pages/ConfirmOrder/purchaseDetail?success=0&id=0&num=0' url:'/pagesB/ConfirmOrder/purchaseDetail?success=0&id=0&num=0'
}) })
} }
}).catch(e => { }).catch(e => {

View File

@ -79,7 +79,7 @@
methods:{ methods:{
toDetail(val){ toDetail(val){
uni.navigateTo({ uni.navigateTo({
url: "/pages/activity/activityDetail?id=" + val url: "/pagesC/activity/activityDetail?id=" + val
}) })
}, },
getData(){ getData(){

256
src/pagesC/enjoy/enjoy.vue Normal file
View File

@ -0,0 +1,256 @@
<template>
<view class="">
<view class="">
<u-loading-page :loading="load"></u-loading-page>
</view>
<view class="layout" v-if="load == false">
<view class="container">
<view class="left">
<view class="scroll-list__goods-item" v-for="(item, index) in leftList" :key="index"
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']" @click="ToEnjoy(item.id)">
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
<view class="scroll-list__goods-item__title">
{{ item.name }}
</view>
<view class="scroll-list__goods-item__text">
<text class="det-type">类型:{{ item.name }}</text>
<view class="det_box">
<view class="box_left">
<image src="../../static/workDetail/seen.png" class="img"></image>
</view>
<view class="box_right">
{{ item.views }}
</view>
</view>
</view>
</view>
</view>
<view class="right">
<view class="scroll-list__goods-item" v-for="(item, index) in rightList" :key="index"
:class="[(index === 9) && 'scroll-list__goods-item--no-margin-right']" @click="ToEnjoy(item.id)">
<image class="scroll-list__goods-item__image" :src="item.file" mode="widthFix"></image>
<view class="scroll-list__goods-item__title">
{{ item.name }}
</view>
<view class="scroll-list__goods-item__text">
<text class="det-type">类型:{{ item.name }}</text>
<view class="det_box">
<view class="box_left">
<image src="../../static/workDetail/seen.png" class="img"></image>
</view>
<view class="box_right">
{{ item.views }}
</view>
</view>
</view>
</view>
</view>
</view>
<!-- <view class="shelves">
<view class="shelves-item" v-for="(item,index) in enjoyList" :key="index" @click="ToEnjoy(item.id)">
<image :src="item.file" class="shelves-img"></image>
<view class="name">{{item.name}}</view>
</view>
</view> -->
</view>
</view>
</template>
<script>
export default {
data() {
return {
load: true,
enjoyList: [],
//
leftList: [],
rightList: [],
//
leftH: 0,
rightH: 0
};
},
onReady() {
let date = new Date()
let Y = date.getFullYear()
let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
let D = date.getDate() < 10 ? ('0' + date.getDate()) : date.getDate()
this.dateTime = Y + '-' + M + '-' + D
// #ifdef MP-WEIXIN
//
this.$refs.datetimePicker.setFormatter(this.formatter)
// #endif
},
onShow() {
this.getEnjoy()
},
methods: {
getEnjoy() {
let _this = this
this.http.request('/indexImage/recommend', {}, "GET").then(res => {
if (res.code == 200) {
res.data.forEach(function (item) {
if (item.file) {
let fileArr = item.file.split(',')
let gs = fileArr[0].substr(fileArr[0].lastIndexOf(".") + 1)
if (gs == 'jpg' || gs == 'jpeg' || gs == 'png' || gs == 'bmp' || gs == 'gif' || gs == 'tif' || gs == 'tiff') {
item.file = fileArr[0]
}
else if (gs == 'pdf') {
item.file = '../../static/fileImg/pdfS.png'
}
}
})
this.enjoyList = res.data
this.doList()
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
ToEnjoy(val) {
uni.navigateTo({
url: "/pagesB/ArtWorks/artWorkDetail?id=" + val
})
},
doList() {
const that = this
this.leftList = []
this.rightList = []
this.leftH = 0
this.rightH = 0
this.enjoyList.forEach(res => {
//
uni.getImageInfo({
src: res.file,
success: (image) => {
//
let showH = (50 * image.height) / image.width
//
if (that.leftH <= that.rightH) {
that.leftList.push(res)
that.leftH += showH
} else {
that.rightList.push(res)
that.rightH += showH
}
}
})
})
this.load = false
}
},
}
</script>
<style lang="scss">
.layout {
padding: 16rpx 32rpx;
.container {
font-size: 14rpx;
line-height: 24rpx;
.right,
.left {
display: inline-block;
width: 49%;
vertical-align: top;
.scroll-list {
display: flex;
&__goods-item {
width: 100%;
margin: 20rpx 10rpx;
&__image {
width: 100%;
border-radius: 8px;
}
&__title {
font-size: 14px;
font-weight: 500;
padding: 10rpx 24rpx;
}
&__text {
margin-top: 3px;
padding: 0 24rpx 10rpx;
font-size: 12px;
color: #AFADB0;
overflow: hidden;
.det-type {
float: left;
line-height: 16px;
}
.det_box {
float: right;
overflow: hidden;
.box_left {
width: 16px;
height: 16px;
float: left;
.img {
width: 100%;
height: 100%;
}
}
.box_right {
margin-left: 2px;
line-height: 16px;
float: left;
}
}
}
}
}
}
.left {
margin-right: 2%;
}
.left image,
.right image {
width: 100%;
margin-bottom: 10rpx;
}
}
.shelves {
width: 100%;
.shelves-item {
width: calc(50% - 32rpx);
margin-top: 32rpx;
margin-left: 16rpx;
margin-right: 16rpx;
float: left;
.shelves-img {
border-radius: 8px 8px 8px 8px;
width: 100%;
height: 312rpx;
}
.name {
font-weight: 800;
font-size: 16px;
margin-top: 12rpx;
}
}
}
}
</style>

View File

@ -35,7 +35,7 @@
this.dateTime = Y + '-' + M + '-' + D this.dateTime = Y + '-' + M + '-' + D
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
// //
this.$refs.datetimePicker.setFormatter(this.formatter) // this.$refs.datetimePicker.setFormatter(this.formatter)
// #endif // #endif
}, },
onLoad() { onLoad() {
@ -84,7 +84,7 @@
}, },
ToEnjoy(val){ ToEnjoy(val){
uni.navigateTo({ uni.navigateTo({
url:"/pages/famousArts/famousArts?id=" + val url:"/pagesC/famousArts/famousArts?id=" + val
}) })
}, },
}, },

View File

@ -23,7 +23,7 @@
</view> </view>
</view> </view>
<!-- tabs --> <!-- tabs -->
<u-tabs @click="clickTab" :scrollable="false" :list="list1" <!-- <u-tabs @click="clickTab" :scrollable="false" :list="list1"
:lineColor="`url(${lineBg}) 100% 100%`" :lineColor="`url(${lineBg}) 100% 100%`"
:activeStyle="{ :activeStyle="{
color: '#251B1D', color: '#251B1D',
@ -33,12 +33,12 @@
color: '#AFADB0 ', color: '#AFADB0 ',
transform: 'scale(1)' transform: 'scale(1)'
}" itemStyle=" height: 50px; "> }" itemStyle=" height: 50px; ">
</u-tabs> </u-tabs> -->
<!-- tabs ed --> <!-- tabs ed -->
</view> </view>
<view class="famous_bot" v-show="id=='1'"> <view class="famous_bot">
<u-empty v-if="achievement.length == 0" mode="data" icon="../../static/orderE.png" marginTop="120"> <u-empty v-if="achievement.length == 0 && honor.length == 0 && represe.length == 0" mode="data" icon="../../static/orderE.png" marginTop="120">
</u-empty> </u-empty>
<view class="famous_bot_itm" v-for="(v,i) in achievement" :key="i"> <view class="famous_bot_itm" v-for="(v,i) in achievement" :key="i">
<view class="ico"> <view class="ico">
@ -48,11 +48,6 @@
{{v}} {{v}}
</view> </view>
</view> </view>
</view>
<view class="famous_bot" v-show="id=='2'">
<u-empty v-if="honor.length == 0" mode="data" icon="../../static/orderE.png" marginTop="120">
</u-empty>
<view class="famous_bot_itm" v-for="(v,i) in honor" :key="i"> <view class="famous_bot_itm" v-for="(v,i) in honor" :key="i">
<view class="ico" style="padding-right: 8rpx;"> <view class="ico" style="padding-right: 8rpx;">
<image style="width: 32rpx; height: 32rpx; vertical-align: bottom;" <image style="width: 32rpx; height: 32rpx; vertical-align: bottom;"
@ -62,11 +57,6 @@
{{v}} {{v}}
</view> </view>
</view> </view>
</view>
<view class="famous_bot" v-show="id=='3'">
<u-empty v-if="represe.length == 0" mode="data" icon="../../static/orderE.png" marginTop="120">
</u-empty>
<view class="famous_bot_itm" style="display: block;" v-for="(v,i) in represe" :key="i"> <view class="famous_bot_itm" style="display: block;" v-for="(v,i) in represe" :key="i">
<view class="works" v-for="(a,b) in v.value" :key="b"> <view class="works" v-for="(a,b) in v.value" :key="b">
<image :src="a" mode=""></image> <image :src="a" mode=""></image>

View File

@ -127,7 +127,7 @@
<view class="bottm" @click="zhanKai"> <view class="bottm" @click="zhanKai">
<image src="../../static/DataSearch/zhanKai.png" mode=""></image> <image src="../../static/orderHall/addOrder.png" mode=""></image>
</view> </view>
<!-- 弹出框 加号的弹出框--> <!-- 弹出框 加号的弹出框-->

View File

@ -25,8 +25,8 @@
<view class="codeTitle">公众号链接/二维码</view> <view class="codeTitle">公众号链接/二维码</view>
<view class="codeImg"> <view class="codeImg">
<view class="codeEle"> <view class="codeEle">
<!-- <uqrcode :id="'uQRCode'+index" ref="uQRCode0" :size='QRsize' :text='item' /> --> <uqrcode :id="'uQRCode'+index" ref="uQRCode0" :size='QRsize' :text='item' />
<image src="../../static/icon12.jpg" mode="" class="code"></image> <!-- <image src="../../static/icon12.jpg" mode="" class="code"></image> -->
</view> </view>
<view class="remark"> <view class="remark">
识别二维码跳转至公众号 识别二维码跳转至公众号

View File

@ -20,7 +20,7 @@
label: '文艺之家' label: '文艺之家'
}, },
// { // {
// imgUrl: '../../static/moreFun/moreFun1.png', // imgUrl: '../../static/icon8.png',
// label: '' // label: ''
// }, // },
// { // {
@ -46,32 +46,32 @@
switch (id) { switch (id) {
case 0: case 0:
uni.navigateTo({ uni.navigateTo({
url: "/pages/literFamily/literFamily" url: "/pagesB/literFamily/literFamily"
}) })
break; break;
// case 1: // case 1:
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/mediaProp/mediaProp" // url: "/pagesC/mediaProp/mediaProp"
// }) // })
// break; // break;
// case 2: // case 2:
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/moreFun/noWeb" // url: "/pagesC/moreFun/noWeb"
// }) // })
// break; // break;
// case 3: // case 3:
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/moreFun/noWeb" // url: "/pagesC/moreFun/noWeb"
// }) // })
// break; // break;
// case 4: // case 4:
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/moreFun/noWeb" // url: "/pagesC/moreFun/noWeb"
// }) // })
// break; // break;
// case 5: // case 5:
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/moreFun/noWeb" // url: "/pagesC/moreFun/noWeb"
// }) // })
// break; // break;
} }

View File

@ -284,12 +284,12 @@
}, },
goOrderDet(id) { goOrderDet(id) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/OrderDetail/OrderDetail?id=${id}` url: `/pagesC/OrderDetail/OrderDetail?id=${id}`
}) })
}, },
toCart() { toCart() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/ShoppingCart/ShoppingCart' url: '/pagesC/ShoppingCart/ShoppingCart'
}) })
}, },
lower(){ lower(){
@ -383,8 +383,6 @@
padding: 0 30rpx; padding: 0 30rpx;
margin: 0 10rpx; margin: 0 10rpx;
float: left; float: left;
// background: url(../../static/shop/bg2.png) no-repeat;
// background-size:100% 100%;
.line{ .line{
width: calc(100% - 40rpx); width: calc(100% - 40rpx);
min-width: 36rpx; min-width: 36rpx;

View File

@ -5,10 +5,10 @@
export default { export default {
config: { config: {
// baseUrl: "http://192.168.0.57:8080/h5/api", //王锡 baseUrl: "http://10.0.0.61:8080/h5/api", //俞燕红-小程序不能配跨域
// baseUrl: "/pre", //俞燕红-跨域 // baseUrl: "/pre", //俞燕红-跨域
// baseUrl: "https://yxx.ydool.net/h5/api", // 小程序线上 // baseUrl: "https://yxx.ydool.net/h5/api", //线上
baseUrl: "/h5/api", //H5线上 // baseUrl: "/h5/api", //h5
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'
@ -84,7 +84,7 @@ export default {
}); });
setTimeout(() => { setTimeout(() => {
uni.navigateTo({ uni.navigateTo({
url: '../SelectId/SelectId' url: '/pagesC/Login/binding'
}) })
}, 1200) }, 1200)
} else { } else {
@ -104,7 +104,7 @@ export default {
}); });
setTimeout(() => { setTimeout(() => {
uni.navigateTo({ uni.navigateTo({
url: '../Login/Login' url: '/pagesC/Login/Login'
}) })
}, 1200) }, 1200)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 528 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 B

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 908 B

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 339 B

Some files were not shown because too many files have changed in this diff Show More