Compare commits

...

3 Commits

  1. 4
      App.vue
  2. 2
      config/index.js
  3. 149
      manifest.json
  4. 23
      pages.json
  5. 111
      pages/demandHall/business/index.vue
  6. 8
      pages/demandHall/demoInvestment/index.vue
  7. 3
      pages/demandHall/index.vue
  8. 152
      pages/demandHall/projectDetail/index.vue
  9. 1023
      pages/demandHall/supplyHall/index.vue
  10. 6
      pages/home/index.vue
  11. 4
      pages/home/index2.vue
  12. 378
      pages/information/index.vue
  13. 2
      pages/life/index.vue
  14. 678
      pages/release/index.vue
  15. 2
      pages/shop/GoodsClass/index.vue
  16. 4
      pages/shop/GoodsCon/index.vue
  17. 2
      pages/user/index.vue

4
App.vue

@ -7,7 +7,7 @@ export default {
var that = this; // var that = this; //
this.setMenuHeight(); this.setMenuHeight();
this.autoUpdate(); this.autoUpdate();
uni.hideTabBar() // uni.hideTabBar()
}, },
globalData: { globalData: {
baseURL: VUE_APP_API_URL+ '/', baseURL: VUE_APP_API_URL+ '/',
@ -27,7 +27,7 @@ export default {
onShow(e) { onShow(e) {
this.globalData.scene = e.scene this.globalData.scene = e.scene
//tabbar //tabbar
uni.hideTabBar(); // uni.hideTabBar();
var query = {}; var query = {};
if (e.query.q) { if (e.query.q) {
//storage //storage

2
config/index.js

@ -1,7 +1,7 @@
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api' // export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'
// export const VUE_APP_API_URL = 'http://192.168.0.112:8092/api' // export const VUE_APP_API_URL = 'http://192.168.0.112:8092/api'
// export const VUE_APP_API_URL = 'http://192.168.0.111:8092/api' // export const VUE_APP_API_URL = 'http://10.11.32.103:8092/api'
export const VUE_APP_API_URL = 'https://cloud.api.cyjyyjy.com/api' export const VUE_APP_API_URL = 'https://cloud.api.cyjyyjy.com/api'
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api' // export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api'

149
manifest.json

@ -1,73 +1,78 @@
{ {
"name": "zhaoshangMiniApp", "name" : "zhaoshangMiniApp",
"appid": "", "appid" : "",
"description": "", "description" : "",
"versionName": "1.0.0", "versionName" : "1.0.0",
"versionCode": "100", "versionCode" : "100",
"transformPx": false, "transformPx" : false,
"app-plus": { "app-plus" : {
"usingComponents": true, "usingComponents" : true,
"nvueCompiler": "uni-app", "nvueCompiler" : "uni-app",
"compilerVersion": 3, "compilerVersion" : 3,
"splashscreen": { "splashscreen" : {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender" : true,
"waiting": true, "waiting" : true,
"autoclose": true, "autoclose" : true,
"delay": 0 "delay" : 0
}, },
"modules": {}, "modules" : {},
"distribute": { "distribute" : {
"android": { "android" : {
"permissions": [ "permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>", "<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>", "<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>", "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>", "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
] ]
}, },
"ios": {}, "ios" : {},
"sdkConfigs": {} "sdkConfigs" : {}
} }
}, },
"quickapp": {}, "quickapp" : {},
"mp-weixin": { "mp-weixin" : {
"appid": "wx5348e39dcbbefe1e", "appid" : "wx5348e39dcbbefe1e",
"setting": { "setting" : {
"urlCheck": false "urlCheck" : false
}, },
"usingComponents": true, "usingComponents" : true,
"permission": { "permission" : {
"scope.userLocation": { "scope.userLocation" : {
"desc": "你的位置信息将用于小程序位置接口的效果展示" "desc" : "你的位置信息将用于小程序位置接口的效果展示"
} }
}, },
"plugins": {} "plugins" : {}
}, },
"mp-alipay": { "mp-alipay" : {
"usingComponents": true "usingComponents" : true
}, },
"mp-baidu": { "mp-baidu" : {
"usingComponents": true "usingComponents" : true
}, },
"mp-toutiao": { "mp-toutiao" : {
"usingComponents": true "usingComponents" : true
} },
} "h5" : {
"router" : {
"mode" : "history"
}
}
}

23
pages.json

@ -478,6 +478,12 @@
"style": { "style": {
"navigationBarTitleText": "退货列表" "navigationBarTitleText": "退货列表"
} }
},
{
"path": "pages/information/index",
"style": {
"navigationBarTitleText": "资讯广场"
}
} }
], ],
"tabBar": { "tabBar": {
@ -491,18 +497,31 @@
"iconPath": "/static/tabbarComponent/icon/home.png", "iconPath": "/static/tabbarComponent/icon/home.png",
"selectedIconPath": "/static/tabbarComponent/icon/home-a.png" "selectedIconPath": "/static/tabbarComponent/icon/home-a.png"
}, },
// {
// "pagePath": "pages/demandHall/index",
// "text": "供需大厅",
// "iconPath": "/static/tabbarComponent/icon/tab2.png",
// "selectedIconPath": "/static/tabbarComponent/icon/tab2-a.png"
// },
{ {
"pagePath": "pages/demandHall/index", "pagePath": "pages/demandHall/business/index",
"text": "供需大厅", "text": "商业",
"iconPath": "/static/tabbarComponent/icon/tab2.png", "iconPath": "/static/tabbarComponent/icon/tab2.png",
"selectedIconPath": "/static/tabbarComponent/icon/tab2-a.png" "selectedIconPath": "/static/tabbarComponent/icon/tab2-a.png"
}, },
{ {
"pagePath": "pages/life/index", "pagePath": "pages/life/index",
"text": "生活", "text": "生活",
"iconPath": "/static/tabbarComponent/icon/tab3.png", "iconPath": "/static/tabbarComponent/icon/tab3.png",
"selectedIconPath": "/static/tabbarComponent/icon/tab3-a.png" "selectedIconPath": "/static/tabbarComponent/icon/tab3-a.png"
}, },
{
"pagePath": "pages/information/index",
"text": "资讯",
"iconPath": "/static/tabbarComponent/icon/tab3.png",
"selectedIconPath": "/static/tabbarComponent/icon/tab3-a.png"
},
{ {
"pagePath": "pages/user/index", "pagePath": "pages/user/index",
"text": "我的", "text": "我的",

111
pages/demandHall/business/index.vue

@ -9,11 +9,11 @@
<!-- 供需大厅 企业服务 项目投融 --> <!-- 供需大厅 企业服务 项目投融 -->
<view class="acea-row row-around pa40"> <view class="acea-row row-around pa40">
<view class="img1"> <view class="img1">
<image src="../../../static/images/business-img1.png"></image> <image src="../../../static/images/business-img1.png" @tap="toSupplyHall"></image>
</view> </view>
<view class="img2 acea-row row-column-between"> <view class="img2 acea-row row-column-between">
<image src="../../../static/images/business-img2.png"></image> <image src="../../../static/images/business-img2.png" @tap="toEnterpriseServer"></image>
<image src="../../../static/images/business-img3.png"></image> <image src="../../../static/images/business-img3.png" @tap="toDemoInvestment"></image>
</view> </view>
</view> </view>
@ -60,7 +60,7 @@
<view class="service-box"> <view class="service-box">
<view class="title-con acea-row row-middle"> <view class="title-con acea-row row-middle">
<image src="../../../static/images/business-title2.png" class="title-img"></image> <image src="../../../static/images/business-title2.png" class="title-img"></image>
<image src="../../../static/images/fabu-close.png" class="toadd"></image> <image src="../../../static/images/fabu-close.png" class="toadd" @tap="toAuthentication"></image>
</view> </view>
<view class="service-top acea-row row-between"> <view class="service-top acea-row row-between">
<view class="service-nub-left acea-row row-column-between"> <view class="service-nub-left acea-row row-column-between">
@ -99,32 +99,67 @@
<view class="tolearn acea-row row-center-wrapper">装修服务</view> <view class="tolearn acea-row row-center-wrapper">装修服务</view>
</view> </view>
</view> </view>
<!-- 优质项目 --> <!-- 优质项目 -->
<view class="project-box"> <view class="project-box">
<image src="../../../static/images/business-title3.png" class="title-img"></image> <image src="../../../static/images/business-title3.png" class="title-img"></image>
<view class="project-list acea-row" v-for="(item,index) in 3"> <view class="project-list acea-row" v-for="(item,index) in 3">
<image src="../../../static/images/business-img1.png" mode="" class="project-img"></image> <image src="../../../static/images/business-img1.png" mode="" class="project-img"></image>
<view class="right-con acea-row row-column-between"> <view class="right-con acea-row row-column-between">
<view class="acea-row row-middle title"> <view class="acea-row row-middle title">
<image src="../../../static/images/new-icon.png" mode="" class="new-icon"> <image src="../../../static/images/new-icon.png" mode="" class="new-icon">
</image> </image>
<view class="title-h">富硒产品</view> <view class="title-h">富硒产品</view>
</view> </view>
<view class="title-s line1">农业项目国家扶贫乡村振兴国家红利</view> <view class="title-s line1">农业项目国家扶贫乡村振兴国家红利</view>
<view class="category-box acea-row"> <view class="category-box acea-row">
<view class="tag-item-y tag">持续盈利</view> <view class="tag-item-y tag">持续盈利</view>
<view class="tag-item-b tag">财务规范</view> <view class="tag-item-b tag">财务规范</view>
<view class="tag-item-p tag">零负债</view> <view class="tag-item-p tag">零负债</view>
</view>
</view> </view>
</view> </view>
</view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default {
data() {
return {
};
},
methods:{
//
toSupplyHall(e){
// let id = e.currentTarget.dataset.id;
uni.navigateTo({
url:"/pages/demandHall/supplyHall/index"
})
},
//
toEnterpriseServer(e){
uni.navigateTo({
url:"/pages/demandHall/enterpriseServer/index"
})
},
//
toDemoInvestment(e){
uni.navigateTo({
url:"/pages/demandHall/demoInvestment/index"
})
},
//
toAuthentication(e){
uni.navigateTo({
url:"/pages/release/index2"
})
}
},
}
</script> </script>
<style lang="less"> <style lang="less">
@ -224,6 +259,7 @@
.company-box { .company-box {
height: 380rpx; height: 380rpx;
.update-icon { .update-icon {
width: 118rpx; width: 118rpx;
height: 48rpx; height: 48rpx;
@ -248,6 +284,7 @@
height: 330rpx; height: 330rpx;
white-space: nowrap; white-space: nowrap;
margin-left: 30rpx; margin-left: 30rpx;
.company-list { .company-list {
width: 408rpx; width: 408rpx;
height: 304rpx; height: 304rpx;
@ -257,6 +294,7 @@
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
display: inline-block; display: inline-block;
margin: 15rpx 30rpx 0 10rpx; margin: 15rpx 30rpx 0 10rpx;
.title { .title {
font-size: 28rpx; font-size: 28rpx;
font-weight: 600; font-weight: 600;
@ -320,16 +358,19 @@
.service-box { .service-box {
width: 100%; width: 100%;
height: 496rpx; height: 496rpx;
.toadd { .toadd {
width: 88rpx; width: 88rpx;
height: 88rpx; height: 88rpx;
margin-left: auto; margin-left: auto;
transform: rotate(45deg); transform: rotate(45deg);
} }
.service-top { .service-top {
padding: 0 40rpx; padding: 0 40rpx;
height: 272rpx; height: 272rpx;
margin: 8rpx 0 16rpx 0; margin: 8rpx 0 16rpx 0;
.service-nub-left { .service-nub-left {
width: 344rpx; width: 344rpx;
height: 272rpx; height: 272rpx;
@ -337,13 +378,16 @@
border-radius: 12rpx; border-radius: 12rpx;
padding: 14rpx 24rpx; padding: 14rpx 24rpx;
} }
.service-nub-left image { .service-nub-left image {
width: 288rpx; width: 288rpx;
height: 162rpx; height: 162rpx;
} }
.service-nub-right { .service-nub-right {
width: 310rpx; width: 310rpx;
height: 272rpx; height: 272rpx;
.module-nub { .module-nub {
width: 310rpx; width: 310rpx;
height: 128rpx; height: 128rpx;
@ -353,6 +397,7 @@
} }
} }
} }
.service-bottom { .service-bottom {
padding: 0 40rpx; padding: 0 40rpx;
height: 112rpx; height: 112rpx;
@ -368,6 +413,7 @@
} }
} }
} }
.module-box { .module-box {
width: 184rpx; width: 184rpx;
height: 112rpx; height: 112rpx;
@ -402,48 +448,56 @@
.module-nub .tips { .module-nub .tips {
color: #FF7636; color: #FF7636;
} }
.service-top .module-box { .service-top .module-box {
width: 144rpx; width: 144rpx;
height: 128rpx; height: 128rpx;
background: rgba(245, 249, 255, 0.82); background: rgba(245, 249, 255, 0.82);
border-radius: 12rpx; border-radius: 12rpx;
} }
// //
.project-box{ .project-box {
width: 100%; width: 100%;
height: 610rpx; height: 610rpx;
.project-list{
.project-list {
width: 100%; width: 100%;
height: 180rpx; height: 180rpx;
padding: 26rpx 40rpx; padding: 26rpx 40rpx;
border-bottom: 1rpx solid #DCDCDC; border-bottom: 1rpx solid #DCDCDC;
.project-img{
.project-img {
width: 128rpx; width: 128rpx;
height: 128rpx; height: 128rpx;
margin-right: 32rpx; margin-right: 32rpx;
} }
.right-con { .right-con {
.title { .title {
font-weight: 800; font-weight: 800;
height: 35rpx; height: 35rpx;
line-height: 35rpx; line-height: 35rpx;
.new-icon { .new-icon {
width: 48rpx; width: 48rpx;
height: 24rpx; height: 24rpx;
margin-right: 8rpx; margin-right: 8rpx;
.title-h { .title-h {
color: #1D1D1D; color: #1D1D1D;
} }
} }
} }
.title-s { .title-s {
width: 450rpx; width: 450rpx;
height: 34rpx; height: 34rpx;
font-size: 24rpx; font-size: 24rpx;
color: #707070; color: #707070;
} }
.category-box { .category-box {
.tag { .tag {
width: 112rpx; width: 112rpx;
@ -454,14 +508,17 @@
margin-right: 16rpx; margin-right: 16rpx;
text-align: center; text-align: center;
} }
.tag-item-b { .tag-item-b {
border: 1rpx solid #3A9EFA; border: 1rpx solid #3A9EFA;
color: #3A9EFA; color: #3A9EFA;
} }
.tag-item-y { .tag-item-y {
border: 1px solid #FFAA00; border: 1px solid #FFAA00;
color: #FFAA00; color: #FFAA00;
} }
.tag-item-p { .tag-item-p {
color: #FC9367; color: #FC9367;
border: 1px solid #FC9367; border: 1px solid #FC9367;
@ -470,8 +527,8 @@
} }
} }
} }
.project-box .title-img{
.project-box .title-img {
margin: 35rpx 0 -15rpx 40rpx; margin: 35rpx 0 -15rpx 40rpx;
} }
</style> </style>

8
pages/demandHall/demoInvestment/index.vue

@ -21,7 +21,7 @@
<view class="modular-box"> <view class="modular-box">
<!-- 全部项目 --> <!-- 全部项目 -->
<view class="project-box" v-if="active == 1"> <view class="project-box" v-if="active == 1">
<view class="project-list" v-for="(item,index) in 2"> <view class="project-list" v-for="(item,index) in 2" @tap="toProjectDetail">
<view class="project-top acea-row row-left"> <view class="project-top acea-row row-left">
<image src="../../../static/images/home/menu6.png" class="project-img"></image> <image src="../../../static/images/home/menu6.png" class="project-img"></image>
<view class="right-con acea-row row-column-between"> <view class="right-con acea-row row-column-between">
@ -210,6 +210,12 @@
choseCagetory: '', choseCagetory: '',
}); });
}, },
toProjectDetail(e){
uni.navigateTo({
url:"/pages/demandHall/projectDetail/index"
})
}
} }
} }
</script> </script>

3
pages/demandHall/index.vue

@ -157,7 +157,7 @@
</view> </view>
</view> </view>
</view> </view>
<tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> <!-- <tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> -->
</view> </view>
</template> </template>
@ -234,7 +234,6 @@
loading: true, loading: true,
pageNumber: 0, pageNumber: 0,
}); });
this.getPageData(); this.getPageData();
}, },
methods: { methods: {

152
pages/demandHall/projectDetail/index.vue

@ -48,7 +48,7 @@
<image src="../../../static/images/update-icon.png" mode=""></image>换一批 <image src="../../../static/images/update-icon.png" mode=""></image>换一批
</view> </view>
</view> </view>
<scroll-view class="scroll-view_H acea-row" scroll-x="true" > <scroll-view class="scroll-view_H acea-row" scroll-x="true">
<view class="recommend-list acea-row" v-for="(item,index) in 3"> <view class="recommend-list acea-row" v-for="(item,index) in 3">
<image src="../../../static/images/business-img1.png" mode=""></image> <image src="../../../static/images/business-img1.png" mode=""></image>
<view class="recommend-bottom acea-row row-column-between"> <view class="recommend-bottom acea-row row-column-between">
@ -62,7 +62,7 @@
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<view class="footer"> <view class="footer">
<view class="toContact">联系项目方</view> <view class="toContact">联系项目方</view>
@ -129,33 +129,35 @@
height: 128rpx; height: 128rpx;
margin-left: auto; margin-left: auto;
} }
} }
.category-box {
.tag {
width: 112rpx;
height: 36rpx;
border-radius: 4rpx;
font-size: 20rpx;
margin-right: 8rpx;
text-align: center;
}
.tag-item-b { .category-box {
border: 1rpx solid #3A9EFA; .tag {
color: #3A9EFA; width: 112rpx;
} height: 36rpx;
border-radius: 4rpx;
font-size: 20rpx;
margin-right: 5rpx;
text-align: center;
}
.tag-item-y { .tag-item-b {
border: 1px solid #FFAA00; border: 1rpx solid #3A9EFA;
color: #FFAA00; color: #3A9EFA;
} }
.tag-item-p { .tag-item-y {
color: #FC9367; border: 1px solid #FFAA00;
border: 1px solid #FC9367; color: #FFAA00;
} }
.tag-item-p {
color: #FC9367;
border: 1px solid #FC9367;
} }
}
.region { .region {
width: 670rpx; width: 670rpx;
height: 112rpx; height: 112rpx;
@ -216,40 +218,46 @@
height: 36rpx; height: 36rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
.mask-box{
width: 750rpx; .mask-box {
height: 384rpx; width: 750rpx;
background: #fff; height: 384rpx;
box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.01); background: #fff;
filter: blur(6rpx); box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.01);
position: fixed; filter: blur(6rpx);
top: 390rpx; position: fixed;
} top: 390rpx;
.mask-con{ }
width: 484rpx;
height: 136rpx; .mask-con {
z-index: 9999; width: 484rpx;
} height: 136rpx;
.con{ z-index: 9999;
font-size: 36rpx; }
font-weight: 600;
color: #FF5100; .con {
margin-bottom: 20rpx; font-size: 36rpx;
} font-weight: 600;
.authentication-btn{ color: #FF5100;
width: 148rpx; margin-bottom: 20rpx;
height: 52rpx; }
background: linear-gradient(315deg, #FF6D31 0%, #FFC2AA 100%);
border-radius: 12rpx; .authentication-btn {
font-size: 24rpx; width: 148rpx;
font-weight: 600; height: 52rpx;
line-height: 52rpx; background: linear-gradient(315deg, #FF6D31 0%, #FFC2AA 100%);
color: #FFFFFF; border-radius: 12rpx;
text-align: center; font-size: 24rpx;
} font-weight: 600;
.recommend-box .title{ line-height: 52rpx;
color: #FFFFFF;
text-align: center;
}
.recommend-box .title {
margin-left: 32rpx; margin-left: 32rpx;
} }
.recommend-box { .recommend-box {
width: 750rpx; width: 750rpx;
height: 528rpx; height: 528rpx;
@ -258,7 +266,7 @@
// padding: 24rpx 0 0 32rpx; // padding: 24rpx 0 0 32rpx;
padding: 24rpx 0 0 0rpx; padding: 24rpx 0 0 0rpx;
} }
.update-box { .update-box {
width: 670rpx; width: 670rpx;
height: 48rpx; height: 48rpx;
@ -267,29 +275,34 @@
margin-bottom: 26rpx; margin-bottom: 26rpx;
margin-left: 32rpx; margin-left: 32rpx;
} }
.update-icon{
.update-icon {
width: 118rpx; width: 118rpx;
height: 48rpx; height: 48rpx;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16); box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16);
border-radius: 24rpx; border-radius: 24rpx;
font-size: 20rpx; font-size: 20rpx;
line-height: 26rpx;color: #666666; line-height: 26rpx;
color: #666666;
margin-left: auto; margin-left: auto;
} }
.update-icon image{
.update-icon image {
width: 26rpx; width: 26rpx;
height: 26rpx; height: 26rpx;
background: rgba(0, 0, 0, 0); background: rgba(0, 0, 0, 0);
margin-right: 10rpx; margin-right: 10rpx;
} }
.scroll-view_H{
.scroll-view_H {
width: 100%; width: 100%;
height: 345rpx; height: 345rpx;
white-space: nowrap; white-space: nowrap;
padding-left: 22rpx; padding-left: 22rpx;
} }
.recommend-list{
.recommend-list {
width: 392rpx; width: 392rpx;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.16); box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.16);
@ -299,29 +312,34 @@
display: inline-block; display: inline-block;
margin: 0 22rpx 0 10rpx; margin: 0 22rpx 0 10rpx;
} }
.recommend-list image{
.recommend-list image {
width: 392rpx; width: 392rpx;
height: 194rpx; height: 194rpx;
border-radius: 12rpx 12rpx 0 0; border-radius: 12rpx 12rpx 0 0;
} }
.recommend-bottom{
.recommend-bottom {
height: 130rpx; height: 130rpx;
padding: 0 16rpx 15rpx 24rpx; padding: 0 16rpx 15rpx 24rpx;
} }
.title-item{
.title-item {
height: 30rpx; height: 30rpx;
line-height: 30rpx; line-height: 30rpx;
font-size: 28rpx; font-size: 28rpx;
font-weight: 600; font-weight: 600;
color: #1D1D1D; color: #1D1D1D;
} }
.footer{
.footer {
width: 100%; width: 100%;
height: 132rpx; height: 132rpx;
background: #FFFFFF; background: #FFFFFF;
padding: 32rpx 32rpx 0 0; padding: 32rpx 32rpx 0 0;
} }
.toContact{
.toContact {
width: 223rpx; width: 223rpx;
height: 76rpx; height: 76rpx;
line-height: 76rpx; line-height: 76rpx;

1023
pages/demandHall/supplyHall/index.vue

File diff suppressed because it is too large Load Diff

6
pages/home/index.vue

@ -136,7 +136,7 @@
</u-waterfall> </u-waterfall>
<!-- <u-loadmore bg-color="rgb(240, 240, 240)" :status="loadStatus" @loadmore="addRandomData"></u-loadmore> --> <!-- <u-loadmore bg-color="rgb(240, 240, 240)" :status="loadStatus" @loadmore="addRandomData"></u-loadmore> -->
</view> </view>
<tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> <!-- <tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> -->
</view> </view>
</template> </template>
<script> <script>
@ -204,12 +204,12 @@ export default {
onReady:function(){ onReady:function(){
const that = this; const that = this;
that.$refs.skeleton.attachedAction(); // that.$refs.skeleton.attachedAction();
that.$refs.skeleton.readyAction(); that.$refs.skeleton.readyAction();
}, },
onLoad() { onLoad() {
uni.hideTabBar() // uni.hideTabBar()
}, },
mounted: function() { mounted: function() {
this.getIndexData() this.getIndexData()

4
pages/home/index2.vue

@ -152,7 +152,7 @@
<text>更多内容去供需大厅</text> <text>更多内容去供需大厅</text>
<image src="/static/images/home/arrow-r.png"></image> <image src="/static/images/home/arrow-r.png"></image>
</view> </view>
<tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> <!-- <tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> -->
</view> </view>
</template> </template>
@ -231,7 +231,7 @@ export default {
} }
}, },
onLoad() { onLoad() {
uni.hideTabBar(); // uni.hideTabBar();
// app.globalData.editTabbar(); // app.globalData.editTabbar();
this.pagePath = '/pages/home/index' this.pagePath = '/pages/home/index'
this.getCagetoryList(); this.getCagetoryList();

378
pages/information/index.vue

@ -0,0 +1,378 @@
<template>
<view class="information-box">
<view class="search-box acea-row row-middle" >
<image src="../../../static/images/search-icon.png" mode=""></image>
<input type="text" value="" placeholder="请输入相关关键词"/>
<view class="search acea-row row-center-wrapper">搜一下</view>
</view>
<view class="vote-box">
<view class="news">
<view class="news-title-h">武汉12月底双层公交车将全面下线</view>
<view class="news-title-s">趁着有时间和你爱的人再去回味一下,那你认为有下线的必要吗</view>
</view>
<view class="vote">
</view>
</view>
<scroll-view class="scroll-view_N" scroll-x="true" >
<view class="rotaion" v-for="(item,index) in 7" :key="index">
<view class="acea-row row-center">
<image src="../../../static/images/collect.png" mode=""></image>
<view class="rotaion-h">今日大事</view>
<view class="rotaion-s">每日热点资讯</view>
</view>
</view>
</scroll-view>
<!-- 最新资讯 -->
<view class="newInfo-box">
<image src="../../../static/images/newInfo.png" mode="" class="newInfo-title-img"></image>
<view class="newInfo" >
<view class="modular acea-row row-between" v-for="(item,index) in 3" :key="index">
<view class="acea-row title" >
<view class="modular-h">海鸥出行将大巴车市场带入平台化阶段提高包车出行效率</view>
<view class="title-l acea-row row-between">
<view>云资讯</view>
<view>1小时前</view>
<view class="acea-row row-middle">203
<image src="../../../static/images/eye.png" mode="" ></image>
</view>
</view>
</view>
<image src="../../../static/images/home/top-bg.png" mode="" ></image>
</view>
</view>
</view>
<!-- 热点精选 -->
<view class="hotspot-box">
<image src="../../../static/images/user/hotspot.png" mode="" class="title-h-img"></image>
<scroll-view class="scroll-view_H acea-row" scroll-x="true" >
<view class="slide-box" v-for="(item,index) in 3" :key="index">
<image src="../../../static/images/home/top-bg.png" mode=""></image>
<view class="hotspot-con">
<view class="hotspot-icon">热点</view>
<view class="hotspot-title-h">禅易云生态加入云生态共建万亿私域资源圈获取海量资源与福利</view>
</view>
</view>
</scroll-view>
</view>
<!-- 值得关注 -->
<view class="follow-box">
<image src="../../../static/images/follow-title.png" mode="" class="title-h-img"></image>
<view class="follow-con" v-for="(item,index) in 3" :key="index">
<view class="follow-top acea-row row-between">
<view class="acea-row follow-title" >
<view class="follow-h">2021中国酒店与商用厨具行业品牌盛会</view>
<view class="follow-title-l acea-row row-between">
<view>云资讯</view>
<view>1小时前</view>
<view class="acea-row row-middle">203
<image src="../../../static/images/eye.png" mode="" ></image>
</view>
</view>
</view>
<image src="../../../static/images/home/top-bg.png" mode="" ></image>
</view>
<view class="follow-bottom acea-row row-middle">
<image src="../../../static/images/collect.png" mode=""></image>
<view class="follow-title-b">
<view class="title-s">云咨詢</view>
<view class="title-con">每天发布商业/生活等相关内容...</view>
</view>
<view class="follow-btn">关注+</view>
</view>
</view>
</view>
</view>
</template>
<script>
</script>
<style>
.information-box{
width: 100%;
height: 100vh;
position: relative;
}
.search-box{
width: 670rpx;
height: 68rpx;
border: 2rpx solid #FF5100;
border-radius: 8rpx;
margin: 52rpx auto;
font-size: 28rpx;
position: relative;
}
.search-box image{
width: 35rpx;
height: 35rpx;
margin: 0 29rpx 0 52rpx;
}
.search{
position: absolute;
right: 0;
width: 132rpx;
height: 68rpx;
background: linear-gradient(39deg, #FF5100 0%, #FFA074 100%);
border-radius: 8rpx;
color: #fff;
}
.vote-box{
width: 670rpx;
height: 358rpx;
background: #FFFFFF;
box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.16);
border-radius: 16rpx;
margin: 0 auto;
position: relative;
}
.news{
width: 100%;
height: 248rpx;
background: #D2D2D2;
border-radius: 16rpx 16rpx 0 0;
color: #FFF;
position: absolute;
padding-left: 42rpx;
}
.news-title-h{
font-size: 28rpx;
position: absolute;
bottom: 54rpx;
}
.news-title-s{
font-size: 20rpx;
position: absolute;
bottom: 18rpx;
}
.vote{
width: 100%;
height: 110rpx;
position: absolute;
bottom: 0;
border: 1rpx solid #000000;
}
.scroll-view_N{
width: 100%;
height: 228rpx;
margin: 30rpx 0 0 30rpx;
white-space: nowrap;
}
.rotaion{
width: 168rpx;
padding: 32rpx 0 16rpx 0;
background: #FFFFFF;
box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16);
border-radius: 16rpx;
margin: 10rpx 22rpx 20rpx 10rpx;
display: inline-block;
}
.rotaion image{
width: 80rpx;
height: 80rpx;
background: #FF6D2A;
border-radius: 50%;
}
.rotaion-h{
height: 34rpx;
font-size: 24rpx;
color: #333333;
margin: 12rpx 0 4rpx 0;
font-weight: 600;
}
.rotaion-s{
height: 26rpx;
font-size: 18rpx;
color: #9D9D9D;
}
/* 最新资讯 */
.newInfo-box{
margin: 44rpx 0 0rpx 0;
}
.newInfo-title-img{
width: 160rpx;
height: 52rpx;
margin: 0 0 18rpx 38rpx;
}
.newInfo{
width: 100%;
height: 528rpx;
border-top: 2rpx solid #EFEFEF;
}
.modular{
width: 100%;
height: 176rpx;
border-bottom: 2rpx solid #EFEFEF;
padding: 20rpx 40rpx 22rpx 40rpx;
}
.modular-h{
width: 392rpx;
height: 80rpx;
font-size: 28rpx;
color: #4A4A4A;
font-weight: 600;
}
.modular image{
width: 204rpx;
height: 134rpx;
}
.title{
width: 392rpx;
height: 134rpx;
}
.title-l{
width: 310rpx;
height: 34rpx;
font-size: 24rpx;
color: #707070;
}
.title-l image{
width: 24rpx;
height: 24rpx;
margin-left: 5rpx;
}
/* 热点精选 */
.hotspot-box{
width: 100%;
height: 456rpx;
}
.title-h-img{
width: 162rpx;
height: 62rpx;
margin: 32rpx 0 5rpx 40rpx;
}
.scroll-view_H{
width: 100%;
height: 344rpx;
white-space: nowrap;
}
.scroll-view_H image{
width: 670rpx;
height: 344rpx;
border-radius: 10rpx;
position: absolute;
}
.slide-box{
position: relative;
width: 670rpx;
height: 100%;
display: inline-block;
margin-right: 16rpx;
}
.hotspot-con{
width: 588rpx;
height: 130rpx;
bottom: 34rpx;
left: 24rpx;
position: absolute;
}
.hotspot-icon{
width: 72rpx;
height: 32rpx;
background: #FE3737;
border-radius: 12rpx 2rpx 12rpx 0;
position: absolute;
font-size: 22rpx;
color: #fff;
text-align: center;
}
.hotspot-title-h{
width: 588rpx;
height: 80rpx;
font-size: 28rpx;
color: #FFFFFF;
position: absolute;
bottom: 0;
white-space:pre-wrap;
}
/* 值得关注 */
.follow-box{
width: 100%;
height: 950rpx;
margin-bottom: 50rpx;
}
.follow-con{
width: 670rpx;
height: 250rpx;
margin: 0 auto;
background: #FFFFFF;
box-shadow: 0rpx 4rpx 10rpx rgba(0, 0, 0, 0.16);
border-radius: 16rpx;
margin-bottom: 32rpx;
}
.follow-top{
width: 100%;
height: 170rpx;
padding: 20rpx 20rpx 26rpx 20rpx;
border-bottom: 1rpx solid #DCDCDC;
}
.follow-top image{
width: 232rpx;
height: 130rpx;
border-radius: 16rpx;
}
.follow-title{
width: 370rpx;
height: 100%;
}
.follow-h{
width: 370rpx;
height: 80rpx;
font-size: 28rpx;
color: #000000;
font-weight: 600;
}
.follow-title-l{
width: 250rpx;
height: 28rpx;
font-size: 20rpx;
color: #707070;
}
.follow-title-l image{
width: 24rpx;
height: 24rpx;
margin-left: 5rpx;
}
.follow-bottom{
width: 100%;
height: 80rpx;
padding: 12rpx 20rpx 16rpx 20rpx;
}
.follow-bottom image{
width: 52rpx;
height: 52rpx;
border-radius: 50%;
margin-right: 8rpx;
}
.follow-title-b{
}
.title-s{
height: 28rpx;
font-size: 20rpx;
margin-bottom: 6rpx;
font-weight: 600;
}
.title-con{
height: 22rpx;
font-size: 16rpx;
color: #707070;
}
.follow-btn{
width: 136rpx;
height: 40rpx;
background: linear-gradient(39deg, #FF5A0D 0%, #FFAC85 100%);
border-radius: 26rpx;
font-size: 28rpx;
color: #fff;
text-align: center;
position: absolute;
right: 60rpx;
}
</style>

2
pages/life/index.vue

@ -93,7 +93,7 @@
@loadmore="addRandomData" @loadmore="addRandomData"
></u-loadmore> ></u-loadmore>
</view> </view>
<tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> <!-- <tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> -->
</view> </view>
</template> </template>
<script> <script>

678
pages/release/index.vue

@ -1,332 +1,358 @@
<template> <template>
<!--pages/release/index.wxml--> <!--pages/release/index.wxml-->
<view class="release-page"> <view class="release-page">
<view class="auth-btn-box acea-row row-column row-middle"> <view class="auth-btn-box acea-row row-column row-middle">
<view class="auth-btn" @tap="toCompanyAuth" v-if="authStatus == 0 || authStatus == 3">企业认证<image src="/static/images/back.png"></image></view> <view class="auth-btn" @tap="toCompanyAuth" v-if="authStatus == 0 || authStatus == 3">企业认证<image
<view class="auth-btn bgG" @tap="toPersonlAuth" v-if="authStatus == 0 || authStatus == 3">个人认证<image src="/static/images/back.png"></image></view> src="/static/images/back.png"></image>
</view> </view>
<view :class="'posi ' + (authStatus == 1 || authStatus == 2 ? 'top30' : '')"> <view class="auth-btn bgG" @tap="toPersonlAuth" v-if="authStatus == 0 || authStatus == 3">个人认证<image
<view class="tips-box"> src="/static/images/back.png"></image>
<view class="tips acea-row-nowrap row-middle" v-if="authStatus == 0 || authStatus == 3"> </view>
<!-- <view class="icon">!</view> --> </view>
<view>完成企业认证后可以发布资源及需求个人认证后只可发布需求</view> <view :class="'posi ' + (authStatus == 1 || authStatus == 2 ? 'top30' : '')">
</view> <view class="tips-box">
<view class="tips acea-row row-middle" v-if="authStatus == 0"> <view class="tips acea-row-nowrap row-middle" v-if="authStatus == 0 || authStatus == 3">
<view class="icon">!</view> <!-- <view class="icon">!</view> -->
<view>请先完成认证</view> <view>完成企业认证后可以发布资源及需求个人认证后只可发布需求</view>
</view> </view>
<view class="tips acea-row row-middle" v-if="authStatus == 1"> <view class="tips acea-row row-middle" v-if="authStatus == 0">
<view class="icon">!</view> <view class="icon">!</view>
<view>{{authType == 1 ? '企业信息审核中,请耐心等待!' : '个人信息审核中, 请耐心等待'}}</view> <view>请先完成认证</view>
</view> </view>
<view class="tips acea-row row-middle" v-if="authStatus == 2"> <view class="tips acea-row row-middle" v-if="authStatus == 1">
<view class="icon">!</view> <view class="icon">!</view>
<view>{{authType == 1 ? '企业信息审核通过,可以发布资源和需求!' : '个人信息审核通过,可以发布需求'}}</view> <view>{{authType == 1 ? '企业信息审核中,请耐心等待!' : '个人信息审核中, 请耐心等待'}}</view>
</view> </view>
<view class="tips acea-row row-middle" v-if="authStatus == 3"> <view class="tips acea-row row-middle" v-if="authStatus == 2">
<view class="icon">!</view> <view class="icon">!</view>
<view>{{authType == 1 ? '企业信息未审核通过, 请重新提交审核信息!' : '个人信息未审核通过, 请重新提交审核信息!'}}</view> <view>{{authType == 1 ? '企业信息审核通过,可以发布资源和需求!' : '个人信息审核通过,可以发布需求'}}</view>
<view>未通过理由{{reason}}</view> </view>
</view> <view class="tips acea-row row-middle" v-if="authStatus == 3">
</view> <view class="icon">!</view>
<view class="btn-box acea-row row-between"> <view>{{authType == 1 ? '企业信息未审核通过, 请重新提交审核信息!' : '个人信息未审核通过, 请重新提交审核信息!'}}</view>
<view :class="'btn ' + (authStatus == 2 && authType == 1 ? 'auth' : '' )" @tap="toResources"> <view>未通过理由{{reason}}</view>
<view class="tip">我能提供...</view> </view>
<image :class="authStatus == 2 && authType == 1 ? '' : 'default'" src="/static/images/yrz1.png"></image> </view>
</view> <view class="btn-box acea-row row-between">
<view :class="'btn ' + (authStatus == 2 ? 'auth' : '' )" @tap="toNeeds"> <view :class="'btn ' + (authStatus == 2 && authType == 1 ? 'auth' : '' )" @tap="toResources">
<view class="tip">我有需求...</view> <view class="tip">我能提供...</view>
<image :class="authStatus == 2 ? '' : 'default'" src="/static/images/yrz2.png"></image> <image :class="authStatus == 2 && authType == 1 ? '' : 'default'" src="/static/images/yrz1.png">
</view> </image>
</view> </view>
<view class="close" @tap="back"><image src="/static/images/fabu-close.png"></image></view> <view :class="'btn ' + (authStatus == 2 ? 'auth' : '' )" @tap="toNeeds">
</view> <view class="tip">我有需求...</view>
</view> <image :class="authStatus == 2 ? '' : 'default'" src="/static/images/yrz2.png"></image>
</view>
</view>
<view class="close" @tap="back">
<image src="/static/images/fabu-close.png"></image>
</view>
</view>
</view>
</template> </template>
<script> <script>
// pages/release/index.js // pages/release/index.js
const app = getApp(); const app = getApp();
export default { export default {
data() { data() {
return { return {
userInfo: {}, userInfo: {},
authStatus: 0, authStatus: 0,
authType: null, authType: null,
completeState: null, completeState: null,
authInfo: {} authInfo: {}
}; };
}, },
components: {}, components: {},
props: {}, props: {},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) {}, onLoad: function(options) {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function() {
this.isAuthentication(); this.isAuthentication();
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function() {},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () {}, onUnload: function() {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function() {},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function() {},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {}, onShareAppMessage: function() {},
methods: { methods: {
back() { back() {
let pages = getCurrentPages(); let pages = getCurrentPages();
console.log(pages) console.log(pages)
// let pagePath = '/' + pages[pages.length - 2].route; // let pagePath = '/' + pages[pages.length - 2].route;
// if(pagePath){ // if(pagePath){
// uni.navigateTo({ // uni.navigateTo({
// url: pagePath // url: pagePath
// }); // });
// } else{ // } else{
// uni.switchTab({ // uni.switchTab({
// url: '/pages/home/index' // url: '/pages/home/index'
// }); // });
// } // }
uni.switchTab({ uni.switchTab({
url: '/pages/user/index' url: '/pages/user/index'
}); });
}, },
toPersonlAuth() { toPersonlAuth() {
if (this.authStatus == 0) { if (this.authStatus == 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/release/personAuth/index' url: '/pages/release/personAuth/index'
}); });
} else if (this.authStatus == 3) { } else if (this.authStatus == 3) {
let authInfo = encodeURIComponent(JSON.stringify(this.authInfo)); let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));
uni.navigateTo({ uni.navigateTo({
url: '/pages/release/personAuth/index?authInfo=' + authInfo url: '/pages/release/personAuth/index?authInfo=' + authInfo
}); });
} else if (this.authStatus == 1) { } else if (this.authStatus == 1) {
uni.showToast({ uni.showToast({
title: '认证申请审核中,请等待!', title: '认证申请审核中,请等待!',
icon: 'none' icon: 'none'
}); });
} }
}, },
toCompanyAuth() { toCompanyAuth() {
if (this.authStatus == 0) { if (this.authStatus == 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/release/companyAuth/index' url: '/pages/release/companyAuth/index'
}); });
} else if (this.authStatus == 3) { } else if (this.authStatus == 3) {
let authInfo = encodeURIComponent(JSON.stringify(this.authInfo)); let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));
uni.navigateTo({ uni.navigateTo({
url: '/pages/release/companyAuth/index?authInfo=' + authInfo url: '/pages/release/companyAuth/index?authInfo=' + authInfo
}); });
} else if (this.authStatus == 1) { } else if (this.authStatus == 1) {
uni.showToast({ uni.showToast({
title: '认证申请审核中,请等待!', title: '认证申请审核中,请等待!',
icon: 'none' icon: 'none'
}); });
} }
}, },
isAuthentication() { isAuthentication() {
app.http('get', 'user/isAuthentication').then(res => { app.http('get', 'user/isAuthentication').then(res => {
if (res.data.success) { if (res.data.success) {
this.setData({ this.setData({
authStatus: res.data.data.authenticationState, authStatus: res.data.data.authenticationState,
authType: res.data.data.authorizationType, authType: res.data.data.authorizationType,
completeState: res.data.data.completeState, completeState: res.data.data.completeState,
authInfo: res.data.data.authInfo, authInfo: res.data.data.authInfo,
reason: res.data.data.authInfo.reason reason: res.data.data.authInfo.reason
}); });
} }
}); });
}, },
toResources() { toResources() {
let that = this; let that = this;
console.log(this.authStatus, 'authStatus'); console.log(this.authStatus, 'authStatus');
console.log(this.authType, 'authType'); console.log(this.authType, 'authType');
console.log(this.completeState, 'completeState'); console.log(this.completeState, 'completeState');
if (this.authStatus == 2 && this.authType == 1 && this.completeState == true) { if (this.authStatus == 2 && this.authType == 1 && this.completeState == true) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/user/editNeeds/index?type=1' url: '/pages/user/editNeeds/index?type=1'
}); });
} else if (this.authStatus == 2 && this.authType == 1 && this.completeState == false) { } else if (this.authStatus == 2 && this.authType == 1 && this.completeState == false) {
uni.showModal({ uni.showModal({
title: '提示!', title: '提示!',
content: '您还未完善企业信息,点击确定去完善吧~', content: '您还未完善企业信息,点击确定去完善吧~',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/release/perfectCompanyInfo/index' url: '/pages/release/perfectCompanyInfo/index'
}); });
} }
} }
}); });
} else if (this.authStatus == 0 && (this.authType == 1 || this.authType == 0) && this.completeState == false) { } else if (this.authStatus == 0 && (this.authType == 1 || this.authType == 0) && this.completeState ==
uni.showModal({ false) {
title: '提示!', uni.showModal({
content: '您还未完成企业认证,点击确定去认证吧~', title: '提示!',
content: '您还未完成企业认证,点击确定去认证吧~',
success(res) {
if (res.confirm) { success(res) {
uni.navigateTo({ if (res.confirm) {
url: '/pages/release/companyAuth/index' uni.navigateTo({
}); url: '/pages/release/companyAuth/index'
} });
} }
}
});
} });
}, }
},
toNeeds() {
if (this.authStatus == 2 && (this.authType == 2 || this.authType == 1) && this.completeState == true) { toNeeds() {
uni.navigateTo({ if (this.authStatus == 2 && (this.authType == 2 || this.authType == 1) && this.completeState == true) {
url: '/pages/user/editNeeds/index?type=2' uni.navigateTo({
}); url: '/pages/user/editNeeds/index?type=2'
} else if (this.authStatus == 2 && (this.authType == 2 || this.authType == 0) && this.completeState == false) { });
uni.showModal({ } else if (this.authStatus == 2 && (this.authType == 2 || this.authType == 0) && this.completeState ==
title: '提示!', false) {
content: '您还未完善个人信息,点击确定去完善吧~', uni.showModal({
title: '提示!',
success(res) { content: '您还未完善个人信息,点击确定去完善吧~',
uni.navigateTo({
url: '/pages/release/perfectPersonInfo/index' success(res) {
}); uni.navigateTo({
} url: '/pages/release/perfectPersonInfo/index'
});
}); }
} else if (this.authStatus == 0 && (this.authType == 2 || this.authType == 0) && this.completeState == false) {
uni.showModal({ });
title: '提示!', } else if (this.authStatus == 0 && (this.authType == 2 || this.authType == 0) && this.completeState ==
content: '您还未完成认证,点击上方按钮去认证吧!' false) {
}); uni.showModal({
} title: '提示!',
} content: '您还未完成认证,点击上方按钮去认证吧!'
});
} }
}; }
}
};
</script> </script>
<style> <style>
/* pages/release/index.wxss */ /* pages/release/index.wxss */
.auth-btn-box{ .auth-btn-box {
width: 100%; width: 100%;
margin-top: 300rpx; margin-top: 300rpx;
} }
.auth-btn{
width: 310rpx; .auth-btn {
height: 101rpx; width: 310rpx;
background: linear-gradient(137deg, #FFCDB8 0%, #FF9060 100%); height: 101rpx;
border-radius: 12rpx; background: linear-gradient(137deg, #FFCDB8 0%, #FF9060 100%);
display: flex; border-radius: 12rpx;
align-items: center; display: flex;
justify-content: center; align-items: center;
color: #fff; justify-content: center;
margin-bottom: 50rpx; color: #fff;
} margin-bottom: 50rpx;
.auth-btn image{ }
width: 32rpx;
height: 32rpx; .auth-btn image {
transform: rotate(180deg); width: 32rpx;
} height: 32rpx;
.bgG{ transform: rotate(180deg);
background: linear-gradient(137deg, #BFD7F9 0%, #A8C8F6 100%); }
}
.posi{ .bgG {
position: absolute; background: linear-gradient(137deg, #BFD7F9 0%, #A8C8F6 100%);
width: 100%; }
bottom: 100rpx;
} .posi {
.top30{ position: absolute;
bottom: 30%; width: 100%;
} bottom: 100rpx;
.tips-box{ }
/* margin-top: 15%; */
} .top30 {
.tips{ bottom: 30%;
color: #FF0000; }
font-size: 26rpx;
padding-left: 54rpx; .tips-box {
margin-bottom: 10rpx; /* margin-top: 15%; */
} }
.icon{
width: 26rpx; .tips {
height: 26rpx; color: #FF0000;
border: 1rpx solid #FF0000; font-size: 26rpx;
text-align: center; padding-left: 54rpx;
line-height: 22rpx; margin-bottom: 10rpx;
border-radius: 50%; }
font-size: 20rpx;
margin-right: 10rpx; .icon {
} width: 26rpx;
.btn-box{ height: 26rpx;
width: 100%; border: 1rpx solid #FF0000;
padding: 0 36rpx; text-align: center;
margin-top: 28rpx; line-height: 22rpx;
} border-radius: 50%;
.btn{ font-size: 20rpx;
width: 320rpx; margin-right: 10rpx;
height: 378rpx; }
position: relative;
} .btn-box {
.btn-box image{ width: 100%;
width: 320rpx; padding: 0 36rpx;
height: 378rpx; margin-top: 28rpx;
position: absolute; }
left: 0;
top: 0; .btn {
} width: 320rpx;
.btn-box .default{ height: 378rpx;
filter: grayscale(1); position: relative;
} }
.btn .tip{
color: #9C9C9C; .btn-box image {
font-weight: 500; width: 320rpx;
font-size: 32rpx; height: 378rpx;
position: relative; position: absolute;
left: 0; left: 0;
top: 70rpx; top: 0;
text-align: center; }
z-index: 3;
} .btn-box .default {
.btn .auth{ filter: grayscale(1);
color: #1D1D1D; }
}
.close { .btn .tip {
text-align: center; color: #9C9C9C;
} font-weight: 500;
.close image{ font-size: 32rpx;
width: 88rpx; position: relative;
height: 88rpx; left: 0;
} top: 70rpx;
</style> text-align: center;
z-index: 3;
}
.btn .auth {
color: #1D1D1D;
}
.close {
text-align: center;
}
.close image {
width: 88rpx;
height: 88rpx;
}
</style>

2
pages/shop/GoodsClass/index.vue

@ -79,7 +79,7 @@
</view> </view>
</view> </view>
<!-- <view style="height:100rpx;"></view> --> <!-- <view style="height:100rpx;"></view> -->
<tabbar :pagePath="pagePath"></tabbar> <!-- <tabbar :pagePath="pagePath"></tabbar> -->
</view> </view>
</template> </template>
<script> <script>

4
pages/shop/GoodsCon/index.vue

@ -167,8 +167,8 @@
</view> </view>
<text>购物车</text> <text>购物车</text>
</view> </view>
<view class="bnt acea-row"> <view class="bnt acea-row row-right">
<view class="joinCart" @click="joinCart"> <view class="joinCart" @click="joinCart" v-if="!storeInfo.virtualProductId">
<text>加入购物车</text> <text>加入购物车</text>
</view> </view>
<view class="buy" @click="tapBuy"> <view class="buy" @click="tapBuy">

2
pages/user/index.vue

@ -214,7 +214,7 @@
</view> </view>
</view> </view>
</view> </view>
<tabbar :current="currentTabIndex" tabBarClick="click"></tabbar> <!-- <tabbar :current="currentTabIndex" tabBarClick="click"></tabbar> -->
</view> </view>
</template> </template>

Loading…
Cancel
Save