<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                1.在vant weapp官網找到相應的組件 ![](https://box.kancloud.cn/5b3e9f4bfb5399d9283a640f184e010b_1738x847.png) ![](https://box.kancloud.cn/a6a23af0bccfceeb61b3f2fd485da5b4_1704x649.png) 2.在comment.json中引用相關組件 ``` { "usingComponents": "van-field": "vant-weapp/field", "van-rate": "vant-weapp/rate", "van-button": "vant-weapp/button" } } ``` 在comment.html中寫入代碼 ``` < !--pages / comment / comment.wxml--><view class = '' > <view class = 'detail-container'style = 'background: url({{detail.image}}) no-repeat top/cover' > </view> <view class='detail-mask'></view > <view class = 'detail-info' > <image src = "{{detail.image}}"class = 'detail-img' > </image> <view class='detail'> <view class='detail-nm'>{{detail.name}}</view > <view > { { detail.leader } } < /view> <view class='detail.sc'>{{detail.score}}分</view > <view > kkkkk < /view> <view>導演:xxxx</view > </view> </view > <view class = 'desc' > { { detail.content } } < /view> <!-- 評價 --> <view class="comment-container"> <van-field value="{{ content }}" placeholder="寫一些評價吧" bind:change="onContentChange" / > <text > \r\n < /text> <van-rate value="{{ score }}" bind:change="onScoreChange" / > <text > \r\n < /text> <van-button type="warning" bindtap="uploadImg">上傳圖片</van - button > <view > </view> <text>\r\n</text > <van - button size = "large"type = "danger"bindtap = "submit" > 提交評價 < /van-button> </view > <!--評價end--></view> / ``` 重點部分: ``` ~~~ <!-- 評價 --> <view class="comment-container"> <van-field value="{{ content }}" placeholder="寫一些評價吧" bind:change="onContentChange" / > <text > \r\n < /text> <van-rate value="{{ score }}" bind:change="onScoreChange" / > <text > \r\n < /text> <van-button type="warning" bindtap="uploadImg">上傳圖片</van - button > <view > </view> <text>\r\n</text > <van - button size = "large"type = "danger"bindtap = "submit" > 提交評價 < /van-button> </view > <!--評價end--> ~~~ ``` 在comment.js中寫入相關初始數據以及函數 ``` /** * 頁面的初始數據 */ data: { content: '', // 評價的內容 score: 5, // 評價的分數 images: [], // 上傳的圖片 detail:[], }, onContentChange: function (event) { }, onScoreChange: function (event) { }, ``` 效果: ![](https://box.kancloud.cn/d239530163c4b0d86e45ad69fff7d39e_1440x975.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看