Commit 103319e8 authored by xieyishang's avatar xieyishang

addxx

parent 1b70013f
<!--components/dialog/address_list/address_list.wxml-->
<!-- 弹窗 -->
<!-- 弹窗 -->
<view class="modals modals-bottom-dialog" hidden="{{hideModal}}">
<view class="modals-cancel" bindtap="hideModal"></view>
<view class="bottom-dialog-body bottom-pos" style="bottom:0;" animation="{{animationData}}">
<view class="dspjc mb-40">
<view class="bt_text">请选择您的地址</view>
<navigator hover-class="none" url="/pages/personal/set/new_address/new_address?type={{type}}">
<navigator hover-class="none" url="/pages/new_address/new_address?type={{type}}">
<view class="tianjtext">点击添加新地址</view>
</navigator>
<view class="quxiaoimg" bindtap="hideModal"><image src="{{clientImgPath}}/images/sc/guanbi@2x.png"></image></view>
</view>
<view class="imgbox">
<form bindsubmit="form" report-submit="true">
<radio-group bindchange="radiochange">
<!-- 可以使用 -->
<black wx:for='{{addr_list}}' wx:key='index'>
<view class="">
<view class="dspla">
<view class="dizhibox">
<view class="{{item.is_use==2?'colorgray':''}}">您的姓名:{{item.name}}</view>
<view class="mt-10 mb-10 {{item.is_use==2?'colorgray':''}}">联系电话:{{item.mobile}}</view>
<view class="{{item.is_use==2?'colorgray':''}}">用户地址:{{item.addr}}</view>
</view>
<view class="ml-20">
<radio value="{{item.addr_id}}" checked="{{addr_id==index}}"/>
</view>
</view>
</view>
<view class="xian mb-20 mt-20"></view>
</black>
</radio-group>
</form>
<view class="quxiaoimg" bindtap="hideModal">
<image src="{{clientImgPath}}/images/sc/guanbi@2x.png"></image>
</view>
</view>
<view class="imgbox">
<form bindsubmit="form" report-submit="true">
<radio-group bindchange="radiochange">
<!-- 可以使用 -->
<black wx:for='{{addr_list}}' wx:key='index'>
<label for="">
<view class="">
<view class="dspla">
<view class="dizhibox">
<view class="{{item.is_use==2?'colorgray':''}}">您的姓名:{{item.name}}</view>
<view class="mt-10 mb-10 {{item.is_use==2?'colorgray':''}}">联系电话:{{item.mobile}}
</view>
<view class="{{item.is_use==2?'colorgray':''}}">用户地址:{{item.addr}}</view>
</view>
<view class="ml-20">
<radio value="{{item.addr_id}}" checked="{{addr_id==index}}" />
</view>
</view>
</view>
<view class="xian mb-20 mt-20"></view>
</label>
</black>
</radio-group>
</form>
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
......@@ -18,7 +18,7 @@
<text wx:if='{{pwdVal.length>i}}'></text>
</view>
</view>
<navigator url="/pages/personal/set/payment_code/payment_code?type=1" class='forget_pwd' hover-class="none">忘记密码</navigator>
<navigator url="/pages/payment_code/payment_code?type=1" class='forget_pwd' hover-class="none">忘记密码</navigator>
<input class='input_control' password type='number' focus='{{payFocus}}' bindinput='inputPwd' maxlength='6'/>
</view>
</view>
......
......@@ -18,7 +18,7 @@
<text wx:if='{{pwdVal.length>i}}'></text>
</view>
</view>
<navigator url="/pages/personal/set/payment_code/payment_code?type=1" class='forget_pwd' hover-class="none">忘记密码</navigator>
<navigator url="/pages/payment_code/payment_code?type=1" class='forget_pwd' hover-class="none">忘记密码</navigator>
<input class='input_control' password type='number' focus='{{payFocus}}' bindinput='inputPwd' maxlength='6'/>
</view>
</view>
......
......@@ -93,7 +93,7 @@ Component({
console.log(err,'信息获取失败');
})
}
app.showToast({title:data.msg,icon:'none'});
// app.showToast({title:data.msg,icon:'none'}); 不要提示
}).catch(err=>{
wx.hideLoading();
if(err.code=='-99999' || err.code=='-10800'){
......
......@@ -305,6 +305,11 @@ Page({
//tooltiptextTwo
console.info("12");
//this.selectComponent("#prizemodel").showModal();
this.selectComponent("#tooltiptextTwo").showModal();
// this.selectComponent("#tooltiptextTwo").showModal();
},
towithdrawal(){
wx.navigateTo({
url: '/pages/withdraw/withdraw?type=2',
})
}
});
\ No newline at end of file
......@@ -43,20 +43,22 @@
</view>
</view> -->
<!-- <view class="topbox_20 mt-20">
<view class="topbox_20 mt-20">
<view class="ali-z mt-10 mb-10">
<view class="sz_30 bt_hei">
<view class="mb-10 ali-c" bindtap="showmsgtx">可提现 <image class="msgsiocns" src="{{clientImgPath}}/images/uts/msgsicons.png"></image>
<view class="mb-10 ali-c" bindtap="showmsgtx">可提现
<!-- <image class="msgsiocns" src="{{clientImgPath}}/images/uts/msgsicons.png"></image> -->
</view>
<view class="balanceiocn">{{gold}}</view>
</view>
<view class="ali-c sz_30 c_bi" data-gold="{{gold}}" bindtap="cremacteric" >
<view class="ali-c sz_30 c_bi" data-gold="{{gold}}" bindtap="towithdrawal" >
<view class="btn1 mr-10">提现</view>
</view>
</view>
</view> -->
</view>
<!-- 提现弹窗 -->
<!-- bindtap="cremacteric" -->
<cremacteric id="cremacteric" />
<!-- <view class="topbox_20 mt-20">
......
......@@ -10,6 +10,8 @@ Page({
clientImgPath: app.globalData.clientImgPath,
type:'0', //0普通进入 1外卖地址进入 2商城地址进入
hidden:false,
},
/**
......@@ -22,8 +24,26 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
//授权弹窗
if(!wx.getStorageSync('userInfo')){
this.setData({
hidden:true,
});
return;
}
this.init();
},
setUserInfo(e) { //点击了授权
if (e.detail) {
this.setData({
hidden: false,
});
this.init();
}
},
init(){
addrList({type:this.data.type}).then(res=>{
this.setData({
......
......@@ -35,4 +35,7 @@
<view class="ml-30">添加新地址</view>
</button>
<login hidden="{{hidden}}" bind:setUserInfo="setUserInfo" />
</view>
......@@ -2,13 +2,11 @@
const app = getApp();
var clientImgPath = app.globalData.clientImgPath;
var staticUrl = app.globalData.staticUrl;
import luma from '../../utils/luma.js';
import {getGroupList,getShareUser} from "../../api/lmping";
import { getUserInfo } from '../../api/user.js';
import {
setsubscript
} from "../../utils/setsubscript";
Page({
......@@ -19,7 +17,7 @@ Page({
clientImgPath,
staticUrl,
lundata:["A","B","c","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],
lundata:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],
showModal:false,
uid:"",
userInfo:{},
......@@ -35,6 +33,8 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
luma.scenego(options); //扫码过来跳转
this.setData({ //顶部通知栏高度
statusBarHeight: wx.getSystemInfoSync().statusBarHeight,
})
......
......@@ -23,7 +23,7 @@
<view class="prosheadbox">
<view class="titboxsd">
<image class="proshead" src="{{clientImgPath}}/images/lmping/groupbgs.png" mode=""></image>
<view class="pingttexts">悦想拼{{lundata[index]}}轮</view>
<view class="pingttexts">悦想拼{{lundata[item.type-1]}}轮</view>
</view>
</view>
<view class="promains">
......
......@@ -29,6 +29,7 @@
.sigins{
text-align: center;
margin-top: -280rpx;
margin-bottom: 10rpx;
}
.sigins .imgsig{
width: 507rpx;
......@@ -38,8 +39,10 @@
/* // 产品了 列表 */
.projuctlists{
padding: 24rpx;
margin-bottom: 50rpx;
/* padding: 24rpx;
margin-bottom: 50rpx; */
padding: 10rpx 24rpx;
margin-bottom: 0rpx;
}
.prosheadbox{
text-align: center;
......
{
"usingComponents": {
"van-count-down": "/vant/weapp/lib/count-down/index"
"van-count-down": "/vant/weapp/lib/count-down/index",
"empty":"/vant/weapp/lib/empty/index"
},
"navigationBarTitleText": "产品场次区"
}
\ No newline at end of file
......@@ -5,6 +5,8 @@
<image bindtap="tobreak" class="imgs" src="{{clientImgPath}}/images/lmping/breaks.png"></image>
</view> -->
<empty wx:if="{{goodslist.length==0}}"></empty>
<!-- style="padding-top:{{statusBarHeight+20}}px;" -->
<view class="pingheads" >
<!-- <image class="headsimg" src="{{clientImgPath}}/images/lmping/pinghead.png" mode=""></image> -->
......
......@@ -37,7 +37,7 @@
<view class="titles twoline">{{item.goods_info.title}}</view>
<view class="ptprices flex ali-c">
<view class="lsprice">零售价¥{{item.goods_info.price}}</view>
<view class="yfprice ml-30">
<view class="yfprice ali-c ml-30">
<text class="yifup">已付¥</text>
<text class="prnums">{{item.spell_price}}</text>
</view>
......
......@@ -30,6 +30,7 @@ Page({
secret_key:"",//邀请码
hidden: false,
},
......@@ -48,6 +49,21 @@ Page({
this.shareFc();//去画图
},
setUserInfo(e) { //点击了授权
if (e.detail) {
this.setData({
hidden: false,
});
let userInfo = wx.getStorageSync('userInfo');
this.setData({
userInfo: userInfo.info,
secret_key:options.secret_key,//邀请码
})
this.caerteqrcode();
this.shareFc();//去画图
}
},
//复制邀请码
cpoesharecode(){
wx.setClipboardData({
......@@ -67,8 +83,8 @@ Page({
x: 5,
y: 5,
canvasId: 'tki-qrcode-canvas',
//typeNumber: 10,
text: `https://pindev.jxdsy.cn/qrcode?uid=${this.data.userInfo.user_id}&type=10`,
// typeNumber: 10,
text: `https://pindev.jxdsy.cn/qrcodetwo?uid=${this.data.userInfo.user_id}&type=10&secret_key=${this.data.secret_key}`,
image: {
// imageResource: "",//res.path,
// dx: 85,
......@@ -92,8 +108,15 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
//授权弹窗
if(!wx.getStorageSync('userInfo')){
this.setData({
hidden:true,
});
return;
}
},
/**
* 生命周期函数--监听页面隐藏
......@@ -214,7 +237,7 @@ Page({
console.info(len,"len");
let qcodeobj = {
text: `https://pindev.jxdsy.cn/qrcode?uid=${this.data.userInfo.user_id}&type=10`,
text: `https://pindev.jxdsy.cn/qrcodetwo?uid=${this.data.userInfo.user_id}&type=10&secret_key=${this.data.secret_key}`,
size: 220,//bgObj.width*0.2
dx: 170,//bgObj.width*0.05
dy: 410//bgObj.height - bgObj.width*0.25
......
......@@ -48,3 +48,6 @@
</view>
</view>
<login hidden="{{hidden}}" bind:setUserInfo="setUserInfo" />
......@@ -7,7 +7,7 @@
<!-- <navigator url="/pages/lmping/activitydescri/activitydescri" hover-class="none" class="Ruledescription ali-c jus-c">规则说明</navigator> -->
<view class="pinguserinfo flex">
<view class="pinguserinfo flex ali-c">
<image class="userstxs" src="{{userInfo.face}}" mode=""></image>
<view class="userdetaile">
<view class="infoonelin flex ali-c">
......@@ -166,7 +166,7 @@
<navigator url="/pages/order/order" class="navitem" style="margin-top: 57rpx;" hover-class="none">
<image class="imgiocn imgiocn15" src="{{clientImgPath}}/images/lmping/snedorder.png" mode=""></image>
<view class="navnames">发货订单</view>
<view class="navnames">物流订单</view>
</navigator>
......
......@@ -54,7 +54,7 @@ Page({
}else{
addressData.doorplate=value; //详细地址
}
console.log(addressData)
// console.log(addressData)
this.setData({addressData});
},
bindPickerChange(e){ //选择省市区 点击确定
......
......@@ -18,13 +18,14 @@
<view class="lieboxs ali-c">
<view class="biqim">手机号码</view>
<view class="inptbox">
<input value="{{addressData.mobile}}" name='mobile' placeholder="请填写手机号码"
<input type="number" value="{{addressData.mobile}}" name='mobile' placeholder="请填写手机号码"
placeholder-class="sz_30 inp_hui" bindinput="bindinput" data-type="2">
</input>
</view>
</view>
<view class="xian"></view>
<!-- <view class="xian"></view> -->
<!-- <view class="lieboxs ali-c">
<view class="biqim">地址类型</view>
<radio-group class="inptbox ali-c" bindchange="radioChange">
......
......@@ -710,15 +710,17 @@ Page({
title: res.msg,
icon: 'none'
});
if (that.data.status != "all") {
let order = that.data.order;
order.splice(index, 1); //删除某项
that.setData({
order
});
} else {
that.listDeal();
}
setTimeout(() => {
if (that.data.status != "all") {
let order = that.data.order;
order.splice(index, 1); //删除某项
that.setData({
order
});
} else {
that.listDeal();
}
}, 1000);
}
})
......
......@@ -167,7 +167,12 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
let secret_key = wx.getStorageSync('secret_key');
if(secret_key){
this.setData({
invitation:secret_key,//设置默认邀请码
})
}
},
/**
* 生命周期函数--监听页面初次渲染完成
......
{
"usingComponents": {},
"navigationBarTitleText": "登录"
"navigationBarTitleText": "注册"
}
\ No newline at end of file
......@@ -23,11 +23,16 @@
</view>
<view wx:if="{{isloagin==1}}" class="button-login" hover-class="button-hover" bindtap="bindLogin">
<!-- <view wx:if="{{isloagin==1}}" class="button-login" hover-class="button-hover" bindtap="bindLogin">
<text>登录</text>
</view>
<view wx:else class="button-login" hover-class="button-hover" bindtap="bindLogin">
<text>注册</text>
</view> -->
<view class="button-login" hover-class="button-hover" bindtap="bindLogin">
<text>注册</text>
</view>
<view class="agreement">
......
......@@ -234,9 +234,7 @@ Page({
//分享朋友
onShareAppMessage() {
return {
// title: this.data.goods.title.substring(0, 25),
// imageUrl: this.data.staticUrl + '' + this.data.imgUrls[0].photo,
// path: 'pages/shop/shops/weidian/weidian_details/weidian_details?goods_id=' + this.data.goods_id + '&fxuser_id=' + this.data.user_id + '&productType=wechat'
}
},
// 分享到朋友圈
......@@ -350,7 +348,9 @@ Page({
items_id: res.data.items_id ? res.data.items_id : {},
})
let details = res.data.goods.details;
let details = res.data.goods.details;
//let details = `"<p><img src="https://luma.jxdsy.cn/attachs/editor/2020/10/12/5f83bbc972e2e.jpg" _src="https://luma.jxdsy.cn/attachs/editor/2020/10/12/5f83bbc972e2e.jpg"/></p>"<p><img src="https://luma.jxdsy.cn/attachs/editor/2020/10/12/5f83bbc972e2e.jpg" _src="https://luma.jxdsy.cn/attachs/editor/2020/10/12/5f83bbc972e2e.jpg"/></p>`
wxParse.wxParse('details', 'html', details, that, 15);
}
......
......@@ -138,13 +138,13 @@
<!-- 顶部固定 -->
<view class="topbais po_f {{scrollTop==0?'hidden':'show'}}" style="top:0;width:100%;">
<!-- <view class="topbais po_f {{scrollTop==0?'hidden':'show'}}" style="top:0;width:100%;">
<view class="jus-a">
<view class="tpaszi" bindtap="goTop" data-type="1">商品</view>
<view class="tpaszi" bindtap="goTop" data-type="2">评价</view>
<view class="tpaszi" bindtap="goTop" data-type="3">详情</view>
</view>
</view>
</view> -->
<!-- 底部固定 -->
<view class="db_box flex ali-c jus-b">
......
......@@ -37,6 +37,20 @@ Page({
currentTab: options.bank_id ? 2 : 0,
})
if(options.type==2){
wx.setNavigationBarTitle({
title: '商家提现'
})
}
if( !wx.getStorageSync('userInfo') ){
this.setData({ hidden:true });
return;
}
this.setData({ hidden:false });
this.onLoadFun();
this.getfundata();
},
//获取基础用户信息
......@@ -90,7 +104,7 @@ Page({
return;
}
this.setData({ hidden:false });
this.onLoadFun();
// this.onLoadFun();
//选银行卡
let selbankcard = wx.getStorageSync('selbankcard');
......@@ -175,12 +189,12 @@ Page({
})
} else if (type == 1) {
that.setData({
money: e.currentTarget.dataset.agent_brokerage,
money: this.data.userInfo.agent_brokerage,
ismoneyshow: !that.data.ismoneyshow
})
} else if (type == 2) {
that.setData({
money: e.currentTarget.dataset.gold, //这里商户全部提现减少100元的保证金
money: this.data.userInfo.gold, //这里商户全部提现减少100元的保证金
ismoneyshow: !that.data.ismoneyshow
})
}
......@@ -197,6 +211,8 @@ Page({
bank_id: this.data.bank_id,
hasuser:true,
};
//获取银行卡
cashBank(params).then(res => {
let banklist = res.data.bank;
if (banklist) {
......
......@@ -2,10 +2,10 @@
<view class="boxs">
<view class="sz_30 c_bi te_ct mb-20">可提现佣金</view>
<view class="sz_72 c_bi te_ct mb-50" style="font-weight:bold;">
<!-- <block wx:if="{{type==0}}">{{member.commission}}</block>
<block wx:elif="{{type==1}}">{{member.agent_brokerage}}</block>
<block wx:elif="{{type==2}}">{{gold}}</block> -->
<block>{{userInfo.commission?userInfo.commission:0}}</block>
<block wx:if="{{type==0}}">{{userInfo.commission?userInfo.commission:0}}</block>
<block wx:elif="{{type==1}}">{{userInfo.agent_brokerage?userInfo.agent_brokerage:0}}</block>
<block wx:elif="{{type==2}}">{{userInfo.gold?userInfo.gold:0}}</block>
<!-- <block>{{userInfo.commission?userInfo.commission:0}}</block> -->
</view>
<view class="topboxs ov" style="padding: 0;">
<view class="flex">
......
......@@ -242,8 +242,11 @@ function scenego(options) {
break;
//扫码点餐页跳转
case "10":
console.info("处理扫码哦~~~~",uids);
let uids = Utilc.getQueryString(qrUrl, 'uid');
let secret_key = Utilc.getQueryString(qrUrl, 'secret_key');
wx.setStorageSync('share_uid', uids);
wx.setStorageSync('secret_key', secret_key);
wx.switchTab({
url: `/pages/index/index`,
})
......
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