Initial commit: queue workspace

Made-with: Cursor
This commit is contained in:
apple
2026-03-21 02:55:24 +08:00
commit 78de918c37
12388 changed files with 1840126 additions and 0 deletions

View File

@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/behalf/cashier/index"],{"172b":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("6af6"),r=n("4d38"),a={data:function(){return{imgHost:r.HTTP_REQUEST_URL,payPriceShow:0,invalidTime:0,orderId:"",paytype:"weixin",userId:0,qrcode:"",config:{code:"",size:280,level:3,bgColor:"#FFFFFF",color:["#333","#333"]},timer:null}},components:{countDown:function(){n.e("components/countDown/index").then(function(){return resolve(n("1706"))}.bind(null,n)).catch(n.oe)}},onLoad:function(e){this.userId=e.uid||0,e.order_id&&(this.orderId=e.order_id,this.getCashierOrder())},onUnload:function(){this.stopSetInterval()},methods:{getCashierOrder:function(){var e=this,t={uni:this.orderId,paytype:this.paytype,quitUrl:"/pages/behalf/cashier/index"};(0,i.getCashierApi)(this.userId,t).then((function(t){if("SUCCESS"==t.data.status)return e.$util.Tips({title:"支付成功"},{tab:5,url:"/pages/behalf/record/index"});e.payPriceShow=t.data.result.pay_price,e.invalidTime=t.data.result.jsConfig.invalid,e.config.code="weixin"==e.paytype?t.data.result.jsConfig.code_url:t.data.result.jsConfig.qrCode,e.createSetInterval(t.data.result.order_id)})).catch((function(t){return e.$util.Tips({title:t})}))},checkType:function(e){this.paytype=e,this.getCashierOrder()},createSetInterval:function(e){var t=this;this.stopSetInterval(),this.timer=setInterval((function(){t.getOrderResult(e)}),2e3)},stopSetInterval:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},getOrderResult:function(t){var n=this;(0,i.getPayStatusApi)({order_id:t,end_time:this.invalidTime}).then((function(t){0==t.data.time&&(n.stopSetInterval(),n.getCashierOrder()),(t.data.status||0==t.data.time)&&(n.stopSetInterval(),e.reLaunch({url:"/pages/behalf/record/index"}))})).catch((function(e){return n.$util.Tips({title:e})}))},backPage:function(){e.reLaunch({url:"/pages/admin/work/index"})}}};t.default=a}).call(this,n("df3c")["default"])},2446:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var i={wQrcode:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/wmf-code/components/w-qrcode/index")]).then(n.bind(null,"a163"))}},r=function(){var e=this.$createElement;this._self._c},a=[]},"391c":function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("f076");i(n("3240"));var r=i(n("c450"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"5a39":function(e,t,n){"use strict";var i=n("e4ec"),r=n.n(i);r.a},c38f:function(e,t,n){"use strict";n.r(t);var i=n("172b"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=r.a},c450:function(e,t,n){"use strict";n.r(t);var i=n("2446"),r=n("c38f");for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("5a39");var o=n("828b"),u=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=u.exports},e4ec:function(e,t,n){}},[["391c","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "订单支付",
"enablePullDownRefresh": false,
"usingComponents": {
"w-qrcode": "/uni_modules/wmf-code/components/w-qrcode/index",
"count-down": "/components/countDown/index"
}
}

View File

@@ -0,0 +1 @@
<view><view class="flex-col flex-center py-80"><base-money vue-id="161a4520-1" money="{{payPriceShow}}" symbolSize="48" integerSize="64" decimalSize="48" color="#333" weight="{{true}}" bind:__l="__l"></base-money><view class="flex-y-center mt-20"><text class="fs-24 text--w111-333 lh-36rpx pr-10">支付剩余时间</text><count-down vue-id="161a4520-2" is-day="{{false}}" tip-text=" " day-text=" " hour-text=":" minute-text=":" second-text=" " bgColor="#FFFFFF" colors="#FF7E00" dotColor="#FF7E00" datatime="{{invalidTime}}" bind:__l="__l"></count-down></view></view><view class="px-20"><view class="bg--w111-fff rd-24rpx px-24"><view class="pt-60 flex-center fs-30 lh-42rpx fw-500"><text>方式一:</text><view data-event-opts="{{[['tap',[['checkType',['weixin']]]]]}}" class="flex-y-center pl-30" bindtap="__e"><text class="{{['iconfont',paytype=='weixin'?'icon-ic_Selected':'icon-ic_unselect']}}"></text><text class="pl-10">微信扫码</text></view><view data-event-opts="{{[['tap',[['checkType',['alipay']]]]]}}" class="flex-y-center ml-50" bindtap="__e"><text class="{{['iconfont',paytype=='alipay'?'icon-ic_Selected':'icon-ic_unselect']}}"></text><text class="pl-10">支付宝扫码</text></view></view><view hidden="{{!(config.code)}}" class="flex-center mt-40 pb-50 border-b"><w-qrcode vue-id="161a4520-3" options="{{config}}" bind:__l="__l"></w-qrcode></view><view class="pt-50 flex-center fs-30 lh-42rpx fw-500">方式二:用户进入商城支付订单</view><view class="py-60 flex-center"><image class="guide" src="{{imgHost+'/statics/images/pay_guide.png'}}"></image></view></view></view><view class="h-200"></view><view class="fixed-lb w-full pb-safe"><view class="w-full h-128 flex-center"><view data-event-opts="{{[['tap',[['backPage',['$event']]]]]}}" class="w-710 h-80 flex-center rd-40rpx fs-28 bg-primary text--w111-fff" bindtap="__e">返回</view></view></view></view>

View File

@@ -0,0 +1 @@
.styleAll{padding:0 6rpx;border:1rpx solid #ddd;border-radius:8rpx;font-family:Regular;line-height:40rpx}.border-b{border-bottom:1px dashed #ccc}.icon-ic_Selected{color:#2a7efb}.bg-primary{background-color:#2a7efb}.guide{width:570rpx;height:214rpx}