发布的发布须知对接
This commit is contained in:
parent
8349ab4440
commit
0b7f8d6f9e
@ -82,17 +82,6 @@
|
|||||||
<!-- 图片 -->
|
<!-- 图片 -->
|
||||||
<s-uploader v-model:url="state.formData.images" fileMediatype="image" limit="9" mode="grid"
|
<s-uploader v-model:url="state.formData.images" fileMediatype="image" limit="9" mode="grid"
|
||||||
:imageStyles="{ width: '168rpx', height: '168rpx' }"></s-uploader>
|
:imageStyles="{ width: '168rpx', height: '168rpx' }"></s-uploader>
|
||||||
<!-- <view class="shenfen row flex flex-column" style="margin-top: 42rpx;">
|
|
||||||
<u-upload :fileList="fileList1" @afterRead="afterRead" :previewFullImage="true"
|
|
||||||
@delete="deletePic" @oversize="oversize" name="1" multiple
|
|
||||||
:maxSize="1 * 1024 * 1024" :maxCount="5">
|
|
||||||
<view class="pic_view">
|
|
||||||
<image src="https://jiangxiaoxian.0rui.cn/fabuAddImg.png" mode="widthFix"
|
|
||||||
style="width: 44rpx;height: 44rpx;" />
|
|
||||||
<span class="texts">添加图片</span>
|
|
||||||
</view>
|
|
||||||
</u-upload>
|
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
<span class="line-row" style="margin: 30rpx 0;"></span>
|
<span class="line-row" style="margin: 30rpx 0;"></span>
|
||||||
|
|
||||||
@ -104,17 +93,11 @@
|
|||||||
:range="typeShowList">
|
:range="typeShowList">
|
||||||
<view class="form_right"
|
<view class="form_right"
|
||||||
style="width: 500rpx;text-align: right;;font-size: 26rpx;font-weight: 400;color: #848484;">
|
style="width: 500rpx;text-align: right;;font-size: 26rpx;font-weight: 400;color: #848484;">
|
||||||
{{form.type||'请选择项目类型'}}
|
{{form.typeName||'请选择项目类型'}}
|
||||||
<image style="width: 28rpx;height: 28rpx;margin-left: 10rpx;"
|
<image style="width: 28rpx;height: 28rpx;margin-left: 10rpx;"
|
||||||
src="https://jiangxiaoxian.0rui.cn/rightMore.png"></image>
|
src="https://jiangxiaoxian.0rui.cn/rightMore.png"></image>
|
||||||
</view>
|
</view>
|
||||||
</picker>
|
</picker>
|
||||||
<!-- <view class="row-right" style="width: 500rpx;" @click="showType = true">
|
|
||||||
<view v-if="form.area != '' " style="font-size: 28rpx;color: #3d3d3d">河南</view>
|
|
||||||
<view v-else style="font-size: 28rpx;color: #9C9C9C">请选择项目类型</view>
|
|
||||||
<image style="width: 28rpx;height: 28rpx;margin-left: 10rpx;"
|
|
||||||
src="https://jiangxiaoxian.0rui.cn/rightMore.png"></image>
|
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
<span class="line-row" style="margin: 30rpx 0;"></span>
|
<span class="line-row" style="margin: 30rpx 0;"></span>
|
||||||
|
|
||||||
@ -150,8 +133,6 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- v-if="status == -1 || status == 2" -->
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="height: 200rpx;width: 100%;color: #f7f7f7;"></view>
|
<view style="height: 200rpx;width: 100%;color: #f7f7f7;"></view>
|
||||||
@ -177,28 +158,27 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 声明 -->
|
<!-- 须知 -->
|
||||||
<su-popup @touchmove.native.stop.prevent :closeable="false" :show="show" :round="10" mode="center"
|
<su-popup @touchmove.native.stop.prevent :closeable="false" :show="show" :round="10" type="center"
|
||||||
@close="close" @open="open" :custom-style="popupStyle" :safeAreaInsetBottom="false"
|
@close="close" @open="open" :safeAreaInsetBottom="false" :closeOnClickOverlay="false">
|
||||||
:closeOnClickOverlay="false">
|
<view style="width: 620rpx;height: 984rpx;padding: 30rpx;text-align: center;">
|
||||||
<span style="font-size: 40rpx;font-weight: 800;height: 120rpx;">《责任承诺确认书》</span>
|
<view style="font-size: 40rpx;font-weight: 800;height: 120rpx;margin: 0 auto;">《责任承诺确认书》</view>
|
||||||
<scroll-view ref="scrollView" :scroll-top="scrollTop" :show-scrollbar='true' @scrolltolower="handleScroll"
|
<scroll-view ref="scrollView" :scroll-top="scrollTop" :show-scrollbar='true' @scrolltolower="handleScroll"
|
||||||
scroll-y="true" style="height: 800rpx;">
|
scroll-y="true" style="height: 900rpx;">
|
||||||
<view class="popup flex align-items flex-column">
|
<view class=" flex align-items flex-column">
|
||||||
<rich-text style="text-align: justify;" :nodes="Negotiate"></rich-text>
|
<rich-text style="text-align: justify;" :nodes="Negotiate"></rich-text>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<!-- <view class="popup-footer">
|
|
||||||
<span class="zhixiao" v-if="agreeShow == false">我同意</span>
|
</view>
|
||||||
<span class="zhixiao shows_zhidao" v-if="agreeShow == true" @click="change">我同意</span>
|
<view style="width: 96%;display: flex;justify-content: space-between;align-items: center;margin-bottom: 30rpx;padding: 0 14rpx;">
|
||||||
</view> -->
|
|
||||||
<view style="gap: 20rpx;width: 100%;display: flex;justify-content: space-between;align-items: center;">
|
|
||||||
<view class="btn_4" @click="show = false">取消</view>
|
<view class="btn_4" @click="show = false">取消</view>
|
||||||
<view class="btn_3" v-if="agreeShow == false">我同意</view>
|
<view class="btn_3" v-if="agreeShow == false">我同意</view>
|
||||||
<view class="btn_2" v-if="agreeShow == true" @click="change()">我同意</view>
|
<view class="btn_2" v-if="agreeShow == true" @click="change()">我同意</view>
|
||||||
</view>
|
</view>
|
||||||
</su-popup>
|
</su-popup>
|
||||||
|
|
||||||
|
|
||||||
<!-- 身份证是否认证 -->
|
<!-- 身份证是否认证 -->
|
||||||
<su-popup :show="cardShow == true" type="center" round="10" :isMaskClick="false">
|
<su-popup :show="cardShow == true" type="center" round="10" :isMaskClick="false">
|
||||||
<view class="popupContacted">
|
<view class="popupContacted">
|
||||||
@ -214,36 +194,12 @@
|
|||||||
</view>
|
</view>
|
||||||
</su-popup>
|
</su-popup>
|
||||||
|
|
||||||
<!-- <su-popup @touchmove.native.stop.prevent :closeable="false" :show="cardShow" :round="10" mode="center"
|
|
||||||
@close="cardShow = false" :safeAreaInsetBottom="false" :custom-style="{
|
|
||||||
width: '600rpx',
|
|
||||||
padding: '24rpx 24rpx 20rpx 24rpx',
|
|
||||||
margin: '0 auto',
|
|
||||||
display: 'flex',
|
|
||||||
justifyContent: 'start',
|
|
||||||
alignItems: 'center',
|
|
||||||
flexColumn: 'column'
|
|
||||||
}" :closeOnClickOverlay="false">
|
|
||||||
<view style="text-align: center;margin-top: 30rpx;">
|
|
||||||
<image src="/static/fabu/renzheng.png" style="width: 140rpx;height: 140rpx;"></image>
|
|
||||||
</view>
|
|
||||||
<view style="font-size: 36rpx;color: #3D3D3D;margin-top: 30rpx;font-weight: 600;">完成认证,即可发布活动</view>
|
|
||||||
<view
|
|
||||||
style="padding: 40rpx 20rpx 10rpx 20rpx;;font-weight: 400;color: #3D3D3D;text-align: center;line-height: 44rpx;font-size: 28rpx;">
|
|
||||||
只差最后一步!完成身份认证,即可成为<br>【搭+】认证活动官,开始分享您的精彩活动。
|
|
||||||
</view>
|
|
||||||
<view
|
|
||||||
style="gap: 20px;width: 100%;display: flex;justify-content: space-between;align-items: center;padding-bottom: 30rpx;">
|
|
||||||
<view class="btn_4" @click="cardShow = false">取消</view>
|
|
||||||
<view class="btn_2" @click="openUrl('/packageB/card/index')">我同意</view>
|
|
||||||
</view>
|
|
||||||
</su-popup>-->
|
|
||||||
|
|
||||||
<!-- 省市区弹窗 -->
|
<!-- 省市区弹窗 -->
|
||||||
<su-regionCity-picker :show="state.showRegion" @cancel="state.showRegion = false" @confirm="onRegionConfirm">
|
<su-regionCity-picker :show="state.showRegion" @cancel="state.showRegion = false" @confirm="onRegionConfirm">
|
||||||
</su-regionCity-picker>
|
</su-regionCity-picker>
|
||||||
|
|
||||||
|
|
||||||
<!-- 标签 -->
|
<!-- 标签 -->
|
||||||
<su-popup :show="showPopbq" mode="bottom" round="20"
|
<su-popup :show="showPopbq" mode="bottom" round="20"
|
||||||
:customStyle="{ 'width': '750rpx', 'height': '1040rpx', 'zIndex': '999' }" :closeable="false"
|
:customStyle="{ 'width': '750rpx', 'height': '1040rpx', 'zIndex': '999' }" :closeable="false"
|
||||||
@ -351,6 +307,7 @@
|
|||||||
content: '',
|
content: '',
|
||||||
address_detail: '',
|
address_detail: '',
|
||||||
type: '',
|
type: '',
|
||||||
|
typeName: '',
|
||||||
images: '',
|
images: '',
|
||||||
province: '',
|
province: '',
|
||||||
city: '',
|
city: '',
|
||||||
@ -381,9 +338,11 @@
|
|||||||
const status = ref(0)
|
const status = ref(0)
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
|
getFbKnow();
|
||||||
getTagList();
|
getTagList();
|
||||||
getTypeList();
|
getTypeList();
|
||||||
})
|
})
|
||||||
|
//身份认证
|
||||||
function getAuthentied() {
|
function getAuthentied() {
|
||||||
sheep.$api.rent.isAuthentied().then((res) => {
|
sheep.$api.rent.isAuthentied().then((res) => {
|
||||||
if(res.code == 1) {
|
if(res.code == 1) {
|
||||||
@ -395,6 +354,16 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//发布须知
|
||||||
|
function getFbKnow() {
|
||||||
|
sheep.$api.rent.fabuAgree().then((res) => {
|
||||||
|
if(res.code == 1) {
|
||||||
|
console.log('发布须知',res.data);
|
||||||
|
Negotiate.value = res.data.notice_publication_agreement
|
||||||
|
console.log('发布须知——Negotiate:',Negotiate.value);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
const toPage = () => {
|
const toPage = () => {
|
||||||
if (isLogin.value == true) {
|
if (isLogin.value == true) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -434,10 +403,15 @@
|
|||||||
console.log('tagList', tagList.value, tagShowList.value);
|
console.log('tagList', tagList.value, tagShowList.value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const typeList = ref({})
|
||||||
|
const typeShowList = ref([])
|
||||||
async function getTypeList() {
|
async function getTypeList() {
|
||||||
const res = await sheep.$api.rent.listType({});
|
const res = await sheep.$api.rent.listType({});
|
||||||
if (res.code == 1) {
|
if (res.code == 1) {
|
||||||
typeList.value = res.data
|
typeList.value = res.data
|
||||||
|
// typeShowList.value = res.data
|
||||||
|
|
||||||
typeShowList.value = Object.values(typeList.value)
|
typeShowList.value = Object.values(typeList.value)
|
||||||
console.log('typeList', typeList.value, typeShowList.value);
|
console.log('typeList', typeList.value, typeShowList.value);
|
||||||
}
|
}
|
||||||
@ -446,9 +420,6 @@
|
|||||||
|
|
||||||
//项目类型
|
//项目类型
|
||||||
const showType = ref(false)
|
const showType = ref(false)
|
||||||
const typeList = ref([])
|
|
||||||
const typeShowList = ref([])
|
|
||||||
const typeName = ref('')
|
|
||||||
const typeIndex = ref(0); //已选择项目类型
|
const typeIndex = ref(0); //已选择项目类型
|
||||||
function closeType() {
|
function closeType() {
|
||||||
console.log('取消type', typeIndex.value);
|
console.log('取消type', typeIndex.value);
|
||||||
@ -458,7 +429,12 @@
|
|||||||
function selectType(e) {
|
function selectType(e) {
|
||||||
console.log('选择项目类型', e);
|
console.log('选择项目类型', e);
|
||||||
typeIndex.value = e.detail.value;
|
typeIndex.value = e.detail.value;
|
||||||
form.value.type = typeShowList.value[typeIndex.value];
|
console.log('选择项目类型--typeIndex', typeIndex.value);
|
||||||
|
form.value.typeName = typeShowList.value[typeIndex.value]
|
||||||
|
form.value.type = Object.keys(typeList.value).find(
|
||||||
|
key => typeList.value[key] === form.value.typeName
|
||||||
|
);
|
||||||
|
console.log('type',form.value.type);
|
||||||
showType.value = false;
|
showType.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -626,6 +602,7 @@
|
|||||||
if(res.code == 1){
|
if(res.code == 1){
|
||||||
console.log('发布成功');
|
console.log('发布成功');
|
||||||
agreeAdd.value = false;
|
agreeAdd.value = false;
|
||||||
|
selectTagslist.value = []
|
||||||
form.value = {
|
form.value = {
|
||||||
title: '',
|
title: '',
|
||||||
area: '',
|
area: '',
|
||||||
@ -642,6 +619,10 @@
|
|||||||
cateName: '',
|
cateName: '',
|
||||||
imageList: [],
|
imageList: [],
|
||||||
}
|
}
|
||||||
|
state.formData.images = []
|
||||||
|
uni.switchTab({
|
||||||
|
url:'/pages/index/user'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1450,14 +1431,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn_2 {
|
.btn_2 {
|
||||||
width: 50%;
|
width: 45%;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
background: #323232;
|
background: #fcc74e;
|
||||||
border-radius: 198rpx 198rpx 198rpx 198rpx;
|
border-radius: 198rpx 198rpx 198rpx 198rpx;
|
||||||
font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
|
font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #BBFC5B;
|
color: #333333;
|
||||||
line-height: 80rpx;
|
line-height: 80rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 40rpx;
|
margin-top: 40rpx;
|
||||||
@ -1465,7 +1446,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn_3 {
|
.btn_3 {
|
||||||
width: 50%;
|
width: 45%;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
background: #E2E2E2;
|
background: #E2E2E2;
|
||||||
border-radius: 198rpx 198rpx 198rpx 198rpx;
|
border-radius: 198rpx 198rpx 198rpx 198rpx;
|
||||||
|
@ -59,11 +59,10 @@ export default {
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
}),
|
}),
|
||||||
//发布须知
|
//发布须知
|
||||||
fabuAgree: (params) =>
|
fabuAgree: () =>
|
||||||
request({
|
request({
|
||||||
url: 'meal.information/agreement',
|
url: 'meal.information/agreement',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
params,
|
|
||||||
}),
|
}),
|
||||||
//发布身份认证查询
|
//发布身份认证查询
|
||||||
isAuthentied: () =>
|
isAuthentied: () =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user