Commit 1948f5fd authored by youjie's avatar youjie

no message

parent 6e1e7b8c
...@@ -139,13 +139,13 @@ ...@@ -139,13 +139,13 @@
<view class="header-list flex_between_center"> <view class="header-list flex_between_center">
<view class="header-left flex"> <view class="header-left flex">
<view class="left-text flex" style="width: 99rpx;height: 99rpx;"> <view class="left-text flex" style="width: 99rpx;height: 99rpx;">
<text>3</text> <text>{{ContractNum||0}}</text>
<view></view> <view></view>
</view> </view>
<text class="left-title">亲友团</text> <text class="left-title">亲友团</text>
</view> </view>
<view class="header-right flex"> <view class="header-right flex">
<view class="right-image" @click="invite"> <view class="right-image">
<button class="right-button" data-name="shareBtn" open-type="share" ></button> <button class="right-button" data-name="shareBtn" open-type="share" ></button>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664164163000_619.png" <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664164163000_619.png"
style="width: 99rpx;height: 99rpx;"></image> style="width: 99rpx;height: 99rpx;"></image>
...@@ -172,6 +172,7 @@ ...@@ -172,6 +172,7 @@
</view> </view>
<view class="list-right"> <view class="list-right">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664164166000_196.png" <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664164166000_196.png"
@click.stop="DelData(item)"
style="width: 36rpx;height: 35rpx;"></image> style="width: 36rpx;height: 35rpx;"></image>
</view> </view>
</view> </view>
...@@ -220,6 +221,7 @@ ...@@ -220,6 +221,7 @@
proxy proxy
} = getCurrentInstance(); } = getCurrentInstance();
let data = reactive({ let data = reactive({
ContractNum: null,
loading:true, loading:true,
Account:'', Account:'',
showPopup: false, showPopup: false,
...@@ -235,8 +237,26 @@ ...@@ -235,8 +237,26 @@
imgGirl:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663931928000_154.png' imgGirl:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663931928000_154.png'
}); });
const methods = { const methods = {
invite(){ // 删除接口
DelData(item){
uni.showModal({
title: '提示',
content: '将要删除数据,是否继续',
success: function (res) {
if (res.confirm) {
let Msg = {
}
} else if (res.cancel) {
uni.showToast({
title:'已取消',
icon:'none',
duration: 500
})
}
}
});
}, },
usernameInput(val) { usernameInput(val) {
data.Account = val.detail; data.Account = val.detail;
...@@ -251,22 +271,32 @@ ...@@ -251,22 +271,32 @@
},2000) },2000)
}, },
}; };
let that = methods; onMounted(() => {
})
let that = methods;
return { return {
...toRefs(data), ...toRefs(data),
...methods ...methods
}; };
}, },
onLoad(options) { onLoad(options) {
this.ContractNum = options.ContractNum
}, },
onShow(){
},
onReachBottom() { onReachBottom() {
}, },
onShareAppMessage() { onShareAppMessage() {
let erpUserInfo = uni.getStorageSync('erpUserInfo')
let userInfo = uni.getStorageSync('userInfo')
// console.log(uni.getStorageSync('RealPhone'),'==')
// console.log(uni.getStorageSync('Account'))
return { return {
title: "邀请好友", title: "邀请好友",
query: "/pages/login/login", query: `/pages/login/login?RealPhone=${erpUserInfo.RealPhone}&Account=${userInfo.Account}`,
imageUrl: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664163809000_838.png", imageUrl: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664163809000_838.png",
}; };
}, },
......
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
success: function (res) { success: function (res) {
if (res.confirm) { if (res.confirm) {
let Msg = { let Msg = {
ExamId: item.ExamId
} }
} else if (res.cancel) { } else if (res.cancel) {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
uni.navigateBack(1); uni.navigateBack(1);
return; return;
} }
let a = this.$router.go(-1); let a = outer.go(-1);
if(a==undefined){ if(a==undefined){
uni.reLaunch({ uni.reLaunch({
url:'/pages/index/index' url:'/pages/index/index'
......
...@@ -67,8 +67,14 @@ ...@@ -67,8 +67,14 @@
...methods, ...methods,
}; };
}, },
onLoad() { onLoad(options) {
// 微信邀请过来的数据存储
if(options.RealPhone){
uni.setStorageSync('RealPhone',options.RealPhone)
}
if(options.Account){
uni.setStorageSync('Account',options.Account)
}
} }
}; };
</script> </script>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
我的小孩 我的小孩
</view> </view>
</view> </view>
<view class="orderItem " @click="jumpPage(`/pages/FriendsAndRelatives/index`)"> <view class="orderItem " @click="jumpPage(`/pages/FriendsAndRelatives/index`,pageData.ContractNum)">
<view class=" flex_between_center" style="width:100%"> <view class=" flex_between_center" style="width:100%">
<view class="orderNum">{{ pageData.ContractNum||0 }}</view> <view class="orderNum">{{ pageData.ContractNum||0 }}</view>
<image src="../../static/image/person/order3.png" mode="aspectFill" class="orderIcon"></image> <image src="../../static/image/person/order3.png" mode="aspectFill" class="orderIcon"></image>
...@@ -231,10 +231,9 @@ ...@@ -231,10 +231,9 @@
}) })
} }
}, },
jumpPage(url) { jumpPage(url,num) {
uni.navigateTo({ uni.navigateTo({
url: url, url: num?url+'?ContractNum='+num:url,
}); });
}, },
async getData() { async getData() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment