|
@@ -337,6 +337,7 @@
|
|
unread: 0,
|
|
unread: 0,
|
|
clicknum: 0,
|
|
clicknum: 0,
|
|
noticeList: [],
|
|
noticeList: [],
|
|
|
|
+ status:0,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -350,21 +351,32 @@
|
|
});
|
|
});
|
|
this.searchVal = uni.getStorageSync("search_val") ? uni.getStorageSync("search_val") : ''
|
|
this.searchVal = uni.getStorageSync("search_val") ? uni.getStorageSync("search_val") : ''
|
|
} else {
|
|
} else {
|
|
- this.login()
|
|
|
|
|
|
+ if(uni.getLaunchOptionsSync().scene!=1154){
|
|
|
|
+ this.login()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
|
|
},
|
|
},
|
|
- onLoad: function() {
|
|
|
|
- wx.showShareMenu({
|
|
|
|
- withShareTicket: true,
|
|
|
|
- menus: ["shareAppMessage", "shareTimeline"]
|
|
|
|
- })
|
|
|
|
|
|
+ onLoad: function(options) {
|
|
|
|
+ this.status=uni.getLaunchOptionsSync().scene
|
|
|
|
+ if(uni.getLaunchOptionsSync().scene==1154){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请前往小程序查看名片',
|
|
|
|
+ icon:'none',
|
|
|
|
+ duration:10000
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ wx.showShareMenu({
|
|
|
|
+ withShareTicket: true,
|
|
|
|
+ menus: ["shareAppMessage", "shareTimeline"]
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
onShareAppMessage(res) {
|
|
onShareAppMessage(res) {
|
|
-
|
|
|
|
console.log(res, this.popupshow)
|
|
console.log(res, this.popupshow)
|
|
let that = this;
|
|
let that = this;
|
|
//生成名片图片
|
|
//生成名片图片
|
|
@@ -927,6 +939,13 @@
|
|
this.isShowType = false
|
|
this.isShowType = false
|
|
},
|
|
},
|
|
async upCallback(page) {
|
|
async upCallback(page) {
|
|
|
|
+ if(uni.getLaunchOptionsSync().scene==1154){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请前往小程序查看名片',
|
|
|
|
+ icon:'none',
|
|
|
|
+ duration:10000
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
var that = this
|
|
var that = this
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '数据加载中'
|
|
title: '数据加载中'
|
|
@@ -996,9 +1015,9 @@
|
|
}
|
|
}
|
|
console.log(this.unread)
|
|
console.log(this.unread)
|
|
})
|
|
})
|
|
|
|
+ }
|
|
},
|
|
},
|
|
login() {
|
|
login() {
|
|
- debugger
|
|
|
|
let that = this
|
|
let that = this
|
|
uni.login({
|
|
uni.login({
|
|
"provider": "weixin",
|
|
"provider": "weixin",
|