You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
888 B

"use strict";const e=require("../../../common/vendor.js");Array||e.resolveComponent("uni-nav-bar")();const r=()=>"../../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.js";Math||(_+r)();const _=()=>"../../components/header_tops_tips.js",u={__name:"exchange",setup(t){const n=e.ref("");function s(){e.index.navigateBack()}async function c(){let o={templateId:n.value};const a=await exchangeApi.searchCart(o);console.log(a,"兑换"),a.code==0?e.index.showToast({title:"兑换成功",icon:"success"}):e.index.showToast({title:a.msg,icon:"error"})}return e.onLoad(()=>{}),(o,a)=>({a:e.o(s),b:e.p({["left-icon"]:"left",title:"输入优惠码",backgroundColor:"#e6eafa"}),c:n.value,d:e.o(i=>n.value=i.detail.value),e:e.o(c)})}},l=e._export_sfc(u,[["__scopeId","data-v-8dc2f32c"],["__file","D:/xiangmu/佰安出行/app/s-applet/pages/home/wallet/exchange.vue"]]);wx.createPage(l);