yangchaowen 2 anni fa
parent
commit
3e61ce9b8d
5 ha cambiato i file con 73 aggiunte e 3 eliminazioni
  1. 1 1
      main.js
  2. 8 0
      pages.json
  3. 1 1
      pages/article/detail.vue
  4. 62 0
      pages/bindteam/index.vue
  5. 1 1
      pages/user/user.vue

+ 1 - 1
main.js

@@ -208,7 +208,7 @@ const wechatMiniLogin = async (noMsg = false) => {
 };
 Vue.prototype.$wechatMiniLogin = wechatMiniLogin;
 // #endif
-
+ 
 App.mpType = 'app'
 
 const app = new Vue({

+ 8 - 0
pages.json

@@ -322,6 +322,14 @@
                 "navigationBarTitleText" : "我的海报"
             }
         },
+		
+		{
+		    "path" : "pages/bindteam/index",
+		    "style" : {
+		      "navigationStyle" : "custom"
+		    }
+		},
+		
         {
             "path" : "pages/favorite/favorite",
             "style" : {

+ 1 - 1
pages/article/detail.vue

@@ -22,7 +22,7 @@
 		},
 
 		onShow() {
-	
+	 
 
 		},
 		onPullDownRefresh: function() {},

+ 62 - 0
pages/bindteam/index.vue

@@ -0,0 +1,62 @@
+<template>
+
+
+	<view >
+	
+		
+	</view>
+</template>
+
+<script>
+	// pages/tabbar/index/index.js
+	import {
+		mapMutations,
+	} from 'vuex';
+	var app = getApp();
+
+	export default {
+		data() {
+			return {
+				puid: ""
+			};
+		},
+		onLoad: function(options) {
+			uni.showLoading({
+				title:'正在加载'
+			})
+			this.puid = options.puid||'';
+			this.bind()
+		},
+
+		onShareAppMessage: function() {},
+		methods: {
+			...mapMutations(['login']),
+			
+			async bind() {
+							
+				var  userInfo = await this.$wechatMiniLogin(true);
+				this.login(userInfo)
+							
+				let res = await this.$api.request('/team/add', 'GET', {
+					puid: this.puid,
+				});
+				
+				wx.switchTab({
+					url:"/pages/index/index"
+				})
+				
+				
+			}
+			
+			
+			
+		}
+	};
+</script>
+<style>
+	page {
+		background: #F5F5F5;
+		padding: 20rpx;
+		box-sizing: border-box;
+	}
+</style>

+ 1 - 1
pages/user/user.vue

@@ -88,7 +88,7 @@
 				
 				<list-cell icon="icon-daifukuan" iconColor="#e07472" title="我的积分" :tips="info.score" @eventClick="$api.navTo('/pages/wallet/integral')"></list-cell>
 				
-				<list-cell icon="icon-daifukuan" iconColor="#e07472" title="我的钱包" tips="查看余额,积分和提现" @eventClick="$api.navTo('/pages/wallet/index')"></list-cell>
+				<list-cell icon="icon-daifukuan" iconColor="#e07472" title="我的钱包" tips="查看余额,提现" @eventClick="$api.navTo('/pages/wallet/index')"></list-cell>
 				<list-cell icon="icon-dizhi" iconColor="#5fcda2" title="地址管理" @eventClick="$api.navTo('/pages/address/address')"></list-cell>
 				<list-cell icon="icon-shoucang-setting" iconColor="#54b4ef" title="我的收藏" @eventClick="$api.navTo('/pages/favorite/favorite')"></list-cell>
 				<list-cell icon="icon-setting" iconColor="#e07472" title="我的团队" border="" @eventClick="$api.navTo('/pages/term/index')"></list-cell>