Explorar el Código

分享码放在新用户邀请记录里面;

lifanagju_citu hace 2 meses
padre
commit
64f834defe
Se han modificado 1 ficheros con 21 adiciones y 1 borrados
  1. 21 1
      pagesB/inviteRecord/index.vue

+ 21 - 1
pagesB/inviteRecord/index.vue

@@ -1,6 +1,7 @@
 <template>
 	<layout-page>
 		<scroll-view class="scrollBox" scroll-y="true" @scrolltolower="loadingMore" style="height: calc(100vh - 102rpx);">
+			<view v-if="total" class="MiSans-Medium color-primary shareCode" @tap="toShare">我的分享码</view>
 			<view v-if="total" class="totalShow MiSans-Medium">恭喜你,已经成功邀请{{ total }}个新用户啦!</view>
       <view v-if="items.length" class="listBox">
         <!-- <m-list :items="items"></m-list> -->
@@ -18,12 +19,16 @@
 				</uni-table>
         <uni-load-more :status="more" />
       </view>
-      <view v-else class="nodata-img-parent">
+      <view v-else class="nodata-img-parent flex-column">
         <image
           src="https://minio.citupro.com/dev/static/nodata.png"
           mode="widthFix"
           style="width: 100vw"
         ></image>
+				<view class="shareText">
+					<span>您还没有邀请新用户,</span>
+					<span class="color-primary" @tap="toShare">马上邀请</span>
+				</view>
       </view>
     </scroll-view>
   </layout-page>
@@ -98,6 +103,10 @@ function loadingMore () {
   pageInfo.value.pageNo++
 	init()
 }
+
+const toShare = () => {
+	uni.navigateTo({ url: '/pagesB/sharePoster/index' })
+}
 </script>
 <style scoped lang="scss">
 .listBox {
@@ -107,4 +116,15 @@ function loadingMore () {
 	margin: 30rpx 0 0 30rpx;
 	color: #666;
 }
+.nodata-img-parent {
+	flex-direction: column;
+}
+.shareText {
+	margin-bottom: 150rpx;
+}
+.shareCode {
+	text-align: right;
+	margin: 30rpx;
+	text-decoration: underline;
+}
 </style>