Commit e0543f3f authored by 不吃草的咩's avatar 不吃草的咩
Browse files

订单接口

parent 3ac18b99
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -7,6 +7,7 @@ App({
    information:{},
    information:{},
    phone:'',
    phone:'',
    orderDetail:{},
    orderDetail:{},
    courseId:'',
    onLaunch() {
    onLaunch() {
        //console.log(colorUISdk.isRandom.getRandom(6))
        //console.log(colorUISdk.isRandom.getRandom(6))
        //console.log(colorUISdk.version)
        //console.log(colorUISdk.version)
+6 −2
Original line number Original line Diff line number Diff line
{
{
  "pages": [
  "pages": [
    "pages/order/order",
    
    "pages/home/home",
    "pages/home/home",
    "pages/order/order",
    "pages/my/home",
    "pages/my/home",
    "pages/demo/background/background",
    "pages/demo/background/background",
    "pages/demo/avatar/avatar",
    "pages/demo/avatar/avatar",
@@ -136,7 +137,10 @@
    "van-notice-bar": "/vantPackage/notice-bar/index",
    "van-notice-bar": "/vantPackage/notice-bar/index",
    "van-card": "/vantPackage/card/index",
    "van-card": "/vantPackage/card/index",
    "van-sticky": "/vantPackage/sticky/index",
    "van-sticky": "/vantPackage/sticky/index",
    "van-search": "/vantPackage/search/index"
    "van-search": "/vantPackage/search/index",
    "van-tab": "/vantPackage/tab/index",
    "van-tabs": "/vantPackage/tabs/index",
    "van-empty": "/vantPackage/empty/index"
  },
  },
  "tabBar": {
  "tabBar": {
    "color": "#aaaaaa",
    "color": "#aaaaaa",
+2 −2
Original line number Original line Diff line number Diff line
@@ -14,7 +14,7 @@ export const colorUISdk = new ColorUISdk({
        dev: {
        dev: {
            // url: 'http://101.42.222.235:8050/'
            // url: 'http://101.42.222.235:8050/'
          //   url:'http://jbzhang.censoft.com.cn/'
          //   url:'http://jbzhang.censoft.com.cn/'
           url: 'http://192.168.14.79:8010/'
           url: 'http://jjliu.censoft.com.cn/'
        },
        },
        //本地环境
        //本地环境
        host: {
        host: {
+18 −2
Original line number Original line Diff line number Diff line
@@ -14,6 +14,10 @@ Component({
        navurl:{
        navurl:{
            type:String,
            type:String,
            value:''
            value:''
        },
        tabBg:{
            type:String,
            value:''
        }
        }
    },
    },
    lifetimes: {
    lifetimes: {
@@ -27,8 +31,20 @@ Component({
    methods:{
    methods:{
        //随机生成库内颜色名&&拼接路由
        //随机生成库内颜色名&&拼接路由
        getColor() {
        getColor() {
          //  console.log(this.data.tabBg);
            if(this.data.tabBg == "QYJS"){
                //cyan olive
                let colorArr = ['yellow', 'orange', 'red', 'pink', 'mauve', 'purple', 'blue', 'cyan', 'green', 'olive', 'grey', 'brown'];
                let colorArr = ['yellow', 'orange', 'red', 'pink', 'mauve', 'purple', 'blue', 'cyan', 'green', 'olive', 'grey', 'brown'];
            return colorArr[Math.floor(Math.random() * colorArr.length)]
                console.log(colorArr[Math.floor(Math.random() * colorArr.length)]);
              //  return colorArr[Math.floor(Math.random() * colorArr.length)]
                   return "cyan"; 
            }else{
                // let colorArr = ['yellow', 'orange', 'red', 'pink', 'mauve', 'purple', 'blue', 'cyan', 'green', 'olive', 'grey', 'brown'];
                // console.log(colorArr[Math.floor(Math.random() * colorArr.length)]);
                // return colorArr[Math.floor(Math.random() * colorArr.length)]
                return  "blue";
            }
         
        },
        },
        // getNavUrl(){
        // getNavUrl(){
        //     let params = ''
        //     let params = ''
+6 −3
Original line number Original line Diff line number Diff line
@@ -11,7 +11,8 @@ Page({
        id:'',
        id:'',
        name:'',
        name:'',
        note:'',
        note:'',
        price:''
        price:'',
        showPrice:0,
      }
      }
  },
  },
  onClickLeft(){
  onClickLeft(){
@@ -40,12 +41,14 @@ Page({
   */
   */
  onLoad: function (options) {
  onLoad: function (options) {
      console.log(options);
      console.log(options);
      const {name,note,price,id} = options;
      let {name,note,price,id} = options;
      let showPrice = (parseInt(price * 100) ) / 10000;
      this.setData({
      this.setData({
        ["course.name"]:name == 'null' ? '' : name,
        ["course.name"]:name == 'null' ? '' : name,
        ["course.note"]:note == 'null' ? '暂无介绍' : note,
        ["course.note"]:note == 'null' ? '暂无介绍' : note,
        ["course.price"]:price == 'null' ? '' : price,
        ["course.price"]:price == 'null' ? '' : price,
        ["course.id"]:id
        ["course.id"]:id,
        ["course.showPrice"]:showPrice
      })
      })
  },
  },


Loading