优化:极大部分页面添加支持分享给好友和分享朋友圈功能
This commit is contained in:
parent
0d39f486e9
commit
786267f036
|
|
@ -50,6 +50,7 @@
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
// #ifndef H5
|
// #ifndef H5
|
||||||
import passwordPopup from '@/components/passwordPopup';
|
import passwordPopup from '@/components/passwordPopup';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
// #endif
|
// #endif
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -88,22 +89,31 @@
|
||||||
withShareTicket: true,
|
withShareTicket: true,
|
||||||
menus: ['shareAppMessage', 'shareTimeline']
|
menus: ['shareAppMessage', 'shareTimeline']
|
||||||
})
|
})
|
||||||
return {
|
|
||||||
title: '助力活动',
|
|
||||||
path: 'pages/activity/assist/index',
|
let pages = getCurrentPages();
|
||||||
}
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '助力活动',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
onShareTimeline: function() {
|
onShareTimeline: function() {
|
||||||
return {
|
let shareData = {
|
||||||
title: '助力活动',
|
title: '助力活动',
|
||||||
query: {
|
query: {},
|
||||||
key: ''
|
};
|
||||||
},
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
imageUrl: ''
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
}
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
// #endif
|
// #endif
|
||||||
computed: configMap({statusBarHeight:0},mapGetters(['isLogin','viewColor','keyColor'])),
|
computed: configMap({statusBarHeight:0},mapGetters(['isLogin','uid','viewColor','keyColor'])),
|
||||||
watch:{
|
watch:{
|
||||||
isLogin:{
|
isLogin:{
|
||||||
handler:function(newV,oldV){
|
handler:function(newV,oldV){
|
||||||
|
|
@ -115,11 +125,14 @@
|
||||||
deep:true
|
deep:true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.getAssistProductList();
|
this.getAssistProductList();
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goBack: function() {
|
goBack: function() {
|
||||||
|
|
|
||||||
|
|
@ -743,6 +743,18 @@
|
||||||
that.addShareAssist();
|
that.addShareAssist();
|
||||||
return share;
|
return share;
|
||||||
},
|
},
|
||||||
|
onShareTimeline: function() {
|
||||||
|
let that = this;
|
||||||
|
let shareData = {
|
||||||
|
title: '您的好友' + that.userInfo.nickname + '邀请您帮他助力' + that.bargainInfo.product.store_name + ' 快去帮忙吧!',
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.id = this.id;
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
//#endif
|
//#endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -84,8 +84,9 @@
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
computed: mapGetters(['viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
components: {
|
components: {
|
||||||
easyLoadimage
|
easyLoadimage
|
||||||
},
|
},
|
||||||
|
|
@ -100,8 +101,11 @@
|
||||||
limit: 15,
|
limit: 15,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad: function() {
|
onLoad: function(options) {
|
||||||
this.statusClick(-1)
|
this.statusClick(-1)
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
parsePrice(price){
|
parsePrice(price){
|
||||||
|
|
@ -160,7 +164,35 @@
|
||||||
},
|
},
|
||||||
onReachBottom: function() {
|
onReachBottom: function() {
|
||||||
this.getList();
|
this.getList();
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '领劵中心',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '领劵中心',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,7 @@
|
||||||
import passwordPopup from '@/components/passwordPopup';
|
import passwordPopup from '@/components/passwordPopup';
|
||||||
// #endif
|
// #endif
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
let app = getApp();
|
let app = getApp();
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -85,7 +86,7 @@
|
||||||
tabNav,
|
tabNav,
|
||||||
userNameSwiper
|
userNameSwiper
|
||||||
},
|
},
|
||||||
computed: configMap({statusBarHeight:0},mapGetters(['viewColor','keyColor'])),
|
computed: configMap({statusBarHeight:0},mapGetters(['isLogin','uid','viewColor','keyColor'])),
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
|
|
@ -123,22 +124,30 @@
|
||||||
withShareTicket: true,
|
withShareTicket: true,
|
||||||
menus: ['shareAppMessage', 'shareTimeline']
|
menus: ['shareAppMessage', 'shareTimeline']
|
||||||
})
|
})
|
||||||
return {
|
|
||||||
title: '拼团',
|
let pages = getCurrentPages();
|
||||||
path: 'pages/activity/combination/index',
|
let page = pages[pages.length - 1]
|
||||||
}
|
let shareData = {
|
||||||
|
title: '拼团活动',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
onShareTimeline: function() {
|
onShareTimeline: function() {
|
||||||
return {
|
let shareData = {
|
||||||
title: '拼团活动',
|
title: '拼团活动',
|
||||||
query: {
|
query: {},
|
||||||
key: ''
|
};
|
||||||
},
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
imageUrl: ''
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
}
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
// #endif
|
// #endif
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
var pages = getCurrentPages();
|
var pages = getCurrentPages();
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: "拼团列表"
|
title: "拼团列表"
|
||||||
|
|
@ -147,6 +156,9 @@
|
||||||
this.getCombinationProductList('');
|
this.getCombinationProductList('');
|
||||||
this.getIndexConfig();
|
this.getIndexConfig();
|
||||||
this.getCombinationUser();
|
this.getCombinationUser();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goBack: function() {
|
goBack: function() {
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import { configMap } from "@/utils";
|
import { configMap } from "@/utils";
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
// #ifndef H5
|
// #ifndef H5
|
||||||
|
|
@ -86,7 +87,7 @@
|
||||||
// #endif
|
// #endif
|
||||||
home
|
home
|
||||||
},
|
},
|
||||||
computed: configMap({statusBarHeight:0},mapGetters(['viewColor','keyColor'])),
|
computed: configMap({statusBarHeight:0},mapGetters(['isLogin','uid','viewColor','keyColor'])),
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
|
|
@ -115,23 +116,34 @@
|
||||||
withShareTicket: true,
|
withShareTicket: true,
|
||||||
menus: ['shareAppMessage', 'shareTimeline']
|
menus: ['shareAppMessage', 'shareTimeline']
|
||||||
})
|
})
|
||||||
return {
|
|
||||||
title: '秒杀活动',
|
let pages = getCurrentPages();
|
||||||
path: 'pages/activity/goods_seckill/index',
|
let page = pages[pages.length - 1]
|
||||||
}
|
let shareData = {
|
||||||
|
title: '秒杀活动',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
onShareTimeline: function() {
|
onShareTimeline: function() {
|
||||||
return {
|
let shareData = {
|
||||||
title: '秒杀活动',
|
title: '秒杀活动',
|
||||||
query: {
|
query: {},
|
||||||
key: ''
|
};
|
||||||
},
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
imageUrl: ''
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
}
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
// #endif
|
// #endif
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.getSeckillConfig();
|
this.getSeckillConfig();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goBack: function() {
|
goBack: function() {
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,7 @@
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import { goShopDetail } from '@/libs/order.js'
|
import { goShopDetail } from '@/libs/order.js'
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -174,7 +175,7 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
...mapGetters(['viewColor']),
|
...mapGetters(['isLogin','uid','viewColor']),
|
||||||
},
|
},
|
||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
this.mer_id = options.mer_id;
|
this.mer_id = options.mer_id;
|
||||||
|
|
@ -192,6 +193,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 打开地图
|
// 打开地图
|
||||||
|
|
@ -356,7 +360,38 @@
|
||||||
this.sotreParam.page += 1
|
this.sotreParam.page += 1
|
||||||
this.getServiceList()
|
this.getServiceList()
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '本地服务',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
shareData.path = shareData.path + '?mer_id=' + this.mer_id;
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '本地服务',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.mer_id = this.mer_id;
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@
|
||||||
} from '../../../api/store.js';
|
} from '../../../api/store.js';
|
||||||
import home from '@/components/home/index.vue'
|
import home from '@/components/home/index.vue'
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
home
|
home
|
||||||
|
|
@ -82,6 +83,7 @@
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: mapGetters(['isLogin','uid']),
|
||||||
/**
|
/**
|
||||||
* 用户点击右上角分享
|
* 用户点击右上角分享
|
||||||
*/
|
*/
|
||||||
|
|
@ -90,24 +92,34 @@
|
||||||
wx.showShareMenu({
|
wx.showShareMenu({
|
||||||
withShareTicket: true,
|
withShareTicket: true,
|
||||||
menus: ['shareAppMessage', 'shareTimeline']
|
menus: ['shareAppMessage', 'shareTimeline']
|
||||||
})
|
})
|
||||||
return {
|
let pages = getCurrentPages();
|
||||||
title: '直播',
|
let page = pages[pages.length - 1]
|
||||||
path: 'pages/activity/liveBroadcast/index',
|
let shareData = {
|
||||||
}
|
title: '直播列表',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
onShareTimeline: function() {
|
onShareTimeline: function() {
|
||||||
return {
|
let shareData = {
|
||||||
title: '直播',
|
title: '直播列表',
|
||||||
query: {
|
query: {},
|
||||||
key: ''
|
};
|
||||||
},
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
imageUrl: ''
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
}
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
// #endif
|
// #endif
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.getBroadcastList();
|
this.getBroadcastList();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getBroadcastList() {
|
getBroadcastList() {
|
||||||
|
|
|
||||||
|
|
@ -81,8 +81,9 @@
|
||||||
import { configMap } from "@/utils";
|
import { configMap } from "@/utils";
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
computed: configMap({statusBarHeight:0},mapGetters(['viewColor','keyColor'])),
|
computed: configMap({statusBarHeight:0},mapGetters(['isLogin','uid','viewColor','keyColor'])),
|
||||||
components: {
|
components: {
|
||||||
// #ifndef H5
|
// #ifndef H5
|
||||||
passwordPopup,
|
passwordPopup,
|
||||||
|
|
@ -119,24 +120,34 @@
|
||||||
wx.showShareMenu({
|
wx.showShareMenu({
|
||||||
withShareTicket: true,
|
withShareTicket: true,
|
||||||
menus: ['shareAppMessage', 'shareTimeline']
|
menus: ['shareAppMessage', 'shareTimeline']
|
||||||
})
|
})
|
||||||
return {
|
let pages = getCurrentPages();
|
||||||
title: '预售活动',
|
let page = pages[pages.length - 1]
|
||||||
path: 'pages/activity/presell/index',
|
let shareData = {
|
||||||
}
|
title: '预售活动',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
onShareTimeline: function() {
|
onShareTimeline: function() {
|
||||||
return {
|
let shareData = {
|
||||||
title: '预售活动',
|
title: '预售活动',
|
||||||
query: {
|
query: {},
|
||||||
key: ''
|
};
|
||||||
},
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
imageUrl: ''
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
}
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
// #endif
|
// #endif
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.getPresellProductList();
|
this.getPresellProductList();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goBack: function() {
|
goBack: function() {
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,8 @@
|
||||||
|
|
||||||
import { spuTop,spuTopList } from '@/api/activity.js';
|
import { spuTop,spuTopList } from '@/api/activity.js';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -61,8 +63,11 @@
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: mapGetters(['isLogin','uid']),
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.spuTop(option.cate_id || 0)
|
this.spuTop(option.cate_id || 0)
|
||||||
|
// 关系处理
|
||||||
|
if(option.spread) spread(option.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
spuTop(cate_id) {
|
spuTop(cate_id) {
|
||||||
|
|
@ -104,7 +109,34 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '热卖排行',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '热卖排行',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
// #ifndef H5
|
// #ifndef H5
|
||||||
import passwordPopup from '@/components/passwordPopup';
|
import passwordPopup from '@/components/passwordPopup';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
// #endif
|
// #endif
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -45,7 +46,7 @@
|
||||||
home,
|
home,
|
||||||
emptyPage
|
emptyPage
|
||||||
},
|
},
|
||||||
computed: mapGetters(['viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
|
|
@ -58,8 +59,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.getTopicList();
|
this.getTopicList();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getTopicList: function() {
|
getTopicList: function() {
|
||||||
|
|
@ -89,7 +93,34 @@
|
||||||
*/
|
*/
|
||||||
onReachBottom: function() {
|
onReachBottom: function() {
|
||||||
this.getTopicList();
|
this.getTopicList();
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '活动专场',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '活动专场',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,7 @@
|
||||||
// #endif
|
// #endif
|
||||||
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
computed: mapGetters(['isLogin','uid','viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
|
|
@ -108,6 +109,9 @@
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.group_id = options.id
|
this.group_id = options.id
|
||||||
this.getTopicDetail();
|
this.getTopicDetail();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
|
|
@ -211,7 +215,39 @@
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '主题活动',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
shareData.path = shareData.path + '?id=' + this.group_id;
|
||||||
|
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '主题活动',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.id = this.group_id;
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,7 @@
|
||||||
import { openPaySubscribe } from '@/utils/SubscribeMessage.js';
|
import { openPaySubscribe } from '@/utils/SubscribeMessage.js';
|
||||||
import dayjs from '@/plugin/dayjs/dayjs.min.js';
|
import dayjs from '@/plugin/dayjs/dayjs.min.js';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
payment,
|
payment,
|
||||||
|
|
@ -214,8 +215,8 @@
|
||||||
watch: {
|
watch: {
|
||||||
|
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin']),
|
computed: mapGetters(['isLogin','uid']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.getCouponLst();
|
this.getCouponLst();
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getMemberCard();
|
this.getMemberCard();
|
||||||
|
|
@ -225,6 +226,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
|
|
||||||
|
|
@ -617,7 +621,34 @@
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '会员中心',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '会员中心',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,8 @@
|
||||||
import home from '@/components/home/index.vue'
|
import home from '@/components/home/index.vue'
|
||||||
import { getlevelInfo, getRandCode } from '@/api/user.js';
|
import { getlevelInfo, getRandCode } from '@/api/user.js';
|
||||||
import { storeListApi } from "@/api/store";
|
import { storeListApi } from "@/api/store";
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
home
|
home
|
||||||
|
|
@ -86,13 +88,17 @@
|
||||||
storeList: []
|
storeList: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
computed: mapGetters(['isLogin','uid']),
|
||||||
|
onLoad(options) {
|
||||||
this.levelInfo();
|
this.levelInfo();
|
||||||
this.getCode();
|
this.getCode();
|
||||||
try {
|
try {
|
||||||
this.user_latitude = uni.getStorageSync('user_latitude');
|
this.user_latitude = uni.getStorageSync('user_latitude');
|
||||||
this.user_longitude = uni.getStorageSync('user_longitude');
|
this.user_longitude = uni.getStorageSync('user_longitude');
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
@ -191,7 +197,35 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '会员卡',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '会员卡',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@
|
||||||
openPaySubscribe
|
openPaySubscribe
|
||||||
} from '@/utils/SubscribeMessage.js';
|
} from '@/utils/SubscribeMessage.js';
|
||||||
import dayjs from '@/plugin/dayjs/dayjs.min.js';
|
import dayjs from '@/plugin/dayjs/dayjs.min.js';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
payment,
|
payment,
|
||||||
|
|
@ -162,8 +163,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {},
|
watch: {},
|
||||||
computed: mapGetters(['isLogin']),
|
computed: mapGetters(['isLogin','uid']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.memberEquity();
|
this.memberEquity();
|
||||||
this.getMemberCard();
|
this.getMemberCard();
|
||||||
|
|
@ -172,6 +173,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
uni.removeStorageSync('form_type_cart');
|
uni.removeStorageSync('form_type_cart');
|
||||||
|
|
@ -561,7 +565,35 @@
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '开通会员',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '开通会员',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,7 @@
|
||||||
import {
|
import {
|
||||||
goShopDetail
|
goShopDetail
|
||||||
} from '@/libs/order.js'
|
} from '@/libs/order.js'
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
computed: configMap({hide_mer_status: 1,recommend_switch:0},mapGetters(['uid','isLogin','scrollTop','viewColor','keyColor'])),
|
computed: configMap({hide_mer_status: 1,recommend_switch:0},mapGetters(['uid','isLogin','scrollTop','viewColor','keyColor'])),
|
||||||
|
|
@ -220,6 +221,9 @@
|
||||||
this.$set(this.where, 'keyword', options.searchValue || '');
|
this.$set(this.where, 'keyword', options.searchValue || '');
|
||||||
this.get_product_list(true);
|
this.get_product_list(true);
|
||||||
this.get_host_product();
|
this.get_host_product();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReady(){},
|
onReady(){},
|
||||||
mounted: function() {
|
mounted: function() {
|
||||||
|
|
@ -429,9 +433,6 @@
|
||||||
that.loadTitle = '加载更多';
|
that.loadTitle = '加载更多';
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.productList.length > 0) {
|
if (this.productList.length > 0) {
|
||||||
|
|
@ -447,7 +448,34 @@
|
||||||
this.productList = newList;
|
this.productList = newList;
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
},500)
|
},500)
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '优惠券商品',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '优惠券商品',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
||||||
|
|
@ -125,6 +125,7 @@
|
||||||
goShopDetail
|
goShopDetail
|
||||||
} from '@/libs/order.js'
|
} from '@/libs/order.js'
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
computed: configMap({hide_mer_status: 1,recommend_switch: 0}, mapGetters(['uid','isLogin','scrollTop','viewColor','keyColor'])),
|
computed: configMap({hide_mer_status: 1,recommend_switch: 0}, mapGetters(['uid','isLogin','scrollTop','viewColor','keyColor'])),
|
||||||
|
|
@ -226,6 +227,9 @@
|
||||||
this.$set(this.where, 'keyword', options.searchValue || '');
|
this.$set(this.where, 'keyword', options.searchValue || '');
|
||||||
this.get_product_list(true);
|
this.get_product_list(true);
|
||||||
this.get_host_product();
|
this.get_host_product();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReady(){
|
onReady(){
|
||||||
|
|
||||||
|
|
@ -468,9 +472,6 @@
|
||||||
that.loadTitle = '加载更多';
|
that.loadTitle = '加载更多';
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if(this.tabIndex == 1){
|
if(this.tabIndex == 1){
|
||||||
|
|
@ -490,7 +491,36 @@
|
||||||
this.productList = newList;
|
this.productList = newList;
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
},500)
|
},500)
|
||||||
}
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '商品列表',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '商品列表',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@
|
||||||
import passwordPopup from '@/components/passwordPopup';
|
import passwordPopup from '@/components/passwordPopup';
|
||||||
// #endif
|
// #endif
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
computed: mapGetters(['isLogin', 'uid']),
|
computed: mapGetters(['isLogin', 'uid']),
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -93,6 +94,9 @@
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.searchValue = options.searchVal || ''
|
this.searchValue = options.searchVal || ''
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
try {
|
try {
|
||||||
|
|
@ -222,7 +226,34 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '搜索商品',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '搜索商品',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -230,6 +230,7 @@
|
||||||
import {
|
import {
|
||||||
getconfig,
|
getconfig,
|
||||||
} from '@/api/public.js';
|
} from '@/api/public.js';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -364,6 +365,9 @@
|
||||||
this.get_host_product();
|
this.get_host_product();
|
||||||
this.getClassfication();
|
this.getClassfication();
|
||||||
this.getStoreType();
|
this.getStoreType();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
},
|
},
|
||||||
|
|
@ -790,9 +794,6 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.tabIndex == 1) {
|
if (this.tabIndex == 1) {
|
||||||
|
|
@ -823,7 +824,42 @@
|
||||||
this.productList = newList;
|
this.productList = newList;
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
},500)
|
},500)
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '搜索结果',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
|
||||||
|
shareData.path = shareData.path + '?id=' + this.where.cate_id;
|
||||||
|
shareData.path = shareData.path + '&searchValue=' + this.where.keyword;
|
||||||
|
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '搜索结果',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.id = this.where.cate_id;
|
||||||
|
shareData.query.searchValue =this.where.keyword;
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,9 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
let app = getApp();
|
import spread from "../../libs/spread";
|
||||||
|
|
||||||
|
let app = getApp();
|
||||||
import { getCategoryList } from '@/api/store.js';
|
import { getCategoryList } from '@/api/store.js';
|
||||||
import { getNavigation } from '@/api/public.js'
|
import { getNavigation } from '@/api/public.js'
|
||||||
import { configMap } from '@/utils/index';
|
import { configMap } from '@/utils/index';
|
||||||
|
|
@ -76,7 +78,7 @@
|
||||||
passwordPopup,
|
passwordPopup,
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
computed: configMap({navigation: {}},mapGetters(['viewColor','keyColor'])),
|
computed: configMap({navigation: {}},mapGetters(['isLogin','uid','viewColor','keyColor'])),
|
||||||
data() {
|
data() {
|
||||||
let active = 0;
|
let active = 0;
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
|
|
@ -169,6 +171,9 @@
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
this.getAllCategory();
|
this.getAllCategory();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 用户点击右上角分享
|
* 用户点击右上角分享
|
||||||
|
|
@ -179,16 +184,31 @@
|
||||||
withShareTicket: true,
|
withShareTicket: true,
|
||||||
menus: ['shareAppMessage', 'shareTimeline']
|
menus: ['shareAppMessage', 'shareTimeline']
|
||||||
})
|
})
|
||||||
return {
|
|
||||||
path: '/pages/goods_cate/goods_cate?activceCate=' + this.productList[this.navActive] ? this.productList[this.navActive].store_category_id : 0
|
let pages = getCurrentPages();
|
||||||
}
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '商品分类',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
shareData.path = shareData.path + '?activceCate=' + this.productList[this.navActive] ? this.productList[this.navActive].store_category_id : 0;
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
onShareTimeline: function() {
|
onShareTimeline: function() {
|
||||||
return {
|
let shareData = {
|
||||||
query: {
|
title: '商品分类',
|
||||||
activceCate: this.productList[this.navActive] ? this.productList[this.navActive].store_category_id : 0,
|
query: {},
|
||||||
}
|
};
|
||||||
}
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.activceCate = this.productList[this.navActive] ? this.productList[this.navActive].store_category_id : 0;
|
||||||
|
|
||||||
|
return shareData;
|
||||||
},
|
},
|
||||||
// #endif
|
// #endif
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,8 @@
|
||||||
} from '@/api/api.js';
|
} from '@/api/api.js';
|
||||||
import shareInfo from '@/components/shareInfo';
|
import shareInfo from '@/components/shareInfo';
|
||||||
import home from '@/components/home';
|
import home from '@/components/home';
|
||||||
|
import spread from "../../libs/spread";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
shareInfo,
|
shareInfo,
|
||||||
|
|
@ -60,6 +62,7 @@
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: mapGetters(['isLogin','uid']),
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
|
|
@ -76,6 +79,9 @@
|
||||||
history.back();
|
history.back();
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
this.getArticleOne();
|
this.getArticleOne();
|
||||||
|
|
@ -119,7 +125,36 @@
|
||||||
};
|
};
|
||||||
this.$wechat.wechatEvevt(["updateAppMessageShareData", "updateTimelineShareData"], configAppMessage);
|
this.$wechat.wechatEvevt(["updateAppMessageShareData", "updateTimelineShareData"], configAppMessage);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '资讯详情',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
shareData.path = shareData.path + '?id=' + this.id;
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '资讯详情',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.id = this.id;
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@
|
||||||
getArticleBannerList
|
getArticleBannerList
|
||||||
} from '@/api/api.js';
|
} from '@/api/api.js';
|
||||||
import home from '@/components/home';
|
import home from '@/components/home';
|
||||||
|
import spread from "../../libs/spread";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
home
|
home
|
||||||
|
|
@ -77,6 +79,7 @@
|
||||||
scrollLeft: 0
|
scrollLeft: 0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: mapGetters(['isLogin','uid']),
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面显示
|
* 生命周期函数--监听页面显示
|
||||||
*/
|
*/
|
||||||
|
|
@ -84,11 +87,13 @@
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面显示
|
* 生命周期函数--监听页面显示
|
||||||
*/
|
*/
|
||||||
onLoad: function() {
|
onLoad: function(options) {
|
||||||
this.getArticleCate();
|
this.getArticleCate();
|
||||||
this.status = false;
|
this.status = false;
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.articleList = [];
|
this.articleList = [];
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 页面上拉触底事件的处理函数
|
* 页面上拉触底事件的处理函数
|
||||||
|
|
@ -147,7 +152,34 @@
|
||||||
this.getCidArticle();
|
this.getCidArticle();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '资讯',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '资讯',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,7 @@
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import { configMap } from '@/utils';
|
import { configMap } from '@/utils';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
|
@ -217,11 +218,13 @@
|
||||||
activeRouter: '',
|
activeRouter: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: configMap({hide_mer_status: 1,recommend_switch:0,navigation: {}}, mapGetters(['isLogin','viewColor'])),
|
computed: configMap({hide_mer_status: 1,recommend_switch:0,navigation: {}}, mapGetters(['isLogin','uid','viewColor'])),
|
||||||
onReady(){},
|
onReady(){},
|
||||||
mounted: function() {},
|
mounted: function() {},
|
||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
let that = this
|
let that = this
|
||||||
|
|
@ -803,7 +806,33 @@
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '购物车',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '购物车',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@
|
||||||
//#endif
|
//#endif
|
||||||
that.getDetail();
|
that.getDetail();
|
||||||
that.getReplyList();
|
that.getReplyList();
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
|
@ -544,7 +544,41 @@
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.getReplyList()
|
this.getReplyList()
|
||||||
},
|
},
|
||||||
onPullDownRefresh(){}
|
onPullDownRefresh(){},
|
||||||
|
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '详情',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
shareData.path = shareData.path + '?id=' + this.id;
|
||||||
|
shareData.path = shareData.path + '&type=' + this.type;
|
||||||
|
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spid=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '详情',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spid = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.id = this.id;
|
||||||
|
shareData.query.type = this.type;
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import productConSwiper from '@/components/productConSwiper';
|
import productConSwiper from '@/components/productConSwiper';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -113,7 +114,7 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['isLogin']),
|
...mapGetters(['isLogin','uid']),
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
||||||
|
|
@ -121,6 +122,9 @@
|
||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
this.where.topic_id = options.id
|
this.where.topic_id = options.id
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
||||||
|
|
@ -213,7 +217,39 @@
|
||||||
},
|
},
|
||||||
onPullDownRefresh(){
|
onPullDownRefresh(){
|
||||||
|
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '为你精选',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
|
||||||
|
shareData.path = shareData.path + '?id=' + this.where.topic_id;
|
||||||
|
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '为你精选',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.id = this.where.topic_id;
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import emptyPage from '@/components/emptyPage.vue'
|
import emptyPage from '@/components/emptyPage.vue'
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -71,6 +72,9 @@
|
||||||
this.where.spu_id = options.spu_id
|
this.where.spu_id = options.spu_id
|
||||||
this.getGoods();
|
this.getGoods();
|
||||||
this.getProDetail();
|
this.getProDetail();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
mounted: function() {},
|
mounted: function() {},
|
||||||
|
|
@ -137,7 +141,38 @@
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '种草秀',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
shareData.path = shareData.path + '?spu_id=' + this.where.spu_id;
|
||||||
|
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '种草秀',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.spu_id = this.where.spu_id;
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,11 +34,13 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
let app = getApp();
|
import spread from "../../../libs/spread";
|
||||||
|
|
||||||
|
let app = getApp();
|
||||||
import { getTopicList } from '@/api/community.js';
|
import { getTopicList } from '@/api/community.js';
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
computed: mapGetters(['viewColor']),
|
computed: mapGetters(['viewColor','isLogin','uid']),
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
productList: [],
|
productList: [],
|
||||||
|
|
@ -60,6 +62,9 @@
|
||||||
that.winHeight = res.windowHeight
|
that.winHeight = res.windowHeight
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if (!this.productList.length) {
|
if (!this.productList.length) {
|
||||||
|
|
@ -84,7 +89,35 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '话题筛选',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '话题筛选',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
<text>{{userInfo.nickname || ''}}</text>
|
<text>{{userInfo.nickname || ''}}</text>
|
||||||
<image v-if="userInfo.member_icon" class="level_icon" :src="userInfo.member_icon" alt="">
|
<image v-if="userInfo.member_icon" class="level_icon" :src="userInfo.member_icon" alt="">
|
||||||
</view>
|
</view>
|
||||||
<view class="user_id">ID: {{userInfo.uid || ''}}</view>
|
<view class="user_id">ID: {{userInfo.current_uid || ''}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="plant_info acea-row">
|
<view class="plant_info acea-row">
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
<view class="tab-cont">
|
<view class="tab-cont">
|
||||||
<view v-if="goods.length > 0" class="goods-wrap">
|
<view v-if="goods.length > 0" class="goods-wrap">
|
||||||
<view class="goods">
|
<view class="goods">
|
||||||
<WaterfallsFlow :wfList='goods' :isAuth="1" :uid="parseInt(uid)" :tab="tab"/>
|
<WaterfallsFlow :wfList='goods' :isAuth="1" :uid="parseInt(current_uid)" :tab="tab"/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="goods.length == 0 && !loading" class="empty">
|
<view v-if="goods.length == 0 && !loading" class="empty">
|
||||||
|
|
@ -69,6 +69,7 @@
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -90,24 +91,28 @@
|
||||||
limit: 30
|
limit: 30
|
||||||
},
|
},
|
||||||
tab: 0,
|
tab: 0,
|
||||||
uid: ''
|
current_uid: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['isLogin','viewColor']),
|
...mapGetters(['isLogin','uid','viewColor']),
|
||||||
},
|
},
|
||||||
watch: {},
|
watch: {},
|
||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.uid = options.id
|
that.current_uid = options.id
|
||||||
if (that.isLogin) {
|
if (that.isLogin) {
|
||||||
that.getAuthorInfo(that.uid);
|
that.getAuthorInfo(that.current_uid);
|
||||||
that.getList(that.uid);
|
that.getList(that.current_uid);
|
||||||
} else {
|
} else {
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
|
|
@ -116,8 +121,8 @@
|
||||||
// 授权回调
|
// 授权回调
|
||||||
onLoadFun() {
|
onLoadFun() {
|
||||||
this.isShowAuth = false
|
this.isShowAuth = false
|
||||||
this.getAuthorInfo(this.uid);
|
this.getAuthorInfo(this.current_uid);
|
||||||
this.getList(this.uid);
|
this.getList(this.current_uid);
|
||||||
},
|
},
|
||||||
// 授权关闭
|
// 授权关闭
|
||||||
authColse: function(e) {
|
authColse: function(e) {
|
||||||
|
|
@ -145,7 +150,7 @@
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
} else {
|
} else {
|
||||||
let status = this.userInfo.is_start ? false : true
|
let status = this.userInfo.is_start ? false : true
|
||||||
followAuthorApi(this.userInfo.uid,{status: status}).then(res => {
|
followAuthorApi(this.userInfo.current_uid,{status: status}).then(res => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
this.userInfo.is_start = this.userInfo.is_start ? false : true
|
this.userInfo.is_start = this.userInfo.is_start ? false : true
|
||||||
}
|
}
|
||||||
|
|
@ -160,18 +165,18 @@
|
||||||
this.where.page = 1
|
this.where.page = 1
|
||||||
this.loaded = this.loading = false
|
this.loaded = this.loading = false
|
||||||
this.goods = []
|
this.goods = []
|
||||||
let uid = this.userInfo.is_self ? this.uid : this.userInfo.uid
|
let current_uid = this.userInfo.is_self ? this.current_uid : this.userInfo.current_uid
|
||||||
this.getList(uid)
|
this.getList(current_uid)
|
||||||
},
|
},
|
||||||
// 获取用户的作品
|
// 获取用户的作品
|
||||||
getList: function(uid) {
|
getList: function(current_uid) {
|
||||||
let that = this;
|
let that = this;
|
||||||
if (that.loaded || that.loading) return;
|
if (that.loaded || that.loading) return;
|
||||||
that.loading = true;
|
that.loading = true;
|
||||||
that.loadTitle = '';
|
that.loadTitle = '';
|
||||||
that.tab == 1 ? this.where.is_type = 1 : this.where.is_type = ''
|
that.tab == 1 ? this.where.is_type = 1 : this.where.is_type = ''
|
||||||
that.tab == 0 ?
|
that.tab == 0 ?
|
||||||
userArticleLst(uid,that.where).then(res => {
|
userArticleLst(current_uid,that.where).then(res => {
|
||||||
let list = res.data.list;
|
let list = res.data.list;
|
||||||
let goods = that.$util.SplitArray(list, that.goods);
|
let goods = that.$util.SplitArray(list, that.goods);
|
||||||
that.loaded = list.length < that.where.limit;
|
that.loaded = list.length < that.where.limit;
|
||||||
|
|
@ -205,15 +210,47 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
let uid = this.userInfo.is_self ? this.uid : this.userInfo.uid
|
let current_uid = this.userInfo.is_self ? this.current_uid : this.userInfo.current_uid
|
||||||
this.getList(uid);
|
this.getList(current_uid);
|
||||||
},
|
},
|
||||||
onPullDownRefresh(){},
|
onPullDownRefresh(){},
|
||||||
// 滚动监听
|
// 滚动监听
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
}
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '用户主页',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
shareData.path = shareData.path + '?id=' + this.current_uid;
|
||||||
|
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '用户主页',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.id = this.current_uid;
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@
|
||||||
import passwordPopup from '@/components/passwordPopup';
|
import passwordPopup from '@/components/passwordPopup';
|
||||||
// #endif
|
// #endif
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
|
import spread from "../../libs/spread";
|
||||||
let app = getApp();
|
let app = getApp();
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -67,7 +68,7 @@
|
||||||
// #endif
|
// #endif
|
||||||
home,
|
home,
|
||||||
},
|
},
|
||||||
computed: configMap({statusBarHeight:0},mapGetters(['viewColor','keyColor'])),
|
computed: configMap({statusBarHeight:0},mapGetters(['isLogin','uid','viewColor','keyColor'])),
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
|
|
@ -89,23 +90,34 @@
|
||||||
withShareTicket: true,
|
withShareTicket: true,
|
||||||
menus: ['shareAppMessage', 'shareTimeline']
|
menus: ['shareAppMessage', 'shareTimeline']
|
||||||
})
|
})
|
||||||
return {
|
|
||||||
title: '好物精选',
|
let pages = getCurrentPages();
|
||||||
path: 'pages/points_mall/goodSelection',
|
let page = pages[pages.length - 1]
|
||||||
}
|
let shareData = {
|
||||||
|
title: '好物精选',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
onShareTimeline: function() {
|
onShareTimeline: function() {
|
||||||
return {
|
let shareData = {
|
||||||
title: '好物精选',
|
title: '好物精选',
|
||||||
query: {
|
query: {},
|
||||||
key: ''
|
};
|
||||||
},
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
imageUrl: ''
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
}
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
},
|
},
|
||||||
// #endif
|
// #endif
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.getSelectionList('');
|
this.getSelectionList('');
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goBack: function() {
|
goBack: function() {
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,7 @@
|
||||||
import { getIntegralHome, getIntegralScope, getIntegralGoodsList } from '@/api/points_mall.js'
|
import { getIntegralHome, getIntegralScope, getIntegralGoodsList } from '@/api/points_mall.js'
|
||||||
import { goShopDetail } from '@/libs/order.js';
|
import { goShopDetail } from '@/libs/order.js';
|
||||||
import {HTTP_REQUEST_URL} from '@/config/app';
|
import {HTTP_REQUEST_URL} from '@/config/app';
|
||||||
|
import spread from "../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {},
|
components: {},
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -113,11 +114,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin','viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.getIntegralHome();
|
this.getIntegralHome();
|
||||||
this.getIntegralScope();
|
this.getIntegralScope();
|
||||||
this.getIntegralGoods();
|
this.getIntegralGoods();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
||||||
|
|
@ -234,6 +238,33 @@
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.getIntegralGoods()
|
this.getIntegralGoods()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '积分商城',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '积分商城',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,9 @@
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import { goShopDetail } from '@/libs/order.js'
|
import { goShopDetail } from '@/libs/order.js'
|
||||||
import {HTTP_REQUEST_URL} from '@/config/app';
|
import {HTTP_REQUEST_URL} from '@/config/app';
|
||||||
|
import spread from "../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
computed: mapGetters(['uid','viewColor','keyColor']),
|
computed: mapGetters(['isLogin','uid','viewColor','keyColor']),
|
||||||
components: {
|
components: {
|
||||||
recommend,
|
recommend,
|
||||||
},
|
},
|
||||||
|
|
@ -103,6 +104,9 @@
|
||||||
this.$set(this.where, 'cate_id', option.cate_id || '');
|
this.$set(this.where, 'cate_id', option.cate_id || '');
|
||||||
this.$set(this.where, 'keyword', option.searchValue || '');
|
this.$set(this.where, 'keyword', option.searchValue || '');
|
||||||
this.get_product_list();
|
this.get_product_list();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(option.spread) spread(option.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
uni.removeStorageSync('form_type_cart');
|
uni.removeStorageSync('form_type_cart');
|
||||||
|
|
@ -187,7 +191,34 @@
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.get_product_list();
|
this.get_product_list();
|
||||||
|
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '积分商品列表',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '积分商品列表',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,7 @@ import { mapGetters } from 'vuex';
|
||||||
import { configMap } from "@/utils";
|
import { configMap } from "@/utils";
|
||||||
import { getStoreDetail, followStore, unfollowStore, merchantQrcode } from '@/api/store.js';
|
import { getStoreDetail, followStore, unfollowStore, merchantQrcode } from '@/api/store.js';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
let app = getApp();
|
let app = getApp();
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -120,6 +121,9 @@ export default {
|
||||||
this.id = options.mer_id || options.id;
|
this.id = options.mer_id || options.id;
|
||||||
this.getStore();
|
this.getStore();
|
||||||
this.getStoreCode();
|
this.getStoreCode();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReady: function() {},
|
onReady: function() {},
|
||||||
mounted: function() {},
|
mounted: function() {},
|
||||||
|
|
@ -306,7 +310,38 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '店铺详情',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
|
||||||
|
shareData.path = shareData.path + '?id=' + this.id;
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '店铺详情',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.id = this.id;
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -125,6 +125,7 @@
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import { goShopDetail } from '@/libs/order.js'
|
import { goShopDetail } from '@/libs/order.js'
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app'
|
import { HTTP_REQUEST_URL } from '@/config/app'
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
computed: configMap({hide_mer_status:0, recommend_switch: 0},mapGetters(['uid','isLogin','viewColor','keyColor'])),
|
computed: configMap({hide_mer_status:0, recommend_switch: 0},mapGetters(['uid','isLogin','viewColor','keyColor'])),
|
||||||
|
|
@ -221,6 +222,9 @@
|
||||||
this.$set(this.where, 'keyword', options.searchValue || '');
|
this.$set(this.where, 'keyword', options.searchValue || '');
|
||||||
this.get_product_list();
|
this.get_product_list();
|
||||||
this.get_host_product();
|
this.get_host_product();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReady(){},
|
onReady(){},
|
||||||
mounted: function() {},
|
mounted: function() {},
|
||||||
|
|
@ -478,6 +482,34 @@
|
||||||
onPageScroll() {
|
onPageScroll() {
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '商品列表',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '商品列表',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -147,6 +147,7 @@
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import Verify from '@/components/verify/verify.vue';
|
import Verify from '@/components/verify/verify.vue';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -204,7 +205,7 @@
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
clearTimeout(this.timer)
|
clearTimeout(this.timer)
|
||||||
},
|
},
|
||||||
computed: configMap({sys_intention_agree:''},mapGetters(['isLogin','viewColor','keyColor'])),
|
computed: configMap({sys_intention_agree:''},mapGetters(['isLogin','uid','viewColor','keyColor'])),
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getClassfication();
|
this.getClassfication();
|
||||||
|
|
@ -222,6 +223,9 @@
|
||||||
this.getGoodsDetails(options.mer_i_id)
|
this.getGoodsDetails(options.mer_i_id)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
|
|
@ -565,7 +569,34 @@
|
||||||
});
|
});
|
||||||
this.$refs.verify.show();
|
this.$refs.verify.show();
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '商家入驻',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '商家入驻',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -176,16 +176,15 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import { storeMerchantList, getGeocoder } from '@/api/store.js';
|
import { storeMerchantList, getGeocoder } from '@/api/store.js';
|
||||||
import recommend from '@/components/recommend';
|
import recommend from '@/components/recommend';
|
||||||
import rightSlider from '@/components/rightSlider/index';
|
import rightSlider from '@/components/rightSlider/index';
|
||||||
import { merClassifly, getStoreTypeApi } from '@/api/store.js';
|
import { merClassifly, getStoreTypeApi } from '@/api/store.js';
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import { goShopDetail } from '@/libs/order.js'
|
|
||||||
import { configMap } from '@/utils';
|
import { configMap } from '@/utils';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app'
|
import { HTTP_REQUEST_URL } from '@/config/app'
|
||||||
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -272,6 +271,9 @@
|
||||||
},500)
|
},500)
|
||||||
this.getClassfication();
|
this.getClassfication();
|
||||||
this.getStoreType();
|
this.getStoreType();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
downMenus: function() {
|
downMenus: function() {
|
||||||
|
|
@ -289,7 +291,7 @@
|
||||||
mer_location: 0,
|
mer_location: 0,
|
||||||
store_street_theme: 1,
|
store_street_theme: 1,
|
||||||
hide_mer_status: '',
|
hide_mer_status: '',
|
||||||
}, mapGetters(['viewColor'])),
|
}, mapGetters(['isLogin','uid','viewColor'])),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取商户分类
|
// 获取商户分类
|
||||||
|
|
@ -540,7 +542,34 @@
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '附近商家',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '附近商家',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,9 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
|
import spread from "../../libs/spread";
|
||||||
|
|
||||||
|
let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
|
||||||
import { getMenuList, getUserInfo, setVisit } from '@/api/user.js';
|
import { getMenuList, getUserInfo, setVisit } from '@/api/user.js';
|
||||||
import { getVersion, getNavigation } from "@/api/public";
|
import { getVersion, getNavigation } from "@/api/public";
|
||||||
import { orderData } from '@/api/order.js'
|
import { orderData } from '@/api/order.js'
|
||||||
|
|
@ -241,7 +243,7 @@
|
||||||
balance_func_status: 0,
|
balance_func_status: 0,
|
||||||
svip_switch_status: 0,
|
svip_switch_status: 0,
|
||||||
navigation: {}
|
navigation: {}
|
||||||
} , mapGetters(['isLogin','viewColor','keyColor'])),
|
} , mapGetters(['isLogin','uid','viewColor','keyColor'])),
|
||||||
filters: {
|
filters: {
|
||||||
dateFormat: function(value) {
|
dateFormat: function(value) {
|
||||||
return dayjs(value * 1000).format('YYYY-MM-DD');
|
return dayjs(value * 1000).format('YYYY-MM-DD');
|
||||||
|
|
@ -327,10 +329,13 @@
|
||||||
swiperHeight: 0, // 滑块的高度(单位px)
|
swiperHeight: 0, // 滑块的高度(单位px)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.setSwiperHeight(); // 动态设置 swiper 的高度
|
this.setSwiperHeight(); // 动态设置 swiper 的高度
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
this.isNodes++;
|
this.isNodes++;
|
||||||
|
|
@ -610,6 +615,33 @@
|
||||||
this.getMyMenus();
|
this.getMyMenus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '个人中心',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '个人中心',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,8 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import {cacheLst} from '@/api/user.js';
|
import {cacheLst} from '@/api/user.js';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
export default{
|
export default{
|
||||||
name:'agreement-rules',
|
name:'agreement-rules',
|
||||||
data(){
|
data(){
|
||||||
|
|
@ -19,8 +21,11 @@
|
||||||
listDta:''
|
listDta:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad: function() {
|
computed: mapGetters(['isLogin','uid']),
|
||||||
|
onLoad: function(options) {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getInfo(){
|
getInfo(){
|
||||||
|
|
@ -33,7 +38,33 @@
|
||||||
url: '/pages/users/user_about/index?from='+e
|
url: '/pages/users/user_about/index?from='+e
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '协议规则',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '协议规则',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -86,12 +86,13 @@
|
||||||
import { goShopDetail } from '@/libs/order.js'
|
import { goShopDetail } from '@/libs/order.js'
|
||||||
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default{
|
export default{
|
||||||
components:{
|
components:{
|
||||||
emptyPage,
|
emptyPage,
|
||||||
easyLoadimage
|
easyLoadimage
|
||||||
},
|
},
|
||||||
computed: mapGetters(['viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
list:[],
|
list:[],
|
||||||
|
|
@ -104,6 +105,11 @@
|
||||||
total: 0
|
total: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad(options){
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.list = [];
|
this.list = [];
|
||||||
this.allArr = [];
|
this.allArr = [];
|
||||||
|
|
@ -316,7 +322,34 @@
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '浏览记录',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '浏览记录',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@
|
||||||
import { getBrokerageRank } from '@/api/user.js';
|
import { getBrokerageRank } from '@/api/user.js';
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize,
|
authorize,
|
||||||
|
|
@ -58,14 +59,17 @@
|
||||||
isShowAuth: false, //是否隐藏授权
|
isShowAuth: false, //是否隐藏授权
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin','viewColor','keyColor']),
|
computed: mapGetters(['isLogin','uid','viewColor','keyColor']),
|
||||||
onLoad(){
|
onLoad(options){
|
||||||
if(this.isLogin){
|
if(this.isLogin){
|
||||||
this.getBrokerageRankList();
|
this.getBrokerageRankList();
|
||||||
}else{
|
}else{
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onLoadFun:function(){
|
onLoadFun:function(){
|
||||||
|
|
@ -111,7 +115,33 @@
|
||||||
onReachBottom: function () {
|
onReachBottom: function () {
|
||||||
this.page++;
|
this.page++;
|
||||||
this.getBrokerageRankList();
|
this.getBrokerageRankList();
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '佣金排行',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '佣金排行',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,11 +117,12 @@
|
||||||
import ProductWindow from "@/components/productWindow";
|
import ProductWindow from "@/components/productWindow";
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
ProductWindow
|
ProductWindow
|
||||||
},
|
},
|
||||||
computed: mapGetters(['viewColor','keyColor']),
|
computed: mapGetters(['isLogin','uid','viewColor','keyColor']),
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
|
|
@ -152,7 +153,10 @@
|
||||||
openActivity: false,
|
openActivity: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {},
|
onLoad(options) {
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
this.bagExplain();
|
this.bagExplain();
|
||||||
this.productBag();
|
this.productBag();
|
||||||
|
|
@ -448,7 +452,34 @@
|
||||||
close() {
|
close() {
|
||||||
this.explainShow = false;
|
this.explainShow = false;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '附近商家',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '附近商家',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
import { configMap } from '@/utils';
|
import { configMap } from '@/utils';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -108,22 +109,23 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
...configMap(['is_open_service'], mapGetters(['viewColor', 'keyColor']))
|
...configMap(['is_open_service'], mapGetters(['isLogin','uid','viewColor', 'keyColor']))
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
uploadImg(nVal, oVal) {
|
uploadImg(nVal, oVal) {
|
||||||
this.isUpload = nVal.length < 6 ? true : false
|
this.isUpload = nVal.length < 6 ? true : false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.hasService()
|
this.hasService()
|
||||||
// 获取反馈类型
|
// 获取反馈类型
|
||||||
feedbackType().then(({
|
feedbackType().then(({data}) => {
|
||||||
data
|
|
||||||
}) => {
|
|
||||||
this.tabList = data
|
this.tabList = data
|
||||||
this.getFeedBack(data)
|
this.getFeedBack(data)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toChat(){
|
toChat(){
|
||||||
|
|
@ -236,7 +238,34 @@
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '问题反馈',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '问题反馈',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,11 +21,12 @@
|
||||||
import emptyPage from '@/components/emptyPage.vue'
|
import emptyPage from '@/components/emptyPage.vue'
|
||||||
import { feedbackList } from '@/api/user.js'
|
import { feedbackList } from '@/api/user.js'
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
emptyPage
|
emptyPage
|
||||||
},
|
},
|
||||||
computed: mapGetters(['viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
list:[],
|
list:[],
|
||||||
|
|
@ -34,8 +35,11 @@
|
||||||
isScroll:true
|
isScroll:true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getList(){
|
getList(){
|
||||||
|
|
@ -58,7 +62,34 @@
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.getList()
|
this.getList()
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '反馈记录',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '反馈记录',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@
|
||||||
import {
|
import {
|
||||||
mapGetters
|
mapGetters
|
||||||
} from "vuex";
|
} from "vuex";
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
// import cookie from "@/utils/store/cookie";
|
// import cookie from "@/utils/store/cookie";
|
||||||
const LONGITUDE = "user_longitude";
|
const LONGITUDE = "user_longitude";
|
||||||
const LATITUDE = "user_latitude";
|
const LATITUDE = "user_latitude";
|
||||||
|
|
@ -73,7 +74,7 @@
|
||||||
components: {
|
components: {
|
||||||
Loading
|
Loading
|
||||||
},
|
},
|
||||||
// computed: mapGetters(["goName"]),
|
computed: mapGetters(['isLogin','uid']),
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
page: 1,
|
page: 1,
|
||||||
|
|
@ -89,13 +90,16 @@
|
||||||
user_longitude: 0
|
user_longitude: 0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
try {
|
try {
|
||||||
this.user_latitude = uni.getStorageSync('user_latitude');
|
this.user_latitude = uni.getStorageSync('user_latitude');
|
||||||
this.user_longitude = uni.getStorageSync('user_longitude');
|
this.user_longitude = uni.getStorageSync('user_longitude');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.user_latitude && this.user_longitude) {
|
if (this.user_latitude && this.user_longitude) {
|
||||||
|
|
@ -225,7 +229,33 @@
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.getList();
|
this.getList();
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '门店列表',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '门店列表',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -254,7 +254,9 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
let app = getApp();
|
import spread from "../../../libs/spread";
|
||||||
|
|
||||||
|
let app = getApp();
|
||||||
import {
|
import {
|
||||||
getOrderList,
|
getOrderList,
|
||||||
orderData,
|
orderData,
|
||||||
|
|
@ -334,8 +336,13 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['isLogin','viewColor']),
|
...mapGetters(['isLogin','uid','viewColor']),
|
||||||
...configMap(['hide_mer_status', 'community_status', 'alipay_open', 'yue_pay_status']),
|
...configMap(['hide_mer_status', 'community_status', 'alipay_open', 'yue_pay_status']),
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
@ -722,7 +729,34 @@
|
||||||
},
|
},
|
||||||
onReachBottom: function() {
|
onReachBottom: function() {
|
||||||
this.getOrderList();
|
this.getOrderList();
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '订单列表',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '订单列表',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,9 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
let app = getApp();
|
import spread from "../../../libs/spread";
|
||||||
|
|
||||||
|
let app = getApp();
|
||||||
import {
|
import {
|
||||||
getOrderList,
|
getOrderList,
|
||||||
orderData,
|
orderData,
|
||||||
|
|
@ -139,8 +141,12 @@
|
||||||
isTimePay: false,
|
isTimePay: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onLoad(options){
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['isLogin','viewColor']),
|
...mapGetters(['isLogin','uid','viewColor']),
|
||||||
...configMap(['hide_mer_status', 'community_status', 'alipay_open', 'yue_pay_status']),
|
...configMap(['hide_mer_status', 'community_status', 'alipay_open', 'yue_pay_status']),
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
@ -398,7 +404,35 @@
|
||||||
},
|
},
|
||||||
onReachBottom: function() {
|
onReachBottom: function() {
|
||||||
this.getOrderList();
|
this.getOrderList();
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '预售订单',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '预售订单',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
import timeSlot from '@/components/timeSlot/index.vue';
|
import timeSlot from '@/components/timeSlot/index.vue';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize,
|
authorize,
|
||||||
|
|
@ -112,8 +113,8 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin','viewColor','keyColor']),
|
computed: mapGetters(['isLogin','uid','viewColor','keyColor']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.userSpreadNewList();
|
this.userSpreadNewList();
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
|
|
@ -121,6 +122,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
if (this.is_show){
|
if (this.is_show){
|
||||||
|
|
@ -217,7 +221,34 @@
|
||||||
},
|
},
|
||||||
onReachBottom: function() {
|
onReachBottom: function() {
|
||||||
this.userSpreadNewList();
|
this.userSpreadNewList();
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '推广人统计',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '推广人统计',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import emptyPage from '@/components/emptyPage.vue';
|
import emptyPage from '@/components/emptyPage.vue';
|
||||||
import timeSlot from '@/components/timeSlot/index.vue';
|
import timeSlot from '@/components/timeSlot/index.vue';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize,
|
authorize,
|
||||||
|
|
@ -88,14 +89,17 @@
|
||||||
times: [],
|
times: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin','viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getRecordOrderList();
|
this.getRecordOrderList();
|
||||||
} else {
|
} else {
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
spreadInfo(){
|
spreadInfo(){
|
||||||
|
|
@ -154,7 +158,33 @@
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.getRecordOrderList();
|
this.getRecordOrderList();
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '推广人订单',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '推广人订单',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@
|
||||||
import { getRankList } from '@/api/user.js';
|
import { getRankList } from '@/api/user.js';
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize
|
authorize
|
||||||
|
|
@ -77,14 +78,17 @@
|
||||||
isShowAuth: false //是否隐藏授权
|
isShowAuth: false //是否隐藏授权
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin','viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getRanklist();
|
this.getRanklist();
|
||||||
} else {
|
} else {
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onLoadFun() {
|
onLoadFun() {
|
||||||
|
|
@ -139,7 +143,33 @@
|
||||||
},
|
},
|
||||||
onReachBottom: function() {
|
onReachBottom: function() {
|
||||||
this.getRanklist();
|
this.getRanklist();
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '推广人排行',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '推广人排行',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,9 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
const app = getApp();
|
import spread from "../../../libs/spread";
|
||||||
|
|
||||||
|
const app = getApp();
|
||||||
import sendVerifyCode from "@/mixins/SendVerifyCode";
|
import sendVerifyCode from "@/mixins/SendVerifyCode";
|
||||||
import {
|
import {
|
||||||
registerVerify,
|
registerVerify,
|
||||||
|
|
@ -73,6 +75,7 @@
|
||||||
} from "@/utils/validate";
|
} from "@/utils/validate";
|
||||||
import { configMap } from '@/utils';
|
import { configMap } from '@/utils';
|
||||||
import Verify from '@/components/verify/verify.vue';
|
import Verify from '@/components/verify/verify.vue';
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "RetrievePassword",
|
name: "RetrievePassword",
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -91,7 +94,12 @@
|
||||||
isShowCode: false,
|
isShowCode: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: configMap(['login_logo']),
|
onLoad(options) {
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
|
},
|
||||||
|
computed: configMap(['login_logo'],mapGetters(['isLogin','uid'])),
|
||||||
onReady() {
|
onReady() {
|
||||||
},
|
},
|
||||||
mounted: function() {
|
mounted: function() {
|
||||||
|
|
@ -183,7 +191,33 @@
|
||||||
handleVerify() {
|
handleVerify() {
|
||||||
this.$refs.verify.show();
|
this.$refs.verify.show();
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '忘记密码',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '忘记密码',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@
|
||||||
getLogout
|
getLogout
|
||||||
} from '@/api/user.js'
|
} from '@/api/user.js'
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
name: 'user_about',
|
name: 'user_about',
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -49,10 +50,13 @@
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: mapGetters(['viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
this.type = options.from;
|
this.type = options.from;
|
||||||
this.setTitle(this.type)
|
this.setTitle(this.type)
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toCancel(){
|
toCancel(){
|
||||||
|
|
@ -161,7 +165,34 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '协议',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '协议',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@
|
||||||
import areaWindow from '@/components/areaWindow';
|
import areaWindow from '@/components/areaWindow';
|
||||||
import { getGeocoder } from '@/api/store.js';
|
import { getGeocoder } from '@/api/store.js';
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
areaWindow,
|
areaWindow,
|
||||||
|
|
@ -88,7 +89,7 @@
|
||||||
loading: false
|
loading: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {...mapGetters(['isLogin','viewColor']),
|
computed: {...mapGetters(['isLogin','uid','viewColor']),
|
||||||
addressText(){
|
addressText(){
|
||||||
return this.addressInfo.map(v=>v.name).join('/');
|
return this.addressInfo.map(v=>v.name).join('/');
|
||||||
}
|
}
|
||||||
|
|
@ -109,6 +110,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
OnChangeAddress(address){
|
OnChangeAddress(address){
|
||||||
|
|
@ -347,7 +351,33 @@
|
||||||
ChangeIsDefault: function(e) {
|
ChangeIsDefault: function(e) {
|
||||||
this.$set(this.userAddress, 'is_default', !this.userAddress.is_default);
|
this.$set(this.userAddress, 'is_default', !this.userAddress.is_default);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '添加地址',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '添加地址',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,9 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
const jweixin = require('@/plugin/jweixin-module/index.js')
|
import spread from "../../../libs/spread";
|
||||||
|
|
||||||
|
const jweixin = require('@/plugin/jweixin-module/index.js')
|
||||||
// #endif
|
// #endif
|
||||||
import {getWechatConfig} from '@/api/public.js'
|
import {getWechatConfig} from '@/api/public.js'
|
||||||
import {
|
import {
|
||||||
|
|
@ -82,7 +84,7 @@
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin', 'viewColor']),
|
computed: mapGetters(['isLogin','uid', 'viewColor']),
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.cartId = options.cartId || '';
|
this.cartId = options.cartId || '';
|
||||||
|
|
@ -99,6 +101,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
|
|
||||||
|
|
@ -346,7 +351,42 @@
|
||||||
},
|
},
|
||||||
onReachBottom: function() {
|
onReachBottom: function() {
|
||||||
this.getAddressList();
|
this.getAddressList();
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '地址管理',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
shareData.path = shareData.path + '?cartId=' + this.cartId;
|
||||||
|
shareData.path = shareData.path + '&pinkId=' + this.pinkId;
|
||||||
|
shareData.path = shareData.path + '&couponId=' + this.couponId;
|
||||||
|
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '地址管理',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.cartId = this.cartId;
|
||||||
|
shareData.query.pinkId = this.pinkId;
|
||||||
|
shareData.query.couponId = this.couponId;
|
||||||
|
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@
|
||||||
} from "vuex";
|
} from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import emptyPage from '@/components/emptyPage.vue'
|
import emptyPage from '@/components/emptyPage.vue'
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize,
|
authorize,
|
||||||
|
|
@ -62,7 +63,7 @@
|
||||||
isShowAuth: false //是否隐藏授权
|
isShowAuth: false //是否隐藏授权
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin','viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
onShow() {
|
onShow() {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserBillList();
|
this.getUserBillList();
|
||||||
|
|
@ -76,6 +77,9 @@
|
||||||
*/
|
*/
|
||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
this.type = options.type || 0;
|
this.type = options.type || 0;
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 页面上拉触底事件的处理函数
|
* 页面上拉触底事件的处理函数
|
||||||
|
|
@ -133,7 +137,33 @@
|
||||||
this.$set(this, 'userBillList', []);
|
this.$set(this, 'userBillList', []);
|
||||||
this.getUserBillList();
|
this.getUserBillList();
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '账单明细',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '账单明细',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,7 @@
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import emptyPage from '@/components/emptyPage.vue';
|
import emptyPage from '@/components/emptyPage.vue';
|
||||||
import parser from "@/components/jyf-parser/jyf-parser";
|
import parser from "@/components/jyf-parser/jyf-parser";
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -159,8 +160,8 @@
|
||||||
type: ''
|
type: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin']),
|
computed: mapGetters(['isLogin','uid']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.getGrade();
|
this.getGrade();
|
||||||
|
|
@ -170,6 +171,9 @@
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
this.getAgreement();
|
this.getAgreement();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 页面上拉触底事件的处理函数
|
* 页面上拉触底事件的处理函数
|
||||||
|
|
@ -278,7 +282,33 @@
|
||||||
}
|
}
|
||||||
return(s);
|
return(s);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '分销等级',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '分销等级',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,7 @@
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import cash from '@/components/cash';
|
import cash from '@/components/cash';
|
||||||
import { configMap } from '@/utils';
|
import { configMap } from '@/utils';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
cash,
|
cash,
|
||||||
|
|
@ -211,7 +212,7 @@
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['isLogin','viewColor']),
|
...mapGetters(['isLogin','uid','viewColor']),
|
||||||
... configMap(['sys_extension_type', 'withdraw_type'])
|
... configMap(['sys_extension_type', 'withdraw_type'])
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
@ -231,6 +232,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadType(){
|
loadType(){
|
||||||
|
|
@ -417,7 +421,33 @@
|
||||||
(action && this[action]) && this[action](value);
|
(action && this[action]) && this[action](value);
|
||||||
this.currentTab = opt.type
|
this.currentTab = opt.type
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '提现',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '提现',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,9 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
let app = getApp();
|
import spread from "../../../libs/spread";
|
||||||
|
|
||||||
|
let app = getApp();
|
||||||
import {
|
import {
|
||||||
getUserCoupons
|
getUserCoupons
|
||||||
} from '@/api/api.js';
|
} from '@/api/api.js';
|
||||||
|
|
@ -103,7 +105,7 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: configMap(['hide_mer_status'], mapGetters(['isLogin','viewColor','keyColor'])),
|
computed: configMap(['hide_mer_status'], mapGetters(['isLogin','uid','viewColor','keyColor'])),
|
||||||
filters: {
|
filters: {
|
||||||
timeYMD: function (value) {
|
timeYMD: function (value) {
|
||||||
if(value){
|
if(value){
|
||||||
|
|
@ -112,13 +114,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUseCoupons();
|
this.getUseCoupons();
|
||||||
} else {
|
} else {
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
mounted: function() {
|
mounted: function() {
|
||||||
},
|
},
|
||||||
|
|
@ -168,7 +173,33 @@
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.getUseCoupons()
|
this.getUseCoupons()
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '我的优惠券',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '我的优惠券',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize
|
authorize
|
||||||
|
|
@ -58,7 +59,7 @@
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin']),
|
computed: mapGetters(['isLogin']),
|
||||||
onLoad(){
|
onLoad(options){
|
||||||
if(this.isLogin){
|
if(this.isLogin){
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
this.getUseCoupons();
|
this.getUseCoupons();
|
||||||
|
|
@ -67,6 +68,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 页面上拉触底事件的处理函数
|
* 页面上拉触底事件的处理函数
|
||||||
|
|
@ -115,7 +119,34 @@
|
||||||
that.loadTitle = '加载更多';
|
that.loadTitle = '加载更多';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '领取优惠券',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '领取优惠券',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,7 @@
|
||||||
import { configMap } from '@/utils';
|
import { configMap } from '@/utils';
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import parser from "@/components/jyf-parser/jyf-parser";
|
import parser from "@/components/jyf-parser/jyf-parser";
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
recommend,
|
recommend,
|
||||||
|
|
@ -195,8 +196,8 @@
|
||||||
upgradeInfo: {}
|
upgradeInfo: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: configMap({hide_mer_status: 1,recommend_switch:0,svip_switch_status:0},mapGetters(['isLogin'])),
|
computed: configMap({hide_mer_status: 1,recommend_switch:0,svip_switch_status:0},mapGetters(['isLogin','uid'])),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getInstructions();
|
this.getInstructions();
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
|
|
@ -207,6 +208,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
|
|
@ -295,6 +299,32 @@
|
||||||
onPageScroll() {
|
onPageScroll() {
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
},
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '我的等级',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '我的等级',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
import { growthValueRecord } from '@/api/user.js';
|
import { growthValueRecord } from '@/api/user.js';
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize
|
authorize
|
||||||
|
|
@ -44,14 +45,17 @@
|
||||||
isShowAuth: false //是否隐藏授权
|
isShowAuth: false //是否隐藏授权
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin']),
|
computed: mapGetters(['isLogin','uid']),
|
||||||
onLoad(){
|
onLoad(options){
|
||||||
if(this.isLogin){
|
if(this.isLogin){
|
||||||
this.getGrowthListList();
|
this.getGrowthListList();
|
||||||
}else{
|
}else{
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReachBottom: function () {
|
onReachBottom: function () {
|
||||||
this.getGrowthListList();
|
this.getGrowthListList();
|
||||||
|
|
@ -91,7 +95,33 @@
|
||||||
that.loadtitle = '加载更多';
|
that.loadtitle = '加载更多';
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '成长值记录',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '成长值记录',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,7 @@
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import Cache from '@/utils/cache';
|
import Cache from '@/utils/cache';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize
|
authorize
|
||||||
|
|
@ -161,8 +162,8 @@
|
||||||
version: ''
|
version: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: configMap({open_update_info: 0} ,mapGetters(['isLogin','viewColor','keyColor'])),
|
computed: configMap({open_update_info: 0} ,mapGetters(['isLogin','uid','viewColor','keyColor'])),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -172,6 +173,9 @@
|
||||||
//#ifdef APP-PLUS
|
//#ifdef APP-PLUS
|
||||||
this.appVersionConfig()
|
this.appVersionConfig()
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toggle(type) {
|
toggle(type) {
|
||||||
|
|
@ -357,7 +361,33 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '个人资料',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '个人资料',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -160,6 +160,7 @@ import {
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import emptyPage from '@/components/emptyPage.vue';
|
import emptyPage from '@/components/emptyPage.vue';
|
||||||
import parser from "@/components/jyf-parser/jyf-parser";
|
import parser from "@/components/jyf-parser/jyf-parser";
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
|
|
||||||
const app = getApp();
|
const app = getApp();
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -215,7 +216,7 @@ export default {
|
||||||
},
|
},
|
||||||
...mapGetters(['isLogin', 'userInfo', 'viewColor'])
|
...mapGetters(['isLogin', 'userInfo', 'viewColor'])
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -223,6 +224,9 @@ export default {
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
this.getAgreement();
|
this.getAgreement();
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReachBottom: function () {
|
onReachBottom: function () {
|
||||||
this.getIntegralList();
|
this.getIntegralList();
|
||||||
|
|
@ -341,7 +345,33 @@ export default {
|
||||||
console.log("错误 catch:",err);
|
console.log("错误 catch:",err);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '积分详情',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '积分详情',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,7 @@
|
||||||
import { invoice, invoiceDelete } from '@/api/user.js';
|
import { invoice, invoiceDelete } from '@/api/user.js';
|
||||||
import { receiptOrder } from '@/api/order.js';
|
import { receiptOrder } from '@/api/order.js';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
home
|
home
|
||||||
|
|
@ -98,7 +99,7 @@
|
||||||
orderPage:1
|
orderPage:1
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin','viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
watch: {
|
watch: {
|
||||||
loading(value) {
|
loading(value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
|
@ -119,7 +120,9 @@
|
||||||
uni.removeStorageSync('user_invoice_list')
|
uni.removeStorageSync('user_invoice_list')
|
||||||
}catch(error){}
|
}catch(error){}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(optios.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.orderPage =1
|
this.orderPage =1
|
||||||
|
|
@ -229,7 +232,34 @@
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.receiptOrder()
|
this.receiptOrder()
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '发票管理',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '发票管理',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@
|
||||||
} from "vuex";
|
} from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import Verify from '@/components/verify/verify.vue';
|
import Verify from '@/components/verify/verify.vue';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
mixins: [sendVerifyCode],
|
mixins: [sendVerifyCode],
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -61,8 +62,8 @@
|
||||||
isShowCode: false
|
isShowCode: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin', 'viewColor']),
|
computed: mapGetters(['isLogin','uid', 'viewColor']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
let that = this
|
let that = this
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
|
|
@ -81,6 +82,9 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onLoadFun:function(){
|
onLoadFun:function(){
|
||||||
|
|
@ -175,7 +179,33 @@
|
||||||
handleVerify() {
|
handleVerify() {
|
||||||
this.$refs.verify.show();
|
this.$refs.verify.show();
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '修改手机号',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '修改手机号',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@
|
||||||
} from "vuex";
|
} from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import Verify from '@/components/verify/verify.vue';
|
import Verify from '@/components/verify/verify.vue';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
mixins: [sendVerifyCode],
|
mixins: [sendVerifyCode],
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -61,8 +62,8 @@
|
||||||
disabled: false,
|
disabled: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin', 'viewColor']),
|
computed: mapGetters(['isLogin','uid', 'viewColor']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
let that = this
|
let that = this
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
|
|
@ -81,6 +82,9 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onLoadFun:function(){
|
onLoadFun:function(){
|
||||||
|
|
@ -167,7 +171,33 @@
|
||||||
handleVerify() {
|
handleVerify() {
|
||||||
this.$refs.verify.show();
|
this.$refs.verify.show();
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '修改密码',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '修改密码',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,9 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
let app = getApp();
|
import spread from "../../../libs/spread";
|
||||||
|
|
||||||
|
let app = getApp();
|
||||||
import {
|
import {
|
||||||
getProductHot
|
getProductHot
|
||||||
} from '@/api/store.js';
|
} from '@/api/store.js';
|
||||||
|
|
@ -95,8 +97,8 @@
|
||||||
hotLimit:10
|
hotLimit:10
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: configMap(['recharge_switch', 'balance_func_status','recommend_switch'], mapGetters(['isLogin','viewColor','keyColor'])),
|
computed: configMap(['recharge_switch', 'balance_func_status','recommend_switch'], mapGetters(['isLogin','uid','viewColor','keyColor'])),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
this.get_host_product();
|
this.get_host_product();
|
||||||
|
|
@ -104,6 +106,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
},
|
},
|
||||||
|
|
@ -160,7 +165,33 @@
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
|
||||||
uni.$emit('scroll');
|
uni.$emit('scroll');
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '我的账户',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '我的账户',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
mapGetters
|
mapGetters
|
||||||
} from "vuex";
|
} from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize
|
authorize
|
||||||
|
|
@ -42,8 +43,8 @@
|
||||||
isShowAuth: false, //是否隐藏授权
|
isShowAuth: false, //是否隐藏授权
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin', 'viewColor']),
|
computed: mapGetters(['isLogin','uid', 'viewColor']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
|
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
|
|
@ -51,7 +52,8 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
};
|
};
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
|
@ -105,6 +107,33 @@
|
||||||
authColse: function(e) {
|
authColse: function(e) {
|
||||||
this.isShowAuth = e
|
this.isShowAuth = e
|
||||||
},
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '昵称',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '昵称',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,9 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
var statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
|
import spread from "../../../libs/spread";
|
||||||
|
|
||||||
|
var statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
|
||||||
import {
|
import {
|
||||||
spreadInfo,
|
spreadInfo,
|
||||||
rechargeRoutine,
|
rechargeRoutine,
|
||||||
|
|
@ -130,7 +132,7 @@
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['viewColor','isLogin']),
|
computed: mapGetters(['viewColor','isLogin','uid']),
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.delta = options.delta || 1;
|
this.delta = options.delta || 1;
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
|
|
@ -140,6 +142,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onUnload: function () {
|
onUnload: function () {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
|
|
@ -521,7 +526,33 @@
|
||||||
let value = opt.value != undefined ? opt.value : null;
|
let value = opt.value != undefined ? opt.value : null;
|
||||||
action && this[action] && this[action](value);
|
action && this[action] && this[action](value);
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '余额充值',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '余额充值',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
import { configMap } from '@/utils/index';
|
import { configMap } from '@/utils/index';
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import Verify from '@/components/verify/verify.vue';
|
import Verify from '@/components/verify/verify.vue';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
mixins: [sendVerifyCode],
|
mixins: [sendVerifyCode],
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -50,10 +51,10 @@
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['isLogin', 'viewColor']),
|
...mapGetters(['isLogin','uid', 'viewColor']),
|
||||||
...configMap(['wechat_phone_switch'])
|
...configMap(['wechat_phone_switch'])
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
let that = this
|
let that = this
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
// verifyCode().then(res=>{
|
// verifyCode().then(res=>{
|
||||||
|
|
@ -74,6 +75,9 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onLoadFun:function(){
|
onLoadFun:function(){
|
||||||
|
|
@ -206,7 +210,33 @@
|
||||||
handleVerify() {
|
handleVerify() {
|
||||||
this.$refs.verify.show();
|
this.$refs.verify.show();
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '绑定手机',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '绑定手机',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@
|
||||||
} from "vuex";
|
} from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import Verify from '@/components/verify/verify.vue';
|
import Verify from '@/components/verify/verify.vue';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
mixins: [sendVerifyCode],
|
mixins: [sendVerifyCode],
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -57,14 +58,17 @@
|
||||||
isShowAuth: false //是否隐藏授权
|
isShowAuth: false //是否隐藏授权
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin']),
|
computed: mapGetters(['isLogin','uid']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
} else {
|
} else {
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
|
|
@ -153,7 +157,33 @@
|
||||||
handleVerify() {
|
handleVerify() {
|
||||||
this.$refs.verify.show();
|
this.$refs.verify.show();
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '修改密码',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '修改密码',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,13 +31,21 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
export default{
|
import spread from "../../../libs/spread";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
|
export default{
|
||||||
name:'user-setting',
|
name:'user-setting',
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: mapGetters(['isLogin','uid']),
|
||||||
|
onLoad(options) {
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
|
},
|
||||||
methods:{
|
methods:{
|
||||||
/**
|
/**
|
||||||
* 小程序设置
|
* 小程序设置
|
||||||
|
|
@ -63,8 +71,34 @@
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/users/agreement_rules/index'
|
url: '/pages/users/agreement_rules/index'
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '设置',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '设置',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,7 @@
|
||||||
import { getSignUser, getSignList, setSignIntegral} from '@/api/user.js';
|
import { getSignUser, getSignList, setSignIntegral} from '@/api/user.js';
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import { HTTP_REQUEST_URL } from '@/config/app';
|
import { HTTP_REQUEST_URL } from '@/config/app';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize
|
authorize
|
||||||
|
|
@ -93,8 +94,8 @@
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin','viewColor','keyColor']),
|
computed: mapGetters(['isLogin','uid','viewColor','keyColor']),
|
||||||
onLoad(){
|
onLoad(options){
|
||||||
if(this.isLogin){
|
if(this.isLogin){
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.getSignList();
|
this.getSignList();
|
||||||
|
|
@ -102,6 +103,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
|
|
@ -198,7 +202,33 @@
|
||||||
this.getSignList();
|
this.getSignList();
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '签到',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '签到',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
import { getSignMonthList } from '@/api/user.js';
|
import { getSignMonthList } from '@/api/user.js';
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize
|
authorize
|
||||||
|
|
@ -44,14 +45,17 @@
|
||||||
isShowAuth: false //是否隐藏授权
|
isShowAuth: false //是否隐藏授权
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin','viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
onLoad(){
|
onLoad(options){
|
||||||
if(this.isLogin){
|
if(this.isLogin){
|
||||||
this.getSignMoneList();
|
this.getSignMoneList();
|
||||||
}else{
|
}else{
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onReachBottom: function () {
|
onReachBottom: function () {
|
||||||
this.getSignMoneList();
|
this.getSignMoneList();
|
||||||
|
|
@ -91,7 +95,33 @@
|
||||||
that.loadtitle = '加载更多';
|
that.loadtitle = '加载更多';
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '签到记录',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '签到记录',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@
|
||||||
import home from '@/components/home';
|
import home from '@/components/home';
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
import {HTTP_REQUEST_URL} from '@/config/app.js'
|
import {HTTP_REQUEST_URL} from '@/config/app.js'
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
// #endif
|
// #endif
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -114,10 +115,16 @@
|
||||||
hg: 500
|
hg: 500
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
|
},
|
||||||
computed: mapGetters({
|
computed: mapGetters({
|
||||||
'isLogin': 'isLogin',
|
'isLogin': 'isLogin',
|
||||||
'userData': 'userInfo',
|
'userData': 'userInfo',
|
||||||
'viewColor': 'viewColor'
|
'viewColor': 'viewColor',
|
||||||
|
'uid': 'uid'
|
||||||
}),
|
}),
|
||||||
watch: {
|
watch: {
|
||||||
isLogin: {
|
isLogin: {
|
||||||
|
|
@ -296,15 +303,16 @@
|
||||||
downloadFilestoreImage(url) {
|
downloadFilestoreImage(url) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
// console.log('图片转符合安全域名路径 url:',url);
|
||||||
uni.downloadFile({
|
uni.downloadFile({
|
||||||
url: url,
|
url: url,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
// console.log("图片转符合安全域名路径 success:",res);
|
||||||
resolve(res.tempFilePath);
|
resolve(res.tempFilePath);
|
||||||
},
|
},
|
||||||
fail: function() {
|
fail: function(err) {
|
||||||
return that.$util.Tips({
|
resolve(url);
|
||||||
title: ''
|
// console.log("图片转符合安全域名路径 fail:",err);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
@ -344,7 +352,33 @@
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '分销海报',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '分销海报',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import emptyPage from '@/components/emptyPage.vue';
|
import emptyPage from '@/components/emptyPage.vue';
|
||||||
import timeSlot from '@/components/timeSlot/index.vue';
|
import timeSlot from '@/components/timeSlot/index.vue';
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize,
|
authorize,
|
||||||
|
|
@ -103,7 +104,7 @@
|
||||||
stop: ""
|
stop: ""
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin','viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.type = options.type;
|
this.type = options.type;
|
||||||
|
|
@ -111,6 +112,10 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
let type = this.type;
|
let type = this.type;
|
||||||
|
|
@ -210,7 +215,38 @@
|
||||||
},
|
},
|
||||||
onReachBottom: function() {
|
onReachBottom: function() {
|
||||||
this.getRecordList();
|
this.getRecordList();
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '佣金记录',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
|
||||||
|
shareData.path = shareData.path + '?type=' + this.type;
|
||||||
|
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '&spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '佣金记录',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
shareData.query.type = this.type;
|
||||||
|
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@
|
||||||
} from "vuex";
|
} from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import parser from "@/components/jyf-parser/jyf-parser";
|
import parser from "@/components/jyf-parser/jyf-parser";
|
||||||
|
import spread from "../../../libs/spread";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
authorize,
|
authorize,
|
||||||
|
|
@ -97,8 +98,8 @@
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin','viewColor']),
|
computed: mapGetters(['isLogin','uid','viewColor']),
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.spreadInfo();
|
this.spreadInfo();
|
||||||
this.getCommissionDescription();
|
this.getCommissionDescription();
|
||||||
|
|
@ -106,6 +107,9 @@
|
||||||
this.isAuto = true;
|
this.isAuto = true;
|
||||||
this.isShowAuth = true
|
this.isShowAuth = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 关系处理
|
||||||
|
if(options.spread) spread(options.spread, this.isLogin)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取佣金说明
|
// 获取佣金说明
|
||||||
|
|
@ -155,7 +159,33 @@
|
||||||
},1000)
|
},1000)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// #ifdef MP
|
||||||
|
// 分享给好友
|
||||||
|
onShareAppMessage () {
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
let page = pages[pages.length - 1]
|
||||||
|
let shareData = {
|
||||||
|
title: '我的推广',
|
||||||
|
path: page.$page.fullPath || '/' + page.route,
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.path = shareData.path + '?spread=' + this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// 分享到朋友圈
|
||||||
|
onShareTimeline() {
|
||||||
|
let shareData = {
|
||||||
|
title: '我的推广',
|
||||||
|
query: {},
|
||||||
|
};
|
||||||
|
// 判断:用户是否登录 已经登录则添加分享人信息,未登录则正常分享
|
||||||
|
if (this.isLogin) shareData.query.spread = this.uid;
|
||||||
|
// 返回最终的分享配置信息
|
||||||
|
return shareData
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue