123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <template>
- <view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
- <tm-menubars title="" :shadow="0" :showback="false"></tm-menubars>
- <view class="C1b1b1b pb-10">
- <view class="sousuo">
- <tm-pickersCity class="dingwei fl" btn-color="bg-gradient-blue-accent" @confirm="okCity" :default-value="addr">
- <view>
- <text class="text-size-n">{{addr[1]}}</text>
- <tm-icons :size="24" color="white" name="icon-angle-down"></tm-icons>
- </view>
- </tm-pickersCity>
- <view>
- <tm-search @confirm="sosoFun" class="fl" v-model="soso" color="white" confirm-text=""></tm-search>
- <text class="quxiao fr" @click="goindex()">取消</text>
- </view>
- </view>
- <view style="clear: both;"></view>
- <tm-dropDownMenu @change="change" :type="typeclick" un-color="white" :list="list2"></tm-dropDownMenu>
- </view>
- <div class="zhuti">
- <tm-sheet class="kuang" style="padding-bottom: 30px !important;">
- <view style="width: 94%;margin:0 auto;" class="remen">
- <view v-for="(item,index) in listdata" class="round-5 contone black mt-20" :class="index%2==0?'fl':'fr'">
- <image class="logo" :src="item.image" mode="widthFix"></image>
- <view class="pa-15 text-size-s">
- <view class="text-overflow-2">
- <text class="text-size-lg">{{item.text}}</text>
- <view class="text-gray mt-6">销量:{{item.xiaol}}</view>
- </view>
- <view class="mt-2 flex-between flex-center">
- <view class="touxiang mt-30">
- <text class="text-white text-size-m text-weight-b">{{item.jiage}}</text>
- </view>
- <view >
- <image @click="jiarufuFun(item)" class="remenzan" src="/static/img/86.png" mode="widthFix"></image>
- </view>
- </view>
- </view>
- </view>
- <view style="clear: both;"></view>
- <view style="clear: both;" class="more ma-40 pt-40" @click="gengmore()">
- <image src="/static/img/30.png" mode="widthFix"></image>
- <text class="text-size-s">下拉加载更多~</text>
- </view>
- </view>
- </tm-sheet>
- <view style="height:60px"></view>
- </div>
- <!-- 弹出层消息 -->
- <tm-message ref="toast"></tm-message>
- </view>
- </template>
- <script>
- import{myRequest} from '@/api/request.js'
- export default {
- data() {
- return {
- activeIndex:0,
- soso:'',
- addr:['江西省','南昌市','西湖区'],
- value:'',
- list2: [{
- title: '最近上新',
- shang:true
- }, {
- title: '价格',
- shang:false
- },{
- title: '销量',
- shang:true
- }],
- typeclick:1,
- listdata:[]
- };
- },
- onLoad() {
-
- },
- created() {
- this.sys = uni.getSystemInfoSync();
- this.randouh()
- },
- methods: {
- gengmore(){
- this.randouh()
- },
- jiarufuFun(data){
- uni.navigateTo({
- url: "/pages/gouwuche/index",
- })
- // console.log(data)
- // this.gouwuche.push(data)
- },
- randouh(){
- let list2 = [],that=this;
- for(let i=0;i<8;i++){
- list2.push({
- image:'../../static/img/90.png',
- text:'帽子',
- jiage:'¥ 359.00',
- xiaol:'128'
- })
- }
- this.listdata=this.listdata.concat(list2)
- console.log(this.listdata)
- },
- goindex(){
- uni.navigateBack();
- },
- change(e){
- console.log(e)
- },
- sosoFun(){
- }
- },
- }
- </script>
- <style lang="scss">
- /deep/ .tm-menubars .body{
- background-color: #1b1b1b !important;
- }
- /deep/ .zhuti{padding: 10px 10px;}
- /deep/ .kuang{margin:0 !important;padding: 0px !important;}
- /deep/ .icon-search{
- font-size: 23px !important;
- color: #8E8E93 !important;
- }
- /deep/ .tm-search{
- width: 66%;
- background-color: #414141 !important;
- border-radius: 10px;
- }
- /deep/ .tm-search .grey-darken-5{
- background-color: #414141 !important;
- }
- .dingwei{width: 21%;margin-top:3%;}
- .shuruk{width: 77%;}
- .sousuo{width:94%;margin:0 auto;}
- .quxiao{color: #707070;line-height: 47px;}
- .contone{width: 48%;}
- .logo{width: 100%;}
- .remenzan{width: 18px !important;margin-top: 10px;}
- .more{text-align: center;}
- .more image{margin-right: 10px;vertical-align: middle;width: 30px;}
- </style>
|