dever 4 年之前
父節點
當前提交
270a3d7f13
共有 2 個文件被更改,包括 13 次插入1 次删除
  1. 12 0
      pages/dream/buy.vue
  2. 1 1
      pages/dream/index.vue

+ 12 - 0
pages/dream/buy.vue

@@ -4,6 +4,7 @@
 		  <form bindsubmit="doBuy">
 			<view class="tit ">购买{{fetch.info.ticket_name}}</view>
 			<view class="msg" @click="showTip">查看{{fetch.info.ticket_name}}说明</view>
+			<view class="share_msg" @click="showShare" v-if="fetch.ticket && fetch.ticket.total">共购买{{fetch.ticket.total}}{{fetch.info.unit}},当前剩余{{fetch.ticket.num}}{{fetch.info.unit}}<text v-if="fetch.ticket.num > 0">,点此分享给好友</text></view>
 			<scroll-view scroll-y class="list">
 			  <view v-for="(v, k) in fetch.buy" :key="k" class="item" :class="index === k?'active':''" @click="buy(k)">
 				<text class="name">{{v.name}}</text>
@@ -100,6 +101,9 @@ export default {
 		},
 		hideTip : function() {
 			this.tip = false;
+		},
+		showShare : function() {
+			console.info(111);
 		},
 		hideBuy : function() {
 			this.show = false;
@@ -143,6 +147,14 @@ export default {
   text-decoration: underline;
   color: #666;
 }
+.buy-layer .share_msg{
+  font-size: 22rpx;
+  line-height: 36rpx;
+  width: 640rpx;
+  margin: 0 auto 47rpx;
+  color: #666;
+  text-align: center;
+}
 .btn-wrapper {
   justify-content: space-around;
   width: 100%;

+ 1 - 1
pages/dream/index.vue

@@ -2,7 +2,7 @@
 	<gracePage :customHeader="false">
 		<view class="container" slot="gBody">
 			<ourLoading isFullScreen :active="pageLoading" :text="pageLoadingText" />
-			<view class="wrap2" @click="goInfo">
+			<view class="wrap2" @click="showBuy">
 				<graceBorderRadius :style="fetch.button.bgcolor" :radius="['20rpx','20rpx','20rpx','0rpx']">
 					<text class="demo2 grace-white" :style="fetch.button.color">{{fetch.info.name}}</text>
 				</graceBorderRadius>