feat: 增加数据统计,销量统计,桌台统计
This commit is contained in:
@@ -39,6 +39,10 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { useUserStore } from "@/store/modules/user";
|
||||
import { getDouyinToken, setDouyinToken } from "@/utils/auth";
|
||||
|
||||
const user = useUserStore();
|
||||
import * as $Api from "@/api/coup/index.js";
|
||||
import orderApi from "@/api/order/order";
|
||||
import bindShop from "./douyin-quan-bind-shop.vue";
|
||||
@@ -181,10 +185,14 @@ export default {
|
||||
},
|
||||
open(data) {
|
||||
this.show = true;
|
||||
$Api.$douyin_checkIn().then((res) => {
|
||||
console.log(res);
|
||||
localStorage.setItem("bausertoken", res.userInfo.token);
|
||||
});
|
||||
$Api
|
||||
.$douyin_checkIn({
|
||||
loginName: user.userInfo.phone,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
setDouyinToken(res.userInfo.token);
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$refs.refInputCode.focus();
|
||||
}, 100);
|
||||
|
||||
Reference in New Issue
Block a user