Browse Source

add debug logic

dev
刘嘉炜 2 weeks ago
parent
commit
8882c2c7d7
  1. 14
      src/pages/index/index.vue
  2. 32
      src/pages/member/index.vue
  3. 2
      src/subpackage/groupon/pages/list.vue
  4. 2
      src/subpackage/groupon/pages/site_select.vue
  5. 2
      src/subpackage/groupon/pages/stadiums.vue

14
src/pages/index/index.vue

@ -10,6 +10,20 @@ onLoad(() => {
// .then(res=>{ // .then(res=>{
// console.log('stadiumFind', res); // console.log('stadiumFind', res);
// }) // })
tt.login({
success() {
tt.showToast({
title: "登录成功",
icon: "success",
});
},
fail() {
tt.showToast({
title: "登录失败",
icon: "fail",
});
},
});
}); });

32
src/pages/member/index.vue

@ -16,16 +16,44 @@ function toLogin(){
routeTo('/subpackage/authorize/pages/index'); routeTo('/subpackage/authorize/pages/index');
} }
function handleError(e) {
console.warn(e)
console.log(`${e.detail.errNo}: ${e.detail.errMsg}`);
}
function login() {
tt.login({
success() {
tt.showToast({
title: '登录成功',
icon: 'success',
});
},
fail() {
tt.showToast({
title: '登录失败',
icon: 'fail',
});
},
});
}
</script> </script>
<template> <template>
<view class="member-index"> <view class="member-index">
<button type="default" size="default" @click="login">login</button>
<view class="mi-header"> <view class="mi-header">
<open-data type="userNickName"></open-data>
<open-data type="userAvatarUrl"></open-data>
<view class="mh-user" v-if="tkStr"> <view class="mh-user" v-if="tkStr">
<image class="mh-avatar"></image>
<!-- <image class="mh-avatar"></image> -->
<open-data type="userAvatarUrl" use-empty-value @error="handleError" />
<view class="mh-info"> <view class="mh-info">
<view class="mi-name">抖音用户</view>
<!-- <view class="mi-name">抖音用户</view> -->
<open-data type="userNickName" default-text="empty" @error="handleError" />
<view class="mi-num">17688184874</view> <view class="mi-num">17688184874</view>
</view> </view>
</view> </view>
<view class="mh-unlogin" v-else> <view class="mh-unlogin" v-else>

2
src/subpackage/groupon/pages/list.vue

@ -27,7 +27,7 @@ function ticketClick(e){
tt.verifyCertificates({ tt.verifyCertificates({
verifyToken: uni.getStorageSync('token'),
verifyToken: new Date().getTime() + '',
poiId: 7419147144797358116 +'', poiId: 7419147144797358116 +'',
orderList: [{ orderList: [{
orderId: e.order_id, orderId: e.order_id,

2
src/subpackage/groupon/pages/site_select.vue

@ -17,7 +17,7 @@ const currentBookDate = ref({}); // 当前选中日期
const isShowTypeRuleTxt = ref(false); const isShowTypeRuleTxt = ref(false);
const stadiumInfo = ref({}); // const stadiumInfo = ref({}); //
const ticketInfo = null; //
let ticketInfo = null; //
const selectedData = computed(_=>{ // const selectedData = computed(_=>{ //
let _temArr = []; let _temArr = [];

2
src/subpackage/groupon/pages/stadiums.vue

@ -11,7 +11,7 @@ const stadiumKey = ref(''); // 搜索门店
const stadiumLs = ref([]); const stadiumLs = ref([]);
const appid = tt.getEnvInfoSync()?.microapp?.appId ?? ''; const appid = tt.getEnvInfoSync()?.microapp?.appId ?? '';
const ticketInfo = null; //
let ticketInfo = null; //
watch(cityName, val=>{ watch(cityName, val=>{
stadiumLs.value = []; stadiumLs.value = [];

Loading…
Cancel
Save