|
@@ -67,6 +67,17 @@
|
|
</van-cell-group>
|
|
</van-cell-group>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <div class="menu-card-group">
|
|
|
|
+ <van-cell-group :border="false" inset title="测试相关">
|
|
|
|
+ <van-cell :border="false" title="AppID" :value="appConfig.projectInfo.appId"></van-cell>
|
|
|
|
+ <van-cell :border="false" title="Code" :value="appConfig.projectInfo.appCode"></van-cell>
|
|
|
|
+ <van-cell :border="false" title="SESSION" :value="userState.sessionId"></van-cell>
|
|
|
|
+ <van-cell :border="false" title="清除本地缓存" @click="doClear"></van-cell>
|
|
|
|
+ <van-cell :border="false" title="退出登录状态" @click="doLogout"></van-cell>
|
|
|
|
+ </van-cell-group>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
<PopupCustomerQR v-model="showCustomer" />
|
|
<PopupCustomerQR v-model="showCustomer" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -75,7 +86,7 @@ import {Cell, CellGroup, Popup} from 'vant'
|
|
import UseLogin from "@/components/login/useLogin.vue";
|
|
import UseLogin from "@/components/login/useLogin.vue";
|
|
import Taro from "@tarojs/taro";
|
|
import Taro from "@tarojs/taro";
|
|
import {mapActions, mapGetters} from "vuex";
|
|
import {mapActions, mapGetters} from "vuex";
|
|
-import { formatPhoneNumber, goToOrderList, goToUnitDetail } from "@/utils";
|
|
|
|
|
|
+import { formatPhoneNumber, showToast } from "@/utils";
|
|
import adSingle from '@/components/common/Ad.vue'
|
|
import adSingle from '@/components/common/Ad.vue'
|
|
import {setTrackLog} from "@/track";
|
|
import {setTrackLog} from "@/track";
|
|
import PopupCustomerQR from '@/components/common/PopupCustomerQR.vue'
|
|
import PopupCustomerQR from '@/components/common/PopupCustomerQR.vue'
|
|
@@ -104,7 +115,7 @@ export default {
|
|
...mapGetters('env', ['miniEnv', 'canSupportPay']),
|
|
...mapGetters('env', ['miniEnv', 'canSupportPay']),
|
|
...mapGetters('config', ['appConfig']),
|
|
...mapGetters('config', ['appConfig']),
|
|
nowUserPhone() {
|
|
nowUserPhone() {
|
|
- return formatPhoneNumber(this.userState.phone)
|
|
|
|
|
|
+ return formatPhoneNumber(this.userState.phone || '')
|
|
},
|
|
},
|
|
nowUserType() {
|
|
nowUserType() {
|
|
if (!this.isLogin) {
|
|
if (!this.isLogin) {
|
|
@@ -115,6 +126,10 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapActions('user', ['doLogout', 'doGetUserInfo']),
|
|
...mapActions('user', ['doLogout', 'doGetUserInfo']),
|
|
|
|
+ doClear () {
|
|
|
|
+ Taro.clearStorageSync()
|
|
|
|
+ showToast('清除成功')
|
|
|
|
+ },
|
|
doSetTrackLog (name, data = {}) {
|
|
doSetTrackLog (name, data = {}) {
|
|
setTrackLog({
|
|
setTrackLog({
|
|
breakName: name,
|
|
breakName: name,
|