鍍金池/ 問答/HTML5  Android/ SASS在Weex開發(fā)環(huán)境的使用中怎么導(dǎo)入.scss文件才能起作用?

SASS在Weex開發(fā)環(huán)境的使用中怎么導(dǎo)入.scss文件才能起作用?

我已經(jīng)根據(jù)簡書上的https://www.jianshu.com/p/580... 安裝配置步驟及使用方法操作一遍,沒有出錯(cuò),導(dǎo)入.scss文件時(shí)只是將原來寫好的css文件改名為.scss文件,相關(guān)代碼如下

.we文件中style標(biāo)簽中的代碼

> <style lang="sass">
    @import "./coupon-mall.scss";
</style>
> 

新建的.scss文件中的全部代碼
> .main_home {
    background-color: #FBF9FE;
}

.title_main_out {
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
    background-color: #ff6700;
    align-items: center;
}

.title_back_out {
    width: 240px;
    padding: 28px;
    flex-direction: row;
    align-items: center;
}

.title_img_mine {
    justify-content: flex-end;
    width: 240px;
    padding: 28px;
    flex-direction: row;
    align-items: center;
}

.img_back {
    width: 38px;
    height: 38px;
}

.merchant_back_text {
    color: white;
    font-size: 35px;
}

.main_header_title {
    color: white;
    font-size: 40px;
}

.title_mycoupon_text {
    color: white;
    font-size: 30px;
}

.line_grey {
    width: 750px;
    height: 2px;
    background-color: #eeeeef;
}

.img_mine {
    width: 50px;
    height: 50px;
}

.classificarion {
    padding-top: 20px;
    padding-bottom: 30px;
    background-color: white;
}

.row_classificarion {
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 70px;
    padding-right: 70px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.item_classificarion {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slider {
    flex-direction: row;
    width: 750;
    height: 400;
}

.slider_pages {
    flex-direction: row;
    width: 750;
    height: 400;
}

.slider_image {
    width: 750;
    height: 400;
    resize: cover;
}

.coupon_slider_search_div {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    top: 20px;
    left: 50px;
}

.coupon_slider_location_div {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-right: 15px;
}

.coupon_slider_location_text {
    font-size: 30px;
    color: white;
    margin-right: 5px;
}

.coupon_slider_location_image {
    width: 30px;
    height: 30px;
}

.coupon_slider_search_text {
    opacity: 0.5;
    background-color: white;
    width: 500px;
    height: 43px;
    font-size: 33px;
    text-align: center;
    color: #aeaeaf;
    border-radius: 30px;
}

.item_image {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.item_text {
    font-size: 25px;
}

.refreshOut {
    width: 750;
    padding: 30;
    align-items: center
}

.loadingOut {
    flex-direction: row;
    width: 750;
    padding: 30px;
    align-items: center;
    justify-content: center;
}

.load_indicator {
    width: 40;
    height: 40;
    color: #454545;
    margin-right: 20px
}

.indicator {
    color: grey;
    margin-bottom: 30px
}

.no_div {
    width: 750;
    align-items: center;
    padding: 30px;
}

.no_text {
    color: grey;
    font-size: 30px;
}

.no_billmerchant {
    align-items: center;
    width: 750;
    position: fixed;
    top: 1000px;
}

.no_billmerchant_img {
    width: 200px;
    height: 200px;
}

.no_billmerchant_text {
    font-size: 32px;
    color: #a1a1a1;
}

.coupon_list_cell_image {
    width: 750px;
    height: 200px;
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

.coupon_list_text_div {
    position: absolute;
    top: 70;
    left: 50;
}

.coupon_list_company_text {
    font-size: 30px;
}

.coupon_list_limit_text_div {
    margin-top: 17px;
    flex-direction: row;
}

.coupon_list_limit_text_1 {
    font-size: 20px;
    color: #aeaeaf;
}

.coupon_list_limit_text_2 {
    font-size: 20px;
    color: #88abef;
    margin-left: 10px;
}

顯示到android手機(jī)中后沒有效果

Android手機(jī)效果圖

請(qǐng)問怎么解決,謝謝!

回答
編輯回答
替身

我想遇到同樣的問題,請(qǐng)問解決了么?

2017年6月23日 21:07