
代碼是這樣的,插入圖片亂了該怎么辦????
// pages/mine/mine.js
var app =getApp()
Page({
/**
* 頁面的初始資料
*/
data: {
userInfo:{},
hasUserInfo:false,
canIUse: wx.canIUse('button.open-type.getUserInfo'),
orderItems:[
{
typeId:0,
name:'待付款',
url:'bill',
imageurl:'../../images/geren/wp.png',
},
{
typeId:1,
name:'待使用',
url:'bill',
imageurl: '../../images/geren/wu.png',
},
{
typeId:2,
name:'待評價',
imageurl:'../../images/geren/wr.png',
}
],
},
uj5u.com熱心網友回復:
如果是單獨使用你可以orderItems[0].imageurl使用如果是回圈渲染你可以<block wx:for="{{orderItems}}" wx:key="index"> <image src="https://bbs.csdn.net/topics/{{item.imageurl}}"></image></block>
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/94177.html
標籤:微信開發
下一篇:使用retrofit遇到的問題
