From 7daf3b7e1732045a354a2cc4875f940f171fbc24 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B9=85=E4=BF=9D=E5=90=8C=E5=AD=A6?= <3228274159@qq.com>
Date: Mon, 12 Aug 2024 22:15:10 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=AC=BE=E5=A4=B1=E8=B4=A5=E8=B5=A0?=
=?UTF-8?q?=E9=80=81=E4=BC=98=E6=83=A0=E5=88=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.hbuilderx/launch.json | 32 +-
api/api.js | 2 +
manifest.json | 8 +-
pages/orderForm/orderForm.vue | 312 ++++++++++++------
stor/index.js | 97 +++++-
stor/order/order.js | 1 +
.../dist/build/app-plus/__uniappautomator.js | 16 +
.../build/app-plus/__uniappchooselocation.js | 32 ++
.../dist/build/app-plus/__uniapperror.png | Bin 0 -> 5842 bytes
.../build/app-plus/__uniappopenlocation.js | 32 ++
.../dist/build/app-plus/__uniapppicker.js | 33 ++
.../dist/build/app-plus/__uniappquill.js | 8 +
.../app-plus/__uniappquillimageresize.js | 1 +
unpackage/dist/build/app-plus/__uniappscan.js | 32 ++
.../dist/build/app-plus/__uniappsuccess.png | Bin 0 -> 2021 bytes
.../dist/build/app-plus/uni-app-view.umd.js | 7 +
unpackage/dist/dev/mp-weixin/api/api.js | 2 +
.../mp-weixin/pages/orderForm/orderForm.js | 130 ++++++--
.../mp-weixin/pages/orderForm/orderForm.wxml | 2 +-
.../mp-weixin/pages/orderForm/orderForm.wxss | 27 +-
unpackage/dist/dev/mp-weixin/stor/index.js | 80 ++++-
.../dist/dev/mp-weixin/stor/order/order.js | 1 +
22 files changed, 659 insertions(+), 196 deletions(-)
create mode 100644 unpackage/dist/build/app-plus/__uniappautomator.js
create mode 100644 unpackage/dist/build/app-plus/__uniappchooselocation.js
create mode 100644 unpackage/dist/build/app-plus/__uniapperror.png
create mode 100644 unpackage/dist/build/app-plus/__uniappopenlocation.js
create mode 100644 unpackage/dist/build/app-plus/__uniapppicker.js
create mode 100644 unpackage/dist/build/app-plus/__uniappquill.js
create mode 100644 unpackage/dist/build/app-plus/__uniappquillimageresize.js
create mode 100644 unpackage/dist/build/app-plus/__uniappscan.js
create mode 100644 unpackage/dist/build/app-plus/__uniappsuccess.png
create mode 100644 unpackage/dist/build/app-plus/uni-app-view.umd.js
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 81f13f4..77cbafb 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -1,16 +1,20 @@
-{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
- // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
- "version": "0.0",
- "configurations": [{
- "default" :
- {
- "launchtype" : "local"
- },
- "mp-weixin" :
- {
- "launchtype" : "local"
- },
- "type" : "uniCloud"
- }
+{
+ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+ // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+ "version" : "0.0",
+ "configurations" : [
+ {
+ "default" : {
+ "launchtype" : "local"
+ },
+ "mp-weixin" : {
+ "launchtype" : "local"
+ },
+ "type" : "uniCloud"
+ },
+ {
+ "playground" : "custom",
+ "type" : "uni-app:app-android"
+ }
]
}
diff --git a/api/api.js b/api/api.js
index 08ce230..ea70688 100644
--- a/api/api.js
+++ b/api/api.js
@@ -114,4 +114,6 @@ export const getRefund = (data)=>requests(`mobile/order/refund`,data,"POST")
export const getHeaderImg = (data)=>requests(`mobile/file/upload`,data,"POST")
//获取用户头像昵称性别
export const getUserSex = (data)=>requests(`mobile/login/setInfo`,data,"POST")
+//获取优惠券
+export const getExcellent =(data)=> reqs(`shop/tab-coupon/traffic-flow`,data,"POST")
diff --git a/manifest.json b/manifest.json
index d27dbb4..9120545 100644
--- a/manifest.json
+++ b/manifest.json
@@ -42,9 +42,13 @@
]
},
/* ios打包配置 */
- "ios" : {},
+ "ios" : {
+ "dSYMs" : false
+ },
/* SDK配置 */
- "sdkConfigs" : {}
+ "sdkConfigs" : {
+ "ad" : {}
+ }
}
},
/* 快应用特有相关 */
diff --git a/pages/orderForm/orderForm.vue b/pages/orderForm/orderForm.vue
index ae57dcb..90c3a86 100644
--- a/pages/orderForm/orderForm.vue
+++ b/pages/orderForm/orderForm.vue
@@ -4,13 +4,13 @@
-
-
-
- {{item}}
+
+
+
+ {{item}}
+
-
-
+
@@ -22,7 +22,7 @@
退款中
未支付
已退款
-
+ 退款失败
@@ -47,11 +47,14 @@
原价¥ {{item.amount}} 实付款¥{{item.amount}}0
-
+ class="blu">实付款¥{{item.amount}}0
+
申请退款
-
+
结束洗车
@@ -63,13 +66,14 @@
-
+
-
+
@@ -77,7 +81,7 @@
-
+
订单号:{{item.orderId}} 进行中
@@ -106,16 +110,19 @@
原价¥ {{item.amount}} 实付款¥{{item.amount}}
-
- 申请退款
-
-
- 结束洗车
-
+
+ 申请退款
+
+
+ 结束洗车
+
-
+
@@ -157,7 +164,8 @@
-
+
@@ -203,7 +211,8 @@
-
+
@@ -239,7 +248,8 @@
原价¥ {{item.amount}} 实付款¥{{item.amount}}0
+ class="blu">实付款¥{{item.amount}}0
@@ -294,7 +306,57 @@
-
+
+
+
+ 暂无数据
+
+
+
+
+
+ 订单号:{{item.orderId}}
+ 退款失败
+
+
+
+
+
+
+ {{item.networkName}}
+
+
+ {{item.goodsName}}X1
+
+
+ 拉新券X1
+
+
+ {{item.orderTime}}
+
+
+
+ {{item.deviceId ? item.deviceId :''}}
+
+
+
+
+ 原价¥ {{item.amount}} 实付款¥{{item.amount}}0
+
+
+ 查看原因
+
+
+
+
+
@@ -310,9 +372,12 @@
-
+
失败原因
很抱歉,由于您的信息有误,有部分退款失败,请您确认信息并重新提交
+
+
+
@@ -338,7 +403,8 @@
请输入退款原因
-
+
@@ -374,7 +440,7 @@
total,
currentBtn
} = storeToRefs(o)
- const tag = ref(['全部', '进行中', '已完成','退款中', '未支付','已退款'])
+ const tag = ref(['全部', '进行中', '已完成', '退款中', '未支付', '已退款', '退款失败'])
const demos = ref([])
const titleMsg = ref('是否结束洗车?')
const titles = ref('洗车订单')
@@ -400,37 +466,43 @@
const tagBtn = (index) => {
tagIndex.value = index
if (tag.value[tagIndex.value] === '全部') {
- orders.value=[]
+ orders.value = []
o.getOrders({
num: '',
Maxs: 0
})
} else if (tag.value[tagIndex.value] === '进行中') {
- orders.value=[]
+ orders.value = []
o.getOrders({
num: 1,
Maxs: 0
})
} else if (tag.value[tagIndex.value] === '已完成') {
- orders.value=[]
+ orders.value = []
o.getOrders({
num: 2,
Maxs: 0
})
} else if (tag.value[tagIndex.value] === '退款中') {
- orders.value=[]
+ orders.value = []
o.getOrders({
num: 3,
Maxs: 0
- })
- } else if(tag.value[tagIndex.value] === '已退款'){
- orders.value=[]
+ })
+ } else if (tag.value[tagIndex.value] === '已退款') {
+ orders.value = []
o.getOrders({
num: 4,
Maxs: 0
- })
- } else {
- orders.value=[]
+ })
+ } else if (tag.value[tagIndex.value] === '退款失败') {
+ orders.value = []
+ o.getOrders({
+ num: 5,
+ Maxs: 0
+ })
+ }else {
+ orders.value = []
o.getOrders({
num: 0,
Maxs: 0
@@ -445,27 +517,27 @@
const goOks = (index) => {
orderIndex.value = index
console.log(orders.value[index].status);
- if(orders.val[index].payType===4||orders.val[index].goodsName==='拉新券洗车'){
+ if (orders.val[index].payType === 4 || orders.val[index].goodsName === '拉新券洗车') {
uni.showToast({
- icon:"none",
- title:"拉新券洗车无法退款",
- duration:1000
+ icon: "none",
+ title: "拉新券洗车无法退款",
+ duration: 1000
})
return
}
- if(orders.val[index].payType===3||orders.val[index].goodsName==='次卡消费'){
+ if (orders.val[index].payType === 3 || orders.val[index].goodsName === '次卡消费') {
uni.showToast({
- icon:"none",
- title:"次卡洗车无法退款",
- duration:1000
+ icon: "none",
+ title: "次卡洗车无法退款",
+ duration: 1000
})
return
}
- if(orders.value[index].status===1){
- moneyRefund.value=0
+ if (orders.value[index].status === 1) {
+ moneyRefund.value = 0
}
}
- const startOks = (index)=>{
+ const startOks = (index) => {
orderIndex.value = index
ccc.value = 1
}
@@ -503,35 +575,41 @@
num: 3,
Maxs: total.value
})
- } else if(tag.value[tagIndex.value] === '已退款'){
- orders.value=[]
+ } else if (tag.value[tagIndex.value] === '已退款') {
+ orders.value = []
o.getOrders({
num: 4,
Maxs: 0
- })
- }else {
+ })
+ }else if (tag.value[tagIndex.value] === '退款失败') {
+ orders.value = []
+ o.getOrders({
+ num: 5,
+ Maxs: 0
+ })
+ } else {
o.getOrders({
num: 0,
Maxs: total.value
})
}
}
- const getMoneyRefund = ()=>{
+ const getMoneyRefund = () => {
console.log(inputBoxVlaue.value);
console.log(orders.value[orderIndex.value]);
o.getClose({
- id:orders.value[orderIndex.value].id,
- inputs:inputBoxVlaue.value,
- money:orders.value[orderIndex.value].amount,
- mid:orders.value[orderIndex.value].deviceId,
- orderId:orders.value[orderIndex.value].orderId
- })
- moneyRefund.value=1
+ id: orders.value[orderIndex.value].id,
+ inputs: inputBoxVlaue.value,
+ money: orders.value[orderIndex.value].amount,
+ mid: orders.value[orderIndex.value].deviceId,
+ orderId: orders.value[orderIndex.value].orderId
+ })
+ moneyRefund.value = 1
}
- const goComplete = (index)=>{
- if(orders.value[index].status===1){
+ const goComplete = (index) => {
+ if (orders.value[index].status === 1) {
uni.navigateTo({
- url:'/pages/complete/complete'
+ url: '/pages/complete/complete'
})
}
}
@@ -549,40 +627,48 @@
height: 11%;
}
- .orderForm-h {
- // margin-top: 160rpx;
- position: fixed;
+ .orderForm-Scroll {
width: 100%;
height: 84rpx;
- background-color: white;
- display: flex;
- justify-content: center;
- align-items: center;
+ position: fixed;
z-index: 10;
-
- .txt {
- width: 25%;
+ .orderForm-h {
+ // margin-top: 160rpx;
+ position: fixed;
+ width: 100%;
height: 84rpx;
- text-align: center;
- font-size: 28rpx;
- margin-right: 20rpx;
- line-height: 84rpx;
-
- .txt-a {
- box-sizing: border-box;
- padding-top: 5rpx;
- height: 80rpx;
- display: inline-block;
+ background-color: white;
+ display: flex;
+ align-items: center;
+ justify-content: space-around;
+ z-index: 10;
+
+ .txt {
+ // width: 200rpx;
+ height: 84rpx;
+ text-align: center;
+ font-size: 28rpx;
+ // margin-left: 20rpx;
+ line-height: 84rpx;
+
+ .txt-a {
+ box-sizing: border-box;
+ padding-top: 5rpx;
+ height: 80rpx;
+ display: inline-block;
+ }
+
+ }
+
+ .active {
+ border-bottom: 8rpx solid #1378F7;
+ color: #1378F7;
}
-
- }
-
- .active {
- border-bottom: 8rpx solid #1378F7;
- color: #1378F7;
}
}
+
+
.ding-h {
width: 100%;
height: 80rpx;
@@ -742,10 +828,10 @@
height: 60rpx;
line-height: 60rpx;
text-align: center;
- border: 1rpx solid #2878ff;
- color: #2878ff;
+ border: 1rpx solid red;
+ color: red;
border-radius: 40rpx 40rpx 40rpx 40rpx;
- margin-top: 10rpx;
+ margin-top: 6rpx;
}
}
}
@@ -770,7 +856,7 @@
.tishi {
width: 96%;
- height: 430rpx;
+ // height: 430rpx;
position: fixed;
top: 50%;
left: 50%;
@@ -797,7 +883,7 @@
.tishiTxt {
display: block;
- font-size: 34rpx;
+ font-size: 28rpx;
margin-top: 40rpx;
width: 100%;
text-align: center;
@@ -904,22 +990,24 @@
}
}
- .refund{
+ .refund {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
position: fixed;
z-index: 99999;
- .refundWindows{
+
+ .refundWindows {
width: 606rpx;
- height:436rpx;
+ height: 436rpx;
background-color: white;
position: relative;
top: 50%;
left: 50%;
- transform:translate(-50%,-50%);
+ transform: translate(-50%, -50%);
border-radius: 15rpx 15rpx 15rpx 15rpx;
- .title{
+
+ .title {
width: 100%;
height: 100rpx;
line-height: 100rpx;
@@ -927,12 +1015,14 @@
font-size: 30rpx;
font-weight: 600;
}
- .inputBox{
+
+ .inputBox {
width: 100%;
height: 230rpx;
// background-color: salmon;
font-size: 26rpx;
- .inputBox_go{
+
+ .inputBox_go {
display: block;
box-sizing: border-box;
padding-left: 15rpx;
@@ -945,26 +1035,28 @@
font-size: 26rpx;
}
}
- .btn{
+
+ .btn {
width: 100%;
height: 100rpx;
display: flex;
justify-content: center;
-
+
border-top: 1rpx solid #ccc;
+
.btn-left {
width: 50%;
height: 100rpx;
text-align: center;
line-height: 108rpx;
// background-color: #70b6f2;
-
+
color: #70b6f2;
letter-spacing: 5rpx;
// border-radius: 15rpx 15rpx 15rpx 15rpx;
// border-right: 1rpx solid #ccc;
}
-
+
.btn-right {
width: 50%;
height: 100rpx;
diff --git a/stor/index.js b/stor/index.js
index 0408465..bfaf409 100644
--- a/stor/index.js
+++ b/stor/index.js
@@ -14,7 +14,8 @@ import {
getTimeStamps,
start,
shop,
- getTincheCoupons
+ getTincheCoupons,
+ getExcellent
} from '../api/api.js'
import dayjs from 'dayjs'
export const storindex = defineStore('storindex', () => {
@@ -90,7 +91,7 @@ export const storindex = defineStore('storindex', () => {
p.value = 0
} else {
console.log("out_trade_no", res);
- console.log('这是订单号'+res);
+ console.log('这是订单号' + res);
const res1 = await getWxPlay({
appId: appid,
phone: uni.getStorageSync('phoneNumber'),
@@ -147,12 +148,32 @@ export const storindex = defineStore('storindex', () => {
})
const qaq = await getTincheCoupons({
phoneNumber: uni.getStorageSync(
- 'phoneNumber')
+ 'phoneNumber'),
+ oderId: orderid.value
})
uni.showToast({
icon: "none",
title: `${qaq.msg}`
})
+ const currentDate = new Date();
+ const year = currentDate.getFullYear();
+ const month = String(currentDate.getMonth() + 1)
+ .padStart(2, '0');
+ const day = String(currentDate.getDate())
+ .padStart(2, '0');
+ const hours = String(currentDate.getHours())
+ .padStart(2, '0');
+ const minutes = String(currentDate.getMinutes())
+ .padStart(2, '0');
+ const seconds = String(currentDate.getSeconds())
+ .padStart(2, '0');
+ const formattedDate =
+ `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
+ const qaq1 = await getExcellent({
+ time: formattedDate,
+ networkId: datas.networkId
+ })
+ console.log(qaq1)
}
})
//不为200或者0的时候启动失败并提示原因。
@@ -172,7 +193,7 @@ export const storindex = defineStore('storindex', () => {
'msg',
descriptions
.value)
-
+
}
})
@@ -245,9 +266,19 @@ export const storindex = defineStore('storindex', () => {
package: res1.package,
signType: res1.signType,
paySign: res1.paySign,
- success: (res2) => {
+ success: async(res2) => {
console.log('用户付款成功', res2);
p.value = 0
+ const qaq = await getTincheCoupons({
+ phoneNumber: uni.getStorageSync('phoneNumber'),
+ oderId: orderid.value
+ })
+ console.log(qaq);
+ uni.showToast({
+ icon: "none",
+ title: `${qaq.msg}`,
+ duration:1000
+ })
uni.navigateTo({
url: `/pages/myBalance/myBalance`
})
@@ -288,7 +319,7 @@ export const storindex = defineStore('storindex', () => {
uni.navigateTo({
url: '/pages/login/login'
})
- }, 1000)
+ }, 1500)
}
})
} else {
@@ -320,9 +351,18 @@ export const storindex = defineStore('storindex', () => {
package: res1.package,
signType: res1.signType,
paySign: res1.paySign,
- success: (res2) => {
+ success: async(res2) => {
console.log('用户付款成功', res2);
-
+ const qaq = await getTincheCoupons({
+ phoneNumber: uni.getStorageSync('phoneNumber'),
+ oderId: orderid.value
+ })
+ console.log(qaq);
+ uni.showToast({
+ icon: "none",
+ title: `${qaq.msg}`,
+ duration:1500
+ })
p.value = 0
uni.navigateTo({
url: `/pages/secondaryCard/secondaryCard?id=${datas.networkId}`
@@ -392,13 +432,29 @@ export const storindex = defineStore('storindex', () => {
url: '/pages/complete/complete'
})
const qaq = await getTincheCoupons({
- phoneNumber: uni.getStorageSync('phoneNumber')
+ phoneNumber: uni.getStorageSync('phoneNumber'),
+ oderId: orderid.value
})
console.log(qaq);
uni.showToast({
icon: "none",
- title: `${qaq.msg}`
+ title: `${qaq.msg}`,
+ duration:1500
})
+ const currentDate = new Date();
+ const year = currentDate.getFullYear();
+ const month = String(currentDate.getMonth() + 1).padStart(2, '0');
+ const day = String(currentDate.getDate()).padStart(2, '0');
+ const hours = String(currentDate.getHours()).padStart(2, '0');
+ const minutes = String(currentDate.getMinutes()).padStart(2, '0');
+ const seconds = String(currentDate.getSeconds()).padStart(2, '0');
+ const formattedDate =
+ `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
+ const qaq1 = await getExcellent({
+ time: formattedDate,
+ networkId: datas.networkId
+ })
+ console.log(qaq1)
}
})
} else {
@@ -462,11 +518,26 @@ export const storindex = defineStore('storindex', () => {
url: '/pages/complete/complete'
})
const qaq = await getTincheCoupons({
- phoneNumber: uni.getStorageSync('phoneNumber')
+ phoneNumber: uni.getStorageSync('phoneNumber'),
+ oderId: orderid.value
+ })
+ const currentDate = new Date();
+ const year = currentDate.getFullYear();
+ const month = String(currentDate.getMonth() + 1).padStart(2, '0');
+ const day = String(currentDate.getDate()).padStart(2, '0');
+ const hours = String(currentDate.getHours()).padStart(2, '0');
+ const minutes = String(currentDate.getMinutes()).padStart(2, '0');
+ const seconds = String(currentDate.getSeconds()).padStart(2, '0');
+ const formattedDate =`${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
+ const qaq1 = await getExcellent({
+ time: formattedDate,
+ networkId: datas.networkId
})
+ console.log(qaq1)
uni.showToast({
icon: "none",
- title: `${qaq.msg}`
+ title: `${qaq.msg}`,
+ duration:1500
})
}
})
@@ -507,7 +578,7 @@ export const storindex = defineStore('storindex', () => {
const playleix = (data) => {
playl.value = data
}
- const upPay = ()=>{
+ const upPay = () => {
p.value = 0
}
return {
diff --git a/stor/order/order.js b/stor/order/order.js
index e6c3891..6683405 100644
--- a/stor/order/order.js
+++ b/stor/order/order.js
@@ -58,6 +58,7 @@ export const order = defineStore('order', () => {
uni.switchTab({
url:"/pages/my/my",
success: () => {
+ console.log("我处发了")
uni.showToast({
icon:"none",
title:"结束洗车成功",
diff --git a/unpackage/dist/build/app-plus/__uniappautomator.js b/unpackage/dist/build/app-plus/__uniappautomator.js
new file mode 100644
index 0000000..2471e2e
--- /dev/null
+++ b/unpackage/dist/build/app-plus/__uniappautomator.js
@@ -0,0 +1,16 @@
+var n;
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */
+function __spreadArrays(){for(var s=0,i=0,il=arguments.length;in;n++)r(e,e._deferreds[n]);e._deferreds=null}function c(e,n){var t=!1;try{e((function(e){t||(t=!0,i(n,e))}),(function(e){t||(t=!0,f(n,e))}))}catch(o){if(t)return;t=!0,f(n,o)}}var a=setTimeout;o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,n){var o=new this.constructor(t);return r(this,new function(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}(e,n,o)),o},o.prototype.finally=e,o.all=function(e){return new o((function(t,o){function r(e,n){try{if(n&&("object"==typeof n||"function"==typeof n)){var u=n.then;if("function"==typeof u)return void u.call(n,(function(n){r(e,n)}),o)}i[e]=n,0==--f&&t(i)}catch(c){o(c)}}if(!n(e))return o(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var f=i.length,u=0;i.length>u;u++)r(u,i[u])}))},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o((function(n){n(e)}))},o.reject=function(e){return new o((function(n,t){t(e)}))},o.race=function(e){return new o((function(t,r){if(!n(e))return r(new TypeError("Promise.race accepts an array"));for(var i=0,f=e.length;f>i;i++)o.resolve(e[i]).then(t,r)}))},o._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){a(e,0)},o._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype.finally||(l.Promise.prototype.finally=e):l.Promise=o},"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n();var getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}for(var byteToHex=[],i=0;i<256;++i)byteToHex[i]=(i+256).toString(16).substr(1);function v4(options,buf,offset){var i=buf&&offset||0;"string"==typeof options&&(buf="binary"===options?new Array(16):null,options=null);var rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf)for(var ii=0;ii<16;++ii)buf[i+ii]=rnds[ii];return buf||function(buf,offset){var i=offset||0,bth=byteToHex;return[bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]]].join("")}(rnds)}var hasOwnProperty=Object.prototype.hasOwnProperty,isArray=Array.isArray,PATH_RE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function getPaths(path,data){if(isArray(path))return path;if(data&&(val=data,key=path,hasOwnProperty.call(val,key)))return[path];var val,key,res=[];return path.replace(PATH_RE,(function(match,p1,offset,string){return res.push(offset?string.replace(/\\(\\)?/g,"$1"):p1||match),string})),res}function getDataByPath(data,path){var dataPath,paths=getPaths(path,data);for(dataPath=paths.shift();null!=dataPath;){if(null==(data=data[dataPath]))return;dataPath=paths.shift()}return data}var elementMap=new Map;function transEl(el){var _a;if(!function(el){if(el){var tagName=el.tagName;return 0===tagName.indexOf("UNI-")||"BODY"===tagName||0===tagName.indexOf("V-UNI-")||el.__isUniElement}return!1}(el))throw Error("no such element");var element,elementId,elem={elementId:(element=el,elementId=element._id,elementId||(elementId=v4(),element._id=elementId,elementMap.set(elementId,{id:elementId,element:element})),elementId),tagName:el.tagName.toLocaleLowerCase().replace("uni-","")};if(el.__vue__)(vm=el.__vue__)&&(vm.$parent&&vm.$parent.$el===el&&(vm=vm.$parent),vm&&!(null===(_a=vm.$options)||void 0===_a?void 0:_a.isReserved)&&(elem.nodeId=function(vm){if(vm._$weex)return vm._uid;if(vm._$id)return vm._$id;if(vm.uid)return vm.uid;var parent_1=function(vm){for(var parent=vm.$parent;parent;){if(parent._$id)return parent;parent=parent.$parent}}(vm);if(!vm.$parent)return"-1";var vnode=vm.$vnode,context=vnode.context;return context&&context!==parent_1&&context._$id?context._$id+";"+parent_1._$id+","+vnode.data.attrs._i:parent_1._$id+","+vnode.data.attrs._i}(vm)));else var vm;return"video"===elem.tagName&&(elem.videoId=elem.nodeId),elem}function getVm(el){return el.__vue__?{isVue3:!1,vm:el.__vue__}:{isVue3:!0,vm:el.__vueParentComponent}}function getScrollViewMain(el){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;return isVue3?vm.exposed.$getMain():vm.$refs.main}var FUNCTIONS={input:{input:function(el,value){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;isVue3?vm.exposed&&vm.exposed.$triggerInput({value:value}):(vm.valueSync=value,vm.$triggerInput({},{value:value}))}},textarea:{input:function(el,value){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;isVue3?vm.exposed&&vm.exposed.$triggerInput({value:value}):(vm.valueSync=value,vm.$triggerInput({},{value:value}))}},"scroll-view":{scrollTo:function(el,x,y){var main=getScrollViewMain(el);main.scrollLeft=x,main.scrollTop=y},scrollTop:function(el){return getScrollViewMain(el).scrollTop},scrollLeft:function(el){return getScrollViewMain(el).scrollLeft},scrollWidth:function(el){return getScrollViewMain(el).scrollWidth},scrollHeight:function(el){return getScrollViewMain(el).scrollHeight}},swiper:{swipeTo:function(el,index){el.__vue__.current=index}},"movable-view":{moveTo:function(el,x,y){el.__vue__._animationTo(x,y)}},switch:{tap:function(el){el.click()}},slider:{slideTo:function(el,value){var vm=el.__vue__,slider=vm.$refs["uni-slider"],offsetWidth=slider.offsetWidth,boxLeft=slider.getBoundingClientRect().left;vm.value=value,vm._onClick({x:(value-vm.min)*offsetWidth/(vm.max-vm.min)+boxLeft})}}};function createTouchList(touchInits){var _a,touches=touchInits.map((function(touch){return function(touch){if(document.createTouch)return document.createTouch(window,touch.target,touch.identifier,touch.pageX,touch.pageY,touch.screenX,touch.screenY);return new Touch(touch)}(touch)}));return document.createTouchList?(_a=document).createTouchList.apply(_a,touches):touches}var WebAdapter={getWindow:function(pageId){return window},getDocument:function(pageId){return document},getEl:function(elementId){var element=elementMap.get(elementId);if(!element)throw Error("element destroyed");return element.element},getOffset:function(node){var rect=node.getBoundingClientRect();return Promise.resolve({left:rect.left+window.pageXOffset,top:rect.top+window.pageYOffset})},querySelector:function(context,selector){return"page"===selector&&(selector="body"),Promise.resolve(transEl(context.querySelector(selector)))},querySelectorAll:function(context,selector){var elements=[],nodeList=document.querySelectorAll(selector);return[].forEach.call(nodeList,(function(node){try{elements.push(transEl(node))}catch(e){}})),Promise.resolve({elements:elements})},queryProperties:function(context,names){return Promise.resolve({properties:names.map((function(name){var value=getDataByPath(context,name.replace(/-([a-z])/g,(function(g){return g[1].toUpperCase()})));return"document.documentElement.scrollTop"===name&&0===value&&(value=getDataByPath(context,"document.body.scrollTop")),value}))})},queryAttributes:function(context,names){return Promise.resolve({attributes:names.map((function(name){return String(context.getAttribute(name))}))})},queryStyles:function(context,names){var style=getComputedStyle(context);return Promise.resolve({styles:names.map((function(name){return style[name]}))})},queryHTML:function(context,type){return Promise.resolve({html:(html="outer"===type?context.outerHTML:context.innerHTML,html.replace(/\n/g,"").replace(/(]*>)(]*>[^<]*<\/span>)(.*?<\/uni-text>)/g,"$1$3").replace(/<\/?[^>]*>/g,(function(replacement){return-1":"