|
大神,新手请指教!
1 创建项目 使用的是企业展示模板 ,连上真机调试,然后 看到Config.js 里面有调接口的地址,
class Config{
constructor(){}
}
Config.restUrl = 'http://我的域名地址.cc/api';
然后举办 banner的接口改了,改成自己的地址,postman 请求都能请求到数据json 格式的。
然后,接收的数据字段也改了
//获取轮播图
getbannersList() {
var that = this;
const params = {}
Model.getbannersList(params, (res) => {
if (res && res.code == 200) {
that.data.bannersList = res.adverList;
}
api.hideProgress();
});
},
抵用的地方也改了 字段名
<view style={'height:'+swiperHeight+'px;'} class="swiper-box">
<swiper class="swiper" autoplay indicator-dots indicator-color="rgba(255,255,255,0.2)" indicator-active-color="rgba(51,51,51,1)">
<swiper-item v-for="(item_,index_) in bannersList" data-index={index_} onclick="bindBanner">
<image src={item_.coverimage} class="banner-image" mode="aspectFill"></image>
</swiper-item>
</swiper>
</view>
然后Ctrl+S 保存,
然后重新加载刷新 都没有出现我调接口的图片
1 我想问问,这个真机调试 怎么刷新,代码保存后怎么看效果,重新编译吗?commit吗?安装吗?
2 真机调试 断点咋不断呢?
哪位大神指点一下~
|
|