开通商城

pifa
fanfan 4 months ago
parent 111d08c902
commit 117cfcda34
  1. 22
      api/tutorial.js
  2. 17
      pages.json
  3. 1248
      pages/gamll/index.vue
  4. 47
      pages/gamll/rules.vue
  5. 73
      pages/user/index.vue
  6. 2
      project.config.json
  7. BIN
      static/user/code.png
  8. BIN
      static/user/manage.png

@ -3,7 +3,11 @@ import request from '@/utils/request'
// api地址
const api = {
courseType: 'course/getCourseType',
list: 'course/getCourseList'
list: 'course/getCourseList',
retailList: 'retail/retailPayList',
describe: 'retail/describe',
submit: 'retail/submit',
getSoftAgreement: 'retail/getSoftAgreement'
}
// 分类
@ -14,3 +18,19 @@ export const courseType = (param) => {
export const courseList = (param) => {
return request.get(api.list, param)
}
// 会员列表
export const retailList = (param) => {
return request.post(api.retailList, param)
}
// 会员全益
export const describe = (param) => {
return request.get(api.describe, param)
}
// 会员余额支付
export const submit = (param) => {
return request.post(api.submit, param)
}
// 协议
export const getSoftAgreement = (param) => {
return request.get(api.getSoftAgreement, param)
}

@ -239,7 +239,22 @@
"enablePullDownRefresh": false
}
}
},
{
"path": "pages/gamll/index",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom",
"enablePullDownRefresh": false
}
},
{
"path": "pages/gamll/rules",
"style": {
"navigationBarTitleText": "软件付费服务协议",
"enablePullDownRefresh": false
}
}
],
"subPackages": [{
"root": "pages/invite/",

File diff suppressed because it is too large Load Diff

@ -0,0 +1,47 @@
<template>
<view class="pages">
<view class="content" v-html="strings">
</view>
</view>
</template>
<script>
import * as api from '@/api/tutorial'
export default{
data(){
return{
strings:'',
}
},
onLoad(options){
this.getSoftAgreementData()
},
methods:{
//
async getSoftAgreementData() {
let that = this;
let {
status,
message,
data
} = await api.getSoftAgreement({type:'soft'});
if (status == 200) {
this.strings=data.detail.content
} else {
that.$toast(message)
}
},
},
}
</script>
<style scoped lang="scss">
.pages{
width: 100%;
height: 100%;
padding: 30rpx;
span{
white-space: normal !important
}
}
</style>

@ -431,7 +431,7 @@
物流查询
</view>
</view>
<!-- <view class="serveIcon" @click="goJump('/pages/news3/vipPrice?type=0')"
<!-- <view class="serveIcon" @click="goJump('/pages/news3/vipPrice?type=0')"
v-if="userInfo.user_type == 40">
<image :src="$picUrl+'/static/user/member.png'" class="icons"></image>
<view class="serveInfo">
@ -510,19 +510,29 @@
会员管理
</view>
</view>
<view class="serveIcon" v-if="userInfo.user_type == 40 || userInfo.user_type == 30 || userInfo.user_type == 20" @click="goJump('/pages/news1/jinqun')">
<view class="serveIcon"
v-if="userInfo.user_type == 40 || userInfo.user_type == 30 || userInfo.user_type == 20"
@click="goJump('/pages/news1/jinqun')">
<image :src="$picUrl+'/static/user/jq.png'" class="icons"></image>
<view class="serveInfo">
进群有礼
</view>
</view>
<!-- course -->
<view class="serveIcon" v-if="userInfo.user_type == 40" @click="goJump('/pages/merchantTutorial/tutorial')">
<view class="serveIcon" v-if="userInfo.user_type == 40"
@click="goJump('/pages/merchantTutorial/tutorial')">
<image :src="$picUrl+'/static/user/course.png'" class="icons"></image>
<view class="serveInfo">
商家教程
</view>
</view>
<!-- v-if="is_show_open_shop_buttun== 10" -->
<view class="serveIcon" @click="goJump('/pages/gamll/index')">
<image :src="$picUrl+'/static/user/gmall.png?t=1'" class="icons"></image>
<view class="serveInfo">
开通商城
</view>
</view>
</view>
</view>
<!-- 商品推荐 -->
@ -532,30 +542,29 @@
</view>
<view class="goodsRecommend" v-if="isLogin == false || userInfo.user_type != 40">
<!-- <u-waterfall v-model="goodsRecommend" ref="uWaterfall1"> -->
<!-- <template v-slot:left="{leftList}"> -->
<view class="goodsItem" v-for="(item,index) in goodsRecommend" @click="goodsDetail(item)"
:key="index">
<view class="pic">
<image :src="item.goods_image" mode="aspectFill"></image>
</view>
<view class="goodsInfo">
<view class="title">
<!-- <text v-if="item.selling_point" class="ziying">{{item.selling_point}}</text> -->
<text class="name">{{item.goods_name}}</text>
</view>
<view class="price" style="margin-top: 12rpx;">
<text style="font-size: 26rpx;"></text>
<text style="font-weight: bold;font-size: 32rpx;">{{item.goods_price_min}}</text>
<text style="font-size: 20rpx;margin-left:10rpx;"></text>
<text
style="color: #949494;font-size: 22rpx;text-decoration: line-through;">{{item.line_price_min}}</text>
</view>
<!-- <view class="goodsInfo1" v-if="item.cmmdty_model">
<!-- <template v-slot:left="{leftList}"> -->
<view class="goodsItem" v-for="(item,index) in goodsRecommend" @click="goodsDetail(item)" :key="index">
<view class="pic">
<image :src="item.goods_image" mode="aspectFill"></image>
</view>
<view class="goodsInfo">
<view class="title">
<!-- <text v-if="item.selling_point" class="ziying">{{item.selling_point}}</text> -->
<text class="name">{{item.goods_name}}</text>
</view>
<view class="price" style="margin-top: 12rpx;">
<text style="font-size: 26rpx;"></text>
<text style="font-weight: bold;font-size: 32rpx;">{{item.goods_price_min}}</text>
<text style="font-size: 20rpx;margin-left:10rpx;"></text>
<text
style="color: #949494;font-size: 22rpx;text-decoration: line-through;">{{item.line_price_min}}</text>
</view>
<!-- <view class="goodsInfo1" v-if="item.cmmdty_model">
<view class="oneTip">
{{item.cmmdty_model}}
</view>
</view> -->
<!-- <view class="goodsSend">
<!-- <view class="goodsSend">
<view class="sendLeft">
<view class="left_1">
{{item.goods_source}}
@ -574,10 +583,10 @@
<text v-if="item.delivery_time==6">45天内发货</text>
</view>
</view> -->
</view>
</view>
<!-- </template> -->
<!-- <template v-slot:right="{rightList}">
</view>
</view>
<!-- </template> -->
<!-- <template v-slot:right="{rightList}">
<view class="goodsItem" style="margin-right: 0;" v-for="(item,index) in rightList"
@click="goodsDetail(item)" :key="index">
<view class="pic">
@ -658,7 +667,7 @@
</view>
<canvas id="myCanvas" class="myCanvas" canvas-id="myCanvas"
:style="{'width': 702/devicePixelRatio+'px',' height': 1000/devicePixelRatio+'px',position: 'absolute',left:'-100000px',top:'-100000px'}"></canvas>
<addShuiyin />
<addShuiyin />
</view>
</template>
<script>
@ -728,7 +737,7 @@
}
},
onReachBottom() {
if (!this.recommendFinish) {
if (!this.recommendFinish) {
this.getSuggest()
}
},
@ -878,7 +887,9 @@
},
getSuggest() {
//
Api.recommendedNew({ page: this.recommendPage++ }).then(res => {
Api.recommendedNew({
page: this.recommendPage++
}).then(res => {
console.log(res);
let arr = res.data.goodsList.data
if (arr && arr.length > 0) {
@ -892,7 +903,7 @@
if (arr.length < res.data.goodsList.per_page) {
this.recommendFinish = true;
}
this.recommendLoadTitle = this.recommendFinish ? "已全部加载完" : "上拉加载更多";
this.recommendLoadTitle = this.recommendFinish ? "已全部加载完" : "上拉加载更多";
this.goodsRecommend = [...this.goodsRecommend, ...arr]
})

@ -1,5 +1,5 @@
{
"appid": "wxa3127ed5c3542a28",
"appid": "wx8dc1c2620cfd953a",
"compileType": "miniprogram",
"libVersion": "3.3.3",
"packOptions": {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

Loading…
Cancel
Save