Commit 9c382c9f authored by xieyishang's avatar xieyishang

sss~

parent bef49d60
<template>
<!-- 弹窗组件 点击确认和取消事件 -->
<view class="VerifyIdentity">
<uni-popup :show="showtip" type="center" :mask-click="true" @change="change">
<view class="tipboxs">
<view class="tipboxs_body" >
<view class="headsboxs">
{{title}}
</view>
<view class="textmsgs">{{infotext}} </view>
<!-- <view class="textmsgs">你需要先去小程序或APP 绑定手机号码</view> -->
<view class="tipboxs_foot flex">
<view class="submitbtns submitbtns1" @tap="cancel" >取消</view>
<view class="submitbtns" @tap="confirm" >确定</view>
</view>
</view>
<!-- <image @tap="cancel" class="Closeicon" :src="joinurl+'/images/uts/guanbi.png'" mode=""></image> -->
</view>
</uni-popup>
</view>
</template>
<script>
import uniPopup from '@/components/uni-popup/uni-popup.vue';
import {userSendSms} from "@/utils/api/api.js";
export default{
//props:["title","content"],
props:{
title:{
type:String,
default:""
},
infotext:{
type:String,
default:""
},
},
name:"moduPopup",
components:{
uniPopup,
},
computed:{
joinurl(){
return this.$store.state.joinurl;
}
},
data(){
return{
showtip:false,
datesis:60,
phone:this.value,
code:"",
}
},
methods:{
changeinput(e){
console.info(e.detail.value);
this.phone = e.detail.value;
// this.setValue(e.detail.value);
},
//发送验证码按钮点击后
shendcodefun(){
console.info("124");
if (!(/^1[3456789]\d{9}$/.test(this.value))) {
this.$api.msg("手机号码有误");
} else {
userSendSms({
mobile: this.value,
smstype:this.type,//验证码类型(默认修改密码:sms_user_newpwd,提现:sms_withdraw)
}).then((res)=>{
if(res.code==0){
this.$api.msg(res.msg);
//倒计时代码
let timeid = setInterval(() => {
this.datesis--;
if (this.datesis <= 0) {
clearInterval(timeid);
this.datesis = 60;
}
}, 1000)
}else{
this.$api.msg(res.msg);
}
}).catch((e)=>{
console.info(e);
this.$api.msg(e);
})
}
},
//提示弹窗
change(e) {
console.log('是否打开:' + e.show)
if (!e.show) {
this.showtip = false
}
},
cancel(type) {//关闭
this.showtip = false;
this.$emit("cancel",{});//触发回调方法
},
show(){
this.showtip = true;
},
//确认发布点击
confirm(){
this.showtip = false;
this.$emit("confirm",{});//触发回调方法
}
},
watch:{
value(e){
console.info(e);
}
}
}
</script>
<style lang="scss">
.VerifyIdentity{
width: 510upx;
}
.tipboxs{
.heads{
.headimg{
height: 300upx;
width: 100%;
}
}
.fromboxs{
margin-top: 30upx;
.lablecell{
height: 88upx;
line-height: 88upx;
font-size: 30upx;
padding:0 24upx ;
border-bottom: 1px solid #f5f5f5;
.cellname{
margin-right: 10upx;
width: 140upx;
}
.inputbox{
position: relative;
height: 88upx;
.input{
height: 88upx;
line-height: 88upx;
text-align: left;
}
.codetag{
position: absolute;
top: 14upx;
right: 0;
z-index: 99;
color:#FFFFFF;
background: #ff6900;
font-size: 28upx;
padding: 0 30upx;
height: 60upx;
line-height: 60upx;
box-sizing: border-box;
border-radius: 4upx;
}
.codetagtwo{
background: #999;
}
}
}
}
.tipboxs_body{
width: 600upx;
border-radius: 14upx;
margin-top: -20upx;
// padding: 20upx;
// padding-top: 30upx;
background: #ffffff;
text-align: center;
.headsboxs{
height: 88upx;
line-height: 88upx;
color:#000;
font-weight: 700;
font-size: 34upx;
text-align: center;
border-bottom: 1px solid #eee;
}
.textmsgs{
color:#333C4C;
font-size: 32upx;
font-weight: bold;
padding: 0 20upx;
margin: 20upx 0;
.sum{
color:#ff6900;
}
}
.tipboxs_foot{
margin-top: 50upx;
//background:rgba(255,105,0,1);
// border-radius:10upx;
border-bottom-right-radius: 14upx;
border-bottom-left-radius: 14upx;
border-top: 1px solid #eee;
}
.submitbtns{
font-size: 32upx;
width:50%;
height:83upx;
line-height: 83upx;
text-align: center;
color:#ff6900;
margin: 0 auto;
}
.submitbtns1{
border-right: 1px solid #eee;
}
}
.Closeicon{
position: absolute;
left: 50%;
margin-left: -30upx;
margin-top: 40upx;
width: 60upx;
height: 60upx;
}
}
</style>
......@@ -2,8 +2,8 @@
"name" : "鹿马商家助手",
"appid" : "__UNI__1EA80F1",
"description" : "",
"versionName" : "1.0.26",
"versionCode" : 126,
"versionName" : "1.0.30",
"versionCode" : 130,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
......
......@@ -24,7 +24,7 @@
</view>
<view class="list-cell m-t b-b" @tap="cleanstore" hover-class="cell-hover" :hover-stay-time="50">
<view class="list-cell m-t b-b" @tap="cleanstoreone" hover-class="cell-hover" :hover-stay-time="50">
<text class="cell-tit">清除缓存</text>
<image class="jiantousi" src="/static/news/jiantousi.png" mode=""></image>
</view>
......@@ -32,7 +32,7 @@
<text class="cell-tit">切换门店</text>
<image class="jiantousi" src="/static/news/jiantousi.png" mode=""></image>
</navigator>
<view class="list-cell b-b" @tap="todeleteStore" hover-class="cell-hover" >
<view class="list-cell b-b" @tap="oneTodeleteStore" hover-class="cell-hover" >
<text class="cell-tit">关闭店铺</text>
<image class="jiantousi" src="/static/news/jiantousi.png" mode=""></image>
</view>
......@@ -63,7 +63,7 @@
<image class="jiantousi" src="/static/news/jiantousi.png" mode=""></image>
</view>
<view class="list-cell log-out-btn" >
<view class="button" @tap="toLogout">
<view class="button" @tap="toLogoutone">
<text class="cell-tit log-out-btncolor">退出登录</text>
</view>
......@@ -73,15 +73,28 @@
<yomol-upgrade ref="yomolUpgrade" :isshowmsg="true"></yomol-upgrade>
<!-- 升级组件 -->
<moduPopup ref="moduPopup" title="确认要关闭店铺吗?" infotext="你确认要关闭店铺吗?关闭后余额将会自动转到佣金" @confirm="todeleteStore" @cancel="gdcancel"></moduPopup>
<!-- 提示信息组件 关店的-->
<moduPopup ref="moduPopupTwo" title="确认要退出登录吗?" infotext="确认要退出登录吗~" @confirm="toLogout" @cancel="gdcancel"></moduPopup>
<!-- 提示信息组件 退出登录-->
<moduPopup ref="cleanstoreone" title="确认要清除缓存吗?" infotext="清除缓存后你的账号将会退出~" @confirm="cleanstore" @cancel="gdcancel"></moduPopup>
<!-- 提示信息组件 清除缓存-->
</view>
</template>
<script>
import {userLogout,deleteStore,storeOpenEle,storeEleInfo} from "@/utils/api/api.js";
import yomolUpgrade from '@/components/yomol-upgrade/yomol-upgrade.vue';//升级组件
import moduPopup from "@/components/moduPopup/moduPopup.vue";
export default {
components:{
yomolUpgrade,
moduPopup,
},
data() {
return {
......@@ -128,20 +141,18 @@
this.$api.msg(res.msg);
}
},
//关闭店铺
//点击关闭店铺
oneTodeleteStore(){
this.$refs.moduPopup.show();
},
gdcancel(){
//取消
console.info('取消');
},
//关闭店铺 点击确认后
todeleteStore(){
console.info("关闭店铺");
uni.showModal({
title: '提示',
content: '您确认要关闭店铺吗?',
cancelText:"我点错了",
confirmText:"确定关闭",
cancelColor:"#ff6900",
confirmColor:"#ff0000",
confirmText:"确定",
success: (res)=> {
if (res.confirm) {
console.log('用户点击确定');
//请求关闭店铺
deleteStore({
......@@ -153,11 +164,8 @@
}
})
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
},
getv(){
// #ifdef APP-PLUS
......@@ -170,16 +178,12 @@
navTo(url){
this.$api.msg(`跳转到${url}`);
},
//显示弹窗 清除缓存的
toLogoutone(){
this.$refs.moduPopupTwo.show();
},
//退出登录
toLogout(){
uni.showModal({
content: '确定要退出登录么',
success: (e)=>{
if(e.confirm){
//this.logout();
//退出登录事件处理
//退出登录
userLogout({
......@@ -202,12 +206,6 @@
this.$api.msg(res.msg);
}
})
}
}
});
},
//switch
switchChange(e){
......@@ -249,6 +247,9 @@
})
},
cleanstoreone(){
this.$refs.cleanstoreone.show();
},
cleanstore(){
//清除缓存
uni.clearStorage();
......
......@@ -9,7 +9,7 @@ module.exports = {
// xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios
// #ifdef APP-PLUS
isdebug:false,//正式 APP里面绝对是正式
// isdebug:false,//正式 APP里面绝对是正式
// #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment