{ | { | ||||
//其他服务模块 | //其他服务模块 | ||||
"root": "subpackage/carPark", | "root": "subpackage/carPark", | ||||
// "plugins": { | |||||
// "issuer-plugin": { | |||||
// // "version": "dev-5d954bb916bb210d6c17397439d90f07", | |||||
// "version": "1.0.2", | |||||
// "provider": "wxa2d9acdd1054e69b" | |||||
// } | |||||
// }, | |||||
"plugins": { | |||||
"issuer-plugin": { | |||||
// "version": "dev-5d954bb916bb210d6c17397439d90f07", | |||||
"version": "1.0.2", | |||||
"provider": "wxa2d9acdd1054e69b" | |||||
} | |||||
}, | |||||
"pages": [ | "pages": [ | ||||
{ | { | ||||
"path": "etc/etcDeviceInfo", | "path": "etc/etcDeviceInfo", |
<swiper class="swiper" circular :indicator-dots="swiper.indicatorDots" :autoplay="swiper.autoplay" | <swiper class="swiper" circular :indicator-dots="swiper.indicatorDots" :autoplay="swiper.autoplay" | ||||
:interval="swiper.interval" :duration="swiper.duration" > | :interval="swiper.interval" :duration="swiper.duration" > | ||||
<block v-if="state.swiperList.length >0" v-for="item in state.swiperList" :key="item.id"> | <block v-if="state.swiperList.length >0" v-for="item in state.swiperList" :key="item.id"> | ||||
<swiper-item class="swiper-item" @click="call()"> | |||||
<image :src="fileURLList + item.imgUrl" mode="widthFix" class='img'></image> | |||||
<swiper-item class="swiper-item" > | |||||
<image :src="fileURLList + item.imgUrl" mode="widthFix" class='img' @click="call()"></image> | |||||
</swiper-item> | </swiper-item> | ||||
</block> | </block> | ||||
</swiper> | </swiper> | ||||
} | } | ||||
} | } | ||||
const call=()=>{ | const call=()=>{ | ||||
console.log("点击") | |||||
uni.makePhoneCall({ | uni.makePhoneCall({ | ||||
phoneNumber: '0851-88306555' //仅为示例,并非真实的电话号码 | phoneNumber: '0851-88306555' //仅为示例,并非真实的电话号码 | ||||
}) | }) |
</template> | </template> | ||||
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { onLoad, onPageScroll} from "@dcloudio/uni-app"; | |||||
import { onLoad, onPageScroll,onShow} from "@dcloudio/uni-app"; | |||||
import { reactive, ref } from "vue"; | import { reactive, ref } from "vue"; | ||||
import { | import { | ||||
PAYMENTORDERAPPLY, | PAYMENTORDERAPPLY, | ||||
paySign: data.sign, | paySign: data.sign, | ||||
success: function (e) { | success: function (e) { | ||||
console.log("支付成功", res); | console.log("支付成功", res); | ||||
state.payOK=true | |||||
refresh(); | refresh(); | ||||
}, | }, | ||||
fail: function (err) { | fail: function (err) { | ||||
console.log("state.dataArray", state.dataArray) | console.log("state.dataArray", state.dataArray) | ||||
}); | }); | ||||
} | } | ||||
onShow(()=>{ | |||||
if(state.payOK){ | |||||
refreshFirst() | |||||
} | |||||
}) | |||||
onLoad((option : any) => { | onLoad((option : any) => { | ||||
console.log("传递过来的到支付页面", option) | console.log("传递过来的到支付页面", option) | ||||
state.orderId = option.orderId; | state.orderId = option.orderId; | ||||
qdSignAppId:"", | qdSignAppId:"", | ||||
qtSign:"", | qtSign:"", | ||||
xianxia:"",//线下订单 1 | xianxia:"",//线下订单 1 | ||||
payOK:false | |||||
}); | }); | ||||
</script> | </script> | ||||