diff --git a/index.html b/index.html index 8ffabaf..47bf434 100644 --- a/index.html +++ b/index.html @@ -17,8 +17,45 @@
- - - + diff --git a/src/pages/ycnc/index.vue b/src/pages/ycnc/index.vue index cd0d528..3fb2c48 100644 --- a/src/pages/ycnc/index.vue +++ b/src/pages/ycnc/index.vue @@ -70,14 +70,14 @@ onMounted(async ()=>{ queryProducts(); // let testToken = import.meta.env.VITE_TEST_TOKEN - // uni.setStorageSync('token',testToken) - const token = uni.getStorageSync('token') || ''; + // window.localStorage.setItem('token',testToken) + const token = window.localStorage.getItem('token') || ''; if(!token){ console.log('进入登录过程'); const code = await useCode(); authCode.value = code const {token} = await login({params:{code:unref(authCode)}}); - uni.setStorageSync('token',token); + window.localStorage.setItem('token',token); } }); diff --git a/src/pages/ycnc/orderDetail.vue b/src/pages/ycnc/orderDetail.vue index 67e0ea6..5d3b9ae 100644 --- a/src/pages/ycnc/orderDetail.vue +++ b/src/pages/ycnc/orderDetail.vue @@ -32,7 +32,8 @@ 订单编号:{{ orderDetail.order_no }} - 支付时间:{{ orderDetail.create_time }} + + 支付时间:{{ orderDetail.exchange_time }} 下单时间:{{ orderDetail.create_time }} 订单金额:{{ orderDetail.price }} @@ -55,7 +56,6 @@ const orderDetail = reactive({}); onLoad((options) => { - console.log('href',window.location.href); console.log('options',options); const {order_id,order_no} = options; id.value = order_id @@ -67,6 +67,7 @@ url:`/pages/ycnc/index` }) } + const viewPwd = (detailData) => { const {voucher_link} = detailData if(voucher_link){