소스 검색

小票营销活动提测

15102826049 14 시간 전
부모
커밋
1a597bbeea

+ 1 - 1
dist/build/mp-weixin/pages/my/index.js

@@ -1 +1 @@
-"use strict";const e=require("../../common/vendor.js"),n=require("../../utils/system.js");if(require("../../utils/http.js"),!Array){e.resolveComponent("wd-cell")()}Math||((()=>"../../node-modules/wot-design-uni/components/wd-cell/wd-cell.js")+s)();const s=()=>"../../components/userLoginPopup.js",i=e.defineComponent({__name:"index",setup(s){const i="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/user.png",o="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/gift.png",a="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/page.png",t="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/with.png",u="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/myBg.png",l=[{label:"可用积分",src:"https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/int.png",num:0},{label:"优惠券",src:"https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/coupon.png",num:0}],c=e.ref(0),r=e.ref(null),p=e.ref(""),g=e.index.getStorageSync("phone"),d=()=>{p.value="/pagesOne/record/winnerList",n.isGetPhone()?e.index.navigateTo({url:"/pagesOne/record/winnerList"}):r.value.show=!0},m=()=>{p.value="/pagesOne/record/uploadList",n.isGetPhone()?e.index.navigateTo({url:"/pagesOne/record/uploadList"}):r.value.show=!0},v=e.ref(""),h=async e=>{p.value="",console.log("-------------------",n.isGetPhone()),n.isGetPhone()||(r.value.show=!0)},y=e=>{v.value=e};return e.onLoad((()=>{c.value=n.getNavTop()})),e.onShow((()=>{n.getActivityData()})),(n,s)=>e.e({a:u,b:c.value+"rpx",c:i,d:e.t(e.unref(g)||v.value||"用户昵称"),e:!e.unref(g)&&!v.value},e.unref(g)||v.value?{}:{f:e.o(h)},{g:c.value+125+"rpx",h:e.f(l,((e,n,s)=>({a:e.src,b:n}))),i:c.value+280+"rpx",j:o,k:t,l:e.o(d),m:e.p({"is-link":!0,title:"奖励记录"}),n:a,o:e.o(m),p:e.p({border:!0,"is-link":!0,title:"上传记录"}),q:e.sr(r,"fb673f43-2",{k:"loginRef"}),r:e.o(y),s:e.p({path:p.value})})}}),o=e._export_sfc(i,[["__scopeId","data-v-fb673f43"]]);wx.createPage(o);
+"use strict";const e=require("../../common/vendor.js"),n=require("../../utils/system.js");if(require("../../utils/http.js"),!Array){e.resolveComponent("wd-cell")()}Math||((()=>"../../node-modules/wot-design-uni/components/wd-cell/wd-cell.js")+i)();const i=()=>"../../components/userLoginPopup.js",s=e.defineComponent({__name:"index",setup(i){const s="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/user.png",o="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/gift.png",a="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/page.png",t="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/with.png",u=[{label:"可用积分",src:"https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/int.png",num:0},{label:"优惠券",src:"https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/coupon.png",num:0}],l=e.ref(0),r=e.ref(null),c=e.ref(""),p=e.index.getStorageSync("phone"),d=()=>{c.value="/pagesOne/record/winnerList",n.isGetPhone()?e.index.navigateTo({url:"/pagesOne/record/winnerList"}):r.value.show=!0},g=()=>{c.value="/pagesOne/record/uploadList",n.isGetPhone()?e.index.navigateTo({url:"/pagesOne/record/uploadList"}):r.value.show=!0},m=e.ref(""),v=async e=>{c.value="",n.isGetPhone()||(r.value.show=!0)},h=e=>{m.value=e};return e.onLoad((()=>{l.value=n.getNavTop()})),e.onShow((()=>{n.getActivityData()})),(n,i)=>e.e({a:l.value+"rpx",b:s,c:e.t(e.unref(p)||m.value||"用户昵称"),d:!e.unref(p)&&!m.value},e.unref(p)||m.value?{}:{e:e.o(v)},{f:l.value+125+"rpx",g:e.f(u,((e,n,i)=>({a:e.src,b:n}))),h:l.value+290+"rpx",i:o,j:t,k:e.o(d),l:e.p({"is-link":!0,title:"奖励记录"}),m:a,n:e.o(g),o:e.p({border:!0,"is-link":!0,title:"上传记录"}),p:e.sr(r,"c4e35fdf-2",{k:"loginRef"}),q:e.o(h),r:e.p({path:c.value})})}}),o=e._export_sfc(s,[["__scopeId","data-v-c4e35fdf"]]);wx.createPage(o);

+ 1 - 1
dist/build/mp-weixin/pages/my/index.wxml

@@ -1 +1 @@
-<view class="myContent data-v-fb673f43"><image class="myBg data-v-fb673f43" src="{{a}}" mode="scaleToFill"/><view class="topTitle data-v-fb673f43" style="{{'margin-top:' + b}}">个人中心</view><view class="userBox data-v-fb673f43" style="{{'margin-top:' + g}}"><image class="avatar data-v-fb673f43" src="{{c}}" mode="scaleToFill"/><view class="nickName data-v-fb673f43"><text class="name data-v-fb673f43">{{d}}</text><text wx:if="{{e}}" class="login data-v-fb673f43" bindtap="{{f}}">点击登录</text></view></view><view class="dataBox data-v-fb673f43" style="{{'top:' + i}}"><view wx:for="{{h}}" wx:for-item="item" wx:key="b" class="dataItem data-v-fb673f43"><view class="inside data-v-fb673f43"><text class="label data-v-fb673f43">可用积分</text><view class="data-v-fb673f43"/><text class="data-v-fb673f43">0</text></view><image class="data-v-fb673f43" src="{{item.a}}" mode="scaleToFill"/></view></view><view class="content data-v-fb673f43"><view class="toolBox data-v-fb673f43"><view class="title data-v-fb673f43"> 常用工具 </view><view class="tools data-v-fb673f43"><wd-cell wx:if="{{m}}" class="data-v-fb673f43" u-s="{{['icon','d']}}" bindclick="{{l}}" u-i="fb673f43-0" bind:__l="__l" u-p="{{m}}"><image class="data-v-fb673f43" src="{{j}}" mode="scaleToFill" slot="icon"/><image style="width:128rpx;height:48rpx" src="{{k}}" mode="scaleToFill" class="custom-text data-v-fb673f43"/></wd-cell><wd-cell wx:if="{{p}}" class="data-v-fb673f43" u-s="{{['icon']}}" bindclick="{{o}}" u-i="fb673f43-1" bind:__l="__l" u-p="{{p}}"><image class="data-v-fb673f43" src="{{n}}" mode="scaleToFill" slot="icon"/></wd-cell></view></view></view><user-login-popup wx:if="{{s}}" class="r data-v-fb673f43" u-r="loginRef" bindgetPhone="{{r}}" u-i="fb673f43-2" bind:__l="__l" u-p="{{s}}"></user-login-popup></view>
+<view class="myContent data-v-c4e35fdf"><view class="topTitle data-v-c4e35fdf" style="{{'margin-top:' + a}}">个人中心</view><view class="userBox data-v-c4e35fdf" style="{{'margin-top:' + f}}"><image class="avatar data-v-c4e35fdf" src="{{b}}" mode="scaleToFill"/><view class="nickName data-v-c4e35fdf"><text class="name data-v-c4e35fdf">{{c}}</text><text wx:if="{{d}}" class="login data-v-c4e35fdf" bindtap="{{e}}">点击登录</text></view></view><view class="dataBox data-v-c4e35fdf" style="{{'margin-top:' + h}}"><view wx:for="{{g}}" wx:for-item="item" wx:key="b" class="dataItem data-v-c4e35fdf"><view class="inside data-v-c4e35fdf"><text class="label data-v-c4e35fdf">可用积分</text><view class="data-v-c4e35fdf"/><text class="data-v-c4e35fdf">0</text></view><image class="data-v-c4e35fdf" src="{{item.a}}" mode="scaleToFill"/></view></view><view class="content data-v-c4e35fdf"><view class="toolBox data-v-c4e35fdf"><view class="title data-v-c4e35fdf"> 常用工具 </view><view class="tools data-v-c4e35fdf"><wd-cell wx:if="{{l}}" class="data-v-c4e35fdf" u-s="{{['icon','d']}}" bindclick="{{k}}" u-i="c4e35fdf-0" bind:__l="__l" u-p="{{l}}"><image class="data-v-c4e35fdf" src="{{i}}" mode="scaleToFill" slot="icon"/><image style="width:128rpx;height:48rpx" src="{{j}}" mode="scaleToFill" class="custom-text data-v-c4e35fdf"/></wd-cell><wd-cell wx:if="{{o}}" class="data-v-c4e35fdf" u-s="{{['icon']}}" bindclick="{{n}}" u-i="c4e35fdf-1" bind:__l="__l" u-p="{{o}}"><image class="data-v-c4e35fdf" src="{{m}}" mode="scaleToFill" slot="icon"/></wd-cell></view></view></view><user-login-popup wx:if="{{r}}" class="r data-v-c4e35fdf" u-r="loginRef" bindgetPhone="{{q}}" u-i="c4e35fdf-2" bind:__l="__l" u-p="{{r}}"></user-login-popup></view>

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/build/mp-weixin/pages/my/index.wxss


+ 1 - 1
dist/build/mp-weixin/pagesOne/record/winnerList.js

@@ -1 +1 @@
-"use strict";const e=require("../../common/vendor.js"),t=require("../../services/ams.js"),s=e.defineComponent({__name:"winnerList",setup(s){const n=e.index.getStorageSync("openid"),o=e.ref([]),i=()=>{t.auditSuccessList({openid:n}).then((e=>{o.value=e.rows}))};return e.onLoad((()=>{i()})),(s,n)=>({a:e.f(o.value,((s,n,o)=>e.e({a:0===n},{},{b:e.t(s.title),c:e.t(s.discountLevel),d:e.t(s.paymentAmount||0),e:e.t(s.startTime),f:e.t(s.endTime),g:e.n("3"===s.processStatus?"active":"static"),h:e.o((n=>{var o;"3"==(o=s).processStatus&&t.payment(o.id).then((t=>{200===t.code?e.index.showToast({icon:"success",title:"提现成功"}):e.index.showToast({icon:"none",title:"提现失败"}),i()})).catch((t=>{e.index.showToast({icon:"none",title:t.msg})}))}),s.id),i:s.id})))})}}),n=e._export_sfc(s,[["__scopeId","data-v-fd9ce3aa"]]);wx.createPage(n);
+"use strict";const e=require("../../common/vendor.js"),t=require("../../services/ams.js"),a=e.defineComponent({__name:"winnerList",setup(a){const s=e.index.getStorageSync("openid"),n=e.index.getStorageSync("appid"),c=e.ref([]),o=()=>{t.auditSuccessList({openid:s}).then((e=>{c.value=e.rows}))};return e.onLoad((()=>{o()})),(a,s)=>({a:e.f(c.value,((a,s,c)=>e.e({a:0===s},{},{b:e.t(a.title),c:e.t(a.discountLevel),d:e.t(a.paymentAmount||0),e:e.t(a.startTime),f:e.t(a.endTime),g:e.n("3"===a.processStatus?"active":"static"),h:e.o((s=>{var c;"3"==(c=a).processStatus&&t.payment(c.id).then((t=>{e.wx$1.canIUse("requestMerchantTransfer")?e.wx$1.requestMerchantTransfer({mchId:t.data.merchantId,appId:n,package:t.data.packageInfo,success:t=>{e.index.showToast({icon:"success",title:"请求成功"}),o()},fail:e=>{console.log("fail:",e)}}):e.wx$1.showModal({content:"你的微信版本过低,请更新至最新版本。",showCancel:!1})})).catch((t=>{e.index.showToast({icon:"none",title:t.msg})}))}),a.id),i:a.id})))})}}),s=e._export_sfc(a,[["__scopeId","data-v-17c98bf6"]]);wx.createPage(s);

+ 1 - 1
dist/build/mp-weixin/pagesOne/record/winnerList.wxml

@@ -1 +1 @@
-<view class="winnerListContent data-v-fd9ce3aa"><view class="title data-v-fd9ce3aa">奖励记录</view><view class="content data-v-fd9ce3aa"><view wx:for="{{a}}" wx:for-item="item" wx:key="i" class="activityItem data-v-fd9ce3aa"><view class="top flex-start-center data-v-fd9ce3aa"><image wx:if="{{item.a}}" class="now data-v-fd9ce3aa" src="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/nowAct.png" mode="scaleToFill"/><image wx:else class="old data-v-fd9ce3aa" src="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/act.png" mode="scaleToFill"/><text class="name data-v-fd9ce3aa">{{item.b}}</text></view><view class="data-v-fd9ce3aa"><text class="data-v-fd9ce3aa">活动力度:{{item.c}}</text><text class="data-v-fd9ce3aa">奖励金额:{{item.d}}元</text></view><view class="data-v-fd9ce3aa"> 活动时间:{{item.e}}至{{item.f}}</view><view class="{{['widthBtn', 'data-v-fd9ce3aa', item.g]}}" bindtap="{{item.h}}">提现</view></view></view></view>
+<view class="winnerListContent data-v-17c98bf6"><view class="title data-v-17c98bf6">奖励记录</view><view class="content data-v-17c98bf6"><view wx:for="{{a}}" wx:for-item="item" wx:key="i" class="activityItem data-v-17c98bf6"><view class="top flex-start-center data-v-17c98bf6"><image wx:if="{{item.a}}" class="now data-v-17c98bf6" src="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/nowAct.png" mode="scaleToFill"/><image wx:else class="old data-v-17c98bf6" src="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/act.png" mode="scaleToFill"/><text class="name data-v-17c98bf6">{{item.b}}</text></view><view class="data-v-17c98bf6"><text class="data-v-17c98bf6">活动力度:{{item.c}}</text><text class="data-v-17c98bf6">奖励金额:{{item.d}}元</text></view><view class="data-v-17c98bf6"> 活动时间:{{item.e}}至{{item.f}}</view><view class="{{['widthBtn', 'data-v-17c98bf6', item.g]}}" bindtap="{{item.h}}">提现</view></view></view></view>

+ 1 - 1
dist/build/mp-weixin/pagesOne/record/winnerList.wxss

@@ -1 +1 @@
-.winnerListContent.data-v-fd9ce3aa{padding:32rpx;box-sizing:border-box;background:#f7f8f9;min-height:100vh}.winnerListContent .title.data-v-fd9ce3aa{color:#000;font-weight:700;font-size:32rpx;position:relative;margin-left:16rpx}.winnerListContent .title.data-v-fd9ce3aa:before{content:" ";display:inline-block;width:6rpx;height:30rpx;background-color:#296041;margin-right:16rpx;position:absolute;border-radius:200rpx;left:-16rpx;top:0;bottom:0;margin:auto}.winnerListContent .content .activityItem.data-v-fd9ce3aa{height:250rpx;color:#666;font-size:28rpx;padding:24rpx;box-shadow:0 4rpx 16rpx rgba(207,223,232,.12);background:#fff;margin-top:16rpx;border-radius:16rpx}.winnerListContent .content .activityItem.data-v-fd9ce3aa:first-of-type{position:relative}.winnerListContent .content .activityItem.data-v-fd9ce3aa:first-of-type:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:2rpx solid;border-radius:inherit;padding:2rpx;box-sizing:border-box;background:linear-gradient(90deg,#225036,#3b8e5e 45.92%,#3d8f5f);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:destination-out;mask-composite:exclude}.winnerListContent .content .activityItem>view.data-v-fd9ce3aa{margin-top:16rpx}.winnerListContent .content .activityItem .now.data-v-fd9ce3aa{width:110rpx;height:34rpx}.winnerListContent .content .activityItem .old.data-v-fd9ce3aa{width:60rpx;height:34rpx}.winnerListContent .content .activityItem .name.data-v-fd9ce3aa{font-weight:700;color:#333;margin-left:16rpx}.winnerListContent .content .activityItem .top.data-v-fd9ce3aa{margin-top:0}.winnerListContent .widthBtn.data-v-fd9ce3aa{float:right;width:128rpx;border-radius:82rpx;background:linear-gradient(90deg,#225036,#3b8e5e 45.92%,#3d8f5f);color:#fff;line-height:48rpx;text-align:center;position:relative;z-index:999}.winnerListContent .widthBtn.static.data-v-fd9ce3aa{background:#d1d1d6}
+.winnerListContent.data-v-17c98bf6{padding:32rpx;box-sizing:border-box;background:#f7f8f9;min-height:100vh}.winnerListContent .title.data-v-17c98bf6{color:#000;font-weight:700;font-size:32rpx;position:relative;margin-left:16rpx}.winnerListContent .title.data-v-17c98bf6:before{content:" ";display:inline-block;width:6rpx;height:30rpx;background-color:#296041;margin-right:16rpx;position:absolute;border-radius:200rpx;left:-16rpx;top:0;bottom:0;margin:auto}.winnerListContent .content .activityItem.data-v-17c98bf6{height:250rpx;color:#666;font-size:28rpx;padding:24rpx;box-shadow:0 4rpx 16rpx rgba(207,223,232,.12);background:#fff;margin-top:16rpx;border-radius:16rpx}.winnerListContent .content .activityItem.data-v-17c98bf6:first-of-type{position:relative}.winnerListContent .content .activityItem.data-v-17c98bf6:first-of-type:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:2rpx solid;border-radius:inherit;padding:2rpx;box-sizing:border-box;background:linear-gradient(90deg,#225036,#3b8e5e 45.92%,#3d8f5f);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:destination-out;mask-composite:exclude}.winnerListContent .content .activityItem>view.data-v-17c98bf6{margin-top:16rpx}.winnerListContent .content .activityItem .now.data-v-17c98bf6{width:110rpx;height:34rpx}.winnerListContent .content .activityItem .old.data-v-17c98bf6{width:60rpx;height:34rpx}.winnerListContent .content .activityItem .name.data-v-17c98bf6{font-weight:700;color:#333;margin-left:16rpx}.winnerListContent .content .activityItem .top.data-v-17c98bf6{margin-top:0}.winnerListContent .widthBtn.data-v-17c98bf6{float:right;width:128rpx;border-radius:82rpx;background:linear-gradient(90deg,#225036,#3b8e5e 45.92%,#3d8f5f);color:#fff;line-height:48rpx;text-align:center;position:relative;z-index:999}.winnerListContent .widthBtn.static.data-v-17c98bf6{background:#d1d1d6}

+ 1 - 1
dist/build/mp-weixin/pagesOne/winner/components/activityDescPopup.js

@@ -1 +1 @@
-"use strict";const e=require("../../../common/vendor.js"),o=require("../../../hooks/useDraw.js");if(!Array){e.resolveComponent("wd-popup")()}Math;const s=e.defineComponent({__name:"activityDescPopup",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(s,{emit:t}){const r=s,p=t,{handleClose:n}=o.useDraw(r,p);return(o,s)=>({a:e.o(e.unref(n)),b:e.o((e=>r.show=e)),c:e.p({position:"bottom",closable:!0,"custom-style":"height: 600rpx;border-radius:16rpx",modelValue:r.show})})}}),t=e._export_sfc(s,[["__scopeId","data-v-f5b31743"]]);wx.createComponent(t);
+"use strict";const e=require("../../../common/vendor.js"),o=require("../../../hooks/useDraw.js");if(!Array){e.resolveComponent("wd-popup")()}Math;const s=e.defineComponent({__name:"activityDescPopup",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(s,{emit:t}){const r=s,a=t,{handleClose:p}=o.useDraw(r,a);return(o,s)=>({a:e.o(e.unref(p)),b:e.o((e=>r.show=e)),c:e.p({position:"bottom",closable:!0,"custom-style":"height: 600rpx;border-radius:16rpx",modelValue:r.show})})}}),t=e._export_sfc(s,[["__scopeId","data-v-ba555c8a"]]);wx.createComponent(t);

+ 1 - 1
dist/build/mp-weixin/pagesOne/winner/components/activityDescPopup.wxml

@@ -1 +1 @@
-<view class="activityDescPopup data-v-f5b31743"><wd-popup wx:if="{{c}}" class="data-v-f5b31743" u-s="{{['d']}}" bindclose="{{a}}" u-i="f5b31743-0" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"><view class="title data-v-f5b31743">活动说明</view><view class="content data-v-f5b31743"> 1.购买今麦郎指定商品,满25元返5元红包,满20元返2元红包,满12元返3元红包,满38元返10元红包;<view class="data-v-f5b31743"/> 2.活动期间每个用户享受2次满额返红包机会;<view class="data-v-f5b31743"/> 3.活动仅限指定城市门店参与以线下门店物料为准;<view class="data-v-f5b31743"/> 本活动最终解释权归今麦郎品牌所有 </view></wd-popup></view>
+<view class="activityDescPopup data-v-ba555c8a"><wd-popup wx:if="{{c}}" class="data-v-ba555c8a" u-s="{{['d']}}" bindclose="{{a}}" u-i="ba555c8a-0" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"><view class="title data-v-ba555c8a">活动说明</view><view class="content data-v-ba555c8a"> 1.购买今麦郎指定商品,满25元返5元红包,满20元返2元红包,满12元返3元红包,满38元返10元红包;<view class="data-v-ba555c8a"/> 2.活动期间每个用户享受2次满额返红包机会;<view class="data-v-ba555c8a"/> 3.活动仅限指定城市门店参与以线下门店物料为准;<view class="data-v-ba555c8a"/> 本活动最终解释权归今麦郎品牌所有 </view></wd-popup></view>

+ 1 - 1
dist/build/mp-weixin/pagesOne/winner/components/activityDescPopup.wxss

@@ -1 +1 @@
-.activityDescPopup .title.data-v-f5b31743{font-size:32rpx;color:#333;font-weight:700;text-align:center;margin-top:32rpx}.activityDescPopup .content.data-v-f5b31743{font-size:24rpx;color:#666;width:90%;margin:50rpx auto;line-height:17px}
+.activityDescPopup .title.data-v-ba555c8a{font-size:32rpx;color:#333;font-weight:700;text-align:center;margin-top:32rpx}.activityDescPopup .content.data-v-ba555c8a{font-size:24rpx;color:#666;width:90%;margin:50rpx auto;line-height:34rpx}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/build/mp-weixin/pagesOne/winner/index.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/build/mp-weixin/pagesOne/winner/index.wxml


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/build/mp-weixin/pagesOne/winner/index.wxss


+ 1 - 1
dist/build/mp-weixin/pagesOne/winner/uploadImage.js

@@ -1 +1 @@
-"use strict";const e=require("../../common/vendor.js"),o=require("../../services/ams.js");if(!Array){e.resolveComponent("wd-upload")()}Math;const t=e.defineComponent({__name:"uploadImage",setup(t){const n=e.ref([]),i=e.ref([]),a=JSON.parse(e.index.getStorageSync("activityData")),s=e.index.getStorageSync("openid"),d=e.index.getStorageSync("phone"),r=e.reactive({discountId:"",discountLevel:""}),l="https://coupon.qiuyutech.com.cn/prod-api/miniApp/oss/upload/"+a.brandId,u=(o,t,n)=>{e.index.uploadFile({url:l,header:n.header,name:n.name,fileName:n.name,fileType:n.fileType,formData:t,filePath:o.url,success(e){if(e.statusCode===n.statusCode){n.onSuccess(e,o,t);const a=JSON.parse(e.data);i.value.push(a.url)}else n.onError({...e,errMsg:e.errMsg||""},o,t)},fail(e){n.onError(e,o,t)}})},c=e=>{const o=JSON.parse(e.file.response);i.value=i.value.filter((e=>e!==o.url)),console.log("---------------2222222",i.value)},p=()=>{const t={openid:s,mobile:d,latitude:"",longitude:"",discountId:r.discountId,discountLevel:r.discountLevel,receiptImages:i.value.join(","),marketingActivityId:a.id};o.addCustomer(t).then((o=>{e.index.navigateBack(),console.log("---------------------",o)}))};return e.onLoad((e=>{r.discountId=e.discountId,r.discountLevel=e.discountLevel,console.log("---------------------",r)})),(o,t)=>({a:e.o(c),b:e.p({"file-list":n.value,multiple:!0,limit:5,"upload-method":u}),c:e.o(p)})}});wx.createPage(t);
+"use strict";const e=require("../../common/vendor.js"),o=require("../../services/ams.js");if(!Array){e.resolveComponent("wd-upload")()}Math;const t=e.defineComponent({__name:"uploadImage",setup(t){const n=e.ref([]),i=e.ref([]),a=JSON.parse(e.index.getStorageSync("activityData")),s=e.index.getStorageSync("openid"),d=e.index.getStorageSync("phone"),r=e.reactive({discountId:"",discountLevel:""}),l="https://coupon.qiuyutech.com.cn/prod-api/miniApp/oss/upload/"+a.brandId,u=(o,t,n)=>{e.index.uploadFile({url:l,header:n.header,name:n.name,fileName:n.name,fileType:n.fileType,formData:t,filePath:o.url,success(e){if(e.statusCode===n.statusCode){n.onSuccess(e,o,t);const a=JSON.parse(e.data);i.value.push(a.url)}else n.onError({...e,errMsg:e.errMsg||""},o,t)},fail(e){n.onError(e,o,t)}})},c=e=>{const o=JSON.parse(e.file.response);i.value=i.value.filter((e=>e!==o.url))},p=()=>{const t={openid:s,mobile:d,latitude:"",longitude:"",discountId:r.discountId,discountLevel:r.discountLevel,receiptImages:i.value.join(","),marketingActivityId:a.id};o.addCustomer(t).then((o=>{e.index.navigateBack(),console.log("---------------------",o)}))};return e.onLoad((e=>{r.discountId=e.discountId,r.discountLevel=e.discountLevel,console.log("---------------------",r)})),(o,t)=>({a:e.o(c),b:e.p({"file-list":n.value,multiple:!0,limit:5,"upload-method":u}),c:e.o(p)})}});wx.createPage(t);

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.