stanley-king 4 年之前
父節點
當前提交
48f54a5d63
共有 5 個文件被更改,包括 13 次插入12 次删除
  1. 二進制
      image/xyzshare.png
  2. 4 5
      pages/components/shareDialog/shareDialog.js
  3. 6 6
      pages/myhome/myhome.wxml
  4. 1 1
      pages/myhome/myhome.wxss
  5. 2 0
      pages/phoneCharges/phoneCharges.js

二進制
image/xyzshare.png


+ 4 - 5
pages/components/shareDialog/shareDialog.js

@@ -62,10 +62,10 @@ Component({
   pageLifetimes: {
     // 组件所在页面的生命周期函数
     show: function () {
-      console.log('pageLifetimes goods_id = ', this.properties.goods_id)
+      console.log('pageLifetimes show goods_id = ', this.properties.goods_id)
      },
     hide: function () { 
-      console.log('pageLifetimes goods_id = ', this.properties.goods_id)
+      console.log('pageLifetimes hide goods_id = ', this.properties.goods_id)
     },
     resize: function () { },
   },
@@ -119,15 +119,14 @@ Component({
         op: 'goods_share',
         goods_id: goods_id,
       }, (res) => {
-          console.log('res:', res)
+        console.log('res:', res)
         if (res.code == 200) {
           if (res.datas) {
             let invitess = res.datas.invitess
             let policy = res.datas.policy 
             let tip_title = res.datas.tip_title
             let tip_num = res.datas.tip_num
-            this.setData({ tip_title,tip_num,invitess, policy })
-            
+            this.setData({ tip_title,tip_num,invitess, policy })            
           }
         }
         this.fGoodsRequesting = false

+ 6 - 6
pages/myhome/myhome.wxml

@@ -65,9 +65,9 @@
 				<text class="text">我的手机号</text>
 				<image src="/image/myhome/arrow-right.png" class="more"></image>
 			</view>
-			<view class="card-body">
+			<!-- <view class="card-body">
 				<view wx:if="{{phone.card_type==='phone'}}" class="card-item bg-blue">{{phone.card_no}}</view>
-			</view>
+			</view> -->
 		</view>
 		<view class="card">
 			<view class="card-title" bindtap="handleMore" data-cardtype="petrochina">
@@ -75,9 +75,9 @@
 				<text class="text">我的中石油油卡</text>
 				<image src="/image/myhome/arrow-right.png" class="more"></image>
 			</view>
-			<view class="card-body">
+			<!-- <view class="card-body">
 				<view wx:if="{{petrochina.card_type==='petrochina'}}" class="card-item bg-orange">{{petrochina.card_no}}</view>
-			</view>
+			</view> -->
 		</view>
 		<view class="card">
 			<view class="card-title" bindtap="handleMore" data-cardtype="sinopec">
@@ -85,9 +85,9 @@
 				<text class="text">我的中石化油卡</text>
 				<image src="/image/myhome/arrow-right.png" class="more"></image>
 			</view>
-			<view class="card-body">
+			<!-- <view class="card-body">
 				<view wx:if="{{sinopec.card_type==='sinopec'}}" class="card-item bg-orange">{{sinopec.card_no}}</view>
-			</view>
+			</view> -->
 		</view>
 		<view class="card">
 			<view class="card-title" bindtap="handleMore" data-cardtype="invitees">

+ 1 - 1
pages/myhome/myhome.wxss

@@ -206,7 +206,7 @@
   height: 36rpx;
   line-height: 40rpx;
   left: 50%;
-  top: -18rpx;
+  top: -4rpx;
   background: #FF4E4E;
   color: #fff;
   font-size: 20rpx;

+ 2 - 0
pages/phoneCharges/phoneCharges.js

@@ -28,12 +28,14 @@ Page({
   },
 
   onShowShareDialog(){
+    console.log('onShowShareDialog');
     this.setData({
       showShareDialog:true
     })
   },
 
   onCloseShareDialog(){
+    console.log('onCloseShareDialog');
     this.setData({
       showShareDialog:false
     })