|
@@ -18,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
const openid = common_vendor.index.getStorageSync("openid");
|
|
const openid = common_vendor.index.getStorageSync("openid");
|
|
const phone = common_vendor.index.getStorageSync("phone");
|
|
const phone = common_vendor.index.getStorageSync("phone");
|
|
const routerInfo = common_vendor.reactive({ discountId: "", discountLevel: "" });
|
|
const routerInfo = common_vendor.reactive({ discountId: "", discountLevel: "" });
|
|
- const action = "https://test-coupon.qiuyutech.com.cn/stage-api/miniApp/oss/upload/" + aData.brandId;
|
|
|
|
|
|
+ const action = "http://test-coupon.qiuyutech.com.cn/stage-api/miniApp/oss/upload/" + aData.brandId;
|
|
const customUpload = (file, formData, options) => {
|
|
const customUpload = (file, formData, options) => {
|
|
common_vendor.index.uploadFile({
|
|
common_vendor.index.uploadFile({
|
|
url: action,
|
|
url: action,
|
|
@@ -47,6 +47,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
imgList.value = imgList.value.filter((item) => item !== data.url);
|
|
imgList.value = imgList.value.filter((item) => item !== data.url);
|
|
};
|
|
};
|
|
const onAdd = () => {
|
|
const onAdd = () => {
|
|
|
|
+ if (imgList.value.length === 0)
|
|
|
|
+ return common_vendor.index.showToast({ title: "请上传图片", icon: "none" });
|
|
const params = {
|
|
const params = {
|
|
openid,
|
|
openid,
|
|
mobile: phone,
|
|
mobile: phone,
|
|
@@ -59,13 +61,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
};
|
|
};
|
|
services_ams.addCustomer(params).then((res) => {
|
|
services_ams.addCustomer(params).then((res) => {
|
|
common_vendor.index.navigateBack();
|
|
common_vendor.index.navigateBack();
|
|
- console.log("---------------------", res);
|
|
|
|
});
|
|
});
|
|
};
|
|
};
|
|
common_vendor.onLoad((options) => {
|
|
common_vendor.onLoad((options) => {
|
|
routerInfo.discountId = options.discountId;
|
|
routerInfo.discountId = options.discountId;
|
|
routerInfo.discountLevel = options.discountLevel;
|
|
routerInfo.discountLevel = options.discountLevel;
|
|
- console.log("---------------------", routerInfo);
|
|
|
|
});
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
return {
|