|
|
@@ -7,14 +7,16 @@ if (!Array) {
|
|
|
const _easycom_uni_data_select2 = common_vendor.resolveComponent("uni-data-select");
|
|
|
const _easycom_uni_data_checkbox2 = common_vendor.resolveComponent("uni-data-checkbox");
|
|
|
const _easycom_uni_file_picker2 = common_vendor.resolveComponent("uni-file-picker");
|
|
|
- (_easycom_uni_easyinput2 + _easycom_uni_data_select2 + _easycom_uni_data_checkbox2 + _easycom_uni_file_picker2)();
|
|
|
+ const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
|
|
|
+ (_easycom_uni_easyinput2 + _easycom_uni_data_select2 + _easycom_uni_data_checkbox2 + _easycom_uni_file_picker2 + _easycom_uni_popup2)();
|
|
|
}
|
|
|
const _easycom_uni_easyinput = () => "../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js";
|
|
|
const _easycom_uni_data_select = () => "../../uni_modules/uni-data-select/components/uni-data-select/uni-data-select.js";
|
|
|
const _easycom_uni_data_checkbox = () => "../../uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.js";
|
|
|
const _easycom_uni_file_picker = () => "../../uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.js";
|
|
|
+const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
|
|
if (!Math) {
|
|
|
- (_easycom_uni_easyinput + _easycom_uni_data_select + _easycom_uni_data_checkbox + _easycom_uni_file_picker)();
|
|
|
+ (_easycom_uni_easyinput + _easycom_uni_data_select + _easycom_uni_data_checkbox + _easycom_uni_file_picker + _easycom_uni_popup)();
|
|
|
}
|
|
|
const _sfc_main = {
|
|
|
__name: "index",
|
|
|
@@ -34,8 +36,10 @@ const _sfc_main = {
|
|
|
const projectAmount = common_vendor.ref(common_vendor.index.getStorageSync("form_content") ? JSON.parse(common_vendor.index.getStorageSync("form_content")).projectAmount : "");
|
|
|
const biddingTime = common_vendor.ref(common_vendor.index.getStorageSync("form_content") ? JSON.parse(common_vendor.index.getStorageSync("form_content")).biddingTime : "");
|
|
|
const industry = common_vendor.ref(common_vendor.index.getStorageSync("form_content") ? JSON.parse(common_vendor.index.getStorageSync("form_content")).industry : "");
|
|
|
+ const isAzt = common_vendor.ref(common_vendor.index.getStorageSync("form_content") ? JSON.parse(common_vendor.index.getStorageSync("form_content")).isAzt : "");
|
|
|
const productType = common_vendor.ref(common_vendor.index.getStorageSync("form_content") ? JSON.parse(common_vendor.index.getStorageSync("form_content")).productType : []);
|
|
|
const projectInformation = common_vendor.ref(common_vendor.index.getStorageSync("form_content") ? JSON.parse(common_vendor.index.getStorageSync("form_content")).projectInformation : "");
|
|
|
+ const projectParams = common_vendor.ref(common_vendor.index.getStorageSync("form_content") ? JSON.parse(common_vendor.index.getStorageSync("form_content")).projectParams : "");
|
|
|
const projectImgList = common_vendor.ref(common_vendor.index.getStorageSync("form_content") ? JSON.parse(common_vendor.index.getStorageSync("form_content")).projectImgList : []);
|
|
|
const subImgList = common_vendor.ref(common_vendor.index.getStorageSync("form_content") ? JSON.parse(common_vendor.index.getStorageSync("form_content")).subImgList : []);
|
|
|
const wxPhone = common_vendor.ref(common_vendor.index.getStorageSync("wxPhone") || "");
|
|
|
@@ -73,6 +77,16 @@ const _sfc_main = {
|
|
|
text: "其他"
|
|
|
}
|
|
|
]);
|
|
|
+ const range_azt = common_vendor.ref([
|
|
|
+ {
|
|
|
+ value: 0,
|
|
|
+ text: "是"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 1,
|
|
|
+ text: "否"
|
|
|
+ }
|
|
|
+ ]);
|
|
|
const hobby = common_vendor.ref([
|
|
|
{
|
|
|
text: "网络",
|
|
|
@@ -110,6 +124,46 @@ const _sfc_main = {
|
|
|
}
|
|
|
};
|
|
|
const filePicker = common_vendor.ref(null);
|
|
|
+ const popup = common_vendor.ref(null);
|
|
|
+ const templateOrder = common_vendor.ref("I3o8CRAiaaNbug3Ukkmv1t-pCIbzxU8OicqMWvdR9lc");
|
|
|
+ const handleSubscribe = () => {
|
|
|
+ popup.value.close();
|
|
|
+ common_vendor.index.getSetting({
|
|
|
+ withSubscriptions: true,
|
|
|
+ success: (res) => {
|
|
|
+ if (res.subscriptionsSetting[templateOrder.value] !== "reject") {
|
|
|
+ common_vendor.index.requestSubscribeMessage({
|
|
|
+ tmplIds: [templateOrder.value],
|
|
|
+ success: (res2) => {
|
|
|
+ if (res2[templateOrder.value] !== "reject") {
|
|
|
+ console.log("成功");
|
|
|
+ } else {
|
|
|
+ console.log("拒绝2");
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail(err) {
|
|
|
+ console.log(err);
|
|
|
+ console.log("调用失败");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ common_vendor.index.showModal({
|
|
|
+ content: "当前没有订阅,是否去设置打开?",
|
|
|
+ confirmText: "确认",
|
|
|
+ cancelText: "取消",
|
|
|
+ success: (res2) => {
|
|
|
+ if (res2.confirm) {
|
|
|
+ common_vendor.index.openSetting({
|
|
|
+ success: (res3) => {
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ };
|
|
|
const bindDateChange = (e) => {
|
|
|
const val = e.detail.value;
|
|
|
biddingTime.value = val;
|
|
|
@@ -126,8 +180,10 @@ const _sfc_main = {
|
|
|
projectAmount: projectAmount.value,
|
|
|
biddingTime: biddingTime.value,
|
|
|
industry: industry.value,
|
|
|
+ isAzt: isAzt.value,
|
|
|
productType: productType.value,
|
|
|
projectInformation: projectInformation.value,
|
|
|
+ projectParams: projectParams.value,
|
|
|
projectImgList: projectImgList.value,
|
|
|
subImgList: subImgList.value
|
|
|
};
|
|
|
@@ -240,6 +296,13 @@ const _sfc_main = {
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
+ if (isAzt.value === "") {
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "请选择是否授权",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
if (productType.value.length == 0) {
|
|
|
common_vendor.index.showToast({
|
|
|
title: "请选择产品类型",
|
|
|
@@ -273,17 +336,16 @@ const _sfc_main = {
|
|
|
}
|
|
|
});
|
|
|
if (res.success && res.code == 1) {
|
|
|
- common_vendor.index.showToast({
|
|
|
- title: "提交成功",
|
|
|
- duration: 3e3
|
|
|
- });
|
|
|
+ popup.value.open();
|
|
|
clientName.value = "";
|
|
|
projectName.value = "";
|
|
|
projectAmount.value = "";
|
|
|
biddingTime.value = "";
|
|
|
industry.value = "";
|
|
|
+ isAzt.value = "";
|
|
|
productType.value = [];
|
|
|
projectInformation.value = "";
|
|
|
+ projectParams.value = "";
|
|
|
subImgList.value = [];
|
|
|
projectImgList.value = [];
|
|
|
filePicker.value.clearFiles();
|
|
|
@@ -392,25 +454,38 @@ const _sfc_main = {
|
|
|
localdata: range.value,
|
|
|
modelValue: industry.value
|
|
|
}),
|
|
|
- t: common_vendor.o(($event) => productType.value = $event),
|
|
|
+ t: common_vendor.o(($event) => isAzt.value = $event),
|
|
|
v: common_vendor.p({
|
|
|
+ placeholder: "请选择是否授权",
|
|
|
+ localdata: range_azt.value,
|
|
|
+ modelValue: isAzt.value
|
|
|
+ }),
|
|
|
+ w: common_vendor.o(($event) => productType.value = $event),
|
|
|
+ x: common_vendor.p({
|
|
|
multiple: true,
|
|
|
localdata: hobby.value,
|
|
|
modelValue: productType.value
|
|
|
}),
|
|
|
- w: common_vendor.o(($event) => projectInformation.value = $event),
|
|
|
- x: common_vendor.p({
|
|
|
+ y: common_vendor.o(($event) => projectInformation.value = $event),
|
|
|
+ z: common_vendor.p({
|
|
|
type: "textarea",
|
|
|
maxlength: -1,
|
|
|
placeholder: "建议填写竞争情况 , 客户情况",
|
|
|
modelValue: projectInformation.value
|
|
|
}),
|
|
|
- y: common_vendor.sr(filePicker, "1cf27b2a-10", {
|
|
|
+ A: common_vendor.o(($event) => projectParams.value = $event),
|
|
|
+ B: common_vendor.p({
|
|
|
+ type: "textarea",
|
|
|
+ maxlength: -1,
|
|
|
+ placeholder: "建议填写加入的控标参数情况",
|
|
|
+ modelValue: projectParams.value
|
|
|
+ }),
|
|
|
+ C: common_vendor.sr(filePicker, "1cf27b2a-12", {
|
|
|
"k": "filePicker"
|
|
|
}),
|
|
|
- z: common_vendor.o(select),
|
|
|
- A: common_vendor.o(handleDelete),
|
|
|
- B: common_vendor.p({
|
|
|
+ D: common_vendor.o(select),
|
|
|
+ E: common_vendor.o(handleDelete),
|
|
|
+ F: common_vendor.p({
|
|
|
limit: "3",
|
|
|
title: "最多上传3张图片",
|
|
|
value: projectImgList.value,
|
|
|
@@ -418,10 +493,18 @@ const _sfc_main = {
|
|
|
["image-styles"]: imageStyles,
|
|
|
mode: "grid"
|
|
|
}),
|
|
|
- C: common_vendor.o(handleSubmit),
|
|
|
- D: common_vendor.unref(cw) + "px",
|
|
|
- E: common_vendor.unref(cw) + "px",
|
|
|
- F: -1
|
|
|
+ G: common_vendor.o(handleSubmit),
|
|
|
+ H: common_vendor.o(handleSubscribe),
|
|
|
+ I: common_vendor.sr(popup, "1cf27b2a-13", {
|
|
|
+ "k": "popup"
|
|
|
+ }),
|
|
|
+ J: common_vendor.p({
|
|
|
+ type: "center",
|
|
|
+ ["is-mask-click"]: false
|
|
|
+ }),
|
|
|
+ K: common_vendor.unref(cw) + "px",
|
|
|
+ L: common_vendor.unref(cw) + "px",
|
|
|
+ M: -1
|
|
|
};
|
|
|
};
|
|
|
}
|