停车优惠券完成,意见反馈完成

main
Frontend-徐志烘 1 year ago
parent f816bd0fba
commit 4a31c765ea

@ -97,4 +97,8 @@ export const getexChange=(data)=>reqs(`shop/device-commodity/commodity-exchange`
//获取积分明细
export const getCardUpdateInfo=(data)=>requests(`mobile/order/cardUpdateInfo`,data,"GET")
//使用优惠券
export const getyouHui=(data)=>requests(`mobile/coupon/useCoupon`,data,"GET")
export const getyouHui=(data)=>requests(`mobile/coupon/useCoupon`,data,"GET")
//获取停车场优惠券
export const getTincheCoupons = (data)=>reqs('shop/preferential-card/park-card-get',data,"GET")
//添加建议
export const getAdd = (data)=>requests('mobile/recommendation/add',data,"POST")

@ -2,7 +2,7 @@ import App from './App'
import {createPinia}from 'pinia'
import {request} from './utils/request.js'
import share from './utils/shore.js'
// import '@/utils/interceptor.js'
import '@/utils/interceptor.js'
// #ifndef VUE3
import Vue from 'vue'

@ -15,10 +15,10 @@
<scroll-view class="secondaryCard-auto" scroll-y="true">
<view class="big">
<view class="card" v-for="(item,index) in couponsData" :key="item.id">
<view class="boxs" v-if="item.status===0&& headerindex===1">
<view class="boxs" v-if="item.status===1&& headerindex===1">
<view class="boxs-left">
<text class="boxs-left-top"></text>
<text class="boxs-left-tops">拉新</text>
<text class="boxs-left-top" v-if="item.couponName==='拉新洗车券'"></text>
<text class="boxs-left-tops" v-if="item.couponName==='拉新洗车券'"></text>
</view>
<view class="boxs-right">
<view class="boxs-right-top">
@ -38,7 +38,7 @@
使用
</view>
</view>
<view class="boxs" v-if="item.status===2&&headerindex===2">
<!-- <view class="boxs" v-if="item.status===2&&headerindex===2">
<view class="boxs-left">
<text class="boxs-left-top"></text>
<text class="boxs-left-tops">团购券</text>
@ -60,8 +60,8 @@
<view class="boxs-Btns boxs-BtnsActive">
</view>
</view>
<view class="boxs" v-if="item.status===2&&headerindex===2">
</view> -->
<view class="boxs" v-if="item.status===0&&headerindex===2">
<view class="boxs-left">
<text class="boxs-left-top"></text>
<text class="boxs-left-tops">团购券</text>

@ -213,6 +213,10 @@
phoneNum.value = prefix + '*****' + suffix;
console.log(phoneNum.value);
}else{
uni.navigateTo({
url:"/pages/login/login"
})
}
// isUser()
})

@ -1,8 +1,8 @@
<template>
<view class="myIntegral">
<view class="top">
<img class="left" src="https://www.jiubaotongxue.love/image/nav10.png" alt="" @click="backs" />
<text class="wen">积分明细</text>
<img class="left" src="https://www.jiubaotongxue.love/image/nav10.png" alt="" @click="backs" />
<text class="wen">积分明细</text>
</view>
<view class="header">
<view class="t">
@ -39,7 +39,7 @@
</view>
</view>
<view class="shangding">
</view>
<view class="box-flex" v-if="demo===0" v-for="(item,index) in shopData[mingXI].cards" :key="item.id">
<view class="lefts">
@ -63,29 +63,38 @@
</scroll-view>
</view>
<view class="windowYear" v-if="years===1" @click="close">
<view class="box">
<view class="title">
请选择日期
</view>
<view class="box-flexs" v-for="(item,index) in shopData" :key="item.id" @click="getList(index)">
{{item.date}}
<scroll-view scroll-y="true" class="box">
<view class="boxs">
<view class="title">
请选择日期
</view>
<view class="box-flexs" v-for="(item,index) in shopData" :key="item.id" @click="getList(index)">
{{item.date}}
</view>
</view>
</view>
</scroll-view>
</view>
</template>
<script setup>
import {ref} from 'vue'
import {
ref
} from 'vue'
import {
storeToRefs
} from 'pinia';
import {
shopStor
} from '../../stor/shop/shop.js'
import {my} from '../../stor/my/my.js'
import {
my
} from '../../stor/my/my.js'
const m = my()
m.getInformation()
const {Information} =storeToRefs(m)
const {
Information
} = storeToRefs(m)
const s = shopStor()
s.getShopData()
const {
@ -93,39 +102,40 @@
} = storeToRefs(s)
const demo = ref(0)
const mingXI = ref(0)
const years=ref(0)
const arrDemo = ref([0,1,2,3,4,5,6,7,8,9])
const backs = ()=>{
const years = ref(0)
const arrDemo = ref([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
const backs = () => {
uni.navigateBack()
}
const windowYears = ()=>{
years.value=1
const windowYears = () => {
years.value = 1
}
const getList = (index)=>{
mingXI.value=index
years.value=0
const getList = (index) => {
mingXI.value = index
years.value = 0
}
const removes = ()=>{
const removes = () => {
s.getShopDatas()
demo.value=1
demo.value = 1
}
const add = ()=>{
const add = () => {
s.getShopData()
demo.value=0
demo.value = 0
}
const close = ()=>{
years.value=0
const close = () => {
years.value = 0
}
</script>
<style lang="scss">
.myIntegral{
.myIntegral {
width: 100%;
height: 100%;
position: absolute;
background-color: #f1f4fb;
.top{
.top {
width: 100%;
height: 274rpx;
background-image: url("https://www.jiubaotongxue.love/image/demo72.png");
@ -133,15 +143,17 @@
background-repeat: no-repeat;
position: fixed;
top: 0;
.left{
.left {
position: fixed;
width: 64rpx;
height: 64rpx;
top: 100rpx;
left: 20rpx;
}
.wen{
.wen {
position: fixed;
display: block;
font-size: 36rpx;
@ -149,7 +161,8 @@
top: 106rpx;
}
}
.header{
.header {
width: 92%;
height: 248rpx;
background-image: url("https://www.jiubaotongxue.love/image/demo70.png");
@ -158,9 +171,10 @@
margin-top: 176rpx;
transform: translateX(-50%);
margin-left: 50%;
.t{
.t {
width: 100%;
height:60rpx;
height: 60rpx;
text-align: right;
box-sizing: border-box;
font-size: 24rpx;
@ -169,7 +183,8 @@
line-height: 60rpx;
color: #B98900;
}
.c{
.c {
width: 100%;
height: 30rpx;
font-size: 26rpx;
@ -178,7 +193,8 @@
box-sizing: border-box;
padding-left: 60rpx;
}
.b{
.b {
width: 100%;
height: 74rpx;
font-size: 64rpx;
@ -187,7 +203,8 @@
margin-top: 5rpx;
}
}
.title{
.title {
width: 100%;
height: 34rpx;
display: flex;
@ -196,12 +213,14 @@
box-sizing: border-box;
padding-left: 50rpx;
position: relative;
.r{
.r {
width: 24rpx;
height: 24rpx;
}
}
.auto-mingxi{
.auto-mingxi {
width: 90%;
transform: translateX(-50%);
margin-left: 50%;
@ -210,12 +229,14 @@
margin-top: 24rpx;
border-radius: 20rpx;
position: relative;
.box{
.box {
width: 100%;
height: 100%;
position: relative;
border-radius: 20rpx;
.title{
.title {
width: 100%;
height: 114rpx;
border-bottom: 1rpx solid #ccc;
@ -228,7 +249,8 @@
background-color: white;
z-index: 10;
border-radius: 20rpx;
.left{
.left {
width: 192rpx;
height: 110rpx;
text-align: center;
@ -236,19 +258,22 @@
margin-left: 70rpx;
// border-bottom:9rpx solid #428aff ;
}
.right{
.right {
width: 192rpx;
height: 110rpx;
text-align: center;
line-height: 110rpx;
margin-right: 70rpx;
}
.active{
border-bottom:7rpx solid #428aff ;
.active {
border-bottom: 7rpx solid #428aff;
}
}
.title-zong{
.title-zong {
position: fixed;
width: 100%;
height: 108rpx;
@ -259,8 +284,8 @@
color: #f68515;
font-size: 24rpx;
z-index: 10;
.z{
.z {
width: 90%;
height: 58rpx;
margin-left: 50%;
@ -272,18 +297,20 @@
background-color: #FFF6D7;
}
}
.title-zongs{
.title-zongs {
position: fixed;
width: 100%;
height: 108rpx;
left: 50%;
transform: translateX(-50%);
top: 120rpx;
background-color:white;
background-color: white;
color: #f68515;
font-size: 24rpx;
z-index: 10;
.z{
.z {
width: 90%;
height: 58rpx;
background-color: #FFF6D7;
@ -295,12 +322,14 @@
margin-top: 40rpx;
}
}
.shangding{
.shangding {
width: 100%;
height: 230rpx;
position: relative;
}
.box-flex{
.box-flex {
width: 90%;
height: 120rpx;
border-bottom: 1rpx solid #ddd;
@ -308,30 +337,35 @@
margin-left: 50%;
transform: translateX(-50%);
position: relative;
.lefts{
.lefts {
width: 70%;
height: 120rpx;
.t{
.t {
display: block;
font-size: 30rpx;
}
.d{
.d {
display: block;
font-size: 24rpx;
color: #666;
margin-top: 20rpx;
}
}
.rights{
.rights {
position: absolute;
right:25rpx;
right: 25rpx;
top: 20rpx;
font-size: 40rpx;
color: red;
}
.rightsa{
.rightsa {
position: absolute;
right:25rpx;
right: 25rpx;
top: 20rpx;
font-size: 40rpx;
color: #428aff;
@ -340,35 +374,46 @@
}
}
}
.windowYear{
.windowYear {
width: 100%;
height: 100%;
position: fixed;
top: 0rpx;
background-color: rgba(0, 0, 0, 0.6);
.box{
.box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
transform: translate(-50%, -50%);
width: 500rpx;
max-height: 800rpx;
background-color: white;
border-bottom: 1rpx solid #ccc;
.title{
font-size: 36rpx;
width: 100%;
height: 100rpx;
line-height: 100rpx;
text-align: center;
}
.box-flexs{
.boxs {
width: 100%;
height: 100rpx;
text-align: center;
line-height: 100rpx;
background-color: white;
border-top: 1rpx solid #ccc;
position: relative;
.title {
font-size: 36rpx;
width: 100%;
height: 100rpx;
line-height: 100rpx;
text-align: center;
}
.box-flexs {
width: 100%;
height: 100rpx;
text-align: center;
line-height: 100rpx;
background-color: white;
border-top: 1rpx solid #ccc;
}
}
}
}
</style>
</style>

@ -1,17 +1,20 @@
<template>
<navigationStyle :titles="titles" :bgcolor="bgcolor" :color="color"></navigationStyle>
<navigationStyle :titles="titles" :bgcolor="bgcolor" :color="color" ></navigationStyle>
<view class="yijian">
<view class="top">
</view>
<view class="inp">
<textarea class="le" cols="30" rows="10" placeholder="您填写的信息越全,问题越可有效的解决哟~"></textarea>
<view class="box">
<textarea class="le" cols="30" rows="10" placeholder="您填写的信息越全,问题越可有效的解决哟~" v-model="yijian"></textarea>
<!-- <view class="box">
<img class="i" src="https://www.jiubaotongxue.love/image/demo79.png" alt="" />
</view>
</view> -->
</view>
<view class="inp2">
<input class="io" type="text" name="" id="" placeholder="请填写您的手机号,方便工作人员与你反馈">
<input class="io" type="text" name="" id="" placeholder="请填写您的手机号,方便工作人员与你反馈" v-model="tel">
</view>
<view class="btnSumit" @click="btnSumit">
提交
</view>
</view>
</template>
@ -20,9 +23,35 @@
import {
ref
} from 'vue'
import{getAdd} from '../../api/api'
const titles = ref('意见反馈')
const bgcolor = ref('#fff')
const color = ref('#000')
const yijian = ref("")
const tel = ref("")
const btnSumit = ()=>{
let phoneNumberPattern = /^(?:(?:\+|00)86)?1[3-9]\d{9}$/;
if(tel.value.match(phoneNumberPattern)){
getAdd({phoneNumber:tel.value,recommendation:yijian.value}).then(res=>{
console.log(res);
if(res.code===200){
uni.showToast({
icon:"none",
title:"提交成功",
duration:1000
})
}
})
}else{
uni.showToast({
icon:"none",
title:"请输入正确的手机号码",
duration:1000
})
}
}
</script>
<style lang="scss">
@ -96,5 +125,20 @@
font-size: 30rpx;
}
}
.btnSumit{
width: 80%;
height: 100rpx;
background: linear-gradient(276deg, #1C9FF7 0%, #1275F7 100%);
box-shadow: 0rpx 8rpx 18rpx 0rpx rgba(5, 128, 255, 0.2);
border-radius: 30rpx;
text-align: center;
line-height: 100rpx;
font-size: 30rpx;
color: white;
margin-top: 260rpx;
transform: translateX(-50%);
margin-left: 50%;
}
}
</style>

@ -13,7 +13,8 @@ import {
getBy,
getTimeStamps,
start,
shop
shop,
getTincheCoupons
} from '../api/api.js'
import dayjs from 'dayjs'
export const storindex = defineStore('storindex', () => {
@ -88,6 +89,13 @@ export const storindex = defineStore('storindex', () => {
p.value = 0
} else {
console.log("out_trade_no", res);
const qaq = await getTincheCoupons({
phoneNumber: uni.getStorageSync('phoneNumber')
})
uni.showToast({
icon:"none",
title:`${qaq.data[0]}`
})
const res1 = await getWxPlay({
appId: appid,
phone: uni.getStorageSync('phoneNumber'),
@ -353,6 +361,13 @@ export const storindex = defineStore('storindex', () => {
})
p.value = 0
} else {
const qaq = await getTincheCoupons({
phoneNumber: uni.getStorageSync('phoneNumber')
})
uni.showToast({
icon:"none",
title:`${qaq.data[0]}`
})
const res4 = await start({
mid: uni.getStorageSync('mid'),
price: 100,
@ -415,6 +430,13 @@ export const storindex = defineStore('storindex', () => {
})
p.value = 0
} else {
const qaq = await getTincheCoupons({
phoneNumber: uni.getStorageSync('phoneNumber')
})
uni.showToast({
icon:"none",
title:`${qaq.data[0]}`
})
const res4 = await start({
mid: uni.getStorageSync('mid'),
price: 100,

@ -34,11 +34,14 @@ const getCommodityShop = (data) => utils_request.reqs(`shop/device-commodity/lis
const getexChange = (data) => utils_request.reqs(`shop/device-commodity/commodity-exchange`, data, "POST");
const getCardUpdateInfo = (data) => utils_request.requests(`mobile/order/cardUpdateInfo`, data, "GET");
const getyouHui = (data) => utils_request.requests(`mobile/coupon/useCoupon`, data, "GET");
const getTincheCoupons = (data) => utils_request.reqs("shop/preferential-card/park-card-get", data, "GET");
const getAdd = (data) => utils_request.requests("mobile/recommendation/add", data, "POST");
exports.GetBranchInformation = GetBranchInformation;
exports.GetCarList = GetCarList;
exports.GetInformation = GetInformation;
exports.Getnetworklist = Getnetworklist;
exports.getAccessToken = getAccessToken;
exports.getAdd = getAdd;
exports.getBalancea = getBalancea;
exports.getBalanceaOrder = getBalanceaOrder;
exports.getBalanceaOrderUpdata = getBalanceaOrderUpdata;
@ -59,6 +62,7 @@ exports.getRecharges = getRecharges;
exports.getRechargesCard = getRechargesCard;
exports.getShopid = getShopid;
exports.getTimeStamps = getTimeStamps;
exports.getTincheCoupons = getTincheCoupons;
exports.getWxPlay = getWxPlay;
exports.getaddCar = getaddCar;
exports.getexChange = getexChange;

@ -2,6 +2,7 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const common_vendor = require("./common/vendor.js");
const utils_shore = require("./utils/shore.js");
require("./utils/interceptor.js");
if (!Math) {
"./pages/index/index.js";
"./pages/handle/handle.js";

@ -43,18 +43,20 @@ const _sfc_main = {
e: common_vendor.o(add),
f: common_vendor.f(common_vendor.unref(couponsData), (item, index, i0) => {
return common_vendor.e({
a: item.status === 0 && headerindex.value === 1
}, item.status === 0 && headerindex.value === 1 ? {
b: common_vendor.t(item.couponName),
c: common_vendor.t(item.endTime),
d: common_vendor.t(item.rule),
e: common_vendor.o(($event) => xiche(index), item.id)
} : {}, {
f: item.status === 2 && headerindex.value === 2
}, item.status === 2 && headerindex.value === 2 ? {} : {}, {
g: item.status === 2 && headerindex.value === 2
}, item.status === 2 && headerindex.value === 2 ? {} : {}, {
h: item.id
a: item.status === 1 && headerindex.value === 1
}, item.status === 1 && headerindex.value === 1 ? common_vendor.e({
b: item.couponName === "拉新洗车券"
}, item.couponName === "拉新洗车券" ? {} : {}, {
c: item.couponName === "拉新洗车券"
}, item.couponName === "拉新洗车券" ? {} : {}, {
d: common_vendor.t(item.couponName),
e: common_vendor.t(item.endTime),
f: common_vendor.t(item.rule),
g: common_vendor.o(($event) => xiche(index), item.id)
}) : {}, {
h: item.status === 0 && headerindex.value === 2
}, item.status === 0 && headerindex.value === 2 ? {} : {}, {
i: item.id
});
})
};

@ -1 +1 @@
<navigation-style wx:if="{{a}}" u-i="89941216-0" bind:__l="__l" u-p="{{a}}"></navigation-style><view class="Coupons"><view class="tops"></view><view class="secondBright-header"><view class="{{['header-left', b && 'headerActive']}}" bindtap="{{c}}"> 可用券 </view><view class="{{['header-right', d && 'headerActive']}}" bindtap="{{e}}"> 失效券 </view></view><scroll-view class="secondaryCard-auto" scroll-y="true"><view class="big"><view wx:for="{{f}}" wx:for-item="item" wx:key="h" class="card"><view wx:if="{{item.a}}" class="boxs"><view class="boxs-left"><text class="boxs-left-top">新</text><text class="boxs-left-tops">拉新券</text></view><view class="boxs-right"><view class="boxs-right-top">{{item.b}}</view><view class="boxs-right-tops">{{item.c}}</view><view class="line"></view><view class="boxs-right-bottom">{{item.d}}</view></view><view class="boxs-Btn" bindtap="{{item.e}}"> 使用 </view></view><view wx:if="{{item.f}}" class="boxs"><view class="boxs-left"><text class="boxs-left-top">团</text><text class="boxs-left-tops">团购券</text></view><view class="boxs-right"><view class="boxs-right-top"> 抖音团购20元券 </view><view class="boxs-right-tops"> 2020.06.09-2020.07.31 </view><view class="line"></view><view class="boxs-right-bottom"> 每次上线使用20分钟 </view></view><view class="boxs-Btns boxs-BtnsActive"></view></view><view wx:if="{{item.g}}" class="boxs"><view class="boxs-left"><text class="boxs-left-top">团</text><text class="boxs-left-tops">团购券</text></view><view class="boxs-right"><view class="boxs-right-top"> 抖音团购20元券 </view><view class="boxs-right-tops"> 2020.06.09-2020.07.31 </view><view class="line"></view><view class="boxs-right-bottom"> 每次上线使用20分钟 </view></view><view class="boxs-Btns boxs-BtnsActives"></view></view></view></view></scroll-view></view>
<navigation-style wx:if="{{a}}" u-i="89941216-0" bind:__l="__l" u-p="{{a}}"></navigation-style><view class="Coupons"><view class="tops"></view><view class="secondBright-header"><view class="{{['header-left', b && 'headerActive']}}" bindtap="{{c}}"> 可用券 </view><view class="{{['header-right', d && 'headerActive']}}" bindtap="{{e}}"> 失效券 </view></view><scroll-view class="secondaryCard-auto" scroll-y="true"><view class="big"><view wx:for="{{f}}" wx:for-item="item" wx:key="i" class="card"><view wx:if="{{item.a}}" class="boxs"><view class="boxs-left"><text wx:if="{{item.b}}" class="boxs-left-top">新</text><text wx:if="{{item.c}}" class="boxs-left-tops">拉新券</text></view><view class="boxs-right"><view class="boxs-right-top">{{item.d}}</view><view class="boxs-right-tops">{{item.e}}</view><view class="line"></view><view class="boxs-right-bottom">{{item.f}}</view></view><view class="boxs-Btn" bindtap="{{item.g}}"> 使用 </view></view><view wx:if="{{item.h}}" class="boxs"><view class="boxs-left"><text class="boxs-left-top">团</text><text class="boxs-left-tops">团购券</text></view><view class="boxs-right"><view class="boxs-right-top"> 抖音团购20元券 </view><view class="boxs-right-tops"> 2020.06.09-2020.07.31 </view><view class="line"></view><view class="boxs-right-bottom"> 每次上线使用20分钟 </view></view><view class="boxs-Btns boxs-BtnsActives"></view></view></view></view></scroll-view></view>

@ -40,6 +40,10 @@ const _sfc_main = {
const suffix = phoneNum.value.slice(3 + 5);
phoneNum.value = prefix + "*****" + suffix;
console.log(phoneNum.value);
} else {
common_vendor.index.navigateTo({
url: "/pages/login/login"
});
}
});
common_vendor.onShow(() => {

@ -7,7 +7,9 @@ const _sfc_main = {
setup(__props) {
const m = stor_my_my.my();
m.getInformation();
const { Information } = common_vendor.storeToRefs(m);
const {
Information
} = common_vendor.storeToRefs(m);
const s = stor_shop_shop.shopStor();
s.getShopData();
const {

@ -1 +1 @@
<view class="myIntegral"><view class="top"><image class="left" src="https://www.jiubaotongxue.love/image/nav10.png" alt="" bindtap="{{a}}"/><text class="wen">积分明细</text></view><view class="header"><view class="t"> 积分说明 > </view><view class="c"> 我的总积分 </view><view class="b">{{b}}</view></view><view class="title" bindtap="{{d}}">{{c}}<image class="r" src="https://www.jiubaotongxue.love/image/demo71.png" alt=""/></view><scroll-view class="auto-mingxi" scroll-y="true"><view class="box"><view class="title"><view class="{{['left', e && 'active']}}" bindtap="{{f}}"> 积分获取 </view><view class="{{['right', g && 'active']}}" bindtap="{{h}}"> 积分使用 </view></view><view wx:if="{{i}}" class="title-zong"><view class="z"> 月总获取积分1234 </view></view><view wx:if="{{j}}" class="title-zongs"><view class="z"> 月总获取积分1234 </view></view><view class="shangding"></view><block wx:if="{{k}}"><view wx:for="{{l}}" wx:for-item="item" wx:key="d" class="box-flex"><view class="lefts"><text class="t">{{item.a}}</text><text class="d">{{item.b}}</text></view><view class="rightsa"> +{{item.c}}</view></view></block><block wx:if="{{m}}"><view wx:for="{{n}}" wx:for-item="item" wx:key="d" class="box-flex"><view class="lefts"><text class="t">{{item.a}}</text><text class="d">{{item.b}}</text></view><view class="rights"> -{{item.c}}</view></view></block></view></scroll-view></view><view wx:if="{{o}}" class="windowYear" bindtap="{{q}}"><view class="box"><view class="title"> 请选择日期 </view><view wx:for="{{p}}" wx:for-item="item" wx:key="b" class="box-flexs" bindtap="{{item.c}}">{{item.a}}</view></view></view>
<view class="myIntegral"><view class="top"><image class="left" src="https://www.jiubaotongxue.love/image/nav10.png" alt="" bindtap="{{a}}"/><text class="wen">积分明细</text></view><view class="header"><view class="t"> 积分说明 > </view><view class="c"> 我的总积分 </view><view class="b">{{b}}</view></view><view class="title" bindtap="{{d}}">{{c}}<image class="r" src="https://www.jiubaotongxue.love/image/demo71.png" alt=""/></view><scroll-view class="auto-mingxi" scroll-y="true"><view class="box"><view class="title"><view class="{{['left', e && 'active']}}" bindtap="{{f}}"> 积分获取 </view><view class="{{['right', g && 'active']}}" bindtap="{{h}}"> 积分使用 </view></view><view wx:if="{{i}}" class="title-zong"><view class="z"> 月总获取积分1234 </view></view><view wx:if="{{j}}" class="title-zongs"><view class="z"> 月总获取积分1234 </view></view><view class="shangding"></view><block wx:if="{{k}}"><view wx:for="{{l}}" wx:for-item="item" wx:key="d" class="box-flex"><view class="lefts"><text class="t">{{item.a}}</text><text class="d">{{item.b}}</text></view><view class="rightsa"> +{{item.c}}</view></view></block><block wx:if="{{m}}"><view wx:for="{{n}}" wx:for-item="item" wx:key="d" class="box-flex"><view class="lefts"><text class="t">{{item.a}}</text><text class="d">{{item.b}}</text></view><view class="rights"> -{{item.c}}</view></view></block></view></scroll-view></view><view wx:if="{{o}}" class="windowYear" bindtap="{{q}}"><scroll-view scroll-y="true" class="box"><view class="boxs"><view class="title"> 请选择日期 </view><view wx:for="{{p}}" wx:for-item="item" wx:key="b" class="box-flexs" bindtap="{{item.c}}">{{item.a}}</view></view></scroll-view></view>

@ -252,17 +252,22 @@
left: 50%;
transform: translate(-50%, -50%);
width: 500rpx;
max-height: 800rpx;
background-color: white;
border-bottom: 1rpx solid #ccc;
}
.windowYear .box .title {
.windowYear .box .boxs {
width: 100%;
position: relative;
}
.windowYear .box .boxs .title {
font-size: 36rpx;
width: 100%;
height: 100rpx;
line-height: 100rpx;
text-align: center;
}
.windowYear .box .box-flexs {
.windowYear .box .boxs .box-flexs {
width: 100%;
height: 100rpx;
text-align: center;

@ -1,5 +1,6 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_navigationStyle2 = common_vendor.resolveComponent("navigationStyle");
_easycom_navigationStyle2();
@ -14,13 +15,41 @@ const _sfc_main = {
const titles = common_vendor.ref("意见反馈");
const bgcolor = common_vendor.ref("#fff");
const color = common_vendor.ref("#000");
const yijian = common_vendor.ref("");
const tel = common_vendor.ref("");
const btnSumit = () => {
let phoneNumberPattern = /^(?:(?:\+|00)86)?1[3-9]\d{9}$/;
if (tel.value.match(phoneNumberPattern)) {
api_api.getAdd({ phoneNumber: tel.value, recommendation: yijian.value }).then((res) => {
console.log(res);
if (res.code === 200) {
common_vendor.index.showToast({
icon: "none",
title: "提交成功",
duration: 1e3
});
}
});
} else {
common_vendor.index.showToast({
icon: "none",
title: "请输入正确的手机号码",
duration: 1e3
});
}
};
return (_ctx, _cache) => {
return {
a: common_vendor.p({
titles: titles.value,
bgcolor: bgcolor.value,
color: color.value
})
}),
b: yijian.value,
c: common_vendor.o(($event) => yijian.value = $event.detail.value),
d: tel.value,
e: common_vendor.o(($event) => tel.value = $event.detail.value),
f: common_vendor.o(btnSumit)
};
};
}

@ -1 +1 @@
<navigation-style wx:if="{{a}}" u-i="185f2d19-0" bind:__l="__l" u-p="{{a}}"></navigation-style><view class="yijian"><view class="top"></view><view class="inp"><textarea class="le" cols="30" rows="10" placeholder="您填写的信息越全,问题越可有效的解决哟~"></textarea><view class="box"><image class="i" src="https://www.jiubaotongxue.love/image/demo79.png" alt=""/></view></view><view class="inp2"><input class="io" type="text" name="" id="" placeholder="请填写您的手机号,方便工作人员与你反馈"></input></view></view>
<navigation-style wx:if="{{a}}" u-i="185f2d19-0" bind:__l="__l" u-p="{{a}}"></navigation-style><view class="yijian"><view class="top"></view><view class="inp"><block wx:if="{{r0}}"><textarea class="le" cols="30" rows="10" placeholder="您填写的信息越全,问题越可有效的解决哟~" value="{{b}}" bindinput="{{c}}"></textarea></block></view><view class="inp2"><input class="io" type="text" name="" id="" placeholder="请填写您的手机号,方便工作人员与你反馈" value="{{d}}" bindinput="{{e}}"></input></view><view class="btnSumit" bindtap="{{f}}"> 提交 </view></view>

@ -87,4 +87,18 @@
box-sizing: border-box;
padding-left: 30rpx;
font-size: 30rpx;
}
.yijian .btnSumit {
width: 80%;
height: 100rpx;
background: linear-gradient(276deg, #1C9FF7 0%, #1275F7 100%);
box-shadow: 0rpx 8rpx 18rpx 0rpx rgba(5, 128, 255, 0.2);
border-radius: 30rpx;
text-align: center;
line-height: 100rpx;
font-size: 30rpx;
color: white;
margin-top: 260rpx;
transform: translateX(-50%);
margin-left: 50%;
}

@ -54,6 +54,13 @@ const storindex = common_vendor.defineStore("storindex", () => {
p.value = 0;
} else {
console.log("out_trade_no", res);
const qaq = await api_api.getTincheCoupons({
phoneNumber: common_vendor.index.getStorageSync("phoneNumber")
});
common_vendor.index.showToast({
icon: "none",
title: `${qaq.data[0]}`
});
const res1 = await api_api.getWxPlay({
appId: common_baseurl.appid,
phone: common_vendor.index.getStorageSync("phoneNumber"),
@ -307,6 +314,13 @@ const storindex = common_vendor.defineStore("storindex", () => {
});
p.value = 0;
} else {
const qaq = await api_api.getTincheCoupons({
phoneNumber: common_vendor.index.getStorageSync("phoneNumber")
});
common_vendor.index.showToast({
icon: "none",
title: `${qaq.data[0]}`
});
const res4 = await api_api.start({
mid: common_vendor.index.getStorageSync("mid"),
price: 100,
@ -371,6 +385,13 @@ const storindex = common_vendor.defineStore("storindex", () => {
});
p.value = 0;
} else {
const qaq = await api_api.getTincheCoupons({
phoneNumber: common_vendor.index.getStorageSync("phoneNumber")
});
common_vendor.index.showToast({
icon: "none",
title: `${qaq.data[0]}`
});
const res4 = await api_api.start({
mid: common_vendor.index.getStorageSync("mid"),
price: 100,

@ -0,0 +1,27 @@
"use strict";
const common_vendor = require("../common/vendor.js");
let needLogin = ["/pages/index/index", "/pages/handle/handle", "/pages/login/login", "/pages/sweep/sweep", "/pages/networkDetail/networkDetail"];
let list = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
list.forEach((item) => {
console.log(item, "router list item");
common_vendor.index.addInterceptor(item, {
invoke(e) {
const token = common_vendor.index.getStorageSync("phoneNumber");
const url = e.url.split("?")[0];
if (!needLogin.includes(url) && !token) {
common_vendor.index.navigateTo({
url: "/pages/login/login",
success: (res) => {
},
fail: (res) => {
}
});
return false;
}
return true;
},
fail(err) {
console.log(err);
}
});
});

@ -1,4 +1,4 @@
let needLogin = ['/pages/home/home','/pages/list/list','/pages/my/my','/pages/login/login','/pages/recharge/recharge','/pages/storeDetails/storeDetails']
let needLogin = ['/pages/index/index','/pages/handle/handle','/pages/login/login','/pages/sweep/sweep','/pages/networkDetail/networkDetail']
let list = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
list.forEach(item => { //用遍历的方式分别为,uni.navigateTo,uni.redirectTo,uni.reLaunch,uni.switchTab这4个路由方法添加拦截器

Loading…
Cancel
Save