Commit 0805fa4b authored by youjie's avatar youjie

no message

parent 1af06a4e
...@@ -189,4 +189,16 @@ export function GetOrderPage(data) { ...@@ -189,4 +189,16 @@ export function GetOrderPage(data) {
method: 'post', method: 'post',
data data
}) })
}
/**
* 微信邀请
* @param {JSON参数} data
*/
export function CreateFriendQrCode(data) {
return request({
url: '/AppletCenter/CreateFriendQrCode',
method: 'post',
data
})
} }
\ No newline at end of file
...@@ -5,10 +5,13 @@ import App from './App.vue' ...@@ -5,10 +5,13 @@ import App from './App.vue'
import Toast from "./wxcomponents/vant/toast/toast"; import Toast from "./wxcomponents/vant/toast/toast";
import Dialog from "./wxcomponents/vant/dialog/dialog"; import Dialog from "./wxcomponents/vant/dialog/dialog";
import plugin from './utils/plugin' import plugin from './utils/plugin'
let app = createApp(App) let app = createApp(App)
app.provide("$toast", Toast) app.provide("$toast", Toast)
app.provide("$dialog", Dialog) app.provide("$dialog", Dialog)
app.use(plugin) app.use(plugin)
app.config.globalProperties.$erpImgUrl = process.env.NODE_ENV == "development"?'http://192.168.10.128:8900':'https://jjswapi.oytour.com'
// app.config.globalProperties.$toast = Toast;//全局挂载方法 // app.config.globalProperties.$toast = Toast;//全局挂载方法
// app.component('v-MessageBox',MessageBox);//全局注册组件 // app.component('v-MessageBox',MessageBox);//全局注册组件
app.mount() app.mount()
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<view class="addChild-header flex"> <view class="addChild-header flex">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664160541000_21.png" <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664160541000_21.png"
style="width: 352rpx;height: 218rpx;"></image> style="width: 352rpx;height: 218rpx;"></image>
<text>李欣芮亲友团</text> <text>李欣芮亲友团</text>
</view> </view>
<view class="title"> <view class="title">
Ranjunjun邀请您加入亲友团 Ranjunjun邀请您加入亲友团
......
...@@ -152,12 +152,12 @@ ...@@ -152,12 +152,12 @@
</view> </view>
<view class="header-right flex"> <view class="header-right flex">
<view class="right-image"> <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>
<text class="left-title">微信邀请</text> <text class="left-title">微信邀请</text>
</view> </view>
<view class="right-image" style="margin-right: 33rpx;" @click="showPopup=true"> <view class="right-image" style="margin-right: 33rpx;" @click="showPopup=true,QRcode()">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664164159000_60.png" <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664164159000_60.png"
style="width: 99rpx;height: 99rpx;"></image> style="width: 99rpx;height: 99rpx;"></image>
<text class="left-title">面对面邀请</text> <text class="left-title">面对面邀请</text>
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
round round
> >
<view style="padding: 63rpx;"> <view style="padding: 63rpx;">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1664160541000_21.png" <image :src="QRcodeImg"
style="width: 378rpx;height: 377rpx;"></image> style="width: 378rpx;height: 377rpx;"></image>
</view> </view>
<view class="cross-box"> <view class="cross-box">
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
import Loadmore from "../../components/loadmore.vue"; import Loadmore from "../../components/loadmore.vue";
import bottom from "../../components/bottom"; import bottom from "../../components/bottom";
import { import {
GetFriend GetFriend,CreateFriendQrCode
} from "../../api/erp"; } from "../../api/erp";
export default { export default {
components: { components: {
...@@ -228,6 +228,10 @@ ...@@ -228,6 +228,10 @@
proxy proxy
} = getCurrentInstance(); } = getCurrentInstance();
let data = reactive({ let data = reactive({
erpUrl:'',
QRcodeImg:'',
erpUserInfo:null,
userInfo:null,
FriendCount: null, FriendCount: null,
loading:true, loading:true,
Account:'', Account:'',
...@@ -237,10 +241,6 @@ ...@@ -237,10 +241,6 @@
pageSize: 10 pageSize: 10
}, },
dataList: [], dataList: [],
imgUrlG:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663930765000_891.png',
imgUrlR:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663930765000_218.png',
imgBoy:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663932008000_116.png',
imgGirl:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663931928000_154.png'
}); });
const methods = { const methods = {
// 删除接口 // 删除接口
...@@ -267,15 +267,19 @@ ...@@ -267,15 +267,19 @@
usernameInput(val) { usernameInput(val) {
data.Account = val.detail; data.Account = val.detail;
}, },
addChild(){ async QRcode(){
data.loading = false uni.showLoading()
setTimeout(()=>{ let msg = {
data.loading = true url: `/pages/FriendsAndRelatives/addFriendsAndRelatives?RealPhone=${this.erpUserInfo.RealPhone}&Account=${this.userInfo.Account}`,//"www.baidu.com",
uni.navigateBack({ width: 200
delta: 1 }
}); let res = await CreateFriendQrCode(msg);
},2000) if (res) {
}, uni.hideLoading()
data.QRcodeImg = data.erpUrl+res.Data
console.log(data.QRcodeImg,'---')
}
},
async getData() { async getData() {
uni.showLoading() uni.showLoading()
let res = await GetFriend(data.msg); let res = await GetFriend(data.msg);
...@@ -309,19 +313,21 @@ ...@@ -309,19 +313,21 @@
this.FriendCount = options.FriendCount this.FriendCount = options.FriendCount
}, },
onShow(){ onShow(){
this.erpUrl = this.$erpImgUrl
this.erpUserInfo = uni.getStorageSync('erpUserInfo')
this.userInfo = uni.getStorageSync('userInfo')
this.getData() this.getData()
}, },
onReachBottom() { onReachBottom() {
}, },
onShareAppMessage() { onShareAppMessage() {
let erpUserInfo = uni.getStorageSync('erpUserInfo')
let userInfo = uni.getStorageSync('userInfo')
// console.log(uni.getStorageSync('RealPhone'),'==') // console.log(uni.getStorageSync('RealPhone'),'==')
// console.log(uni.getStorageSync('Account')) // console.log(uni.getStorageSync('Account'))
return { return {
title: "邀请好友", title: "邀请好友",
query: `/pages/login/login?RealPhone=${erpUserInfo.RealPhone}&Account=${userInfo.Account}`, query: `/pages/login/login?RealPhone=${this.erpUserInfo.RealPhone}&Account=${this.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",
}; };
}, },
......
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