Files
hnxdcount-uniapp/unpackage/dist/build/mp-weixin/pages/protocol/buy.js
PC-202306242200\Administrator dac42e3b0c first commit
2026-03-28 23:09:02 +08:00

2 lines
717 B
JavaScript

"use strict";const e=require("../../common/vendor.js"),t=require("../../api/api.js");if(!Array){(e.resolveComponent("mp-html")+e.resolveComponent("up-button"))()}Math||((()=>"../../uni_modules/mp-html/components/mp-html/mp-html.js")+(()=>"../../uni_modules/uview-plus/components/u-button/u-button.js"))();const o={__name:"buy",setup(o){let n=e.ref({});e.onLoad((async e=>{let o=await t.selectProtocolInfo({id:e.id});n.value=o}));let r=t=>{t?(e.index.$emit("buy",1),e.index.navigateBack()):e.index.navigateBack()};return(t,o)=>({a:e.p({content:e.unref(n).protocolContent}),b:e.t(e.unref(n).protocolName),c:e.o((t=>e.unref(r)(1))),d:e.p({color:"#4874e5",type:"primary"}),e:e.o((t=>e.unref(r)(0)))})}};wx.createPage(o);