3月30日提交

This commit is contained in:
lym
2026-03-30 23:17:22 +08:00
parent ba8fef5edf
commit f0101aa9ad
11 changed files with 77 additions and 33 deletions

View File

@@ -461,7 +461,8 @@ wx.getLocation({
}else{ }else{
var name = e.detail.value.txtName.replace(/\s+/g, ""); var name = e.detail.value.txtName.replace(/\s+/g, "");
var number=e.detail.value.txtnumber.replace(/\s+/g, ""); // var number=e.detail.value.txtnumber.replace(/\s+/g, "");
var number="1";
var tel=e.detail.value.txttel.replace(/\s+/g, ""); var tel=e.detail.value.txttel.replace(/\s+/g, "");
var Province=(that.data.hx_index==-1?"":that.data.Provinces[that.data.hx_index].ProvinceID) var Province=(that.data.hx_index==-1?"":that.data.Provinces[that.data.hx_index].ProvinceID)
var City=(that.data.hx_index0==-1?"":that.data.Citys[that.data.hx_index0].CityID) var City=(that.data.hx_index0==-1?"":that.data.Citys[that.data.hx_index0].CityID)
@@ -472,12 +473,13 @@ wx.getLocation({
var LoginId = wx.getStorageSync("LoginId") var LoginId = wx.getStorageSync("LoginId")
var b=true var b=true
if(that.data.clsid==0){ if(that.data.clsid==0){
b=false // b=false
wx.showToast({ // wx.showToast({
title: "商家分类未选择!", // title: "商家分类未选择!",
icon: "none", // icon: "none",
duration: 3000 // duration: 3000
}) // })
that.data.clsid=198
} }
if(b){ if(b){
if(name==""){ if(name==""){
@@ -486,17 +488,18 @@ wx.getLocation({
title: "商家名称不能为空!", title: "商家名称不能为空!",
icon: "none", icon: "none",
duration: 3000 duration: 3000
}) })
} }
} }
if(b){ if(b){
if(number==""){ if(number==""){
b=false number="1"
wx.showToast({ // b=false
title: "信用代码不能为空!", // wx.showToast({
icon: "none", // title: "信用代码不能为空!",
duration: 3000 // icon: "none",
}) // duration: 3000
// })
} }
} }
if(b){ if(b){

View File

@@ -7,17 +7,17 @@
<view class="frombody"> <view class="frombody">
<view class="area"> <view class="area">
<picker class="picker_hx" name="picker_hx0" value="{{clslist[hc_index].id}}" data-selecthx="{{clslist[hc_index].name}}" range="{{clslist}}" range-key="{{'name'}}" bindchange="clsChange"> <!-- <picker class="picker_hx" name="picker_hx0" value="{{clslist[hc_index].id}}" data-selecthx="{{clslist[hc_index].name}}" range="{{clslist}}" range-key="{{'name'}}" bindchange="clsChange">
<text>商家分类:</text><input name="sjfl" type="text" disabled="disabled" placeholder="请选择商家分类" value="{{clsname}}"/><image src="../../images/icon-arrowdown.png"></image> <text>商家分类:</text><input name="sjfl" type="text" disabled="disabled" placeholder="请选择商家分类" value="{{clsname}}"/><image src="../../images/icon-arrowdown.png"></image>
</picker> </picker> -->
</view> </view>
<view> <view>
<text>商家名称:</text><input name="txtName" type="text" placeholder="请填写商家名称" value="{{sjname}}" /> <text>商家名称:</text><input name="txtName" type="text" placeholder="请填写商家名称" value="{{sjname}}" />
</view> </view>
<view> <!-- <view>
<text>信用代码:</text><input name="txtnumber" type="text" placeholder="请填写统一社会信用代码" value="{{number}}" /> <text>信用代码:</text><input name="txtnumber" type="text" placeholder="请填写统一社会信用代码" value="{{number}}" />
</view> </view> -->
<view> <view>
<text>联系电话:</text><input name="txttel" type="text" placeholder="请填写联系电话" value="{{tel}}" /> <text>联系电话:</text><input name="txttel" type="text" placeholder="请填写联系电话" value="{{tel}}" />
</view> </view>

View File

@@ -153,7 +153,8 @@ Page( {
if (b > zkc) { if (b > zkc) {
b = zkc b = zkc
} }
if (b <= 0) { //从不能小于等于0改成不能小于0
if (b < 0) {
wx.showToast({ wx.showToast({
title: "输入的数量有误,应为[1-999]", title: "输入的数量有误,应为[1-999]",
icon: "none", icon: "none",

View File

@@ -74,7 +74,12 @@ Page({
checked:0, checked:0,
vipqx:0, vipqx:0,
loadingHidden:false, loadingHidden:false,
fromHot:0 fromHot:0,
swiperHeight: 375,
swiperDefaultRatio: 1,
swiperLoaded: false,
imageLoadCount: 0,
windowWidth: 375
}, },
onLoad: function(options) { onLoad: function(options) {
@@ -95,9 +100,40 @@ Page({
}) })
} }
that.rdata(0) that.rdata(0)
},onPullDownRefresh: function () { },
onReady: function() {
var systemInfo = wx.getSystemInfoSync();
var windowWidth = systemInfo.windowWidth;
var defaultHeight = windowWidth * 0.75;
that.setData({
swiperHeight: defaultHeight,
windowWidth: windowWidth
});
},
onSwiperImageLoad: function(e) {
if (that.data.swiperLoaded) {
return;
}
var loadCount = that.data.imageLoadCount + 1;
var showimages = that.data.showimages;
if (showimages && showimages.length > 0 && loadCount === 1) {
var imgWidth = e.detail.width;
var imgHeight = e.detail.height;
if (imgWidth > 0 && imgHeight > 0) {
var windowWidth = that.data.windowWidth || wx.getSystemInfoSync().windowWidth;
var ratio = imgHeight / imgWidth;
var calculatedHeight = windowWidth * ratio;
that.setData({
swiperHeight: calculatedHeight,
swiperDefaultRatio: ratio,
swiperLoaded: true,
imageLoadCount: loadCount
});
}
}
},
onPullDownRefresh: function () {
//在当前页面显示导航条加载动画 //在当前页面显示导航条加载动画
wx.showNavigationBarLoading(); wx.showNavigationBarLoading();
//显示 loading 提示框。需主动调用 wx.hideLoading 才能关闭提示框 //显示 loading 提示框。需主动调用 wx.hideLoading 才能关闭提示框
@@ -159,7 +195,9 @@ Page({
ptgztitle0:res.data.ptgztitle0, ptgztitle0:res.data.ptgztitle0,
sharetitle:res.data.sharetitle, sharetitle:res.data.sharetitle,
sharepic:res.data.sharepic, sharepic:res.data.sharepic,
yjptnum:res.data.yjptnum yjptnum:res.data.yjptnum,
swiperLoaded: false,
imageLoadCount: 0
}) })
that.getselguige(); that.getselguige();
if(that.data.IFPD==0){ if(that.data.IFPD==0){
@@ -688,6 +726,8 @@ Page({
showimage:showimage, showimage:showimage,
showimages:showimages, showimages:showimages,
showindex:showindex, showindex:showindex,
swiperLoaded: false,
imageLoadCount: 0
}) })
} }
that.setData({ that.setData({

View File

@@ -2,11 +2,11 @@
<view class="container"> <view class="container">
<view> <view>
<swiper class="swiper_box" indicator-dots="{{indicatorDots}}" vertical="{{vertical}}" circular="true" <swiper class="swiper_box" style="height: {{swiperHeight}}px;" indicator-dots="{{indicatorDots}}" vertical="{{vertical}}" circular="true"
autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}"> autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
<block wx:for="{{showimages}}"> <block wx:for="{{showimages}}">
<swiper-item> <swiper-item>
<image src="{{item.img}}" bindtap="viewimages0" data-index="{{index}}" class="slide-image"/> <image src="{{item.img}}" bindtap="viewimages0" data-index="{{index}}" class="slide-image" mode="aspectFit" bindload="onSwiperImageLoad" data-index="{{index}}"/>
</swiper-item> </swiper-item>
</block> </block>
</swiper> </swiper>

View File

@@ -18,7 +18,8 @@ page{
.swiper_box { .swiper_box {
width: 100%; width: 100%;
height: 21em; transition: height 0.3s ease-out;
-webkit-transition: height 0.3s ease-out;
} }
.swiper_box .slide-image{ .swiper_box .slide-image{
width: 100%; width: 100%;

View File

@@ -64,6 +64,7 @@ Page( {
title: "绑定收款账号" title: "绑定收款账号"
}) })
} }
wx.request({ wx.request({
url: app.globalData.apiurl + "/xapiajax.ashx", url: app.globalData.apiurl + "/xapiajax.ashx",
data: { data: {

View File

@@ -1,5 +1,5 @@
<view class="container" wx:if="{{umoney>0||umoney0>0}}"> <!-- <view class="container" wx:if="{{umoney>0||umoney0>0}}"> -->
<view class="container" >
<view class="myorder-menu"> <view class="myorder-menu">
<view class='{{nav==0?"hover":""}}' bindtap="onnav" data-id="0">银行账号</view> <view class='{{nav==0?"hover":""}}' bindtap="onnav" data-id="0">银行账号</view>

View File

@@ -9,7 +9,7 @@ Page( {
text: '会员资料' text: '会员资料'
},{ },{
icon: '../../images/iconfont-mydata.png', icon: '../../images/iconfont-mydata.png',
url:'../mybankdata/index', url:'../mybankdata/index?nav=0',
text: '绑定收款账号' text: '绑定收款账号'
}, { }, {
icon: '../../images/iconfont-mypassword.png', icon: '../../images/iconfont-mypassword.png',

View File

@@ -45,9 +45,9 @@
<view>{{item.UserName}}<text>{{item.RealName}}</text></view> <view>{{item.UserName}}<text>{{item.RealName}}</text></view>
<view class="time">{{item.uLevel}} 当月业绩:{{item.zcount}}</view> <view class="time">{{item.uLevel}} 当月业绩:{{item.zcount}}</view>
</view> </view>
<view class="uLevel"> <!-- <view class="uLevel">
{{item.zt}}{{item.zt0}} {{item.zt}}{{item.zt0}}
</view> </view> -->
<view class="faifeito"> <view class="faifeito">
<image src="../../images/faifeito.png"></image> <image src="../../images/faifeito.png"></image>
</view> </view>

View File

@@ -7,8 +7,6 @@ Page( {
}, },
onLoad: function() { onLoad: function() {
that = this
that = this that = this
wx.setBackgroundColor({ wx.setBackgroundColor({
backgroundColor: "#96C6F5", backgroundColor: "#96C6F5",