|
@@ -218,6 +218,24 @@
|
|
|
// 当前会员信息
|
|
// 当前会员信息
|
|
|
currentPlan: 'regular',
|
|
currentPlan: 'regular',
|
|
|
remainingDays: 5,
|
|
remainingDays: 5,
|
|
|
|
|
+ openWay: 1,
|
|
|
|
|
+ isVip: false,
|
|
|
|
|
+ isVipC: "",
|
|
|
|
|
+ dataTime: "", //到期时间
|
|
|
|
|
+ dataTimeC: "",
|
|
|
|
|
+ isTrue: true,
|
|
|
|
|
+ msgNum: 0, //非会员每天免费联系次数
|
|
|
|
|
+ vipMsgNum: 0, //会员每天免费联系次数
|
|
|
|
|
+ msgPrice: 0, //非会员每次联系价格
|
|
|
|
|
+ vipMsgPrice: 0, //会员每次联系价格
|
|
|
|
|
+ vipNum: 0,
|
|
|
|
|
+ noVipNum: 0,
|
|
|
|
|
+ vipNumCom: 0,
|
|
|
|
|
+ noVipNumCom: 0,
|
|
|
|
|
+ userMonthTime: "", //用户会员到期时间
|
|
|
|
|
+ companyMonthTime: "", //企业会员到期时间
|
|
|
|
|
+ vipPrice: "0", //会员价格
|
|
|
|
|
+
|
|
|
// 权益使用情况
|
|
// 权益使用情况
|
|
|
benefits: {
|
|
benefits: {
|
|
|
view: {
|
|
view: {
|
|
@@ -252,6 +270,69 @@
|
|
|
// 获取状态栏高度
|
|
// 获取状态栏高度
|
|
|
let systemInfo = uni.getSystemInfoSync();
|
|
let systemInfo = uni.getSystemInfoSync();
|
|
|
this.statusBarHeight = systemInfo.statusBarHeight || 0;
|
|
this.statusBarHeight = systemInfo.statusBarHeight || 0;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ this.userType = uni.getStorageSync("userType");
|
|
|
|
|
+ if (this.userType == 1) {
|
|
|
|
|
+ //用户简历的刷新次数
|
|
|
|
|
+ this.getVipPeople();
|
|
|
|
|
+ this.getNoVipPeople();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.getVipCom();
|
|
|
|
|
+ this.getNoVipCom();
|
|
|
|
|
+ }
|
|
|
|
|
+ this.getVipPrice();
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
|
+ this.openLists = [{
|
|
|
|
|
+ image: "../../static/images/my/zhifubao.png",
|
|
|
|
|
+ text: "支付宝",
|
|
|
|
|
+ id: 1,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ image: "../../static/images/my/icon_weixin.png",
|
|
|
|
|
+ text: "微信",
|
|
|
|
|
+ id: 2,
|
|
|
|
|
+ },
|
|
|
|
|
+ ];
|
|
|
|
|
+ this.openWay = 1;
|
|
|
|
|
+ // #endif
|
|
|
|
|
+
|
|
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
|
|
+ this.openLists = [{
|
|
|
|
|
+ image: "../../static/share/icon_weixin.png",
|
|
|
|
|
+ text: "微信",
|
|
|
|
|
+ id: 2,
|
|
|
|
|
+ }, ];
|
|
|
|
|
+ this.openWay = 2;
|
|
|
|
|
+ // #endif
|
|
|
|
|
+
|
|
|
|
|
+ // #ifdef H5
|
|
|
|
|
+ let ua = navigator.userAgent.toLowerCase();
|
|
|
|
|
+ if (ua.indexOf("micromessenger") !== -1) {
|
|
|
|
|
+ this.openLists = [{
|
|
|
|
|
+ image: "../../static/images/my/zhifubao.png",
|
|
|
|
|
+ text: "支付宝",
|
|
|
|
|
+ id: 1,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ image: "../../static/share/icon_weixin.png",
|
|
|
|
|
+ text: "微信",
|
|
|
|
|
+ id: 2,
|
|
|
|
|
+ },
|
|
|
|
|
+ ];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.openLists = [{
|
|
|
|
|
+ image: "../../static/images/my/zhifubao.png",
|
|
|
|
|
+ text: "支付宝",
|
|
|
|
|
+ id: 1,
|
|
|
|
|
+ }, ];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.openWay = 1;
|
|
|
|
|
+ // #endif
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
// 返回上一页
|
|
// 返回上一页
|
|
@@ -282,7 +363,7 @@
|
|
|
this.$Request
|
|
this.$Request
|
|
|
.post("/app/wxPay/wxPayOrder", {
|
|
.post("/app/wxPay/wxPayOrder", {
|
|
|
classify: 1,
|
|
classify: 1,
|
|
|
- money: this.vipPrice,
|
|
|
|
|
|
|
+ money: this.planPrices,
|
|
|
type: 2,
|
|
type: 2,
|
|
|
})
|
|
})
|
|
|
.then((ret) => {
|
|
.then((ret) => {
|
|
@@ -295,7 +376,7 @@
|
|
|
this.$Request
|
|
this.$Request
|
|
|
.post("/app/wxPay/wxPayOrder", {
|
|
.post("/app/wxPay/wxPayOrder", {
|
|
|
classify: 3,
|
|
classify: 3,
|
|
|
- money: this.vipPrice,
|
|
|
|
|
|
|
+ money: this.planPrices,
|
|
|
type: 2,
|
|
type: 2,
|
|
|
})
|
|
})
|
|
|
.then((ret) => {
|
|
.then((ret) => {
|
|
@@ -335,7 +416,7 @@
|
|
|
if (ua.indexOf("micromessenger") !== -1) {
|
|
if (ua.indexOf("micromessenger") !== -1) {
|
|
|
let data = {
|
|
let data = {
|
|
|
classify: 2,
|
|
classify: 2,
|
|
|
- money: this.vipPrice,
|
|
|
|
|
|
|
+ money: this.planPrices,
|
|
|
type: 2,
|
|
type: 2,
|
|
|
};
|
|
};
|
|
|
this.$Request.postJson("/app/wxPay/wxPayOrder", data).then((res) => {
|
|
this.$Request.postJson("/app/wxPay/wxPayOrder", data).then((res) => {
|
|
@@ -357,7 +438,7 @@
|
|
|
console.log("APP进入支付。");
|
|
console.log("APP进入支付。");
|
|
|
const datas = {
|
|
const datas = {
|
|
|
classify: 4,
|
|
classify: 4,
|
|
|
- money: 0.1,
|
|
|
|
|
|
|
+ money: this.planPrices,
|
|
|
type: 2,
|
|
type: 2,
|
|
|
}
|
|
}
|
|
|
this.$Request.postT("/app/aliPay/payMoneyOrder", datas).then((ret) => {
|
|
this.$Request.postT("/app/aliPay/payMoneyOrder", datas).then((ret) => {
|
|
@@ -368,18 +449,18 @@
|
|
|
// #endif
|
|
// #endif
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
|
let data = {
|
|
let data = {
|
|
|
- classify: 4,
|
|
|
|
|
- money: this.vipPrice,
|
|
|
|
|
|
|
+ classify: 5,
|
|
|
|
|
+ money:this.planPrices,
|
|
|
type: 2,
|
|
type: 2,
|
|
|
};
|
|
};
|
|
|
- this.$Request.postJson("/app/aliPay/payMoneyOrder", data).then((res) => {
|
|
|
|
|
|
|
+ this.$Request.postT("/app/aliPay/payMoneyOrder", data).then((res) => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
this.show = false;
|
|
this.show = false;
|
|
|
that.isTrue = true;
|
|
that.isTrue = true;
|
|
|
const div = document.createElement("div");
|
|
const div = document.createElement("div");
|
|
|
div.innerHTML = res.data; //此处form就是后台返回接收到的数据
|
|
div.innerHTML = res.data; //此处form就是后台返回接收到的数据
|
|
|
- // document.body.appendChild(div);
|
|
|
|
|
- // document.forms[0].submit();
|
|
|
|
|
|
|
+ document.body.appendChild(div);
|
|
|
|
|
+ document.forms[0].submit();
|
|
|
} else {
|
|
} else {
|
|
|
that.isTrue = true;
|
|
that.isTrue = true;
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -493,14 +574,14 @@
|
|
|
//用户会员价格
|
|
//用户会员价格
|
|
|
this.$Request.get("/app/common/type/331").then((res) => {
|
|
this.$Request.get("/app/common/type/331").then((res) => {
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
- this.vipPrice = res.data.value;
|
|
|
|
|
|
|
+ this.planPrices = res.data.value;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
//企业会员价格
|
|
//企业会员价格
|
|
|
this.$Request.get("/app/common/type/332").then((res) => {
|
|
this.$Request.get("/app/common/type/332").then((res) => {
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
- this.vipPrice = res.data.value;
|
|
|
|
|
|
|
+ this.planPrices = res.data.value;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|