Commit 62ed1468 authored by 潘永坪's avatar 潘永坪

扫码支付券开发

parent f9191db2
<template>
<!----------------适用于订单选择券的时候展示券列表-------------------------->
<u-action-sheet v-model="show">
<div>
<div class="middle" v-if="couponList.usableCouponList&&couponList.usableCouponList.length>0">
<div v-for="(item,index) of couponList.usableCouponList" :key="index">
<label>
<p>
{{item.couponName}}
<input type="radio" name="coupon" :value="item" v-model="chooseCoupon" @change="hideCoupon()"/>
</p>
<p>
{{item.couponRule}}
</p>
<p>
{{item.useStartDate}}-{{item.useEndDate}}
<span>
<i>¥</i>{{item.savedMoney.toFixed(2)}}
</span>
</p>
</label>
</div>
</div>
<u-popup v-model="show" mode="bottom">
<view class="title">
<view class="titleContent" v-for="(item,index) of navTitle" :key="index" :class="{on:active==index}" @click="navClick(index)">
<view style="position: relative;top:15rpx;">{{item}}</view>
<view v-show="active==index">
<text></text>
</view>
</view>
</view>
<!----------------------------------------------------可用------------------------------------------>
<view v-show="active==0">
<view class="middle" v-if="couponList.usableCouponList&&couponList.usableCouponList.length>0">
<radio-group @change="radioChange">
<view v-for="(item,index) of couponList.usableCouponList" :key="index" class="listBox">
<label>
<view>
{{item.couponName}}
<radio :value="item.couponId" :checked="item.couponId==chooseCoupon.couponId"/>
</view>
<view>
{{item.couponRule}}
</view>
<view>
{{item.useStartDate}}-{{item.useEndDate}}
<text>
<text>¥</text>{{item.savedMoney.toFixed(2)}}
</text>
</view>
</label>
</view>
</radio-group>
</view>
<div style="padding-top: 1.5rem;text-align: center;" v-if="couponList.usableCouponList&&couponList.usableCouponList.length==0">
<view style="padding:100rpx 0;text-align: center;" v-if="!couponList.usableCouponList||couponList.usableCouponList.length==0">
空空如也...
</div>
</div>
<div>
<div class="middle" v-if="couponList.unusableCouponList&&couponList.unusableCouponList.length>0">
<div v-for="(item,index) of couponList.unusableCouponList" :key="index">
<p>
</view>
</view>
<!--------------------------------------不可用------------------------------------------------------------>
<view v-show="active==1">
<view class="middle" v-if="couponList.unusableCouponList&&couponList.unusableCouponList.length>0">
<view v-for="(item,index) of couponList.unusableCouponList" :key="index" class="listBox">
<view>
{{item.couponName}}
</p>
<p>
</view>
<view>
{{item.couponRule}}
<span>
<i>¥</i>{{item.savedMoney.toFixed(2)}}
</span>
</p>
<p>
<text>
<text>¥</text>{{item.savedMoney.toFixed(2)}}
</text>
</view>
<view>
{{item.useStartDate}}-{{item.useEndDate}}
</p>
</div>
</div>
<div style="padding-top: 1.5rem;text-align: center;" v-if="couponList.unusableCouponList&&couponList.unusableCouponList.length==0">
</view>
</view>
</view>
<view style="padding:100rpx 0;text-align: center;" v-if="!couponList.unusableCouponList||couponList.unusableCouponList.length==0">
空空如也...
</div>
</div>
</u-action-sheet>
</view>
</view>
</u-popup>
</template>
<script>
......@@ -65,8 +79,8 @@
this.couponList=this.couponData
}
},
deep:false,
immediate:false
deep:true,
immediate:true
},
chooseCouponObj:{//
handler(newValue, oldValue){
......@@ -74,25 +88,35 @@
this.chooseCoupon=this.chooseCouponObj
}
},
deep:false,
immediate:false
deep:true,
immediate:true
},
},
data(){
return{
active:0,//导航栏下标
show:false,//控制弹窗显示隐藏
active:0,//控制选项卡默认显示第几个
current:0,//控制选项卡默认显示第几个
couponList:"",//券列表
chooseCoupon:"",//选中的劵
navTitle:["可用","不可用"],//导航标题
}
},
methods:{
navClick(index){//------------------------------------------导航栏点击
this.active=index
},
showCoupon(){//----------------------------------------展示弹窗
this.show=true
},
hideCoupon(){//--------------------------------------- 隐藏弹窗
this.show=false
this.$emit("couponChoose",this.chooseCoupon)
radioChange(evt) {//-------------------------单选框值变化
if(evt.detail.value){
this.chooseCoupon=this.couponList.usableCouponList.find((item)=>{
return item.couponId==evt.detail.value
})
this.show=false
this.$emit("couponChoose",this.chooseCoupon)
}
},
cancelCoupon(){//------------------------------------取消选中优惠券
this.chooseCoupon=""
......@@ -104,15 +128,19 @@
</script>
<style scoped="scoped">
.middle{padding:0.24rem;}
.middle div{background: #FFFFFF;padding: 0.24rem;border-radius: 0.1rem;}
.middle div:not(:first-child){margin-top: 0.2rem;}
.middle div p:not(:first-child){margin-top: 0.2rem;}
.middle div p{display: flex;justify-content: space-between;}
.middle div p:first-child{font-weight: bold;}
.middle div p:nth-child(2){font-size: 0.24rem;}
.middle div p:last-child{color: #666666;font-size: 0.24rem;}
.middle p span{color:#f9690e;font-size: 0.3rem;font-weight: bolder;}
.middle p span i{font-size: 0.24rem;font-weight: 400;}
<style scoped="scoped" lang="scss">
.title{display: flex;height: 80rpx;}
.titleContent{flex:1;text-align: center;font-size:30rpx;}
.titleContent.on{color: $title-color;font-weight: bold;}
.titleContent view text{width: 40rpx;height: 6rpx;background:$title-color;border-radius:6rpx;display:inline-block;position: relative;top:-10rpx;}
.middle{padding:24rpx;background:#f5f5f5;}
.listBox{background: #FFFFFF;padding:24rpx;border-radius:10rpx;}
.middle .listBox:not(:first-child){margin-top:20rpx;}
.middle view view:not(:first-child){margin-top:20rpx;}
.middle view view{display: flex;justify-content: space-between;}
.middle view view:first-child{font-weight: bold;}
.middle view view:nth-child(2){font-size:24rpx;}
.middle view view:last-child{color: #666666;font-size:24rpx;}
.middle view text{color:#f9690e;font-size:30rpx;font-weight: bolder;}
.middle view text text{font-size:24rpx;font-weight: 400;}
</style>
......@@ -16,7 +16,7 @@
</view>
</view>
<!-- -----------------------------有可用优惠券,并且未选中----------------------------------------------------- -->
<view class="middle1Coupon" v-if="couponData.usableCouponList&&couponData.usableCouponList.length>0&&chooseCouponObj==''" @click="showCoupon()">
<view class="topCoupon" v-if="couponData.usableCouponList&&couponData.usableCouponList.length>0&&chooseCouponObj==''" @click="showCoupon()">
<view class="couponLeft">
<text></text>
<text>{{couponData.usableCouponList[0].couponName}}</text>
......@@ -134,10 +134,12 @@
methods: {
clickNum(i) {//---------------------------------------------------------------------输入数字
this.buyMoney += i
//#ifdef H5
this.$refs[i].$el.style.background="#dddddd"
setTimeout(()=>{
this.$refs[i].$el.style.background=""
this.$refs[i].$el.style.background=""
},200)
//#endif
clearTimeout(this.flag)
this.flag = setTimeout(()=>{
this.initCoupon()
......@@ -145,10 +147,12 @@
},
clickEnter(){//---------------------------------------------------------------------退格
this.buyMoney = this.buyMoney.substr(0, this.buyMoney.length - 1)
//#ifdef H5
this.$refs.enter.$el.style.background="#dddddd"
setTimeout(()=>{
this.$refs.enter.$el.style.background=""
},200)
//#endif
clearTimeout(this.flag)
this.flag = setTimeout(()=>{
this.initCoupon()
......@@ -204,11 +208,11 @@
merchantId:this.merchantId, //商户Id
companyId:this.companyId,//公司Id
orderSource:this.orderSource,//订单来源 8扫码支付
openid:uni.getStorageSync("openid")
openid:"oroHZ5D2kemXkyFtTb_KnJMH1fqc"
}
this.$request("wechatUser/myPage/usableCouponList",data).then((res) => {
if (res.code == "00") {
this.couponList = res.data
this.couponData = res.data
if (res.data.usableCouponList.length > 0) {
res.data.usableCouponList.forEach((item) => { //获取最优券
savedMoneyList.push(item.savedMoney)
......@@ -257,11 +261,11 @@
orderSource:this.orderSource,//订单来源 8扫码支付
couponList,//券列表
}
this.$refs.pay.$el.style.cssText="background:#cccccc;"
// this.$refs.pay.$el.style.cssText="background:#cccccc;"
this.$request("orderc/order/codePay", data).then((res) => {
setTimeout(() => {
this.$refs.pay.$el.style.cssText="background:#1dce2e;"
},1000)
// setTimeout(() => {
// this.$refs.pay.$el.style.cssText="background:#1dce2e;"
// },1000)
if(res.code=="00") {
if (res.data.errorMessage) {
uni.showToast({
......@@ -284,7 +288,7 @@
})
}
}).catch((err) => {
this.$refs.pay.$el.style.cssText="background:#1dce2e;"
// this.$refs.pay.$el.style.cssText="background:#1dce2e;"
})
},
goPay(){//------------------------------------------------------------------------------去支付
......@@ -330,12 +334,11 @@
if (y > 2 && x > 0) {
this.buyMoney = oldVal
}
if (parseFloat(this.buyMoney)) {
this.$refs.pay.$el.style.cssText="background:#1dce2e;"
} else {
this.$refs.pay.$el.style.cssText="background:#cccccc;"
}
// if (parseFloat(this.buyMoney)) {
// this.$refs.pay.$el.style.cssText="background:#1dce2e;"
// } else {
// this.$refs.pay.$el.style.cssText="background:#cccccc;"
// }
}
}
}
......@@ -369,7 +372,7 @@
.botLeft view:last-child text{flex:initial;}
.botRight{width:25%;}
.rightOne{height: 25%;display: flex;align-items:center;justify-content: center;border-bottom:1px solid #dddddd;}
.rightTwo{height: 75%;border:none;color: #FFFFFF;background: #CCCCCC;display: flex;flex-direction:column;align-items:center;justify-content: center;}
.rightTwo{height: 75%;border:none;color: #FFFFFF;background: #1dce2e;display: flex;flex-direction:column;align-items:center;justify-content: center;}
@keyframes dis{
from{
opacity: 0;
......
......@@ -18,6 +18,9 @@
"desc": "请点击确定"
}
},
"uniStatistics": {
"enable": true
},
"usingComponents": {},
"sitemapLocation": "sitemap.json"
}
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"0f37":function(e,t,n){"use strict";n.r(t);var r=n("3713");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("63a6");var u,f,c,a,i=n("f0c5"),l=Object(i["a"])(r["default"],u,f,!1,null,null,null,!1,c,a);t["default"]=l.exports},"25fe":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={onLaunch:function(){},onShow:function(){},onHide:function(){}};t.default=r},3713:function(e,t,n){"use strict";n.r(t);var r=n("25fe"),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},"5f35":function(e,t,n){},"63a6":function(e,t,n){"use strict";var r=n("5f35"),o=n.n(r);o.a},d81f:function(e,t,n){"use strict";(function(e){n("6909");var t=u(n("66fd")),r=u(n("0f37")),o=u(n("1d0e"));function u(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("4dff"),t.default.prototype.$request=o.default,t.default.config.productionTip=!1,r.default.mpType="app";var i=new t.default(c({},r.default));e(i).$mount()}).call(this,n("543d")["createApp"])}},[["d81f","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"0f37":function(e,t,n){"use strict";n.r(t);var r=n("3713");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("dbd1");var u,f,c,a,i=n("f0c5"),l=Object(i["a"])(r["default"],u,f,!1,null,null,null,!1,c,a);t["default"]=l.exports},"25fe":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={onLaunch:function(){},onShow:function(){},onHide:function(){}};t.default=r},3713:function(e,t,n){"use strict";n.r(t);var r=n("25fe"),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},d81f:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");var t=f(n("66fd")),r=f(n("0f37")),o=f(n("cd04")),u=f(n("1d0e"));function f(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("48bb"),t.default.prototype.$request=u.default,t.default.use(o.default),t.default.config.productionTip=!1,r.default.mpType="app";var l=new t.default(a({},r.default));e(l).$mount()}).call(this,n("543d")["createApp"])},dbd1:function(e,t,n){"use strict";var r=n("def2"),o=n.n(r);o.a},def2:function(e,t,n){}},[["d81f","common/runtime","common/vendor"]]]);
\ No newline at end of file
!function(){try{var a=Function("return this")();a&&!a.Math&&(Object.assign(a,{isFinite:isFinite,Array:Array,Date:Date,Error:Error,Function:Function,Math:Math,Object:Object,RegExp:RegExp,String:String,TypeError:TypeError,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval}),"undefined"!=typeof Reflect&&(a.Reflect=Reflect))}catch(a){}}();
(function(e){function r(r){for(var n,l,a=r[0],i=r[1],f=r[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);p&&p(r);while(s.length)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var i=t[a];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={"common/runtime":0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var a=global["webpackJsonp"]=global["webpackJsonp"]||[],i=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var p=i;t()})([]);
(function(e){function t(t){for(var o,r,a=t[0],c=t[1],p=t[2],s=0,l=[];s<a.length;s++)r=a[s],Object.prototype.hasOwnProperty.call(u,r)&&u[r]&&l.push(u[r][0]),u[r]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(e[o]=c[o]);m&&m(t);while(l.length)l.shift()();return i.push.apply(i,p||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],o=!0,r=1;r<n.length;r++){var a=n[r];0!==u[a]&&(o=!1)}o&&(i.splice(t--,1),e=c(c.s=n[0]))}return e}var o={},r={"common/runtime":0},u={"common/runtime":0},i=[];function a(e){return c.p+""+e+".js"}function c(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(e){var t=[],n={"components/orderCoupon":1,"uview-ui/components/u-action-sheet/u-action-sheet":1,"uview-ui/components/u-popup/u-popup":1,"uview-ui/components/u-icon/u-icon":1,"uview-ui/components/u-mask/u-mask":1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var o=({"components/orderCoupon":"components/orderCoupon","uview-ui/components/u-action-sheet/u-action-sheet":"uview-ui/components/u-action-sheet/u-action-sheet","uview-ui/components/u-popup/u-popup":"uview-ui/components/u-popup/u-popup","uview-ui/components/u-icon/u-icon":"uview-ui/components/u-icon/u-icon","uview-ui/components/u-mask/u-mask":"uview-ui/components/u-mask/u-mask"}[e]||e)+".wxss",u=c.p+o,i=document.getElementsByTagName("link"),a=0;a<i.length;a++){var p=i[a],s=p.getAttribute("data-href")||p.getAttribute("href");if("stylesheet"===p.rel&&(s===o||s===u))return t()}var l=document.getElementsByTagName("style");for(a=0;a<l.length;a++){p=l[a],s=p.getAttribute("data-href");if(s===o||s===u)return t()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.onload=t,m.onerror=function(t){var o=t&&t.target&&t.target.src||u,i=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=o,delete r[e],m.parentNode.removeChild(m),n(i)},m.href=u;var f=document.getElementsByTagName("head")[0];f.appendChild(m)})).then((function(){r[e]=0})));var o=u[e];if(0!==o)if(o)t.push(o[2]);else{var i=new Promise((function(t,n){o=u[e]=[t,n]}));t.push(o[2]=i);var p,s=document.createElement("script");s.charset="utf-8",s.timeout=120,c.nc&&s.setAttribute("nonce",c.nc),s.src=a(e);var l=new Error;p=function(t){s.onerror=s.onload=null,clearTimeout(m);var n=u[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",l.name="ChunkLoadError",l.type=o,l.request=r,n[1](l)}u[e]=void 0}};var m=setTimeout((function(){p({type:"timeout",target:s})}),12e4);s.onerror=s.onload=p,document.head.appendChild(s)}return Promise.all(t)},c.m=e,c.c=o,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)c.d(n,o,function(t){return e[t]}.bind(null,o));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var p=global["webpackJsonp"]=global["webpackJsonp"]||[],s=p.push.bind(p);p.push=t,p=p.slice();for(var l=0;l<p.length;l++)t(p[l]);var m=s;n()})([]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"065f":function(n,t,e){"use strict";e.r(t);var o=e("737f"),u=e.n(o);for(var a in o)"default"!==a&&function(n){e.d(t,n,(function(){return o[n]}))}(a);t["default"]=u.a},"2bba":function(n,t,e){"use strict";(function(n){e("6909");o(e("66fd"));var t=o(e("c545"));function o(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])},"6a9d":function(n,t,e){"use strict";var o;e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return o}));var u=function(){var n=this,t=n.$createElement;n._self._c},a=[]},"737f":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={data:function(){return{title:"胖丁首页",showBottom:!1}},onLoad:function(){var t=this;n.getStorageSync("openid")?t.showBottom=!0:n.navigateTo({url:"../login/login"})},onReady:function(){},methods:{getUserInfo:function(){n.getUserProfile({lang:"zh_CN",desc:"登录",success:function(n){console.log(n)},fail:function(n){}})}}};t.default=e}).call(this,e("543d")["default"])},c545:function(n,t,e){"use strict";e.r(t);var o=e("6a9d"),u=e("065f");for(var a in u)"default"!==a&&function(n){e.d(t,n,(function(){return u[n]}))}(a);e("d9b5");var c,i=e("f0c5"),r=Object(i["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);t["default"]=r.exports},d9b5:function(n,t,e){"use strict";var o=e("e90d"),u=e.n(o);u.a},e90d:function(n,t,e){}},[["2bba","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"065f":function(n,t,e){"use strict";e.r(t);var o=e("737f"),u=e.n(o);for(var a in o)"default"!==a&&function(n){e.d(t,n,(function(){return o[n]}))}(a);t["default"]=u.a},"2bba":function(n,t,e){"use strict";(function(n){e("6909"),e("921b");o(e("66fd"));var t=o(e("c545"));function o(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])},"6a9d":function(n,t,e){"use strict";var o;e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return o}));var u=function(){var n=this,t=n.$createElement;n._self._c},a=[]},"737f":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={data:function(){return{title:"胖丁首页",showBottom:!1}},onLoad:function(){var t=this;n.getStorageSync("openid")?t.showBottom=!0:n.navigateTo({url:"../login/login"})},onReady:function(){},methods:{getUserInfo:function(){n.getUserProfile({lang:"zh_CN",desc:"登录",success:function(n){console.log(n)},fail:function(n){}})}}};t.default=e}).call(this,e("543d")["default"])},c545:function(n,t,e){"use strict";e.r(t);var o=e("6a9d"),u=e("065f");for(var a in u)"default"!==a&&function(n){e.d(t,n,(function(){return u[n]}))}(a);e("d9b5");var c,i=e("f0c5"),r=Object(i["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);t["default"]=r.exports},d9b5:function(n,t,e){"use strict";var o=e("e90d"),u=e.n(o);u.a},e90d:function(n,t,e){}},[["2bba","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"9fb8":function(e,n,t){"use strict";t.r(n);var o=t("b2ee"),a=t("a824");for(var c in a)"default"!==c&&function(e){t.d(n,e,(function(){return a[e]}))}(c);var i,r=t("f0c5"),u=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);n["default"]=u.exports},a824:function(e,n,t){"use strict";t.r(n);var o=t("bae4"),a=t.n(o);for(var c in o)"default"!==c&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=a.a},b2ee:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return o}));var a=function(){var e=this,n=e.$createElement;e._self._c},c=[]},bae4:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{}},methods:{},onLoad:function(){e.showLoading({title:"加载中..."});var n=this;e.getProvider({service:"oauth",success:function(t){e.login({provider:t.provider[0],success:function(t){if(t.code){var o={code:t.code,source:3};n.$request("wechat/wx/getUserInfoByCode",o).then((function(n){if("00"==n.code){var t=n.data.openid;e.setStorageSync("openid",t),e.navigateBack({delta:1})}else e.removeStorageSync("openid"),e.showToast({title:n.message,icon:"none"}),e.hideLoading()})).catch((function(n){e.removeStorageSync("openid"),e.hideLoading()}))}}})}})}};n.default=t}).call(this,t("543d")["default"])},d263:function(e,n,t){"use strict";(function(e){t("6909");o(t("66fd"));var n=o(t("9fb8"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])}},[["d263","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"638a":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return o}));var a=function(){var e=this,n=e.$createElement;e._self._c},c=[]},"9fb8":function(e,n,t){"use strict";t.r(n);var o=t("638a"),a=t("a824");for(var c in a)"default"!==c&&function(e){t.d(n,e,(function(){return a[e]}))}(c);var r,u=t("f0c5"),i=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);n["default"]=i.exports},a824:function(e,n,t){"use strict";t.r(n);var o=t("bae4"),a=t.n(o);for(var c in o)"default"!==c&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=a.a},bae4:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{}},methods:{},onLoad:function(){e.showLoading({title:"加载中..."});var n=this;e.getProvider({service:"oauth",success:function(t){e.login({provider:t.provider[0],success:function(t){if(t.code){var o={code:t.code,source:3};n.$request("wechat/wx/getUserInfoByCode",o).then((function(n){if(e.hideLoading(),"00"==n.code){var t=n.data.openid;e.setStorageSync("openid",t),e.navigateBack({delta:1})}else e.removeStorageSync("openid"),e.showToast({title:n.message,icon:"none"})})).catch((function(n){e.removeStorageSync("openid")}))}}})}})}};n.default=t}).call(this,t("543d")["default"])},d263:function(e,n,t){"use strict";(function(e){t("6909"),t("921b");o(t("66fd"));var n=o(t("9fb8"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])}},[["d263","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/orderPayment/orderPayment"],{"0d8a":function(e,t,n){"use strict";(function(e){n("6909");a(n("66fd"));var t=a(n("8611"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"223d":function(e,t,n){"use strict";n.r(t);var a=n("4917"),r=n.n(a);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=r.a},"27f6":function(e,t,n){"use strict";var a=n("74b1"),r=n.n(a);r.a},4917:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{merchantName:"",productName:"",orderList:"",unitPrice:"",depositReceived:0,pdDiscountMoney:"",orderNum:"",pdOrderMoney:"",totalMoney:"",errorMessage:"",bodyShow:!1,timeStamp:"",nonceStr:"",package:"",signType:"",paySign:"",background:""}},onLoad:function(t){var n=this,a={orderId:t.orderId,userId:e.getStorageSync("openid"),payType:42};this.$request("orderc/order/findOrderInfo",a).then((function(t){"00"==t.code?(n.bodyShow=!0,n.timeStamp=t.data.timestamp,n.nonceStr=t.data.noncestr,n.package=t.data.package,n.signType=t.data.signType,n.paySign=t.data.sign,n.pdOrderMoney=t.data.pdOrderMoney,n.errorMessage=t.data.errorMessage,n.totalMoney=t.data.totalMoney,n.orderList=t.data.orderList,"undefined"==typeof n.orderList&&(n.orderList="",n.merchantName=t.data.merchantName,n.productName=t.data.productName,n.unitPrice=t.data.unitPrice,n.orderNum=t.data.orderNum,n.depositReceived=t.data.depositReceived,n.pdDiscountMoney=t.data.pdDiscountMoney)):e.showToast({title:t.message,icon:"none"})}))},methods:{goPay:function(){var t=this;this.errorMessage?e.showToast({title:this.errorMessage,duration:2e3,icon:"none"}):(this.background="#E6E6E6",setTimeout((function(){t.background="f9690e"}),1e3),e.requestPayment({provider:"wxpay",timeStamp:this.timeStamp,nonceStr:this.nonceStr,package:this.package,signType:this.signType,paySign:this.paySign,success:function(t){e.redirectTo({url:"../paySuccess/paySuccess"})},fail:function(t){e.showToast({title:t.errMsg,duration:2e3,icon:"none"})}}))}}};t.default=n}).call(this,n("543d")["default"])},6014:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=function(){var e=this,t=e.$createElement;e._self._c},o=[]},"74b1":function(e,t,n){},8611:function(e,t,n){"use strict";n.r(t);var a=n("6014"),r=n("223d");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("27f6");var i,d=n("f0c5"),c=Object(d["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);t["default"]=c.exports}},[["0d8a","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/orderPayment/orderPayment"],{"0d8a":function(e,t,n){"use strict";(function(e){n("6909"),n("921b");a(n("66fd"));var t=a(n("8611"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"223d":function(e,t,n){"use strict";n.r(t);var a=n("4917"),r=n.n(a);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=r.a},"27f6":function(e,t,n){"use strict";var a=n("74b1"),r=n.n(a);r.a},4917:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{merchantName:"",productName:"",orderList:"",unitPrice:"",depositReceived:0,pdDiscountMoney:"",orderNum:"",pdOrderMoney:"",totalMoney:"",errorMessage:"",bodyShow:!1,timeStamp:"",nonceStr:"",package:"",signType:"",paySign:"",background:""}},onLoad:function(t){var n=this,a={orderId:t.orderId,userId:e.getStorageSync("openid"),payType:42};this.$request("orderc/order/findOrderInfo",a).then((function(t){"00"==t.code?(n.bodyShow=!0,n.timeStamp=t.data.timestamp,n.nonceStr=t.data.noncestr,n.package=t.data.package,n.signType=t.data.signType,n.paySign=t.data.sign,n.pdOrderMoney=t.data.pdOrderMoney,n.errorMessage=t.data.errorMessage,n.totalMoney=t.data.totalMoney,n.orderList=t.data.orderList,"undefined"==typeof n.orderList&&(n.orderList="",n.merchantName=t.data.merchantName,n.productName=t.data.productName,n.unitPrice=t.data.unitPrice,n.orderNum=t.data.orderNum,n.depositReceived=t.data.depositReceived,n.pdDiscountMoney=t.data.pdDiscountMoney)):e.showToast({title:t.message,icon:"none"})}))},methods:{goPay:function(){var t=this;this.errorMessage?e.showToast({title:this.errorMessage,icon:"none"}):(this.background="#E6E6E6",setTimeout((function(){t.background="f9690e"}),1e3),e.requestPayment({provider:"wxpay",timeStamp:this.timeStamp,nonceStr:this.nonceStr,package:this.package,signType:this.signType,paySign:this.paySign,success:function(t){e.redirectTo({url:"../paySuccess/paySuccess"})},fail:function(t){e.showToast({title:t.errMsg,icon:"none"})}}))}}};t.default=n}).call(this,n("543d")["default"])},"74b1":function(e,t,n){},7530:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=function(){var e=this,t=e.$createElement;e._self._c},o=[]},8611:function(e,t,n){"use strict";n.r(t);var a=n("7530"),r=n("223d");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("27f6");var i,d=n("f0c5"),c=Object(d["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);t["default"]=c.exports}},[["0d8a","common/runtime","common/vendor"]]]);
\ No newline at end of file
<view><view hidden="{{!(bodyShow)}}" class="middle"><view class="main"><block wx:for="{{orderList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><block wx:if="{{orderList!=''}}"><view class="product"><view><text>{{''+item.merchantName+"("+item.productName+')'}}</text><text><text style="font-size:24rpx;">¥</text>{{item.unitPrice+''}}<text>x</text>{{''+item.orderNum}}<view class="_br"></view><block wx:if="{{item.depositReceived}}"><text style="margin-top:15rpx;font-size:22rpx;display:inline-block;color:#f45803;">{{"押金:"+item.depositReceived}}</text></block></text></view><block wx:if="{{item.pdDiscountMoney}}"><view class="coupon"><text>券</text><text><text style="font-size:24rpx;">-¥</text>{{item.pdDiscountMoney+''}}</text></view></block></view></block></block><block wx:if="{{orderList==''}}"><view class="product"><view><text>{{''+merchantName+"("+productName+')'}}</text><text style="text-align:right;"><view style="font-size:24rpx;" class="_small">¥</view>{{unitPrice+''}}<text>x</text>{{''+orderNum}}<view class="_br"></view><block wx:if="{{depositReceived}}"><text style="margin-top:15rpx;font-size:22rpx;display:inline-block;color:#f45803;">{{"押金:"+depositReceived}}</text></block></text></view><block wx:if="{{pdDiscountMoney}}"><view class="coupon"><text>券</text><text><text style="font-size:24rpx;">-¥</text>{{pdDiscountMoney+''}}</text></view></block></view></block><view class="mainP3"><text>实际支付</text><text><text><text style="font-size:28rpx;">¥</text>{{pdOrderMoney+''}}</text></text></view><view class="mainview"><image style="width:70rpx;height:62rpx;" src="../../static/img/orderPayment/weixin.png"></image><view>微信支付</view><image style="width:32rpx;height:32rpx;" src="../../static/img/orderPayment/input.png"></image></view></view></view><view hidden="{{!(bodyShow)}}" class="bottom"><view class="bottomFirst"><text>实付款</text><text><text>¥</text>{{pdOrderMoney+''}}</text></view><view class="bottomLast"><text href="tel:400-072-0368"></text><text data-event-opts="{{[['tap',[['goPay']]]]}}" style="{{'background:'+(background)+';'}}" bindtap="__e">去支付</text></view></view></view>
\ No newline at end of file
<view><view hidden="{{!(bodyShow)}}" class="middle"><view class="main"><block wx:for="{{orderList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><block wx:if="{{orderList!=''}}"><view class="product"><view><text>{{''+item.merchantName+"("+item.productName+')'}}</text><text><text style="font-size:24rpx;">¥</text>{{item.unitPrice+''}}<text>x</text>{{''+item.orderNum}}<view class="_br"></view><block wx:if="{{item.depositReceived}}"><text style="margin-top:15rpx;font-size:22rpx;display:inline-block;color:#f45803;">{{"押金:"+item.depositReceived}}</text></block></text></view><block wx:if="{{item.pdDiscountMoney}}"><view class="coupon"><text>券</text><text><text style="font-size:24rpx;">-¥</text>{{item.pdDiscountMoney+''}}</text></view></block></view></block></block><block wx:if="{{orderList==''}}"><view class="product"><view><text>{{''+merchantName+"("+productName+')'}}</text><text style="text-align:right;"><view style="font-size:24rpx;" class="_small">¥</view>{{unitPrice+''}}<text>x</text>{{''+orderNum}}<view class="_br"></view><block wx:if="{{depositReceived}}"><text style="margin-top:15rpx;font-size:22rpx;display:inline-block;color:#f45803;">{{"押金:"+depositReceived}}</text></block></text></view><block wx:if="{{pdDiscountMoney}}"><view class="coupon"><text>券</text><text><text style="font-size:24rpx;">-¥</text>{{pdDiscountMoney+''}}</text></view></block></view></block><view class="mainP3"><text>实际支付</text><text><text><text style="font-size:28rpx;">¥</text>{{pdOrderMoney+''}}</text></text></view><view class="mainview"><image style="width:70rpx;height:62rpx;" src="/static/img/orderPayment/weixin.png"></image><view>微信支付</view><image style="width:32rpx;height:32rpx;" src="/static/img/orderPayment/input.png"></image></view></view></view><view hidden="{{!(bodyShow)}}" class="bottom"><view class="bottomFirst"><text>实付款</text><text><text>¥</text>{{pdOrderMoney+''}}</text></view><view class="bottomLast"><text href="tel:400-072-0368"></text><text data-event-opts="{{[['tap',[['goPay']]]]}}" style="{{'background:'+(background)+';'}}" bindtap="__e">去支付</text></view></view></view>
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/ourPayment/ourPayment"],{2296:function(n,t,e){"use strict";e.r(t);var u=e("923c"),r=e("6a16");for(var a in r)"default"!==a&&function(n){e.d(t,n,(function(){return r[n]}))}(a);e("74ec");var c,o=e("f0c5"),f=Object(o["a"])(r["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],c);t["default"]=f.exports},3778:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={data:function(){return{}},methods:{}};t.default=u},"6a16":function(n,t,e){"use strict";e.r(t);var u=e("3778"),r=e.n(u);for(var a in u)"default"!==a&&function(n){e.d(t,n,(function(){return u[n]}))}(a);t["default"]=r.a},"74ec":function(n,t,e){"use strict";var u=e("9324"),r=e.n(u);r.a},"923c":function(n,t,e){"use strict";var u;e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return u}));var r=function(){var n=this,t=n.$createElement;n._self._c},a=[]},9324:function(n,t,e){},d410:function(n,t,e){"use strict";(function(n){e("6909");u(e("66fd"));var t=u(e("2296"));function u(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])}},[["d410","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/ourPayment/ourPayment"],{2296:function(o,e,t){"use strict";t.r(e);var n=t("a94b"),s=t("6a16");for(var a in s)"default"!==a&&function(o){t.d(e,o,(function(){return s[o]}))}(a);t("9dd6");var i,c=t("f0c5"),u=Object(c["a"])(s["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],i);e["default"]=u.exports},3778:function(o,e,t){"use strict";(function(o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){t.e("components/orderCoupon").then(function(){return resolve(t("5503"))}.bind(null,t)).catch(t.oe)},s={components:{orderCoupon:n},data:function(){return{buyMoney:"",companyId:"",merchantId:"",name:"",paySign:"",signType:"",timeStamp:"",nonceStr:"",package:"",flag:"",couponData:"",chooseCouponObj:"",ableConpon:"",orderSource:8}},onLoad:function(o){this.companyId=o.companyId,this.merchantId=o.merchantId,this.merchantId?this.init():this.initTwo(),this.initCoupon()},methods:{clickNum:function(o){var e=this;this.buyMoney+=o,this.$refs[o].$el.style.background="#dddddd",setTimeout((function(){e.$refs[o].$el.style.background=""}),200),clearTimeout(this.flag),this.flag=setTimeout((function(){e.initCoupon()}),1500)},clickEnter:function(){var o=this;this.buyMoney=this.buyMoney.substr(0,this.buyMoney.length-1),this.$refs.enter.$el.style.background="#dddddd",setTimeout((function(){o.$refs.enter.$el.style.background=""}),200),clearTimeout(this.flag),this.flag=setTimeout((function(){o.initCoupon()}),1500)},couponChoose:function(o){this.chooseCouponObj=o},showCoupon:function(){this.$refs.orderCoupon.showCoupon()},init:function(){var e=this,t={merchantId:this.merchantId,companyId:this.companyId};o.showLoading({title:"加载中",mask:!0}),this.$request("scenic/order/findCodePayInfo",t).then((function(t){o.hideLoading(),"00"==t.code?e.name=t.data.name:o.showToast({title:t.message,icon:"none"})}))},initTwo:function(){var e=this,t={id:this.companyId};o.showLoading({title:"加载中",mask:!0}),this.$request("user/company/detail",t).then((function(t){o.hideLoading(),"00"==t.code?e.name=t.data.companyVo.companyName:o.showToast({title:t.message,icon:"none"})}))},initCoupon:function(){var e=this,t=[];this.chooseCouponObj="",this.ableConpon="";var n={money:parseFloat(this.buyMoney)||0,merchantId:this.merchantId,companyId:this.companyId,orderSource:this.orderSource,openid:o.getStorageSync("openid")};this.$request("wechatUser/myPage/usableCouponList",n).then((function(o){if("00"==o.code)if(e.couponList=o.data,o.data.usableCouponList.length>0){o.data.usableCouponList.forEach((function(o){t.push(o.savedMoney)}));var n=Math.max.apply(null,t),s=o.data.usableCouponList.findIndex((function(o){return n==o.savedMoney}));s>-1&&(e.chooseCouponObj=o.data.usableCouponList[s])}else o.data.unusableCouponList.length>0&&o.data.unusableCouponList.forEach((function(o,t){1==o.isProduct&&(e.ableConpon=o)}))}))},clickPay:function(){var e=this;if(parseFloat(this.buyMoney)){var t=[];""!=this.chooseCouponObj&&(t=[{couponId:this.chooseCouponObj.couponId,couponPrice:this.chooseCouponObj.savedMoney,isMerchant:this.chooseCouponObj.createSource,myCouponId:this.chooseCouponObj.id,couponType:this.chooseCouponObj.couponType}]);var n={companyId:this.companyId,merchantId:this.merchantId,userId:o.getStorageSync("openid"),orderMoney:parseFloat(this.buyMoney),payType:this.payType,orderSource:this.orderSource,couponList:t};this.$refs.pay.$el.style.cssText="background:#cccccc;",this.$request("orderc/order/codePay",n).then((function(t){if(setTimeout((function(){e.$refs.pay.$el.style.cssText="background:#1dce2e;"}),1e3),"00"==t.code){if(t.data.errorMessage)return void o.showToast({title:t.data.errorMessage,icon:"none"});e.signType=t.data.signType,e.paySign=t.data.sign,e.timeStamp=t.data.timestamp,e.nonceStr=t.data.noncestr,e.package=t.data.package,e.goPay()}else o.showToast({title:t.message,icon:"none"})})).catch((function(o){e.$refs.pay.$el.style.cssText="background:#1dce2e;"}))}},goPay:function(){o.requestPayment({provider:"wxpay",timeStamp:this.timeStamp,nonceStr:this.nonceStr,package:this.package,signType:this.signType,paySign:this.paySign,success:function(e){o.redirectTo({url:"../paySuccess/paySuccess"})},fail:function(e){o.showToast({title:e.errMsg,icon:"none"})}})}},watch:{buyMoney:function(o,e){"."==o&&""==e&&(this.buyMoney="0."),"0"==o&&""==e&&(this.buyMoney="0."),2==o.length&&0==o.substr(0,1)&&"."!=o.substr(1,2)&&(this.buyMoney=o.substr(1,2)),isNaN(o)&&"."!=o&&(this.buyMoney=e);var t=String(this.buyMoney).indexOf(".")+1,n=String(this.buyMoney).length-t;n>2&&t>0&&(this.buyMoney=e),parseFloat(this.buyMoney)?this.$refs.pay.$el.style.cssText="background:#1dce2e;":this.$refs.pay.$el.style.cssText="background:#cccccc;"}}};e.default=s}).call(this,t("543d")["default"])},"6a16":function(o,e,t){"use strict";t.r(e);var n=t("3778"),s=t.n(n);for(var a in n)"default"!==a&&function(o){t.d(e,o,(function(){return n[o]}))}(a);e["default"]=s.a},"7f8b":function(o,e,t){},"9dd6":function(o,e,t){"use strict";var n=t("7f8b"),s=t.n(n);s.a},a94b:function(o,e,t){"use strict";var n;t.d(e,"b",(function(){return s})),t.d(e,"c",(function(){return a})),t.d(e,"a",(function(){return n}));var s=function(){var o=this,e=o.$createElement,t=(o._self._c,""!=o.chooseCouponObj?o.chooseCouponObj.savedMoney.toFixed(2):null);o.$mp.data=Object.assign({},{$root:{g0:t}})},a=[]},d410:function(o,e,t){"use strict";(function(o){t("6909"),t("921b");n(t("66fd"));var e=n(t("2296"));function n(o){return o&&o.__esModule?o:{default:o}}o(e.default)}).call(this,t("543d")["createPage"])}},[["d410","common/runtime","common/vendor"]]]);
\ No newline at end of file
{
"navigationBarTitleText": "订单支付",
"enablePullDownRefresh": false,
"usingComponents": {}
"usingComponents": {
"order-coupon": "/components/orderCoupon"
}
}
\ No newline at end of file
<view class="bigBox"><view class="top"><view class="topName"><svg class="icon" style="font-size:56rpx;" vue-id="ed07b280-1" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('ed07b280-2')+','+('ed07b280-1')}}" xlink:href="#icon-shangjia" bind:__l="__l"></use></svg><text>重庆胖丁信息技术有限公司</text></view><view class="topMoney"></view><view class="topConpon"></view></view><view class="middle">中</view><view class="bottom"><view class="botLeft"><view><text>1</text><text>2</text><text>3</text></view><view><text>4</text><text>5</text><text>6</text></view><view><text>7</text><text>8</text><text>9</text></view><view><text style="width:66.7%;">0</text><text style="width:33.3%;">.</text></view></view><view class="botRight"><view class="rightOne"><svg class="icon" style="font-size:80rpx;" vue-id="ed07b280-3" aria-hidden="true" bind:__l="__l" vue-slots="{{['default']}}"><use vue-id="{{('ed07b280-4')+','+('ed07b280-3')}}" xlink:href="#icon-im_huige" bind:__l="__l"></use></svg></view><view class="rightTwo"><view>立即</view><view>支付</view></view></view></view></view>
\ No newline at end of file
<view class="bigBox"><view class="top"><view class="topName"><text class="topIcon"><text class="iconfont icon-tubiaolunkuo-"></text></text><text>{{name}}</text></view><view class="topMoney"><text class="moneyText">支付金额</text><view class="moneyNumber"><text class="iconfont icon-fl-renminbi" style="font-size:56rpx;"></text><text>{{buyMoney}}</text><text></text></view></view><block wx:if="{{couponData.usableCouponList&&couponData.usableCouponList.length>0&&chooseCouponObj==''}}"><view data-event-opts="{{[['tap',[['showCoupon']]]]}}" class="middle1Coupon" bindtap="__e"><view class="couponLeft"><text>券</text><text>{{couponData.usableCouponList[0].couponName}}</text></view><view class="couponRight"><text>未选优惠券</text><text class="iconfont icon-you" style="font-size:32rpx;"></text></view></view></block><block wx:if="{{chooseCouponObj!=''}}"><view data-event-opts="{{[['tap',[['showCoupon']]]]}}" class="topCoupon" bindtap="__e"><view class="couponLeft"><text>券</text><text>{{chooseCouponObj.couponName}}</text></view><view class="couponRight"><text>-</text><text>{{$root.g0}}</text><text class="iconfont icon-you" style="font-size:32rpx;"></text></view></view></block><block wx:if="{{ableConpon!=''}}"><view data-event-opts="{{[['tap',[['showCoupon']]]]}}" class="topCoupon" bindtap="__e"><view class="couponLeft"><text>券</text><text>{{ableConpon.couponName}}</text></view><view class="couponRight"><text>{{ableConpon.couponRule}}</text><text class="iconfont icon-you" style="font-size:32rpx;"></text></view></view></block></view><view class="middle">友情提示:请核对以上付款金额、付款商户等信息与交易一致。经您确认支付的金额,商家不会退回亦无赔偿义务。</view><view class="bottom"><view class="botLeft"><view><text data-ref="1" data-event-opts="{{[['tap',[['clickNum',[1]]]]]}}" class="vue-ref" bindtap="__e">1</text><text data-ref="2" data-event-opts="{{[['tap',[['clickNum',[2]]]]]}}" class="vue-ref" bindtap="__e">2</text><text data-ref="3" data-event-opts="{{[['tap',[['clickNum',[3]]]]]}}" class="vue-ref" bindtap="__e">3</text></view><view><text data-ref="4" data-event-opts="{{[['tap',[['clickNum',[4]]]]]}}" class="vue-ref" bindtap="__e">4</text><text data-ref="5" data-event-opts="{{[['tap',[['clickNum',[5]]]]]}}" class="vue-ref" bindtap="__e">5</text><text data-ref="6" data-event-opts="{{[['tap',[['clickNum',[6]]]]]}}" class="vue-ref" bindtap="__e">6</text></view><view><text data-ref="7" data-event-opts="{{[['tap',[['clickNum',[7]]]]]}}" class="vue-ref" bindtap="__e">7</text><text data-ref="8" data-event-opts="{{[['tap',[['clickNum',[8]]]]]}}" class="vue-ref" bindtap="__e">8</text><text data-ref="9" data-event-opts="{{[['tap',[['clickNum',[9]]]]]}}" class="vue-ref" bindtap="__e">9</text></view><view><text data-ref="0" data-event-opts="{{[['tap',[['clickNum',[0]]]]]}}" class="vue-ref" style="width:66.7%;" bindtap="__e">0</text><text data-ref="." data-event-opts="{{[['tap',[['clickNum',['.']]]]]}}" class="vue-ref" style="width:33.3%;" bindtap="__e">.</text></view></view><view class="botRight"><view data-ref="enter" data-event-opts="{{[['tap',[['clickEnter']]]]}}" class="rightOne vue-ref" bindtap="__e"><text class="iconfont icon-im_huige" style="font-size:70rpx;"></text></view><view data-ref="pay" data-event-opts="{{[['tap',[['clickPay']]]]}}" class="rightTwo vue-ref" bindtap="__e"><view>立即</view><view>支付</view></view></view></view><order-coupon class="vue-ref" vue-id="ed07b280-1" couponData="{{couponData}}" chooseCouponObj="{{chooseCouponObj}}" data-ref="orderCoupon" data-event-opts="{{[['^couponChoose',[['couponChoose']]]]}}" bind:couponChoose="__e" bind:__l="__l"></order-coupon></view>
\ No newline at end of file
.bigBox{background:#f5f5f5;height:100%}.top{background:#fff}.topName{font-size:28rpx;font-weight:700;padding-top:50rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.bottom{position:absolute;bottom:0;height:40%;background:#fff;width:100%;display:-webkit-box;display:-webkit-flex;display:flex;border-top:1px solid #ddd;font-size:50rpx}.botLeft{width:75%}.botLeft view{height:25%;display:-webkit-box;display:-webkit-flex;display:flex;border-bottom:1px solid #ddd}.botLeft view:last-child{border:none}.botLeft view text{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-right:1px solid #ddd}.botLeft view:last-child text{-webkit-box-flex:initial;-webkit-flex:initial;flex:initial}.botRight{width:25%}.rightOne{height:25%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-bottom:1px solid #ddd}.rightTwo{height:75%;border:none;color:#fff;background:#ccc;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}
\ No newline at end of file
.bigBox{background:#f5f5f5;height:100%}.top{background:#fff}.topName{font-size:28rpx;font-weight:700;padding-top:50rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.topIcon{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;margin-right:10rpx;width:50rpx;height:50rpx;border-radius:50%;background:#ff8b57;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.icon-tubiaolunkuo-{font-size:36rpx;color:#fff;font-weight:400}.topMoney{padding:80rpx 24rpx 35rpx 24rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.moneyText{color:#ff3c00;font-size:28rpx;font-weight:700}.moneyNumber text:nth-child(2){font-size:58rpx;font-weight:700;position:relative;left:-6rpx}.moneyNumber text:last-child{-webkit-animation:dis 1.5s infinite;animation:dis 1.5s infinite;-webkit-transition:1s;transition:1s;width:1px;height:56rpx;display:inline-block;background:#333;position:relative;top:8rpx}.topCoupon{display:-webkit-box;display:-webkit-flex;display:flex;height:90rpx;border-top:1px solid #dbdbdb;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 24rpx;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.couponLeft{font-size:24rpx}.couponLeft text:first-child{margin-right:10rpx;display:inline-block;width:30rpx;height:30rpx;background:#f9690e;color:#fff;text-align:center;line-height:28rpx;border-radius:4rpx}.couponRight{position:relative;left:8rpx}.couponRight text:first-child{font-size:32rpx;color:#f9690e}.couponRight text:nth-child(2){font-size:32rpx;color:#f9690e;font-weight:700}.middle{padding:60rpx 24rpx 0 24rpx;font-size:22rpx;color:#999;line-height:40rpx}.bottom{position:absolute;bottom:0;height:40%;background:#fff;width:100%;display:-webkit-box;display:-webkit-flex;display:flex;border-top:1px solid #ddd;font-size:50rpx}.botLeft{width:75%}.botLeft view{height:25%;display:-webkit-box;display:-webkit-flex;display:flex;border-bottom:1px solid #ddd}.botLeft view:last-child{border:none}.botLeft view text{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-right:1px solid #ddd}.botLeft view:last-child text{-webkit-box-flex:initial;-webkit-flex:initial;flex:initial}.botRight{width:25%}.rightOne{height:25%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-bottom:1px solid #ddd}.rightTwo{height:75%;border:none;color:#fff;background:#ccc;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}@-webkit-keyframes dis{from{opacity:0}to{opacity:1}}@keyframes dis{from{opacity:0}to{opacity:1}}
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/paySuccess/paySuccess"],{1382:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={data:function(){return{}},onLoad:function(n){},methods:{}};t.default=u},ca03:function(n,t,e){"use strict";e.r(t);var u=e("1382"),c=e.n(u);for(var a in u)"default"!==a&&function(n){e.d(t,n,(function(){return u[n]}))}(a);t["default"]=c.a},d87c:function(n,t,e){"use strict";var u;e.d(t,"b",(function(){return c})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return u}));var c=function(){var n=this,t=n.$createElement;n._self._c},a=[]},f016:function(n,t,e){"use strict";e.r(t);var u=e("d87c"),c=e("ca03");for(var a in c)"default"!==a&&function(n){e.d(t,n,(function(){return c[n]}))}(a);var r,f=e("f0c5"),o=Object(f["a"])(c["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],r);t["default"]=o.exports},f4ba:function(n,t,e){"use strict";(function(n){e("6909");u(e("66fd"));var t=u(e("f016"));function u(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])}},[["f4ba","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/paySuccess/paySuccess"],{1382:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={data:function(){return{}},onLoad:function(n){},methods:{}};t.default=u},ca03:function(n,t,e){"use strict";e.r(t);var u=e("1382"),c=e.n(u);for(var a in u)"default"!==a&&function(n){e.d(t,n,(function(){return u[n]}))}(a);t["default"]=c.a},d87c:function(n,t,e){"use strict";var u;e.d(t,"b",(function(){return c})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return u}));var c=function(){var n=this,t=n.$createElement;n._self._c},a=[]},f016:function(n,t,e){"use strict";e.r(t);var u=e("d87c"),c=e("ca03");for(var a in c)"default"!==a&&function(n){e.d(t,n,(function(){return c[n]}))}(a);var r,f=e("f0c5"),o=Object(f["a"])(c["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],r);t["default"]=o.exports},f4ba:function(n,t,e){"use strict";(function(n){e("6909"),e("921b");u(e("66fd"));var t=u(e("f016"));function u(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])}},[["f4ba","common/runtime","common/vendor"]]]);
\ No newline at end of file
......@@ -6,37 +6,8 @@
"setting": {
"urlCheck": true,
"es6": true,
"enhance": false,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": false,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enableEngineNative": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true
"minified": true
},
"compileType": "miniprogram",
"libVersion": "",
......@@ -44,15 +15,19 @@
"projectname": "uni-pdtravel",
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
......
......@@ -105,11 +105,11 @@
/******/
/******/
/******/ // mini-css-extract-plugin CSS loading
/******/ var cssChunks = {"components/orderCoupon":1,"uview-ui/components/u-action-sheet/u-action-sheet":1,"uview-ui/components/u-popup/u-popup":1,"uview-ui/components/u-icon/u-icon":1,"uview-ui/components/u-mask/u-mask":1};
/******/ var cssChunks = {"components/orderCoupon":1,"uview-ui/components/u-popup/u-popup":1,"uview-ui/components/u-icon/u-icon":1,"uview-ui/components/u-mask/u-mask":1};
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
/******/ var href = "" + ({"components/orderCoupon":"components/orderCoupon","uview-ui/components/u-action-sheet/u-action-sheet":"uview-ui/components/u-action-sheet/u-action-sheet","uview-ui/components/u-popup/u-popup":"uview-ui/components/u-popup/u-popup","uview-ui/components/u-icon/u-icon":"uview-ui/components/u-icon/u-icon","uview-ui/components/u-mask/u-mask":"uview-ui/components/u-mask/u-mask"}[chunkId]||chunkId) + ".wxss";
/******/ var href = "" + ({"components/orderCoupon":"components/orderCoupon","uview-ui/components/u-popup/u-popup":"uview-ui/components/u-popup/u-popup","uview-ui/components/u-icon/u-icon":"uview-ui/components/u-icon/u-icon","uview-ui/components/u-mask/u-mask":"uview-ui/components/u-mask/u-mask"}[chunkId]||chunkId) + ".wxss";
/******/ var fullhref = __webpack_require__.p + href;
/******/ var existingLinkTags = document.getElementsByTagName("link");
/******/ for(var i = 0; i < existingLinkTags.length; i++) {
......
{
"usingComponents": {
"u-action-sheet": "/uview-ui/components/u-action-sheet/u-action-sheet"
"u-popup": "/uview-ui/components/u-popup/u-popup"
},
"component": true
}
\ No newline at end of file
<u-action-sheet bind:input="__e" vue-id="91856606-1" value="{{show}}" data-event-opts="{{[['^input',[['__set_model',['','show','$event',[]]]]]]}}" class="data-v-cae34dae" bind:__l="__l" vue-slots="{{['default']}}"><view class="_div data-v-cae34dae"><block wx:if="{{couponList.usableCouponList&&couponList.usableCouponList.length>0}}"><view class="middle _div data-v-cae34dae"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="_div data-v-cae34dae"><label class="data-v-cae34dae"><view class="_p data-v-cae34dae">{{''+item.$orig.couponName+''}}<input type="radio" name="coupon" data-event-opts="{{[['change',[['e0',['$event']],['hideCoupon']]]]}}" data-event-params="{{({item})}}" value="{{item.$orig}}" checked="{{_q(chooseCoupon,item.$orig)}}" bindchange="__e" class="data-v-cae34dae"/></view><view class="_p data-v-cae34dae">{{''+item.$orig.couponRule+''}}</view><view class="_p data-v-cae34dae">{{''+item.$orig.useStartDate+"-"+item.$orig.useEndDate+''}}<label class="_span data-v-cae34dae"><view class="_i data-v-cae34dae">¥</view>{{item.g0+''}}</label></view></label></view></block></view></block><block wx:if="{{couponList.usableCouponList&&couponList.usableCouponList.length==0}}"><view style="padding-top:1.5rem;text-align:center;" class="_div data-v-cae34dae">空空如也...</view></block></view><view class="_div data-v-cae34dae"><block wx:if="{{couponList.unusableCouponList&&couponList.unusableCouponList.length>0}}"><view class="middle _div data-v-cae34dae"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="_div data-v-cae34dae"><view class="_p data-v-cae34dae">{{''+item.$orig.couponName+''}}</view><view class="_p data-v-cae34dae">{{''+item.$orig.couponRule+''}}<label class="_span data-v-cae34dae"><view class="_i data-v-cae34dae">¥</view>{{item.g1+''}}</label></view><view class="_p data-v-cae34dae">{{''+item.$orig.useStartDate+"-"+item.$orig.useEndDate+''}}</view></view></block></view></block><block wx:if="{{couponList.unusableCouponList&&couponList.unusableCouponList.length==0}}"><view style="padding-top:1.5rem;text-align:center;" class="_div data-v-cae34dae">空空如也...</view></block></view></u-action-sheet>
\ No newline at end of file
<u-popup bind:input="__e" vue-id="91856606-1" mode="bottom" value="{{show}}" data-event-opts="{{[['^input',[['__set_model',['','show','$event',[]]]]]]}}" class="data-v-cae34dae" bind:__l="__l" vue-slots="{{['default']}}"><view class="title data-v-cae34dae"><block wx:for="{{navTitle}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['navClick',[index]]]]]}}" class="{{['titleContent data-v-cae34dae',(active==index)?'on':'']}}" bindtap="__e"><view style="position:relative;top:15rpx;" class="data-v-cae34dae">{{item}}</view><view hidden="{{!(active==index)}}" class="data-v-cae34dae"><text class="data-v-cae34dae"></text></view></view></block></view><view hidden="{{!(active==0)}}" class="data-v-cae34dae"><block wx:if="{{couponList.usableCouponList&&couponList.usableCouponList.length>0}}"><view class="middle data-v-cae34dae"><radio-group data-event-opts="{{[['change',[['radioChange',['$event']]]]]}}" bindchange="__e" class="data-v-cae34dae"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="listBox data-v-cae34dae"><label class="data-v-cae34dae"><view class="data-v-cae34dae">{{''+item.$orig.couponName+''}}<radio value="{{item.$orig.couponId}}" checked="{{item.$orig.couponId==chooseCoupon.couponId}}" class="data-v-cae34dae"></radio></view><view class="data-v-cae34dae">{{''+item.$orig.couponRule+''}}</view><view class="data-v-cae34dae">{{''+item.$orig.useStartDate+"-"+item.$orig.useEndDate+''}}<text class="data-v-cae34dae"><text class="data-v-cae34dae">¥</text>{{item.g0+''}}</text></view></label></view></block></radio-group></view></block><block wx:if="{{!couponList.usableCouponList||couponList.usableCouponList.length==0}}"><view style="padding:100rpx 0;text-align:center;" class="data-v-cae34dae">空空如也...</view></block></view><view hidden="{{!(active==1)}}" class="data-v-cae34dae"><block wx:if="{{couponList.unusableCouponList&&couponList.unusableCouponList.length>0}}"><view class="middle data-v-cae34dae"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="listBox data-v-cae34dae"><view class="data-v-cae34dae">{{''+item.$orig.couponName+''}}</view><view class="data-v-cae34dae">{{''+item.$orig.couponRule+''}}<text class="data-v-cae34dae"><text class="data-v-cae34dae">¥</text>{{item.g1+''}}</text></view><view class="data-v-cae34dae">{{''+item.$orig.useStartDate+"-"+item.$orig.useEndDate+''}}</view></view></block></view></block><block wx:if="{{!couponList.unusableCouponList||couponList.unusableCouponList.length==0}}"><view style="padding:100rpx 0;text-align:center;" class="data-v-cae34dae">空空如也...</view></block></view></u-popup>
\ No newline at end of file
.middle.data-v-cae34dae{padding:0.24rem;}
.middle ._div.data-v-cae34dae{background: #FFFFFF;padding: 0.24rem;border-radius: 0.1rem;}
.middle ._div.data-v-cae34dae:not(:first-child){margin-top: 0.2rem;}
.middle ._div ._p.data-v-cae34dae:not(:first-child){margin-top: 0.2rem;}
.middle ._div ._p.data-v-cae34dae{display: -webkit-box;display: -webkit-flex;display: flex;-webkit-box-pack: justify;-webkit-justify-content: space-between;justify-content: space-between;}
.middle ._div ._p.data-v-cae34dae:first-child{font-weight: bold;}
.middle ._div ._p.data-v-cae34dae:nth-child(2){font-size: 0.24rem;}
.middle ._div ._p.data-v-cae34dae:last-child{color: #666666;font-size: 0.24rem;}
.middle ._p ._span.data-v-cae34dae{color:#f9690e;font-size: 0.3rem;font-weight: bolder;}
.middle ._p ._span ._i.data-v-cae34dae{font-size: 0.24rem;font-weight: 400;}
@charset "UTF-8";
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/*分割线颜色*/
/*主题颜色*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.title.data-v-cae34dae {
display: -webkit-box;
display: -webkit-flex;
display: flex;
height: 80rpx;
}
.titleContent.data-v-cae34dae {
-webkit-box-flex: 1;
-webkit-flex: 1;
flex: 1;
text-align: center;
font-size: 30rpx;
}
.titleContent.on.data-v-cae34dae {
color: #3688FF;
font-weight: bold;
}
.titleContent view text.data-v-cae34dae {
width: 40rpx;
height: 6rpx;
background: #3688FF;
border-radius: 6rpx;
display: inline-block;
position: relative;
top: -10rpx;
}
.middle.data-v-cae34dae {
padding: 24rpx;
background: #f5f5f5;
}
.listBox.data-v-cae34dae {
background: #FFFFFF;
padding: 24rpx;
border-radius: 10rpx;
}
.middle .listBox.data-v-cae34dae:not(:first-child) {
margin-top: 20rpx;
}
.middle view view.data-v-cae34dae:not(:first-child) {
margin-top: 20rpx;
}
.middle view view.data-v-cae34dae {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
.middle view view.data-v-cae34dae:first-child {
font-weight: bold;
}
.middle view view.data-v-cae34dae:nth-child(2) {
font-size: 24rpx;
}
.middle view view.data-v-cae34dae:last-child {
color: #666666;
font-size: 24rpx;
}
.middle view text.data-v-cae34dae {
color: #f9690e;
font-size: 30rpx;
font-weight: bolder;
}
.middle view text text.data-v-cae34dae {
font-size: 24rpx;
font-weight: 400;
}
......@@ -140,7 +140,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var orderCoupon = function orderCoupon() {__webpack_require__.e(/*! require.ensure | components/orderCoupon */ "components/orderCoupon").then((function () {return resolve(__webpack_require__(/*! @/components/orderCoupon.vue */ 111));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var orderCoupon = function orderCoupon() {__webpack_require__.e(/*! require.ensure | components/orderCoupon */ "components/orderCoupon").then((function () {return resolve(__webpack_require__(/*! @/components/orderCoupon.vue */ 82));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
......@@ -276,10 +276,12 @@ __webpack_require__.r(__webpack_exports__);
methods: {
clickNum: function clickNum(i) {var _this = this; //---------------------------------------------------------------------输入数字
this.buyMoney += i;
this.$refs[i].$el.style.background = "#dddddd";
setTimeout(function () {
_this.$refs[i].$el.style.background = "";
}, 200);
clearTimeout(this.flag);
this.flag = setTimeout(function () {
_this.initCoupon();
......@@ -287,10 +289,12 @@ __webpack_require__.r(__webpack_exports__);
},
clickEnter: function clickEnter() {var _this2 = this; //---------------------------------------------------------------------退格
this.buyMoney = this.buyMoney.substr(0, this.buyMoney.length - 1);
this.$refs.enter.$el.style.background = "#dddddd";
setTimeout(function () {
_this2.$refs.enter.$el.style.background = "";
}, 200);
clearTimeout(this.flag);
this.flag = setTimeout(function () {
_this2.initCoupon();
......@@ -346,11 +350,11 @@ __webpack_require__.r(__webpack_exports__);
merchantId: this.merchantId, //商户Id
companyId: this.companyId, //公司Id
orderSource: this.orderSource, //订单来源 8扫码支付
openid: uni.getStorageSync("openid") };
openid: "oroHZ5D2kemXkyFtTb_KnJMH1fqc" };
this.$request("wechatUser/myPage/usableCouponList", data).then(function (res) {
if (res.code == "00") {
_this5.couponList = res.data;
_this5.couponData = res.data;
if (res.data.usableCouponList.length > 0) {
res.data.usableCouponList.forEach(function (item) {//获取最优券
savedMoneyList.push(item.savedMoney);
......@@ -399,11 +403,11 @@ __webpack_require__.r(__webpack_exports__);
orderSource: this.orderSource, //订单来源 8扫码支付
couponList: couponList //券列表
};
this.$refs.pay.$el.style.cssText = "background:#cccccc;";
// this.$refs.pay.$el.style.cssText="background:#cccccc;"
this.$request("orderc/order/codePay", data).then(function (res) {
setTimeout(function () {
_this6.$refs.pay.$el.style.cssText = "background:#1dce2e;";
}, 1000);
// setTimeout(() => {
// this.$refs.pay.$el.style.cssText="background:#1dce2e;"
// },1000)
if (res.code == "00") {
if (res.data.errorMessage) {
uni.showToast({
......@@ -426,7 +430,7 @@ __webpack_require__.r(__webpack_exports__);
}
}).catch(function (err) {
_this6.$refs.pay.$el.style.cssText = "background:#1dce2e;";
// this.$refs.pay.$el.style.cssText="background:#1dce2e;"
});
},
goPay: function goPay() {//------------------------------------------------------------------------------去支付
......@@ -472,12 +476,11 @@ __webpack_require__.r(__webpack_exports__);
if (y > 2 && x > 0) {
this.buyMoney = oldVal;
}
if (parseFloat(this.buyMoney)) {
this.$refs.pay.$el.style.cssText = "background:#1dce2e;";
} else {
this.$refs.pay.$el.style.cssText = "background:#cccccc;";
}
// if (parseFloat(this.buyMoney)) {
// this.$refs.pay.$el.style.cssText="background:#1dce2e;"
// } else {
// this.$refs.pay.$el.style.cssText="background:#cccccc;"
// }
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
......
......@@ -219,7 +219,7 @@
height: 75%;
border: none;
color: #FFFFFF;
background: #CCCCCC;
background: #1dce2e;
display: -webkit-box;
display: -webkit-flex;
display: flex;
......
{
"usingComponents": {
"u-popup": "/uview-ui/components/u-popup/u-popup"
},
"component": true
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment