栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

微信小程序开发之——个人中心

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

微信小程序开发之——个人中心

view class add bindtap chooseAddress image class left src /images/6.png mode widthFix / view class text 获取收货地址 /view image class right src /images/right.png mode widthFix /image /view 2.2 页面样式文件(address.wxss)
page{
 background-color: white;
 font-family: Arial, Helvetica, sans-serif;
 font-size: 30rpx;
 color: black;
.list{
 font-size: 36rpx;
.list view{
 background-color: white;
 padding: 20rpx;
 border-bottom: 1rpx solid gray;
 display: flex;
.list .head{
 width: 210rpx;
.list .body{
 flex: 1;
.add{
 width: 100%;
 background-color: white;
 position: absolute;
 bottom: 0;
 padding: 15rpx 15rpx 30rpx 40rpx;
 border-top: 1rpx solid gray;
.add image{
 width: 50rpx;
 margin-top: 15rpx;
 margin-right: 20rpx;
.add .left{
 float: left;
.add .right{
 width: 25rpx;
 float: right;
 margin-right: 60rpx;
 padding-top: 15rpx;
 color: gray;
.add .text{
 float: left;
 margin-top: 20rpx;
2.3 修改标题显示内容(address.json)
{
 usingComponents : {},
 navigationBarTitleText : 收货地址 
三 页面逻辑—address.js
Page({
 * 页面的初始数据
 data: {
 addressInfo: null
 chooseAddress: function () {
 wx.chooseAddress({
 //成功之后 把所有数据存放到addressInfo里 在wxml中调用
 success: (result) {
 this.setData({
 addressInfo: result
 //接口调试失败信息 打印在控制台中
 fail: err {
 console.log(err)
四 源码 源码物流查询服务器
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/267623.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号