Commit 1948f5fd authored by youjie's avatar youjie

no message

parent 6e1e7b8c
......@@ -139,13 +139,13 @@
<view class="header-list flex_between_center">
<view class="header-left flex">
<view class="left-text flex" style="width: 99rpx;height: 99rpx;">
<text>3</text>
<text>{{ContractNum||0}}</text>
<view></view>
</view>
<text class="left-title">亲友团</text>
</view>
<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>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664164163000_619.png"
style="width: 99rpx;height: 99rpx;"></image>
......@@ -172,6 +172,7 @@
</view>
<view class="list-right">
<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>
</view>
</view>
......@@ -220,6 +221,7 @@
proxy
} = getCurrentInstance();
let data = reactive({
ContractNum: null,
loading:true,
Account:'',
showPopup: false,
......@@ -235,8 +237,26 @@
imgGirl:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663931928000_154.png'
});
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) {
data.Account = val.detail;
......@@ -251,22 +271,32 @@
},2000)
},
};
let that = methods;
onMounted(() => {
})
let that = methods;
return {
...toRefs(data),
...methods
};
},
onLoad(options) {
this.ContractNum = options.ContractNum
},
onShow(){
},
onReachBottom() {
},
onShareAppMessage() {
let erpUserInfo = uni.getStorageSync('erpUserInfo')
let userInfo = uni.getStorageSync('userInfo')
// console.log(uni.getStorageSync('RealPhone'),'==')
// console.log(uni.getStorageSync('Account'))
return {
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",
};
},
......
......@@ -240,7 +240,7 @@
success: function (res) {
if (res.confirm) {
let Msg = {
ExamId: item.ExamId
}
} else if (res.cancel) {
......
......@@ -21,7 +21,7 @@
uni.navigateBack(1);
return;
}
let a = this.$router.go(-1);
let a = outer.go(-1);
if(a==undefined){
uni.reLaunch({
url:'/pages/index/index'
......
......@@ -67,8 +67,14 @@
...methods,
};
},
onLoad() {
onLoad(options) {
// 微信邀请过来的数据存储
if(options.RealPhone){
uni.setStorageSync('RealPhone',options.RealPhone)
}
if(options.Account){
uni.setStorageSync('Account',options.Account)
}
}
};
</script>
......
......@@ -43,7 +43,7 @@
我的小孩
</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="orderNum">{{ pageData.ContractNum||0 }}</view>
<image src="../../static/image/person/order3.png" mode="aspectFill" class="orderIcon"></image>
......@@ -231,10 +231,9 @@
})
}
},
jumpPage(url) {
jumpPage(url,num) {
uni.navigateTo({
url: url,
url: num?url+'?ContractNum='+num:url,
});
},
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