|
@@ -71,13 +71,8 @@
|
|
|
</van-row>
|
|
|
</div>
|
|
|
</div>
|
|
|
-<<<<<<< HEAD
|
|
|
- <van-toast id="van-toast"/>
|
|
|
- <van-dialog id="van-dialog"/>
|
|
|
-=======
|
|
|
<van-toast id="van-toast" />
|
|
|
|
|
|
->>>>>>> c35815dd87c4ff3ede9c43252c369c9b213f6216
|
|
|
<!-- <button class="cu-btn lg cu-btn-primary text-white text-center margin-tb" @click="auth_msg">获取消息授权-->
|
|
|
<!-- </button>-->
|
|
|
</div>
|
|
@@ -89,19 +84,10 @@ import login_container from "@/components/index/login";
|
|
|
import regist_container from "@/components/index/regist";
|
|
|
import personal_container from "@/components/index/personal";
|
|
|
import device_container from "@/components/device/device";
|
|
|
-<<<<<<< HEAD
|
|
|
-import Toast from '../../../static/vant/toast/toast';
|
|
|
-import Dialog from '../../../static/vant/dialog/dialog'
|
|
|
-import {userDetail} from "../../requests/user";
|
|
|
-import user_store from "../../store/index"
|
|
|
-import game_store from "../../store/game"
|
|
|
-import game_util, {post_data} from '../../utils/game'
|
|
|
-=======
|
|
|
import Toast from "../../../static/vant/toast/toast";
|
|
|
import { userDetail } from "../../requests/user";
|
|
|
import user_store from "../../store/index";
|
|
|
import { reload_userinfo } from "../../utils/user";
|
|
|
->>>>>>> c35815dd87c4ff3ede9c43252c369c9b213f6216
|
|
|
|
|
|
var $this;
|
|
|
export default {
|
|
@@ -193,38 +179,9 @@ export default {
|
|
|
},
|
|
|
onHide() {},
|
|
|
onLoad($option) {
|
|
|
-<<<<<<< HEAD
|
|
|
- if (process.env.NODE_ENV == 'development') {
|
|
|
- wx.setStorageSync('token', '7MZYqpAWOdw8WDxsgUV5QkQnKfrU5L_7')
|
|
|
- }
|
|
|
-
|
|
|
- console.log(game_store.getters.getGameAttMedDatas())
|
|
|
- console.log(game_store.getters.getPlayedTime())
|
|
|
- console.log(
|
|
|
- "游戏状态:" + game_store.getters.getGameStatus(),
|
|
|
-
|
|
|
- "游戏记录id:" + game_store.getters.getGameRecordId()
|
|
|
- )
|
|
|
- if (game_store.getters.getGameStatus() == 1) {
|
|
|
- Dialog.confirm({
|
|
|
- title: '系统提示',
|
|
|
- message: '您上一个游戏尚未结束,是否继续?',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- Toast.success('是')
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- //添加数据,结束游戏
|
|
|
- Toast.fail('否')
|
|
|
- post_data(game_store.getters.getGameAttMedDatas())
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
-=======
|
|
|
// if (process.env.NODE_ENV == 'development') {
|
|
|
// wx.setStorageSync('token', '7MZYqpAWOdw8WDxsgUV5QkQnKfrU5L_7')
|
|
|
// }
|
|
|
->>>>>>> c35815dd87c4ff3ede9c43252c369c9b213f6216
|
|
|
// 判断存储是否登录
|
|
|
let $token = wx.getStorageSync("token");
|
|
|
if ($token) {
|