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

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

@ -98,3 +98,7 @@ export const getexChange=(data)=>reqs(`shop/device-commodity/commodity-exchange`
export const getCardUpdateInfo=(data)=>requests(`mobile/order/cardUpdateInfo`,data,"GET") 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 {createPinia}from 'pinia'
import {request} from './utils/request.js' import {request} from './utils/request.js'
import share from './utils/shore.js' import share from './utils/shore.js'
// import '@/utils/interceptor.js' import '@/utils/interceptor.js'
// #ifndef VUE3 // #ifndef VUE3
import Vue from 'vue' import Vue from 'vue'

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

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

@ -63,7 +63,8 @@
</scroll-view> </scroll-view>
</view> </view>
<view class="windowYear" v-if="years===1" @click="close"> <view class="windowYear" v-if="years===1" @click="close">
<view class="box"> <scroll-view scroll-y="true" class="box">
<view class="boxs">
<view class="title"> <view class="title">
请选择日期 请选择日期
</view> </view>
@ -71,21 +72,29 @@
{{item.date}} {{item.date}}
</view> </view>
</view> </view>
</scroll-view>
</view> </view>
</template> </template>
<script setup> <script setup>
import {ref} from 'vue' import {
ref
} from 'vue'
import { import {
storeToRefs storeToRefs
} from 'pinia'; } from 'pinia';
import { import {
shopStor shopStor
} from '../../stor/shop/shop.js' } from '../../stor/shop/shop.js'
import {my} from '../../stor/my/my.js' import {
my
} from '../../stor/my/my.js'
const m = my() const m = my()
m.getInformation() m.getInformation()
const {Information} =storeToRefs(m) const {
Information
} = storeToRefs(m)
const s = shopStor() const s = shopStor()
s.getShopData() s.getShopData()
const { const {
@ -125,6 +134,7 @@
height: 100%; height: 100%;
position: absolute; position: absolute;
background-color: #f1f4fb; background-color: #f1f4fb;
.top { .top {
width: 100%; width: 100%;
height: 274rpx; height: 274rpx;
@ -133,6 +143,7 @@
background-repeat: no-repeat; background-repeat: no-repeat;
position: fixed; position: fixed;
top: 0; top: 0;
.left { .left {
position: fixed; position: fixed;
width: 64rpx; width: 64rpx;
@ -141,6 +152,7 @@
left: 20rpx; left: 20rpx;
} }
.wen { .wen {
position: fixed; position: fixed;
display: block; display: block;
@ -149,6 +161,7 @@
top: 106rpx; top: 106rpx;
} }
} }
.header { .header {
width: 92%; width: 92%;
height: 248rpx; height: 248rpx;
@ -158,6 +171,7 @@
margin-top: 176rpx; margin-top: 176rpx;
transform: translateX(-50%); transform: translateX(-50%);
margin-left: 50%; margin-left: 50%;
.t { .t {
width: 100%; width: 100%;
height: 60rpx; height: 60rpx;
@ -169,6 +183,7 @@
line-height: 60rpx; line-height: 60rpx;
color: #B98900; color: #B98900;
} }
.c { .c {
width: 100%; width: 100%;
height: 30rpx; height: 30rpx;
@ -178,6 +193,7 @@
box-sizing: border-box; box-sizing: border-box;
padding-left: 60rpx; padding-left: 60rpx;
} }
.b { .b {
width: 100%; width: 100%;
height: 74rpx; height: 74rpx;
@ -187,6 +203,7 @@
margin-top: 5rpx; margin-top: 5rpx;
} }
} }
.title { .title {
width: 100%; width: 100%;
height: 34rpx; height: 34rpx;
@ -196,11 +213,13 @@
box-sizing: border-box; box-sizing: border-box;
padding-left: 50rpx; padding-left: 50rpx;
position: relative; position: relative;
.r { .r {
width: 24rpx; width: 24rpx;
height: 24rpx; height: 24rpx;
} }
} }
.auto-mingxi { .auto-mingxi {
width: 90%; width: 90%;
transform: translateX(-50%); transform: translateX(-50%);
@ -210,11 +229,13 @@
margin-top: 24rpx; margin-top: 24rpx;
border-radius: 20rpx; border-radius: 20rpx;
position: relative; position: relative;
.box { .box {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: relative; position: relative;
border-radius: 20rpx; border-radius: 20rpx;
.title { .title {
width: 100%; width: 100%;
height: 114rpx; height: 114rpx;
@ -228,6 +249,7 @@
background-color: white; background-color: white;
z-index: 10; z-index: 10;
border-radius: 20rpx; border-radius: 20rpx;
.left { .left {
width: 192rpx; width: 192rpx;
height: 110rpx; height: 110rpx;
@ -236,6 +258,7 @@
margin-left: 70rpx; margin-left: 70rpx;
// border-bottom:9rpx solid #428aff ; // border-bottom:9rpx solid #428aff ;
} }
.right { .right {
width: 192rpx; width: 192rpx;
height: 110rpx; height: 110rpx;
@ -244,10 +267,12 @@
margin-right: 70rpx; margin-right: 70rpx;
} }
.active { .active {
border-bottom: 7rpx solid #428aff; border-bottom: 7rpx solid #428aff;
} }
} }
.title-zong { .title-zong {
position: fixed; position: fixed;
width: 100%; width: 100%;
@ -272,6 +297,7 @@
background-color: #FFF6D7; background-color: #FFF6D7;
} }
} }
.title-zongs { .title-zongs {
position: fixed; position: fixed;
width: 100%; width: 100%;
@ -283,6 +309,7 @@
color: #f68515; color: #f68515;
font-size: 24rpx; font-size: 24rpx;
z-index: 10; z-index: 10;
.z { .z {
width: 90%; width: 90%;
height: 58rpx; height: 58rpx;
@ -295,11 +322,13 @@
margin-top: 40rpx; margin-top: 40rpx;
} }
} }
.shangding { .shangding {
width: 100%; width: 100%;
height: 230rpx; height: 230rpx;
position: relative; position: relative;
} }
.box-flex { .box-flex {
width: 90%; width: 90%;
height: 120rpx; height: 120rpx;
@ -308,13 +337,16 @@
margin-left: 50%; margin-left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
position: relative; position: relative;
.lefts { .lefts {
width: 70%; width: 70%;
height: 120rpx; height: 120rpx;
.t { .t {
display: block; display: block;
font-size: 30rpx; font-size: 30rpx;
} }
.d { .d {
display: block; display: block;
font-size: 24rpx; font-size: 24rpx;
@ -322,6 +354,7 @@
margin-top: 20rpx; margin-top: 20rpx;
} }
} }
.rights { .rights {
position: absolute; position: absolute;
right: 25rpx; right: 25rpx;
@ -329,6 +362,7 @@
font-size: 40rpx; font-size: 40rpx;
color: red; color: red;
} }
.rightsa { .rightsa {
position: absolute; position: absolute;
right: 25rpx; right: 25rpx;
@ -340,20 +374,28 @@
} }
} }
} }
.windowYear { .windowYear {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: fixed; position: fixed;
top: 0rpx; top: 0rpx;
background-color: rgba(0, 0, 0, 0.6); background-color: rgba(0, 0, 0, 0.6);
.box { .box {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 500rpx; width: 500rpx;
max-height: 800rpx;
background-color: white; background-color: white;
border-bottom: 1rpx solid #ccc; border-bottom: 1rpx solid #ccc;
.boxs {
width: 100%;
position: relative;
.title { .title {
font-size: 36rpx; font-size: 36rpx;
width: 100%; width: 100%;
@ -361,6 +403,7 @@
line-height: 100rpx; line-height: 100rpx;
text-align: center; text-align: center;
} }
.box-flexs { .box-flexs {
width: 100%; width: 100%;
height: 100rpx; height: 100rpx;
@ -371,4 +414,6 @@
} }
} }
} }
}
</style> </style>

@ -5,13 +5,16 @@
</view> </view>
<view class="inp"> <view class="inp">
<textarea class="le" cols="30" rows="10" placeholder="您填写的信息越全,问题越可有效的解决哟~"></textarea> <textarea class="le" cols="30" rows="10" placeholder="您填写的信息越全,问题越可有效的解决哟~" v-model="yijian"></textarea>
<view class="box"> <!-- <view class="box">
<img class="i" src="https://www.jiubaotongxue.love/image/demo79.png" alt="" /> <img class="i" src="https://www.jiubaotongxue.love/image/demo79.png" alt="" />
</view> </view> -->
</view> </view>
<view class="inp2"> <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>
</view> </view>
</template> </template>
@ -20,9 +23,35 @@
import { import {
ref ref
} from 'vue' } from 'vue'
import{getAdd} from '../../api/api'
const titles = ref('意见反馈') const titles = ref('意见反馈')
const bgcolor = ref('#fff') const bgcolor = ref('#fff')
const color = ref('#000') 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> </script>
<style lang="scss"> <style lang="scss">
@ -96,5 +125,20 @@
font-size: 30rpx; 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> </style>

@ -13,7 +13,8 @@ import {
getBy, getBy,
getTimeStamps, getTimeStamps,
start, start,
shop shop,
getTincheCoupons
} from '../api/api.js' } from '../api/api.js'
import dayjs from 'dayjs' import dayjs from 'dayjs'
export const storindex = defineStore('storindex', () => { export const storindex = defineStore('storindex', () => {
@ -88,6 +89,13 @@ export const storindex = defineStore('storindex', () => {
p.value = 0 p.value = 0
} else { } else {
console.log("out_trade_no", res); 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({ const res1 = await getWxPlay({
appId: appid, appId: appid,
phone: uni.getStorageSync('phoneNumber'), phone: uni.getStorageSync('phoneNumber'),
@ -353,6 +361,13 @@ export const storindex = defineStore('storindex', () => {
}) })
p.value = 0 p.value = 0
} else { } else {
const qaq = await getTincheCoupons({
phoneNumber: uni.getStorageSync('phoneNumber')
})
uni.showToast({
icon:"none",
title:`${qaq.data[0]}`
})
const res4 = await start({ const res4 = await start({
mid: uni.getStorageSync('mid'), mid: uni.getStorageSync('mid'),
price: 100, price: 100,
@ -415,6 +430,13 @@ export const storindex = defineStore('storindex', () => {
}) })
p.value = 0 p.value = 0
} else { } else {
const qaq = await getTincheCoupons({
phoneNumber: uni.getStorageSync('phoneNumber')
})
uni.showToast({
icon:"none",
title:`${qaq.data[0]}`
})
const res4 = await start({ const res4 = await start({
mid: uni.getStorageSync('mid'), mid: uni.getStorageSync('mid'),
price: 100, 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 getexChange = (data) => utils_request.reqs(`shop/device-commodity/commodity-exchange`, data, "POST");
const getCardUpdateInfo = (data) => utils_request.requests(`mobile/order/cardUpdateInfo`, data, "GET"); const getCardUpdateInfo = (data) => utils_request.requests(`mobile/order/cardUpdateInfo`, data, "GET");
const getyouHui = (data) => utils_request.requests(`mobile/coupon/useCoupon`, 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.GetBranchInformation = GetBranchInformation;
exports.GetCarList = GetCarList; exports.GetCarList = GetCarList;
exports.GetInformation = GetInformation; exports.GetInformation = GetInformation;
exports.Getnetworklist = Getnetworklist; exports.Getnetworklist = Getnetworklist;
exports.getAccessToken = getAccessToken; exports.getAccessToken = getAccessToken;
exports.getAdd = getAdd;
exports.getBalancea = getBalancea; exports.getBalancea = getBalancea;
exports.getBalanceaOrder = getBalanceaOrder; exports.getBalanceaOrder = getBalanceaOrder;
exports.getBalanceaOrderUpdata = getBalanceaOrderUpdata; exports.getBalanceaOrderUpdata = getBalanceaOrderUpdata;
@ -59,6 +62,7 @@ exports.getRecharges = getRecharges;
exports.getRechargesCard = getRechargesCard; exports.getRechargesCard = getRechargesCard;
exports.getShopid = getShopid; exports.getShopid = getShopid;
exports.getTimeStamps = getTimeStamps; exports.getTimeStamps = getTimeStamps;
exports.getTincheCoupons = getTincheCoupons;
exports.getWxPlay = getWxPlay; exports.getWxPlay = getWxPlay;
exports.getaddCar = getaddCar; exports.getaddCar = getaddCar;
exports.getexChange = getexChange; exports.getexChange = getexChange;

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

@ -43,18 +43,20 @@ const _sfc_main = {
e: common_vendor.o(add), e: common_vendor.o(add),
f: common_vendor.f(common_vendor.unref(couponsData), (item, index, i0) => { f: common_vendor.f(common_vendor.unref(couponsData), (item, index, i0) => {
return common_vendor.e({ return common_vendor.e({
a: item.status === 0 && headerindex.value === 1 a: item.status === 1 && headerindex.value === 1
}, item.status === 0 && headerindex.value === 1 ? { }, item.status === 1 && headerindex.value === 1 ? common_vendor.e({
b: common_vendor.t(item.couponName), b: item.couponName === "拉新洗车券"
c: common_vendor.t(item.endTime), }, item.couponName === "拉新洗车券" ? {} : {}, {
d: common_vendor.t(item.rule), c: item.couponName === "拉新洗车券"
e: common_vendor.o(($event) => xiche(index), item.id) }, item.couponName === "拉新洗车券" ? {} : {}, {
} : {}, { d: common_vendor.t(item.couponName),
f: item.status === 2 && headerindex.value === 2 e: common_vendor.t(item.endTime),
}, item.status === 2 && headerindex.value === 2 ? {} : {}, { f: common_vendor.t(item.rule),
g: item.status === 2 && headerindex.value === 2 g: common_vendor.o(($event) => xiche(index), item.id)
}, item.status === 2 && headerindex.value === 2 ? {} : {}, { }) : {}, {
h: 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); const suffix = phoneNum.value.slice(3 + 5);
phoneNum.value = prefix + "*****" + suffix; phoneNum.value = prefix + "*****" + suffix;
console.log(phoneNum.value); console.log(phoneNum.value);
} else {
common_vendor.index.navigateTo({
url: "/pages/login/login"
});
} }
}); });
common_vendor.onShow(() => { common_vendor.onShow(() => {

@ -7,7 +7,9 @@ const _sfc_main = {
setup(__props) { setup(__props) {
const m = stor_my_my.my(); const m = stor_my_my.my();
m.getInformation(); m.getInformation();
const { Information } = common_vendor.storeToRefs(m); const {
Information
} = common_vendor.storeToRefs(m);
const s = stor_shop_shop.shopStor(); const s = stor_shop_shop.shopStor();
s.getShopData(); s.getShopData();
const { 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%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 500rpx; width: 500rpx;
max-height: 800rpx;
background-color: white; background-color: white;
border-bottom: 1rpx solid #ccc; border-bottom: 1rpx solid #ccc;
} }
.windowYear .box .title { .windowYear .box .boxs {
width: 100%;
position: relative;
}
.windowYear .box .boxs .title {
font-size: 36rpx; font-size: 36rpx;
width: 100%; width: 100%;
height: 100rpx; height: 100rpx;
line-height: 100rpx; line-height: 100rpx;
text-align: center; text-align: center;
} }
.windowYear .box .box-flexs { .windowYear .box .boxs .box-flexs {
width: 100%; width: 100%;
height: 100rpx; height: 100rpx;
text-align: center; text-align: center;

@ -1,5 +1,6 @@
"use strict"; "use strict";
const common_vendor = require("../../common/vendor.js"); const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) { if (!Array) {
const _easycom_navigationStyle2 = common_vendor.resolveComponent("navigationStyle"); const _easycom_navigationStyle2 = common_vendor.resolveComponent("navigationStyle");
_easycom_navigationStyle2(); _easycom_navigationStyle2();
@ -14,13 +15,41 @@ const _sfc_main = {
const titles = common_vendor.ref("意见反馈"); const titles = common_vendor.ref("意见反馈");
const bgcolor = common_vendor.ref("#fff"); const bgcolor = common_vendor.ref("#fff");
const color = common_vendor.ref("#000"); 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 (_ctx, _cache) => {
return { return {
a: common_vendor.p({ a: common_vendor.p({
titles: titles.value, titles: titles.value,
bgcolor: bgcolor.value, bgcolor: bgcolor.value,
color: color.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>

@ -88,3 +88,17 @@
padding-left: 30rpx; padding-left: 30rpx;
font-size: 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; p.value = 0;
} else { } else {
console.log("out_trade_no", res); 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({ const res1 = await api_api.getWxPlay({
appId: common_baseurl.appid, appId: common_baseurl.appid,
phone: common_vendor.index.getStorageSync("phoneNumber"), phone: common_vendor.index.getStorageSync("phoneNumber"),
@ -307,6 +314,13 @@ const storindex = common_vendor.defineStore("storindex", () => {
}); });
p.value = 0; p.value = 0;
} else { } 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({ const res4 = await api_api.start({
mid: common_vendor.index.getStorageSync("mid"), mid: common_vendor.index.getStorageSync("mid"),
price: 100, price: 100,
@ -371,6 +385,13 @@ const storindex = common_vendor.defineStore("storindex", () => {
}); });
p.value = 0; p.value = 0;
} else { } 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({ const res4 = await api_api.start({
mid: common_vendor.index.getStorageSync("mid"), mid: common_vendor.index.getStorageSync("mid"),
price: 100, 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"]; let list = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
list.forEach(item => { //用遍历的方式分别为,uni.navigateTo,uni.redirectTo,uni.reLaunch,uni.switchTab这4个路由方法添加拦截器 list.forEach(item => { //用遍历的方式分别为,uni.navigateTo,uni.redirectTo,uni.reLaunch,uni.switchTab这4个路由方法添加拦截器

Loading…
Cancel
Save