|
@@ -31,7 +31,11 @@
|
|
<view class="title"> 常用工具 </view>
|
|
<view class="title"> 常用工具 </view>
|
|
|
|
|
|
<view class="tools">
|
|
<view class="tools">
|
|
- <wd-cell is-link title="奖励记录" @click="toWinner">
|
|
|
|
|
|
+ <wd-cell
|
|
|
|
+ is-link
|
|
|
|
+ title="奖励记录"
|
|
|
|
+ @click="toNextPage('/pagesOne/record/winnerList')"
|
|
|
|
+ >
|
|
<template #icon>
|
|
<template #icon>
|
|
<image :src="imgObj.gift" mode="scaleToFill" />
|
|
<image :src="imgObj.gift" mode="scaleToFill" />
|
|
</template>
|
|
</template>
|
|
@@ -42,7 +46,27 @@
|
|
class="custom-text"
|
|
class="custom-text"
|
|
/>
|
|
/>
|
|
</wd-cell>
|
|
</wd-cell>
|
|
- <wd-cell border is-link title="上传记录" @click="toUpLoad">
|
|
|
|
|
|
+ <wd-cell
|
|
|
|
+ is-link
|
|
|
|
+ title="快速理赔"
|
|
|
|
+ @click="toNextPage('/pagesOne/claim/apply')"
|
|
|
|
+ >
|
|
|
|
+ <template #icon>
|
|
|
|
+ <image :src="imgObj.lpIcon" mode="scaleToFill" />
|
|
|
|
+ </template>
|
|
|
|
+ <image
|
|
|
|
+ style="width: 128rpx; height: 48rpx"
|
|
|
|
+ :src="imgObj.with"
|
|
|
|
+ mode="scaleToFill"
|
|
|
|
+ class="custom-text"
|
|
|
|
+ />
|
|
|
|
+ </wd-cell>
|
|
|
|
+ <wd-cell
|
|
|
|
+ border
|
|
|
|
+ is-link
|
|
|
|
+ title="上传记录"
|
|
|
|
+ @click="toNextPage('/pagesOne/record/recordList')"
|
|
|
|
+ >
|
|
<template #icon>
|
|
<template #icon>
|
|
<image :src="imgObj.page" mode="scaleToFill" />
|
|
<image :src="imgObj.page" mode="scaleToFill" />
|
|
</template>
|
|
</template>
|
|
@@ -50,7 +74,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <!-- <view class="addressBox">
|
|
|
|
|
|
+ <!-- <view class="addressBox">
|
|
<view class="title"> 附近门店 </view>
|
|
<view class="title"> 附近门店 </view>
|
|
<view>
|
|
<view>
|
|
<view v-for="(item, index) in list2" :key="index" class="address">
|
|
<view v-for="(item, index) in list2" :key="index" class="address">
|
|
@@ -82,10 +106,11 @@ import { onLoad, onShow } from "@dcloudio/uni-app";
|
|
|
|
|
|
import { ref } from "vue";
|
|
import { ref } from "vue";
|
|
import { getNavTop } from "@/utils/system";
|
|
import { getNavTop } from "@/utils/system";
|
|
-import { paymentAPI } from "@/services/ams";
|
|
|
|
|
|
+// import { paymentAPI } from "@/services/ams";
|
|
import { getActivityData, isGetPhone, getMobile } from "@/utils/system";
|
|
import { getActivityData, isGetPhone, getMobile } from "@/utils/system";
|
|
import UserLoginPopup from "@/components/userLoginPopup.vue";
|
|
import UserLoginPopup from "@/components/userLoginPopup.vue";
|
|
import NearlyStoreBox from "./components/nearlyStoreBox.vue";
|
|
import NearlyStoreBox from "./components/nearlyStoreBox.vue";
|
|
|
|
+// import { validateHeaderName } from "http";
|
|
const imgObj = {
|
|
const imgObj = {
|
|
user: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/user.png",
|
|
user: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/user.png",
|
|
int: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/int.png",
|
|
int: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/int.png",
|
|
@@ -94,6 +119,7 @@ const imgObj = {
|
|
page: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/page.png",
|
|
page: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/page.png",
|
|
with: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/with.png",
|
|
with: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/with.png",
|
|
myBg: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/myBg.png",
|
|
myBg: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/myBg.png",
|
|
|
|
+ lpIcon: "https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/lpIcon.png",
|
|
};
|
|
};
|
|
|
|
|
|
const list = [
|
|
const list = [
|
|
@@ -129,27 +155,27 @@ const loginRef = <any>ref(null);
|
|
const path = ref<string>("");
|
|
const path = ref<string>("");
|
|
const phone = uni.getStorageSync("phone");
|
|
const phone = uni.getStorageSync("phone");
|
|
|
|
|
|
-const toWinner = () => {
|
|
|
|
- path.value = "/pagesOne/record/winnerList";
|
|
|
|
|
|
+const toNextPage = (val: string) => {
|
|
|
|
+ path.value = val;
|
|
if (!isGetPhone()) {
|
|
if (!isGetPhone()) {
|
|
loginRef.value.show = true;
|
|
loginRef.value.show = true;
|
|
} else {
|
|
} else {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: "/pagesOne/record/winnerList",
|
|
|
|
|
|
+ url: val,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
-const toUpLoad = () => {
|
|
|
|
- path.value = "/pagesOne/record/uploadList";
|
|
|
|
- if (!isGetPhone()) {
|
|
|
|
- loginRef.value.show = true;
|
|
|
|
- } else {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: "/pagesOne/record/uploadList",
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
-};
|
|
|
|
|
|
+// const toUpLoad = () => {
|
|
|
|
+// path.value = "/pagesOne/record/uploadList";
|
|
|
|
+// if (!isGetPhone()) {
|
|
|
|
+// loginRef.value.show = true;
|
|
|
|
+// } else {
|
|
|
|
+// uni.navigateTo({
|
|
|
|
+// url: "/pagesOne/record/uploadList",
|
|
|
|
+// });
|
|
|
|
+// }
|
|
|
|
+// };
|
|
|
|
|
|
const mobile = ref<string>("");
|
|
const mobile = ref<string>("");
|
|
const onLogin = async (e: any) => {
|
|
const onLogin = async (e: any) => {
|