|
@@ -24,7 +24,13 @@ const _sfc_main = {
|
|
|
common_vendor.onMounted(() => {
|
|
common_vendor.onMounted(() => {
|
|
|
const accredit = common_vendor.index.getStorageSync("accredit");
|
|
const accredit = common_vendor.index.getStorageSync("accredit");
|
|
|
if (accredit) {
|
|
if (accredit) {
|
|
|
- submit();
|
|
|
|
|
|
|
+ common_vendor.index.login({
|
|
|
|
|
+ //使用微信登录
|
|
|
|
|
+ provider: "weixin",
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ submit(res.code);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
const cw = common_vendor.index.getSystemInfoSync().windowWidth;
|
|
const cw = common_vendor.index.getSystemInfoSync().windowWidth;
|
|
@@ -125,20 +131,35 @@ const _sfc_main = {
|
|
|
};
|
|
};
|
|
|
const filePicker = common_vendor.ref(null);
|
|
const filePicker = common_vendor.ref(null);
|
|
|
const popup = common_vendor.ref(null);
|
|
const popup = common_vendor.ref(null);
|
|
|
- const templateOrder = common_vendor.ref("I3o8CRAiaaNbug3Ukkmv1t-pCIbzxU8OicqMWvdR9lc");
|
|
|
|
|
|
|
+ const templateOrder = common_vendor.ref("I3o8CRAiaaNbug3Ukkmv1o3S7l1FZlAKMUAJzIJ4zhs");
|
|
|
const handleSubscribe = () => {
|
|
const handleSubscribe = () => {
|
|
|
popup.value.close();
|
|
popup.value.close();
|
|
|
common_vendor.index.getSetting({
|
|
common_vendor.index.getSetting({
|
|
|
withSubscriptions: true,
|
|
withSubscriptions: true,
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
- if (res.subscriptionsSetting[templateOrder.value] !== "reject") {
|
|
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+ if (res.subscriptionsSetting.mainSwitch) {
|
|
|
common_vendor.index.requestSubscribeMessage({
|
|
common_vendor.index.requestSubscribeMessage({
|
|
|
tmplIds: [templateOrder.value],
|
|
tmplIds: [templateOrder.value],
|
|
|
success: (res2) => {
|
|
success: (res2) => {
|
|
|
|
|
+ console.log(res2);
|
|
|
if (res2[templateOrder.value] !== "reject") {
|
|
if (res2[templateOrder.value] !== "reject") {
|
|
|
console.log("成功");
|
|
console.log("成功");
|
|
|
} else {
|
|
} else {
|
|
|
console.log("拒绝2");
|
|
console.log("拒绝2");
|
|
|
|
|
+ common_vendor.index.showModal({
|
|
|
|
|
+ content: "当前没有订阅,是否去设置打开?",
|
|
|
|
|
+ confirmText: "确认",
|
|
|
|
|
+ cancelText: "取消",
|
|
|
|
|
+ success: (res3) => {
|
|
|
|
|
+ if (res3.confirm) {
|
|
|
|
|
+ common_vendor.index.openSetting({
|
|
|
|
|
+ success: (res4) => {
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
fail(err) {
|
|
fail(err) {
|
|
@@ -148,7 +169,7 @@ const _sfc_main = {
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
common_vendor.index.showModal({
|
|
common_vendor.index.showModal({
|
|
|
- content: "当前没有订阅,是否去设置打开?",
|
|
|
|
|
|
|
+ content: "当前订阅总开关关闭,是否去设置打开?",
|
|
|
confirmText: "确认",
|
|
confirmText: "确认",
|
|
|
cancelText: "取消",
|
|
cancelText: "取消",
|
|
|
success: (res2) => {
|
|
success: (res2) => {
|
|
@@ -207,7 +228,13 @@ const _sfc_main = {
|
|
|
content: "确认提交吗",
|
|
content: "确认提交吗",
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
- submit();
|
|
|
|
|
|
|
+ common_vendor.index.login({
|
|
|
|
|
+ //使用微信登录
|
|
|
|
|
+ provider: "weixin",
|
|
|
|
|
+ success: (res2) => {
|
|
|
|
|
+ submit(res2.code);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
} else if (res.cancel)
|
|
} else if (res.cancel)
|
|
|
;
|
|
;
|
|
|
}
|
|
}
|
|
@@ -312,7 +339,7 @@ const _sfc_main = {
|
|
|
}
|
|
}
|
|
|
return true;
|
|
return true;
|
|
|
};
|
|
};
|
|
|
- const submit = async () => {
|
|
|
|
|
|
|
+ const submit = async (code) => {
|
|
|
const bProduct = [];
|
|
const bProduct = [];
|
|
|
productType.value.forEach((item) => {
|
|
productType.value.forEach((item) => {
|
|
|
bProduct.push(hobby.value[item].text);
|
|
bProduct.push(hobby.value[item].text);
|
|
@@ -348,7 +375,8 @@ const _sfc_main = {
|
|
|
// 是否授权
|
|
// 是否授权
|
|
|
licensing: isAzt.value,
|
|
licensing: isAzt.value,
|
|
|
// 加入的控标参数
|
|
// 加入的控标参数
|
|
|
- parameters: projectParams.value
|
|
|
|
|
|
|
+ parameters: projectParams.value,
|
|
|
|
|
+ code
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
if (res.success && res.code == 1) {
|
|
if (res.success && res.code == 1) {
|