Dread 4 years ago
parent
commit
67cc39e1c6
  1. 23
      pages.json
  2. 0
      pages/menu/goods/goodsDetail/index.css
  3. 48
      pages/menu/goods/goodsDetail/index.vue
  4. 34
      pages/menu/goods/index.css
  5. 39
      pages/menu/goods/index.vue
  6. BIN
      static/tabbar/[email protected]
  7. 4
      unpackage/dist/dev/app-plus/app-config-service.js
  8. 4665
      unpackage/dist/dev/app-plus/app-service.js
  9. 5878
      unpackage/dist/dev/app-plus/app-view.js
  10. 2
      unpackage/dist/dev/app-plus/manifest.json
  11. BIN
      unpackage/dist/dev/app-plus/static/bankCard/[email protected]
  12. BIN
      unpackage/dist/dev/app-plus/static/bankCard/[email protected]
  13. BIN
      unpackage/dist/dev/app-plus/static/bankCard/[email protected]
  14. BIN
      unpackage/dist/dev/app-plus/static/bankCard/[email protected]
  15. BIN
      unpackage/dist/dev/app-plus/static/tabbar/[email protected]
  16. 10
      utils/api.js
  17. 2
      utils/axios.js

23
pages.json

@ -3,11 +3,22 @@
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
},
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/login/index",
"style": {
}
},
{
"path": "pages/menu/goods/index",
"style": {
}
},
{
"path": "pages/menu/goods/goodsDetail/index",
"style": {
}
},
{
"path": "pages/menu/bankCard/addAddress/index",
"style": {
@ -26,11 +37,6 @@
},
{
"path": "pages/login/index",
"style": {
}
},
{
"path": "pages/register/index",
"style": {
@ -176,12 +182,19 @@
"tabBar":{
"selectedColor":"#34026B",
"list":[
{
"text":"Home",
"pagePath":"pages/menu/goods/index",
"iconPath":"./static/tabbar/[email protected]",
"selectedIconPath":"./static/tabbar/[email protected]"
},
{
"text":"Game",
"pagePath":"pages/menu/color/index",
"iconPath":"./static/tabbar/[email protected]",
"selectedIconPath":"./static/tabbar/[email protected]"
},
{
"text":"Promotion",
"pagePath":"pages/menu/promotion/index",

0
pages/menu/goods/goodsDetail/index.css

48
pages/menu/goods/goodsDetail/index.vue

@ -0,0 +1,48 @@
<template>
<view class="goods_con">
<navigation>
Product
</navigation>
<u-swiper :list="list" height="1000" mode="none"></u-swiper>
</view>
</template>
<script>
import api from '@/utils/api'
import utils from '@/utils'
import md5 from 'js-md5'
import store from '@/store'
import cont from "@/components/navigation/navigation.vue"
export default {
data() {
return {
goods_Detail:[],
}
},
onLoad(i) {
const post = api.goodsDetail({
goodsId:i
})
.then(res =>{
this.goods_Detail=res.data;
console.log(this.goods_Detail)
}).catch(err =>{
console.log(err)
})
},
onReady() {
},
methods: {
},
}
</script>
<style>
@import './index.css';
</style>

34
pages/menu/goods/index.css

@ -0,0 +1,34 @@
.goods_con{
background-color: #F5F7FA;
}
.goods_list_con{
width: 100%;
padding:36rpx 36rpx 140rpx 36rpx;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.good_item{
width: 320rpx;
background-color: #fff;
border-radius: 20rpx;
margin-bottom: 36rpx;
}
.good_item image{
width: 100%;
}
.text{
padding: 24rpx;
font-size: 26rpx;
color: #303133;
height: 200rpx;
overflow-x: hidden;
overflow-y: scroll;
}
.price{
padding: 18rpx 24rpx 36rpx 24rpx;
font-size: 28rpx;
color: #954DE3;
text-align: left;
}

39
pages/menu/goods/index.vue

@ -1,6 +1,21 @@
<template>
<view class="">
<u-swiper :list="list"></u-swiper>
<view class="goods_con">
<navigation :showBack="false">
Home
</navigation>
<u-swiper :list="list" height="1000" mode="none"></u-swiper>
<view class="goods_list_con">
<view class="good_item" v-for="item,index in goods_list" :key="item.index" @click="goGoodsDetail(item.id)">
<image :src="'https://apitest.luck-work.com'+item.goodsImgThumbUrl" mode="aspectFit"></image>
<view class="text">
{{item.goodsName}}
</view>
<view class="price">
{{item.goodsPrice}}
</view>
</view>
</view>
</view>
</template>
@ -13,7 +28,10 @@
export default {
data() {
return {
list: [],
// banner
list: [],
//
goods_list:[],
ticket:'',
}
},
@ -27,6 +45,11 @@
},
methods: {
goGoodsDetail(i){
uni.navigateTo({
url:'goodsDetail/index?id='+i
})
},
init(){
const post = api.banner({})
.then(res =>{
@ -34,6 +57,16 @@
for(var i=0;i<this.list.length;i++){
this.list[i].adImgPath='https://apitest.luck-work.com'+this.list[i].adImgPath
}
}).catch(err =>{
console.log(err)
})
const post2 = api.goodsList({})
.then(res =>{
this.goods_list=res.data;
}).catch(err =>{
console.log(err)
})
},
},

BIN
static/tabbar/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

4
unpackage/dist/dev/app-plus/app-config-service.js

@ -1,8 +1,8 @@
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/login/index","pages/register/index","pages/menu/color/index","pages/menu/promotion/applyRecord/index","pages/menu/promotion/bounsRecord/index","pages/menu/withdrawl/transactions/index","pages/menu/recharge/rechargeRule","pages/menu/withdrawl/transactions/index","pages/menu/withdrawl/withdrawlRecord/index","pages/menu/recharge/index","pages/menu/recharge/record/index","pages/menu/rule/arules/index","pages/menu/aplan/index","pages/menu/withdrawl/index","pages/menu/promotion/promotionRecord/index","pages/menu/recharge/index","pages/menu/My/index","pages/menu/promotion/index","pages/menu/index/index","pages/login/resetPassword/index","pages/menu/rule/index","pages/menu/rule/inviteRule/index"],"window":{"navigationBarTextStyle":"white","navigationBarBackgroundColor":"#34026B"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Game","pagePath":"pages/menu/color/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}]},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"first","compilerVersion":"3.1.13","entryPagePath":"pages/login/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/login/index","meta":{"isQuit":true},"window":{}},{"path":"/pages/register/index","meta":{},"window":{}},{"path":"/pages/menu/color/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/promotion/applyRecord/index","meta":{},"window":{}},{"path":"/pages/menu/promotion/bounsRecord/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/transactions/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/rechargeRule","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/withdrawlRecord/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/record/index","meta":{},"window":{}},{"path":"/pages/menu/rule/arules/index","meta":{},"window":{}},{"path":"/pages/menu/aplan/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/index","meta":{},"window":{}},{"path":"/pages/menu/promotion/promotionRecord/index","meta":{},"window":{}},{"path":"/pages/menu/My/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/promotion/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/index/index","meta":{},"window":{}},{"path":"/pages/login/resetPassword/index","meta":{},"window":{}},{"path":"/pages/menu/rule/index","meta":{},"window":{}},{"path":"/pages/menu/rule/inviteRule/index","meta":{},"window":{}}];
var __uniConfig = {"pages":["pages/login/index","pages/menu/goods/index","pages/menu/goods/goodsDetail/index","pages/menu/bankCard/addAddress/index","pages/menu/bankCard/addBankCard/index","pages/menu/bankCard/index","pages/register/index","pages/menu/color/index","pages/menu/promotion/applyRecord/index","pages/menu/promotion/bounsRecord/index","pages/menu/withdrawl/transactions/index","pages/menu/recharge/rechargeRule","pages/menu/withdrawl/transactions/index","pages/menu/withdrawl/withdrawlRecord/index","pages/menu/recharge/index","pages/menu/recharge/record/index","pages/menu/rule/arules/index","pages/menu/aplan/index","pages/menu/withdrawl/index","pages/menu/promotion/promotionRecord/index","pages/menu/recharge/index","pages/menu/My/index","pages/menu/promotion/index","pages/menu/index/index","pages/login/resetPassword/index","pages/menu/rule/index","pages/menu/rule/inviteRule/index"],"window":{"navigationBarTextStyle":"white","navigationBarBackgroundColor":"#34026B"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Home","pagePath":"pages/menu/goods/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Game","pagePath":"pages/menu/color/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}]},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"first","compilerVersion":"3.1.13","entryPagePath":"pages/login/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/login/index","meta":{"isQuit":true},"window":{}},{"path":"/pages/menu/goods/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/goods/goodsDetail/index","meta":{},"window":{}},{"path":"/pages/menu/bankCard/addAddress/index","meta":{},"window":{}},{"path":"/pages/menu/bankCard/addBankCard/index","meta":{},"window":{}},{"path":"/pages/menu/bankCard/index","meta":{},"window":{}},{"path":"/pages/register/index","meta":{},"window":{}},{"path":"/pages/menu/color/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/promotion/applyRecord/index","meta":{},"window":{}},{"path":"/pages/menu/promotion/bounsRecord/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/transactions/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/rechargeRule","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/withdrawlRecord/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/index","meta":{},"window":{}},{"path":"/pages/menu/recharge/record/index","meta":{},"window":{}},{"path":"/pages/menu/rule/arules/index","meta":{},"window":{}},{"path":"/pages/menu/aplan/index","meta":{},"window":{}},{"path":"/pages/menu/withdrawl/index","meta":{},"window":{}},{"path":"/pages/menu/promotion/promotionRecord/index","meta":{},"window":{}},{"path":"/pages/menu/My/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/promotion/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/menu/index/index","meta":{},"window":{}},{"path":"/pages/login/resetPassword/index","meta":{},"window":{}},{"path":"/pages/menu/rule/index","meta":{},"window":{}},{"path":"/pages/menu/rule/inviteRule/index","meta":{},"window":{}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});

4665
unpackage/dist/dev/app-plus/app-service.js

File diff suppressed because one or more lines are too long

5878
unpackage/dist/dev/app-plus/app-view.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/dev/app-plus/manifest.json

@ -1 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__7E21D6D","name":"first","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"light","background":"#34026B"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.1.13","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Game","pagePath":"pages/menu/color/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}],"borderStyle":"rgba(0,0,0,0.4)","height":"50px"},"launch_path":"__uniappview.html"}}
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__7E21D6D","name":"first","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"light","background":"#34026B"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.1.13","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"selectedColor":"#34026B","list":[{"text":"Home","pagePath":"pages/menu/goods/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Game","pagePath":"pages/menu/color/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"Promotion","pagePath":"pages/menu/promotion/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"},{"text":"My","pagePath":"pages/menu/My/index","iconPath":"./static/tabbar/[email protected]","selectedIconPath":"./static/tabbar/[email protected]"}],"borderStyle":"rgba(0,0,0,0.4)","height":"50px"},"launch_path":"__uniappview.html"}}

BIN
unpackage/dist/dev/app-plus/static/bankCard/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
unpackage/dist/dev/app-plus/static/bankCard/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

BIN
unpackage/dist/dev/app-plus/static/bankCard/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
unpackage/dist/dev/app-plus/static/bankCard/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
unpackage/dist/dev/app-plus/static/tabbar/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

10
utils/api.js

@ -52,6 +52,16 @@ const api = {
//--------------------------------- goods ---------------------------------
banner: () => Vue.prototype.$axios.get('/api/home/banner'),
goodsList: (params) => Vue.prototype.$axios.post('/api/index/goodsList',params),
goodsDetail: (params) => Vue.prototype.$axios.post('/api/index/goods',params),
//--------------------------------- moni ---------------------------------
lotteryClassListM: (params) => Vue.prototype.$axios.post('/api/demo/lotteryClassList',params),
nextLotteryPeriodM: (params) => Vue.prototype.$axios.post('/api/demo/nextLotteryPeriod',params),
bettingConfigM: (params) => Vue.prototype.$axios.post('/api/demo/bettingConfig',params),
bettingM: (params) => Vue.prototype.$axios.post('/api/demo/betting',params),
lotteryRecordsM: (params) => Vue.prototype.$axios.post('/api/demo/lotteryRecords',params),
myLotteryRecordsM: (params) => Vue.prototype.$axios.post('/api/demo/myLotteryRecords',params),
}

2
utils/axios.js

@ -36,8 +36,6 @@ service.interceptors.request.use(
const ticket = uni.getStorageSync('ticket')
let dataStr=[];
if (config.method=='get') {
console.log(11111111111111)
if(config.url.split('?').length>1){
dataStr=config.url.split('?')[1].split('&');
}

Loading…
Cancel
Save