wangn пре 5 година
родитељ
комит
7d7ec38e0b

+ 5 - 0
ghsApp/src/components/app-address-group.vue

@@ -55,6 +55,7 @@ import SimpleAddress from "@/components/plugin/simple-address";
 import AppAreaSel from "@/components/app-area-sel";
 import TuiListCell from "@/components/plugin/list-cell";
 import { getUserDet } from "@/api/member/index";
+import { mapGetters } from 'vuex';
 export default {
 	name: "AppAddressGroup",
 	components: {
@@ -100,7 +101,11 @@ export default {
 	},
 	mounted(){
 		if(this.customId!=''){this.initAdress();}
+    console.log('this.getLoginInfo===>', this.getMyShopInfo)
 	},
+  computed: {
+    ...mapGetters(["getMyShopInfo"])
+  },
 	methods: {
 		initAdress(){
       if(this.customId != '0') {

+ 13 - 0
ghsApp/src/components/app-swiper.vue

@@ -3,6 +3,7 @@
 		<swiper :indicator-dots="!tagShow" :autoplay="autoplay" :interval="5000" :duration="150" class="tui-banner-swiper" :circular="true" indicator-color="#969696" indicator-active-color="#3387ff" @change="bannerChange">
 			<swiper-item v-for="(item, index) in list" :key="index" @tap.stop="detail">
 				<img :src="item.img" class="tui-slide-image" mode="scaleToFill" />
+        <view class="info">2312</view>
 			</swiper-item>
 		</swiper>
 		<app-tag v-if="tagShow" class="swiper-tag" type="translucent" shape="circleLeft" size="small">{{index + 1}}/{{list.length}}</app-tag>
@@ -100,6 +101,18 @@ export default {
 		width: 100%;
 		height: 100%;
 	}
+  .info{
+    position: absolute;
+    bottom: 0;
+    left: 0;
+    width: 100%;
+    height: 88upx;
+    line-height: 88upx;
+    text-align: center;
+    font-size: 32upx;
+    color: #fff;
+    background: rgba(0,0,0,0.6)
+  }
 	/* #ifdef H5 */
 	/deep/.tui-banner-swiper .uni-swiper-dot {
 		width: 28rpx;

+ 14 - 5
ghsApp/src/pagesClient/official/index.vue

@@ -1,11 +1,11 @@
 <template>
-  <view class="app-content">
+  <view class="app-content" style="background: #fff;">
     <view class="header_logo">
       <image :src="`${constant.imgUrl}/ghs/home_page/logo.png`" mode="widthFix"></image>
-      <view class="free_register">免费注册</view>
+      <view class="free_register" @click="pageTo({url: '/pagesClient/official/pay'})">免费注册</view>
     </view>
     <view class="main">
-      <image class="banner" :src="`${constant.imgUrl}/ghs/home_page/banner.png`"></image>
+      <image class="banner" :src="`${constant.imgUrl}/ghs/home_page/banner.png`" @click="pageTo({url: '/pagesClient/official/pay'})"></image>
       <image class="pic1" :src="`${constant.imgUrl}/ghs/home_page/pic01.png`"></image>
       <view class="intro">
         <view v-for="(item, index) in list1" :key="index">
@@ -22,13 +22,15 @@
     </view>
     <view class="footer_bar">
       <view class="relation">联系我们</view>
-      <view class="free">免费试用</view>
+      <view class="free" @click="pageTo({url: '/pagesClient/official/pay'})" v-if="this.getLoginInfo.openShop !== 1">免费试用</view>
+      <div v-if="this.getLoginInfo.openShop == 1" class="app-footer">已申请</div>
     </view>
   </view>
 </template>
 
 <script>
 import AppSwiper from "@/components/app-swiper";
+import { mapGetters } from 'vuex';
 export default {
   components: {
     AppSwiper,
@@ -92,6 +94,13 @@ export default {
       ],
     }
   },
+  mounted() {
+    // 隐藏返回首页按钮。
+    uni.hideHomeButton()
+  },
+  computed: {
+    ...mapGetters(["getMerchantInfo", "getLoginInfo"])
+  },
   onLoad() {
     console.log(this.constant)
   }
@@ -129,7 +138,7 @@ export default {
 }
 .main{
   margin: 100upx 0;
-  padding-bottom: 100upx;
+  padding-bottom: 70upx;
   &>.banner{
     width: 100vw;
     height: 750upx;