Browse Source

bug 修复,添加分享功能

lilei 4 năm trước cách đây
mục cha
commit
9c2df7317e

+ 1 - 1
components/uni-coods/uni-coods.vue

@@ -107,7 +107,7 @@
 			// 商品详情
 			// 商品详情
 			toDetail(item){
 			toDetail(item){
 				uni.navigateTo({
 				uni.navigateTo({
-					url:"/pages/goods/goodsDetail?id="+item.id + "&goldLimit="+this.goldLimit
+					url:"/pagesA/goods/goodsDetail?id="+item.id + "&goldLimit="+this.goldLimit
 				})
 				})
 			}
 			}
 		},
 		},

+ 5 - 0
pages/agreement/agreement.vue

@@ -167,6 +167,11 @@
 			uni.setNavigationBarTitle({
 			uni.setNavigationBarTitle({
 				title: "服务协议"
 				title: "服务协议"
 			})
 			})
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		methods: {
 		methods: {
 		}
 		}

+ 5 - 0
pages/checkOut/checkFinish.vue

@@ -30,6 +30,11 @@ export default {
 	onLoad(option) {
 	onLoad(option) {
 		console.log(option,'option')
 		console.log(option,'option')
 		this.payNum = option.num
 		this.payNum = option.num
+		// 开启分享
+		uni.showShareMenu({
+			withShareTicket: true,
+			menus: ['shareAppMessage', 'shareTimeline']
+		})
 	},
 	},
 	methods: {
 	methods: {
 		// 返回首页
 		// 返回首页

+ 5 - 0
pages/checkOut/checkOut.vue

@@ -106,6 +106,11 @@
 			this.store = JSON.parse(decodeURIComponent(opts.store))
 			this.store = JSON.parse(decodeURIComponent(opts.store))
 			this.partnerNo = this.store.officialPartnerNo
 			this.partnerNo = this.store.officialPartnerNo
 			// console.log(this.store,'22222')
 			// console.log(this.store,'22222')
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		methods: {
 		methods: {
 			// 跳转到设置支付密码页
 			// 跳转到设置支付密码页

+ 5 - 0
pages/goods/index.vue

@@ -44,6 +44,11 @@
 		},
 		},
 		onLoad() {
 		onLoad() {
 			this.pageInit()
 			this.pageInit()
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		computed: {
 		computed: {
 			goodsListLength() {
 			goodsListLength() {

+ 5 - 6
pages/index/index.vue

@@ -123,18 +123,17 @@
 			uni.$on("getUserInfo",item=>{
 			uni.$on("getUserInfo",item=>{
 				this.getUserInfo(item)
 				this.getUserInfo(item)
 			})
 			})
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		onUnload() {
 		onUnload() {
 			console.log('onUnload')
 			console.log('onUnload')
 			uni.$off('getCarCount')
 			uni.$off('getCarCount')
 			uni.$off('getCartList')
 			uni.$off('getCartList')
 			uni.$off('getUserInfo')
 			uni.$off('getUserInfo')
-			
-			// 开启分享
-			uni.showShareMenu({
-				withShareTicket: true,
-				menus: ['shareAppMessage', 'shareTimeline']
-			})
 		},
 		},
 		onShareAppMessage(res) {
 		onShareAppMessage(res) {
 			console.log(res)
 			console.log(res)

+ 5 - 0
pages/login/login.vue

@@ -46,6 +46,11 @@
 		},
 		},
 		mounted() {},
 		mounted() {},
 		onLoad(option) {
 		onLoad(option) {
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 			// 为解决首次登录异常问题 进入页面先调微信登录获取code
 			// 为解决首次登录异常问题 进入页面先调微信登录获取code
 			this.wxLogin()
 			this.wxLogin()
 			const {
 			const {

+ 5 - 0
pages/login/phoneLogin.vue

@@ -51,6 +51,11 @@
 			}
 			}
 		},
 		},
 		onLoad(opts) {
 		onLoad(opts) {
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		onUnload() {
 		onUnload() {
 			uni.$off('getUserInfo')
 			uni.$off('getUserInfo')

+ 5 - 0
pages/store/store.vue

@@ -74,6 +74,11 @@
 			this.stationNo = options.stationNo
 			this.stationNo = options.stationNo
 			this.getStation()  //  网点信息
 			this.getStation()  //  网点信息
 			this.getDevice()  //  设备信息
 			this.getDevice()  //  设备信息
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		methods: {
 		methods: {
 			//  网点信息
 			//  网点信息

+ 9 - 0
pages/userCenter/aboutUs.vue

@@ -12,6 +12,15 @@
 </template>
 </template>
 
 
 <script>
 <script>
+	export default {
+		onLoad() {
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
+		},
+	}
 </script>
 </script>
 
 
 <style lang="less">
 <style lang="less">

+ 7 - 0
pages/userCenter/deliveryRecord.vue

@@ -46,6 +46,13 @@
 				status: 'loadmore',  //  加载中状态
 				status: 'loadmore',  //  加载中状态
 			}
 			}
 		},
 		},
+		onLoad() {
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
+		},
 		onShow() {
 		onShow() {
 			this.searchHandle(1)
 			this.searchHandle(1)
 		},
 		},

+ 5 - 0
pages/userCenter/fenlei.vue

@@ -19,6 +19,11 @@
 			}
 			}
 		},
 		},
 		onLoad() {
 		onLoad() {
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		}
 		}
 	}
 	}
 </script>
 </script>

+ 5 - 0
pages/userCenter/index.vue

@@ -65,6 +65,11 @@
 			}
 			}
 		},
 		},
 		onLoad() {
 		onLoad() {
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		methods:{
 		methods:{
 			// 获取用户信息
 			// 获取用户信息

+ 5 - 0
pages/userCenter/ldDetailed.vue

@@ -69,6 +69,11 @@
 		onLoad() {
 		onLoad() {
 			this.timeScope = 'threeMonth'
 			this.timeScope = 'threeMonth'
 			this.queryParam.changeType = ''
 			this.queryParam.changeType = ''
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		computed: {
 		computed: {
 			// 时间过滤条件
 			// 时间过滤条件

+ 5 - 0
pages/userCenter/myCode/myCode.vue

@@ -19,6 +19,11 @@
 		},
 		},
 		onLoad() {
 		onLoad() {
 			this.creatQrCode()
 			this.creatQrCode()
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		methods: {
 		methods: {
 			creatQrCode() {
 			creatQrCode() {

+ 9 - 0
pages/userCenter/question.vue

@@ -24,6 +24,15 @@
 </template>
 </template>
 
 
 <script>
 <script>
+	export default {
+		onLoad() {
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
+		},
+	}
 </script>
 </script>
 
 
 <style lang="scss">
 <style lang="scss">

+ 7 - 0
pages/userCenter/userInfo/userInfo.vue

@@ -33,6 +33,13 @@
 				userInfo: {}
 				userInfo: {}
 			}
 			}
 		},
 		},
+		onLoad() {
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
+		},
 		onShow() {
 		onShow() {
 			this.userDate = this.$store.state.vuex_userData
 			this.userDate = this.$store.state.vuex_userData
 			this.getPayPwd()
 			this.getPayPwd()

+ 9 - 0
pages/userCenter/zhinan.vue

@@ -121,6 +121,15 @@
 </template>
 </template>
 
 
 <script>
 <script>
+	export default {
+		onLoad() {
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
+		},
+	}
 </script>
 </script>
 
 
 <style lang="scss">
 <style lang="scss">

+ 5 - 0
pagesA/cart/cart.vue

@@ -183,6 +183,11 @@
 			// 获取购物车数据
 			// 获取购物车数据
 			this.loading = true
 			this.loading = true
 			this.getCartList()
 			this.getCartList()
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		methods: {
 		methods: {
 			// 计算购物车数量
 			// 计算购物车数量

+ 5 - 0
pagesA/goods/goods.vue

@@ -36,6 +36,11 @@
 				title: this.goodsName
 				title: this.goodsName
 			})
 			})
 			this.getGoods()
 			this.getGoods()
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		// 下拉刷新
 		// 下拉刷新
 		onPullDownRefresh() {
 		onPullDownRefresh() {

+ 5 - 0
pagesA/goods/goodsDetail.vue

@@ -91,6 +91,11 @@
 			this.id = opts.id
 			this.id = opts.id
 			this.userData = this.$store.state.vuex_userData
 			this.userData = this.$store.state.vuex_userData
 			this.getDetail()
 			this.getDetail()
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		methods: {
 		methods: {
 			// 查详情
 			// 查详情

+ 5 - 0
pagesA/luckDraw/myJp.vue

@@ -126,6 +126,11 @@ export default {
 		this.getfindWinPrize()
 		this.getfindWinPrize()
 		this.kfPhone = this.$store.state.vuex_kfMobile
 		this.kfPhone = this.$store.state.vuex_kfMobile
 		this.fromPage = option.fromPage
 		this.fromPage = option.fromPage
+		// 开启分享
+		uni.showShareMenu({
+			withShareTicket: true,
+			menus: ['shareAppMessage', 'shareTimeline']
+		})
 	},
 	},
 	onUnload() {
 	onUnload() {
 		this.form = {
 		this.form = {

+ 5 - 0
pagesA/order/LogList.vue

@@ -70,6 +70,11 @@
 				this.orderSn = option.orderNo
 				this.orderSn = option.orderNo
 				this.getRow()
 				this.getRow()
 			}
 			}
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		methods: {
 		methods: {
 			// scroll-view到底部加载更多
 			// scroll-view到底部加载更多

+ 5 - 0
pagesA/order/order.vue

@@ -197,6 +197,11 @@
 			// 监听页面刷新事件 在详情支付成功后或在物流确认收货后刷新列表
 			// 监听页面刷新事件 在详情支付成功后或在物流确认收货后刷新列表
 			uni.$on('refresh', this.handleRefresh)
 			uni.$on('refresh', this.handleRefresh)
 			this.pageInit()
 			this.pageInit()
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		onUnload() {
 		onUnload() {
 			uni.$off('refresh', this.handleRefresh)
 			uni.$off('refresh', this.handleRefresh)

+ 5 - 0
pagesA/order/orderDetail.vue

@@ -150,6 +150,11 @@
 				this.orderId = options.id
 				this.orderId = options.id
 				this.getOrderDetail()
 				this.getOrderDetail()
 			}
 			}
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		computed: {
 		computed: {
 			
 			

+ 5 - 0
pagesA/toOrder/editAddress.vue

@@ -59,6 +59,11 @@
 					title: '新增地址'
 					title: '新增地址'
 				})
 				})
 			}
 			}
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		onUnload() {
 		onUnload() {
 			this.$u.vuex("vuex_OrderAddress",{})
 			this.$u.vuex("vuex_OrderAddress",{})

+ 5 - 0
pagesA/toOrder/index.vue

@@ -138,6 +138,11 @@
 			this.goodsList = this.$store.state.vuex_toOrderList
 			this.goodsList = this.$store.state.vuex_toOrderList
 			// 监听设置密码是否成功
 			// 监听设置密码是否成功
 			uni.$once('setPswSuccess', this.setPsw)
 			uni.$once('setPswSuccess', this.setPsw)
+			// 开启分享
+			uni.showShareMenu({
+				withShareTicket: true,
+				menus: ['shareAppMessage', 'shareTimeline']
+			})
 		},
 		},
 		computed: {
 		computed: {
 			// 总计
 			// 总计

+ 5 - 0
pagesA/toOrder/payFinish.vue

@@ -21,6 +21,11 @@ export default {
 	onLoad(option) {
 	onLoad(option) {
 		console.log(option,'option')
 		console.log(option,'option')
 		this.orderId = option.id
 		this.orderId = option.id
+		// 开启分享
+		uni.showShareMenu({
+			withShareTicket: true,
+			menus: ['shareAppMessage', 'shareTimeline']
+		})
 	},
 	},
 	methods: {
 	methods: {
 		// 查看订单详情
 		// 查看订单详情